Permalink
Browse files

Added snippets for creating a figure and for a table, as well as comp…

…letions for the Beamer package
  • Loading branch information...
omniearth
omniearth committed Apr 23, 2012
1 parent f29d3b5 commit 7c0b8db4f6b45fc5aee62ed0855aa2500d167804
Showing with 47 additions and 0 deletions.
  1. +11 −0 Beamer.sublime-completions
  2. +13 −0 figure.sublime-snippet
  3. +23 −0 table.sublime-snippet
View
@@ -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}"}
+ ]
+}
View
@@ -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>
View
@@ -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.