Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7ce665e

Browse files
author
Felix Jung
committedMar 6, 2014
Fixed citation snippets and added citea and citey
1 parent 56324b8 commit 7ce665e

File tree

1 file changed

+76
-72
lines changed

1 file changed

+76
-72
lines changed
 

‎snippets/tex.snippets

+76-72
Original file line numberDiff line numberDiff line change
@@ -14,174 +14,178 @@ snippet dmo
1414

1515
#DOCUMENT
1616
# \begin{}...\end{}
17-
snippet begin
17+
snippet begin
1818
\begin{${1:env}}
19-
${0}
19+
${0}
2020
\end{$1}
2121
# Tabular
22-
snippet tab
22+
snippet tab
2323
\begin{${1:tabular}}{${2:c}}
2424
${0}
2525
\end{$1}
26-
snippet thm
26+
snippet thm
2727
\begin[${1:author}]{${2:thm}}
2828
${0}
2929
\end{$2}
30-
snippet center
30+
snippet center
3131
\begin{center}
32-
${0}
32+
${0}
3333
\end{center}
3434
# Align(ed)
35-
snippet ali
35+
snippet ali
3636
\begin{align${1:ed}}
37-
\label{eq:${2}}
38-
${0}
37+
\label{eq:${2}}
38+
${0}
3939
\end{align$1}
4040
# Gather(ed)
41-
snippet gat
41+
snippet gat
4242
\begin{gather${1:ed}}
43-
${0}
43+
${0}
4444
\end{gather$1}
4545
# Equation
46-
snippet eq
46+
snippet eq
4747
\begin{equation}
48-
\label{eq:${2}}
49-
${0}
48+
\label{eq:${2}}
49+
${0}
5050
\end{equation}
5151
# Equation
52-
snippet eq*
52+
snippet eq*
5353
\begin{equation*}
54-
${0}
54+
${0}
5555
\end{equation*}
5656
# Unnumbered Equation
57-
snippet \
58-
\[
57+
snippet \
58+
\[
5959
${0}
60-
\]
60+
\]
6161
# Equation array
62-
snippet eqnarray
63-
\begin{eqnarray}
62+
snippet eqnarray
63+
\begin{eqnarray}
6464
${0}
65-
\end{eqnarray}
65+
\end{eqnarray}
6666
# Label
67-
snippet lab
68-
\label{${1:eq:}${2:fig:}${3:tab:}${0}}
67+
snippet lab
68+
\label{${1:eq:}${2:fig:}${3:tab:}${0}}
6969
# Enumerate
70-
snippet enum
71-
\begin{enumerate}
70+
snippet enum
71+
\begin{enumerate}
7272
\item ${0}
73-
\end{enumerate}
73+
\end{enumerate}
7474
# Itemize
75-
snippet itemize
76-
\begin{itemize}
75+
snippet itemize
76+
\begin{itemize}
7777
\item ${0}
78-
\end{itemize}
79-
snippet item
80-
\item ${1}
78+
\end{itemize}
79+
snippet item
80+
\item ${1}
8181
# Description
82-
snippet desc
83-
\begin{description}
82+
snippet desc
83+
\begin{description}
8484
\item[${1}] ${0}
85-
\end{description}
85+
\end{description}
8686
# Endless new item
87-
snippet ]i
88-
\item ${1}
89-
${0:]i}
87+
snippet ]i
88+
\item ${1}
89+
${0:]i}
9090
# Matrix
91-
snippet mat
92-
\begin{${1:p/b/v/V/B/small}matrix}
91+
snippet mat
92+
\begin{${1:p/b/v/V/B/small}matrix}
9393
${0}
94-
\end{$1matrix}
94+
\end{$1matrix}
9595
# Cases
96-
snippet cas
97-
\begin{cases}
96+
snippet cas
97+
\begin{cases}
9898
${1:equation}, &\text{ if }${2:case}\\
99-
${0}
100-
\end{cases}
99+
${0}
100+
\end{cases}
101101
# Split
102-
snippet spl
103-
\begin{split}
104-
${0}
105-
\end{split}
102+
snippet spl
103+
\begin{split}
104+
${0}
105+
\end{split}
106106
# Part
107-
snippet part
108-
\part{${1:part name}} % (fold)
107+
snippet part
108+
\part{${1:part name}} % (fold)
109109
\label{prt:${2:$1}}
110110
${0}
111-
% part $2 (end)
111+
% part $2 (end)
112112
# Chapter
113-
snippet cha
113+
snippet cha
114114
\chapter{${1:chapter name}}
115115
\label{cha:${2:$1}}
116116
${0}
117117
# Section
118-
snippet sec
118+
snippet sec
119119
\section{${1:section name}}
120120
\label{sec:${2:$1}}
121121
${0}
122122
# Section without number
123-
snippet sec*
123+
snippet sec*
124124
\section*{${1:section name}}
125125
\label{sec:${2:$1}}
126126
${0}
127127
# Sub Section
128-
snippet sub
128+
snippet sub
129129
\subsection{${1:subsection name}}
130130
\label{sub:${2:$1}}
131131
${0}
132132
# Sub Section without number
133-
snippet sub*
133+
snippet sub*
134134
\subsection*{${1:subsection name}}
135135
\label{sub:${2:$1}}
136136
${0}
137137
# Sub Sub Section
138-
snippet subs
138+
snippet subs
139139
\subsubsection{${1:subsubsection name}}
140140
\label{ssub:${2:$1}}
141141
${0}
142142
# Sub Sub Section without number
143-
snippet subs*
143+
snippet subs*
144144
\subsubsection*{${1:subsubsection name}}
145145
\label{ssub:${2:$1}}
146146
${0}
147147
# Paragraph
148-
snippet par
148+
snippet par
149149
\paragraph{${1:paragraph name}}
150150
\label{par:${2:$1}}
151151
${0}
152152
# Sub Paragraph
153-
snippet subp
153+
snippet subp
154154
\subparagraph{${1:subparagraph name}}
155155
\label{subp:${2:$1}}
156156
${0}
157-
snippet ni
157+
snippet ni
158158
\noindent
159159
${0}
160160
#References
161-
snippet itd
161+
snippet itd
162162
\item[${1:description}] ${0:item}
163-
snippet figure
163+
snippet figure
164164
${1:Figure}~\ref{${2:fig:}}
165-
snippet table
165+
snippet table
166166
${1:Table}~\ref{${2:tab:}}
167-
snippet listing
167+
snippet listing
168168
${1:Listing}~\ref{${2:list}}
169-
snippet section
169+
snippet section
170170
${1:Section}~\ref{sec:${2}} ${0}
171-
snippet page
171+
snippet page
172172
${1:page}~\pageref{${2}} ${0}
173-
snippet index
173+
snippet index
174174
\index{${1:index}} ${0}
175175
#Citations
176176
snippet citen
177-
\cite{$1} ${0}
177+
\citen{${1}} ${0}
178178
# bibtex commands
179179
snippet citep
180-
\citep{$1} ${0}
180+
\citep{${1}} ${0}
181181
snippet citet
182-
\citet{$1} ${0}
182+
\citet{${1}} ${0}
183183
snippet cite
184184
\cite[${1}]{${2}} ${0}
185+
snippet citea
186+
\citeauthor{${1}} ${0}
187+
snippet citey
188+
\citeyear{${1}} ${0}
185189
snippet fcite
186190
\footcite[${1}]{${2}}${0}
187191
#Formating text: italic, bold, underline, small capital, emphase ..

0 commit comments

Comments
 (0)