Skip to content

Commit

Permalink
Added snippets for creating a figure and for a table, as well as comp…
Browse files Browse the repository at this point in the history
…letions for the Beamer package
  • Loading branch information
omniearth committed Apr 23, 2012
1 parent f29d3b5 commit 7c0b8db
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Beamer.sublime-completions
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"scope": "text.tex.latex",

"completions":
[
// Beamer
{ "trigger": "uncover", "contents": "\\uncover<${1:+-}>{$2}"},
{ "trigger": "visible", "contents": "\\visible<${1:+-}>{$2}"},
{ "trigger": "only", "contents": "\\only<${1:+-}>{$2}"}
]
}
13 changes: 13 additions & 0 deletions figure.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<snippet>
<content><![CDATA[
\begin{figure}[${1:tb}]
\begin{center}
\includegraphics[$2]{$3}
\end{center}
\caption{${4:Caption here}}
\label{${5:fig:figure1}}
\end{figure}
]]></content>
<tabTrigger>bfigure</tabTrigger>
<scope>text.tex.latex</scope>
</snippet>
23 changes: 23 additions & 0 deletions table.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<snippet>
<content><![CDATA[
\begin{table}[${1:tb}]
\caption{${2:caption here}}
\label{${3:fig:figurename}}
\begin{center}
\begin{tabular}{${4:l|cc}}
\hline
\hline
\textbf{${5:column 1}} & \textbf{${6:column 2}} & \textbf{${7:column 3}} \\\\
\hline
& & \\\\
\hline
\hline
\end{tabular}
\end{center}
\end{table}
]]></content>
<tabTrigger>btable</tabTrigger>
<scope>text.tex.latex</scope>
</snippet>

0 comments on commit 7c0b8db

Please sign in to comment.