first commit
This commit is contained in:
commit
205faf4224
5471 changed files with 973850 additions and 0 deletions
0
config/nvim/UltiSnips/latex.snippets
Normal file
0
config/nvim/UltiSnips/latex.snippets
Normal file
3
config/nvim/UltiSnips/matlab.snippets
Normal file
3
config/nvim/UltiSnips/matlab.snippets
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
snippet plot "Plot" b
|
||||
plot(#1,#2,'Color',#3,'Linewidth',1.5,'MarkerSize',0,'DisplayName',"#4")
|
||||
endsnippet
|
||||
145
config/nvim/UltiSnips/tex.snippets
Normal file
145
config/nvim/UltiSnips/tex.snippets
Normal file
|
|
@ -0,0 +1,145 @@
|
|||
############## Figures ##############
|
||||
snippet fig "Figure" b
|
||||
\begin{figure}
|
||||
\centering
|
||||
\includegraphics[width=\figsize]{figures/$1}
|
||||
\caption{$0}
|
||||
\label{fig:$1}
|
||||
\end{figure}
|
||||
endsnippet
|
||||
|
||||
snippet 2fig "Two Figures" b
|
||||
\begin{figure}
|
||||
\begin{subfigure}{\dfigsize}
|
||||
\centering
|
||||
\includegraphics[width=\textwidth]{figures/$2}
|
||||
\caption{$1}
|
||||
\label{fig:$2}
|
||||
\end{subfigure}
|
||||
\hfill
|
||||
\begin{subfigure}{\dfigsize}
|
||||
\centering
|
||||
\includegraphics[width=\textwidth]{figures/$4}
|
||||
\caption{$3}
|
||||
\label{fig:$4}
|
||||
\end{subfigure}
|
||||
\caption{$5}
|
||||
\end{figure}
|
||||
endsnippet
|
||||
|
||||
snippet tab "Table" b
|
||||
\begin{table}
|
||||
\centering
|
||||
\begin{tabular}{$1}
|
||||
\hline
|
||||
$4 & & & \\ \hline
|
||||
\end{tabular}
|
||||
\caption{$2}
|
||||
\label{table:$3}
|
||||
\end{table}
|
||||
endsnippet
|
||||
############## Basics ##############
|
||||
snippet env "Environment"
|
||||
\begin{$1}
|
||||
$2
|
||||
\end{$1}
|
||||
endsnippet
|
||||
############## Direct env ##############
|
||||
snippet abs "Abstract" b
|
||||
\begin{abstract}
|
||||
$1
|
||||
\end{abstract}
|
||||
endsnippet
|
||||
|
||||
snippet itm "Environnement itemize" b
|
||||
\begin{${1:itemize}}
|
||||
\item $2
|
||||
\end{$1}
|
||||
endsnippet
|
||||
|
||||
snippet it "Add item" b
|
||||
\item $1
|
||||
endsnippet
|
||||
############## Section ##############
|
||||
snippet sec "sections"
|
||||
\\$1{$2}\label{sec:$3}
|
||||
endsnippet
|
||||
|
||||
############## Disp ##############
|
||||
snippet bold "bold"
|
||||
\textbf{$1}
|
||||
endsnippet
|
||||
|
||||
snippet ital "italique"
|
||||
\textit{$1}
|
||||
endsnippet
|
||||
|
||||
snippet smcap "small caps"
|
||||
\textsc{$1}
|
||||
endsnippet
|
||||
|
||||
snippet _ "undertext"
|
||||
_{$1}
|
||||
endsnippet
|
||||
|
||||
snippet ^ "uptext"
|
||||
^{$1}
|
||||
endsnippet
|
||||
|
||||
############## Maths ##############
|
||||
snippet frac "fraction"
|
||||
\frac{$1}{$2}
|
||||
endsnippet
|
||||
|
||||
snippet cases "cases"
|
||||
\begin{cases}
|
||||
$1
|
||||
\end{cases}
|
||||
endsnippet
|
||||
|
||||
snippet eq "Equation" b
|
||||
\begin{equation}
|
||||
$1
|
||||
\label{eq:${2}}
|
||||
\end{equation}
|
||||
endsnippet
|
||||
|
||||
snippet param "Parameters" b
|
||||
\begin{parameters}
|
||||
$1 & $2
|
||||
\end{parameters}
|
||||
endsnippet
|
||||
|
||||
snippet align "Align" b
|
||||
\begin{align}
|
||||
$1
|
||||
\label{eq:$2}
|
||||
\end{align}
|
||||
endsnippet
|
||||
|
||||
snippet mat "Matrix" b
|
||||
\begin{bmatrix}
|
||||
$1
|
||||
\end{bmatrix}
|
||||
endsnippet
|
||||
############## Citation ##############
|
||||
snippet ref "reference"
|
||||
\ref{$1}
|
||||
endsnippet
|
||||
|
||||
snippet cite "citation"
|
||||
\cite{$1}
|
||||
endsnippet
|
||||
|
||||
############## Siunitz ##############
|
||||
snippet num "Number"
|
||||
\num{$1}
|
||||
endsnippet
|
||||
|
||||
snippet un "Unit"
|
||||
\unit{$1}
|
||||
endsnippet
|
||||
|
||||
snippet quant "Quantity"
|
||||
\qty{$1}{$2}
|
||||
endsnippet
|
||||
Loading…
Add table
Add a link
Reference in a new issue