diff --git a/vim/.vim/snippets/tex.snippets b/vim/.vim/snippets/tex.snippets index 22f7316..7397ca6 100644 --- a/vim/.vim/snippets/tex.snippets +++ b/vim/.vim/snippets/tex.snippets @@ -101,6 +101,8 @@ snippet subp \label{subp:${2:$1}} ${3} % subparagraph $2 (end) +snippet it + \item ${1:item} snippet itd \item[${1:description}] ${2:item} snippet figure @@ -113,3 +115,8 @@ snippet section ${1:Section}~\ref{${2:sec:}}${3} snippet page ${1:page}~\pageref{${2}}${3} + +snippet title + \title{${1}} + \author{${2}} + \date{${3:\today}} diff --git a/vim/.vim/templates/tex b/vim/.vim/templates/tex new file mode 100644 index 0000000..6fd68b4 --- /dev/null +++ b/vim/.vim/templates/tex @@ -0,0 +1,12 @@ +\document[a4paper,12pt]{} + +% Packages +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[ngerman]{babel} +\usepackage{fancyhdr} +\usepackage{lipsum} + +\begin{document} + +\end{document} diff --git a/vim/.vimrc b/vim/.vimrc index 62cf95c..051c086 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -93,6 +93,10 @@ set noshowmode set listchars=eol:↲,tab:▶▹,nbsp:␣,extends:…,trail:• " }}} +" --- Latex {{{ +au BufRead,BufNewFile *.tex set ft=tex +" }}} + " --- Abbreviations {{{ iab _date =strftime("%A, %d. %B %Y %H:%M") iab _zmail madmaurice@zom.bi