Permalink
Browse files

Added some stuff to improve my writing for tex

  • Loading branch information...
1 parent 77ea138 commit 08f2f114e07eca05f0f9f65161425919feb630bb @derekwyatt committed Feb 9, 2012
Showing with 33 additions and 16 deletions.
  1. +4 −5 ftplugin/tex.vim
  2. +1 −0 spell/en.utf-8.add
  3. BIN spell/en.utf-8.add.spl
  4. +28 −11 xpt-personal/ftplugin/tex/tex.xpt.vim
View
@@ -1,8 +1,7 @@
" this is mostly a matter of taste. but LaTeX looks good with just a bit
" of indentation.
setlocal sw=2
-" TIP: if you write your \label's as \label{fig:something}, then if you
-" type in \ref{fig: and press <C-n> you will automatically cycle through
-" all the figure labels. Very useful!
-let g:Tex_CompileRule_dvi = 'latex --interaction=nonstopmode -output-directory=/home/dwyatt/git/akka-push/doc/target $*'
-nmap <silent> ,ml :!latex --interaction=nonstopmode -output-directory=/home/dwyatt/git/akka-push/doc/target %<cr>
+setlocal spell
+
+imap jj <esc>:w<cr>
+imap jw <c-o>:w<cr>
View
@@ -0,0 +1 @@
+Akka
View
Binary file not shown.
@@ -6,29 +6,42 @@ XPTinclude
XPT tt wrap=text hint=\\texttt{...}
\texttt{`text^}`cursor^
-XPT s hint=\\section{...}
-% `title^ {{{1
+XPT s wrap=title hint=\\section{...}
+% `title^ <<<1
\section{`title^}
\label{sec:`label^}
`cursor^
-XPT ss hint=\\subsection{...}
-% - `title^ {{{1
+XPT ss wrap=title hint=\\subsection{...}
+% - `title^ <<<1
\subsection{`title^}
\label{sec:`label^}
`cursor^
-XPT sss hint=\\subsubsection{...}
-% -- `title^ {{{1
+XPT sss wrap=title hint=\\subsubsection{...}
+% -- `title^ <<<1
\subsubsection{`title^}
\label{sec:`label^}
`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 hint=\\lstinline{code}
+\lstinline{`code^}`cursor^
+
XPT fn hint=\\footnote{...}
\footnote{`^}`cursor^
@@ -77,7 +90,7 @@ XPT eqnarray hint=\\begin{eqnarray*}...\\end{eqnarray*}
\end{eqnarray*}
XPT doc hint=Two\ column\ article\ document
-% Configuration Preamble {{{1
+% Configuration Preamble <<<1
\documentclass[letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
@@ -91,28 +104,32 @@ XPT doc hint=Two\ column\ article\ document
\usepackage{amsmath,amsthm,amssymb}
\usepackage{float}
-% Title {{{1
+% Title <<<1
\title{`title^}
\author{Derek Wyatt (dwyatt@rim.com)}
\date{\today}
\begin{document}
\maketitle
-% Abstract {{{1
+% Abstract <<<1
\begin{abstract}
\end{abstract}
-% Table of Contents {{{1
+% Table of Contents <<<1
\tableofcontents
\setcounter{tocdepth}{3}
\begin{center}
\line(1,0){400}
\end{center}
-% Document {{{1
+% 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}

0 comments on commit 08f2f11

Please sign in to comment.