mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated plugins
This commit is contained in:
@ -1,16 +1,16 @@
|
||||
#PREAMBLE
|
||||
#newcommand
|
||||
snippet nc
|
||||
\newcommand{\${1:cmd}}[${2:opt}]{${3:realcmd}}${4}
|
||||
\newcommand{\${1:cmd}}[${2:opt}]{${3:realcmd}} ${4}
|
||||
#usepackage
|
||||
snippet up
|
||||
\usepackage[${1:[options}]{${2:package}}
|
||||
\usepackage[${1:options}]{${2:package}} ${3}
|
||||
#newunicodechar
|
||||
snippet nuc
|
||||
\newunicodechar{${1}}{${2:\ensuremath}${3:tex-substitute}}}
|
||||
\newunicodechar{${1}}{${2:\ensuremath}${3:tex-substitute}}} ${4}
|
||||
#DeclareMathOperator
|
||||
snippet dmo
|
||||
\DeclareMathOperator{${1}}{${2}}
|
||||
\DeclareMathOperator{${1}}{${2}} ${3}
|
||||
|
||||
#DOCUMENT
|
||||
# \begin{}...\end{}
|
||||
@ -26,7 +26,7 @@ snippet tab
|
||||
snippet thm
|
||||
\begin[${1:author}]{${2:thm}}
|
||||
${3}
|
||||
\end{$1}
|
||||
\end{$2}
|
||||
snippet center
|
||||
\begin{center}
|
||||
${1}
|
||||
@ -56,6 +56,11 @@ snippet \
|
||||
\[
|
||||
${1}
|
||||
\]
|
||||
# Equation array
|
||||
snippet eqnarray
|
||||
\begin{eqnarray}
|
||||
${1}
|
||||
\end{eqnarray}
|
||||
# Enumerate
|
||||
snippet enum
|
||||
\begin{enumerate}
|
||||
@ -66,11 +71,17 @@ snippet itemize
|
||||
\begin{itemize}
|
||||
\item ${1}
|
||||
\end{itemize}
|
||||
snippet item
|
||||
\item ${1}
|
||||
# Description
|
||||
snippet desc
|
||||
\begin{description}
|
||||
\item[${1}] ${2}
|
||||
\end{description}
|
||||
# Endless new item
|
||||
snippet ]i
|
||||
\item ${1}
|
||||
${2:]i}
|
||||
# Matrix
|
||||
snippet mat
|
||||
\begin{${1:p/b/v/V/B/small}matrix}
|
||||
@ -103,16 +114,31 @@ snippet sec
|
||||
\section{${1:section name}}
|
||||
\label{sec:${2:$1}}
|
||||
${3}
|
||||
# Section without number
|
||||
snippet sec*
|
||||
\section*{${1:section name}}
|
||||
\label{sec:${2:$1}}
|
||||
${3}
|
||||
# Sub Section
|
||||
snippet sub
|
||||
\subsection{${1:subsection name}}
|
||||
\label{sub:${2:$1}}
|
||||
${3}
|
||||
# Sub Section without number
|
||||
snippet sub*
|
||||
\subsection*{${1:subsection name}}
|
||||
\label{sub:${2:$1}}
|
||||
${3}
|
||||
# Sub Sub Section
|
||||
snippet subs
|
||||
\subsubsection{${1:subsubsection name}}
|
||||
\label{ssub:${2:$1}}
|
||||
${3}
|
||||
# Sub Sub Section without number
|
||||
snippet subs*
|
||||
\subsubsection*{${1:subsubsection name}}
|
||||
\label{ssub:${2:$1}}
|
||||
${3}
|
||||
# Paragraph
|
||||
snippet par
|
||||
\paragraph{${1:paragraph name}}
|
||||
@ -123,6 +149,9 @@ snippet subp
|
||||
\subparagraph{${1:subparagraph name}}
|
||||
\label{subp:${2:$1}}
|
||||
${3}
|
||||
snippet ni
|
||||
\noindent
|
||||
${1}
|
||||
#References
|
||||
snippet itd
|
||||
\item[${1:description}] ${2:item}
|
||||
@ -133,14 +162,21 @@ snippet table
|
||||
snippet listing
|
||||
${1:Listing}~\ref{${2:list}}${3}
|
||||
snippet section
|
||||
${1:Section}~\ref{${2:sec:}}${3}
|
||||
${1:Section}~\ref{sec:${2}} ${3}
|
||||
snippet page
|
||||
${1:page}~\pageref{${2}}${3}
|
||||
${1:page}~\pageref{${2}} ${3}
|
||||
snippet index
|
||||
\index{${1:index}}${2}
|
||||
\index{${1:index}} ${2}
|
||||
#Citations
|
||||
snippet citen
|
||||
\cite{$1} ${2}
|
||||
# bibtex commands
|
||||
snippet citep
|
||||
\citep{$1} ${2}
|
||||
snippet citet
|
||||
\citet{$1} ${2}
|
||||
snippet cite
|
||||
\cite[${1}]{${2}}${3}
|
||||
\cite[${1}]{${2}} ${3}
|
||||
snippet fcite
|
||||
\footcite[${1}]{${2}}${3}
|
||||
#Formating text: italic, bold, underline, small capital, emphase ..
|
||||
@ -172,6 +208,7 @@ snippet fig
|
||||
\caption{${3}}
|
||||
\label{fig:${4}}
|
||||
\end{figure}
|
||||
${5}
|
||||
snippet tikz
|
||||
\begin{figure}
|
||||
\begin{center}
|
||||
@ -182,10 +219,40 @@ snippet tikz
|
||||
\caption{${3}}
|
||||
\label{fig:${4}}
|
||||
\end{figure}
|
||||
${5}
|
||||
#math
|
||||
snippet stackrel
|
||||
\stackrel{${1:above}}{${2:below}} ${3}
|
||||
snippet frac
|
||||
\frac{${1:num}}{${2:denom}}
|
||||
\frac{${1:num}}{${2:denom}} ${3}
|
||||
snippet sum
|
||||
\sum^{${1:n}}_{${2:i=1}}{${3}}
|
||||
\sum^{${1:n}}_{${2:i=1}} ${3}
|
||||
snippet lim
|
||||
\lim_{${1:x \to +\infty}} ${2}
|
||||
snippet frame
|
||||
\begin{frame}[<+->]
|
||||
\frametitle{${1:title}}
|
||||
|
||||
${2}
|
||||
\end{frame}
|
||||
snippet block
|
||||
\begin{block}{${1:title}}
|
||||
${2}
|
||||
\end{block}
|
||||
snippet alert
|
||||
\begin{alertblock}{${1:title}}
|
||||
${2}
|
||||
\end{alertblock}
|
||||
snippet example
|
||||
\begin{exampleblock}{${1:title}}
|
||||
${2}
|
||||
\end{exampleblock}
|
||||
snippet col2
|
||||
\begin{columns}
|
||||
\begin{column}{0.5\textwidth}
|
||||
${1}
|
||||
\end{column}
|
||||
\begin{column}{0.5\textwidth}
|
||||
${2}
|
||||
\end{column}
|
||||
\end{columns}
|
||||
|
Reference in New Issue
Block a user