~telemachus/nvim-dotfiles

7964c99001a989c85bb1f36309653d265fa37e91 — Peter Aronoff a month ago 28042e3
chore: update tex snippets and add bib snippets
2 files changed, 85 insertions(+), 22 deletions(-)

A snippets/bib.snippets
M snippets/tex.snippets
A snippets/bib.snippets => snippets/bib.snippets +63 -0
@@ 0,0 1,63 @@
snippet book "book entry" b
	@book{ ${1:citation},
		author = {${2:Last, First}},
		title = {${3:title}},
		shorttitle = {${4:short title}},
		publisher = {${5:publisher}},
		year = {${6:year}},
		address = {${7:address}},
		keywords = {${8:keywords}},
	}$0
snippet edbook "edbook entry" b
	@book{ ${1:citation},
		editor = {${2:editor}},
		title = {${3:title}},
		shorttitle = {${4:short title}},
		publisher = {${5:publisher}},
		year = {${6:year}},
		address = {${7:address}},
		keywords = {${8:keywords}},
	}$0
snippet article "article entry" b
	@article{ ${1:citation},
		author = {${2:Last, First}},
		title = {${3:title}},
		shorttitle = {${4:short title}},
		journal = {${5:journal}},
		year = {${6:year}},
		volume = {${7:volume}},
		number = {${8:number}},
		pages = {${9:pages}},
		keywords = {${10:keywords}},
	}$0
snippet incollection "incollection entry" b
	@incollection{ ${1:citation},
		author = {${2:Last, First}},
		title = {${3:title}},
		shorttitle = {${4:short title}},
		pages = {${7:pages}},
		crossref = {${8:crossref}},
		keywords = {${9:keywords}},
	}$0
snippet misc "misc entry" b
	@misc { ${1:citation},
		author = {${2:Last, First}},
		title = {${3:title}},
		shorttitle = {${4:short title}},
		note = {${5:note}},
		year = ${6:year}},
		keywords = {${7:keywords}},
	}$0
snippet kw "keywords = {},"
	keywords = {${1:primary}},$0
snippet cr "crossref = {},"
	crossref = {${1:crossref}},$0
snippet st "shorttitle = {},"
	shortitle = {${1:short title}},$0
snippet ed "editor = {},"
	editor = {${1:Last, First}},$0
snippet en "edition = {},"
	edition = {${1:edition}},$0
snippet nt "note = {},"
	note = {${1:note}},$0
# vim:ft=snippets:

M snippets/tex.snippets => snippets/tex.snippets +22 -22
@@ 6,71 6,71 @@ snippet "enum" "\begin{enumerate}…\end{enumerate}" b
	\begin{enumerate}
		\item $1
	\end{enumerate}$0
snippet itemize "\begin{itemize}…\end{itemize}" b
snippet "itemize" "\begin{itemize}…\end{itemize}" b
	\begin{itemize}
		\item $1
	\end{itemize}$0
snippet desc "\begin{description}…\end{description}" b
snippet "desc" "\begin{description}…\end{description}" b
	\begin{description}
		\item[$1] $2
	\end{description}$0
snippet "\item" "\item" b
snippet "item" "\item" b
	\item $0
snippet "chapter" "\chapter{}" b
	\chapter{${1:chapter name}}$0
snippet up "\usepackage" b
snippet "up" "\usepackage" b
	\usepackage[${1:options}]{${2:package}}$0
snippet it "\textit{}" w
snippet "it" "\textit{}" w
	\textit{${1:${VISUAL}}}$0
snippet bf "\textbf{}" w
snippet "bf" "\textbf{}" w
	\textbf{${1:${VISUAL}}}$0
snippet gr "\textgreek{}" w
snippet "gr" "\textgreek{}" w
	\textgreek{${1:${VISUAL}}}$0
snippet "sec(tion)?" "\section{}" b
snippet "section" "\section{}" b
	\section{${1:${VISUAL:section name}}}$0
snippet "sec(tion)?\*" "\section*{}" b
snippet "section*" "\section*{}" b
	\section*{${1:${VISUAL:section name}}}$0
snippet "sub(sec)?" "\subsection{}" b
snippet "subsec" "\subsection{}" b
	\subsection{${1:${VISUAL:subsection name}}}$0
snippet "sub(sec)?\*" "\subsection*{}" b
snippet "subsec*" "\subsection*{}" b
	\subsection*{${1:${VISUAL:subsection name}}}%
snippet "ssub(sec)?" "\subsubsection{}" b
snippet "ssubsec" "\subsubsection{}" b
	\subsubsection{${1:${VISUAL:subsubsection name}}}$0
snippet "ssub(sec)?\*" "\subsubsection*{}" b
snippet "ssubsec*" "\subsubsection*{}" b
	\subsubsection*{${1:${VISUAL:subsubsection name}}}$0
snippet fc "\footcite[][]{}" w
snippet "fc" "\footcite[][]{}" w
	\footcite[${1:pre text}][${2:post text}]{${3:citation}}${0}
snippet fn "\footnote" w
snippet "fn" "\footnote" w
	\footnote{${1}}${0}
snippet fold "Make a fold [[-,-]]" b
snippet "fold" "Make a fold [[-,-]]" b
	% [[- ${1:label}
	${2:${VISUAL}}
	% -]] $1$0
snippet foldsec "Make a fold with a section [[-,-]]" b
snippet "foldsec" "Make a fold with a section [[-,-]]" b
	% [[- ${1:label}
	\section{$1}

	${2:${VISUAL}}
	% -]] $1$0
snippet foldsubsec "Make a fold with a subsection [[-,-]]" b
snippet "foldsubsec" "Make a fold with a subsection [[-,-]]" b
	% [[- ${1:label}
	\subsection{$1}

	${2:${VISUAL}}
	% -]] $1$0
snippet foldsec* "Make a fold with a section* [[-,-]]" b
snippet "foldsec*" "Make a fold with a section* [[-,-]]" b
	% [[- ${1:label}
	\section*{$1}

	${2:${VISUAL}}
	% -]] $1$0
snippet foldsubsec* "Make a fold with a subsection* [[-,-]]" b
snippet "foldsubsec*" "Make a fold with a subsection* [[-,-]]" b
	% [[- ${1:label}
	\subsection*{$1}

	${2:${VISUAL}}
	% -]] $1$0
snippet tq "\textquote[<citation>][<punctuation>]{<quote>}" w
snippet "tq" "\textquote[<citation>][<punctuation>]{<quote>}" w
	\textquote[${2:citation}][${3:punctuation}]{${1:quote${VISUAL}}}$0
snippet eq "\enquote{<quote>}" w
snippet "eq" "\enquote{<quote>}" w
	\enquote{${1:quote${VISUAL}}}$0