Skip to content

Commit

Permalink
Updates to spelling files and some TeX templates for book writing.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekwyatt committed Dec 11, 2012
1 parent 6551bdc commit 1c46ba8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
3 changes: 3 additions & 0 deletions spell/en.utf-8.add
Expand Up @@ -180,3 +180,6 @@ sendOff
alterOff
flatMap
foreach
TelnetServer
Iteratees
Iteratee
Binary file modified spell/en.utf-8.add.spl
Binary file not shown.
21 changes: 17 additions & 4 deletions xpt-personal/ftplugin/tex/tex.xpt.vim
Expand Up @@ -3,6 +3,16 @@ 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^

Expand Down Expand Up @@ -56,13 +66,16 @@ XPT fn hint=\\footnote{...}
\footnote{`^}`cursor^

XPT insertCodeFile hint=Inserts\ an\ entire\ code\ file
\begin{lstlisting}[frame=b,caption=`caption^]
INCLUDE_SOURCE_FILE{`branch^:`location^.scala}
XSET branch|def=bookBranches()
\begin{lstlisting}
INCLUDE_SOURCE_FILE{`branch^:`location^}
\end{lstlisting}

XPT insertCodeSection hint=Inserts\ a\ section\ from\ a\ code\ file
\begin{lstlisting}[frame=b,numbers=left,caption=`caption^]
INCLUDE_SOURCE_FILE_SECTION{`branch^:`location^.scala,`section^}
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
Expand Down

0 comments on commit 1c46ba8

Please sign in to comment.