Skip to content

added (l/r)angle to ultisnips,added mathfonts to snippets #589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 8, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion snippets/tex.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,15 @@ snippet gat gather(ed) environment
# Equation
snippet eq equation environment
\begin{equation}
\label{eq:${2}}
${0}
\end{equation}
# Equation
snippet eql Labeled equation environment
\begin{equation}
\label{eq:${2}}
${0}
\end{equation}
# Equation
snippet eq* unnumbered equation environment
\begin{equation*}
${0}
Expand Down Expand Up @@ -206,6 +211,13 @@ snippet rm roman font text
\textrm{${0:text}}
snippet tt typewriter (monospace) text
\texttt{${0:text}}
#Math font
snippet mf mathfrak
\mathfrak{${0:text}}
snippet mc mathcal
\mathcal{${0:text}}
snippet ms mathscr
\mathscr{${0:text}}
#misc
snippet ft \footnote
\footnote{${0:text}}
Expand Down Expand Up @@ -263,6 +275,18 @@ snippet col2 two-column environment
${0}
\end{column}
\end{columns}
#delimiter
snippet lr( left( right)
\left( ${0} \right)
snippet lr| left| right|
\left| ${0} \right|
snippet lr{ left\{ right\}
\left\\{ ${0} \right\\}
snippet lr[ left[ right]
\left[ ${0} \right]
snippet lra langle rangle
\langle ${0} \rangle

# Code listings
snippet lst
\begin{listing}[language=${1:language}]
Expand Down