[emacs] Add snippets for latex mode.
This commit is contained in:
14
.emacs.d/snippets/latex-mode/table.yasnippet
Normal file
14
.emacs.d/snippets/latex-mode/table.yasnippet
Normal file
@@ -0,0 +1,14 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Mads D. Kristensen <madsdk@gmail.com>
|
||||
# key: table
|
||||
# group: environments
|
||||
# name : \begin{table} ... \end{table}
|
||||
# --
|
||||
\begin{table}[htbp]
|
||||
\centering
|
||||
\begin{tabular}{${3:format}}
|
||||
$0
|
||||
\end{tabular}
|
||||
\caption{${1:caption}}
|
||||
\label{${2:"waiting for reftex-label call..."$(unless yas/modified-p (reftex-label nil 'dont-insert))}}
|
||||
\end{table}
|
Reference in New Issue
Block a user