Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: d5d09904f7
Fetching contributors…

Cannot retrieve contributors at this time

182 lines (147 sloc) 4.235 kB
XPTemplate priority=personal
XPTinclude
\ _common/personal
let s:f = g:XPTfuncs()
function s:f.bookBranches()
return split(system("git --git-dir=/Users/quinn/Dropbox/book/src/.git --work-tree=/Users/quinn/Dropbox/book/src branch -a | cut -c3-"))
endfunction
function s:f.bookSrcFiles()
return split(system("cd /Users/quinn/Dropbox/book/src; find main test -name \*.scala -o -name \*.conf -o -name \*.java"))
endfunction
XPT tt wrap=text hint=\\texttt{...}
\texttt{`text^}`cursor^
XPT chapter wrap=title hint=\\chapter{...}
% `title^ <<<1
\chapter{`title^}
\label{chp:`title^S(SV(' ', '_', 'g'), '\([A-Z]\)', '\l\1', 'g')^}
`cursor^
XPT s wrap=title hint=\\section{...}
% - `title^ <<<1
\section{`title^}
\label{sec:`title^S(S(SV(' ', '_', 'g'), ',%"!\.', '', 'g'), '\([A-Z]\)', '\l\1', 'g')^}
`cursor^
XPT ss wrap=title hint=\\subsection{...}
% -- `title^ <<<1
\subsection{`title^}
\label{sec:`title^S(S(SV(' ', '_', 'g'), ',%"!\.', '', 'g'), '\([A-Z]\)', '\l\1', 'g')^}
`cursor^
XPT sss wrap=title hint=\\subsubsection{...}
% --- `title^ <<<1
\subsubsection{`title^}
\label{sec:`title^S(S(SV(' ', '_', 'g'), ',%"!\.', '', 'g'), '\([A-Z]\)', '\l\1', 'g')^}
`cursor^
XPT heading wrap=title hint=\\subsubsection*{...}
\subsubsection*{`title^}
`cursor^
XPT begin hint=\\begin{}...\\end{}
\begin{`layout^}
`cursor^
\end{`layout^}
XPT verbatim hint=\\begin{verbatim}...\\end{verbatim}
\begin{verbatim}
`cursor^
\end{verbatim}
XPT code hint=\\begin{lstlisting}...\\end{lstlisting}
\begin{lstlisting}
`cursor^
\end{lstlisting}
XPT ic wrap=code hint=\\lstinline{code}
\icode{`code^}`cursor^
XPT fn hint=\\footnote{...}
\footnote{`^}`cursor^
XPT insertCodeFile hint=Inserts\ an\ entire\ code\ file
XSET branch|def=bookBranches()
\begin{lstlisting}
INCLUDE_SOURCE_FILE{`branch^:`location^}
\end{lstlisting}
XPT insertCodeSection hint=Inserts\ a\ section\ from\ a\ code\ file
XSET branch|def=bookBranches()
XSET location|def=bookSrcFiles()
\begin{lstlisting}
INCLUDE_SOURCE_FILE_SECTION{`branch^:`location^,`section^}
\end{lstlisting}
XPT e wrap=text hint=\\emph
\emph{`text^}`cursor^
XPT b wrap=text hint=\\emph
\textbf{`text^}`cursor^
XPT enumerate hint=\\begin{enumerate}...\\end{enumerate}
\begin{enumerate}
\item `cursor^
\end{enumerate}
XPT itemize hint=\\begin{itemize}...\\end{itemize}
\begin{itemize}
\item `cursor^
\end{itemize}
XPT description hint=\\begin{description}...\\end{description}
\begin{description}
\item [`description^] `cursor^
\end{description}
XPT i hint=\\item
\item `cursor^
XPT table hint=\\begin{tabular}...\\end{tabular}
\begin{center}
\begin{tabular}{`columnspec^}
`^
\end{tabular}
\end{center}
XPT figure hint=\\begin{figure*}...\\end{figure*}
\begin{figure*}[h]
\centering
\includegraphics[scale=0.5]{GRAPHICS_OUTPUT_DIR/`name^.pdf}
\caption{`cursor^}
\label{fig:`name^S(SV('\([a-z]\)\([A-Z]\)', '\1_\l\2', 'g'), '[A-Z]', '\l&', 'g')^}
\end{figure*}
XPT image hint=\\begin{figure*}...\\end{figure*}
\begin{figure*}[h]
\centering
\includegraphics[scale=2.0]{IMAGES_DIR/`name^.png}
\caption{`cursor^}
\label{fig:`name^S(SV('\([a-z]\)\([A-Z]\)', '\1_\l\2', 'g'), '[A-Z]', '\l&', 'g')^}
\end{figure*}
XPT eqnarray hint=\\begin{eqnarray*}...\\end{eqnarray*}
\begin{eqnarray*}
`cursor^
\end{eqnarray*}
XPT doc hint=Two\ column\ article\ document
% Configuration Preamble <<<1
\documentclass[letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{listings}
\usepackage[pdftex]{graphicx}
\usepackage{multicol}
\usepackage{fullpage}
\usepackage{enumerate}
\DeclareGraphicsExtensions{.eps,.pdf,.png}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{float}
% Title <<<1
\title{`title^}
\author{Derek Wyatt (dwyatt@rim.com)}
\date{\today}
\begin{document}
\maketitle
% Abstract <<<1
\begin{abstract}
\end{abstract}
% Table of Contents <<<1
\tableofcontents
\setcounter{tocdepth}{3}
\begin{center}
\line(1,0){400}
\end{center}
% Document <<<1
\begin{multicols}{2}
`cursor^
\end{multicols}
\end{document}
% vim:sw=2 ft=tex fdl=0 fdm=marker:
XPT minted wrap=code hint=\\minted{...}
\begin{minted}[frame=lines, framesep=2mm]{`scala^}
`code^
\end{minted}
XPT line hint=A\ horizontal\ line
\begin{center}
\line(1, 0){350}
\end{center}
Jump to Line
Something went wrong with that request. Please try again.