From d14fb5e091977e192ad4744e004549980aca542a Mon Sep 17 00:00:00 2001 From: daoo Date: Sat, 8 Oct 2011 12:07:47 +0200 Subject: [PATCH 1/4] Fix tabbing in frac snippet --- snippets/tex.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/tex.snippets b/snippets/tex.snippets index fdbf83b..57f931b 100644 --- a/snippets/tex.snippets +++ b/snippets/tex.snippets @@ -155,7 +155,7 @@ snippet fig \end{figure} #math snippet frac - \frac{$1}{$2} + \frac{${1}}{${2}} snippet sum $\sum^{${1:n}}_{${2:i=1}}{$3}$ #cite From 170071d0a11cc1bfcd5cd15445d2fb6b1126a5c9 Mon Sep 17 00:00:00 2001 From: daoo Date: Sat, 8 Oct 2011 12:15:05 +0200 Subject: [PATCH 2/4] Change comment to make more sense --- snippets/tex.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/tex.snippets b/snippets/tex.snippets index 57f931b..b98da6d 100644 --- a/snippets/tex.snippets +++ b/snippets/tex.snippets @@ -1,4 +1,4 @@ -# recomendation: no change the fold marker (fold),(end) to {{{,}}} ; latex use many times "{" and "}" +# recomendation: change the fold marker from {{{,}}} to (fold),(end) ; tex uses "{" and "}" a lot # \begin{}...\end{} snippet begin \begin{${1:env}} From ff5981be4d7c9540961357801437725fbc200e6a Mon Sep 17 00:00:00 2001 From: daoo Date: Sat, 8 Oct 2011 12:15:44 +0200 Subject: [PATCH 3/4] Fixed more ${i} issues --- snippets/tex.snippets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snippets/tex.snippets b/snippets/tex.snippets index b98da6d..f8379f0 100644 --- a/snippets/tex.snippets +++ b/snippets/tex.snippets @@ -148,10 +148,10 @@ snippet ft snippet fig \begin{figure} \begin{center} - \includegraphics[scale=$1]{Figures/$2} + \includegraphics[scale=${1}]{Figures/${2}} \end{center} - \caption{$3} - \label{fig:$4} + \caption{${3}} + \label{fig:${4}} \end{figure} #math snippet frac @@ -160,4 +160,4 @@ snippet sum $\sum^{${1:n}}_{${2:i=1}}{$3}$ #cite snippet cite - \cite{$1} + \cite{${1}} From 5a30b032cd1c195cca7ebeb51b817416f2c18a38 Mon Sep 17 00:00:00 2001 From: daoo Date: Sat, 8 Oct 2011 12:16:12 +0200 Subject: [PATCH 4/4] Change sum snippet to match other snippets That is, do not add $$ around it, also fix ${i}. --- snippets/tex.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/tex.snippets b/snippets/tex.snippets index f8379f0..490eed2 100644 --- a/snippets/tex.snippets +++ b/snippets/tex.snippets @@ -157,7 +157,7 @@ snippet fig snippet frac \frac{${1}}{${2}} snippet sum - $\sum^{${1:n}}_{${2:i=1}}{$3}$ + \sum^{${1:n}}_{${2:i=1}}{${3}} #cite snippet cite \cite{${1}}