mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
add tabs to snippets
This commit is contained in:
parent
763f16f43c
commit
e801f288f2
1 changed files with 20 additions and 20 deletions
|
@ -14,7 +14,7 @@ define () ->
|
||||||
caption: "\\begin{#{env}}..."
|
caption: "\\begin{#{env}}..."
|
||||||
snippet: """
|
snippet: """
|
||||||
\\begin{#{env}}
|
\\begin{#{env}}
|
||||||
$1
|
\t$1
|
||||||
\\end{#{env}}
|
\\end{#{env}}
|
||||||
"""
|
"""
|
||||||
meta: "env"
|
meta: "env"
|
||||||
|
@ -24,8 +24,8 @@ define () ->
|
||||||
caption: "\\begin{array}..."
|
caption: "\\begin{array}..."
|
||||||
snippet: """
|
snippet: """
|
||||||
\\begin{array}{${1:cc}}
|
\\begin{array}{${1:cc}}
|
||||||
$2 & $3 \\\\\\\\
|
\t$2 & $3 \\\\\\\\
|
||||||
$4 & $5
|
\t$4 & $5
|
||||||
\\end{array}
|
\\end{array}
|
||||||
"""
|
"""
|
||||||
meta: "env"
|
meta: "env"
|
||||||
|
@ -33,10 +33,10 @@ define () ->
|
||||||
caption: "\\begin{figure}..."
|
caption: "\\begin{figure}..."
|
||||||
snippet: """
|
snippet: """
|
||||||
\\begin{figure}
|
\\begin{figure}
|
||||||
\\centering
|
\t\\centering
|
||||||
\\includegraphics{$1}
|
\t\\includegraphics{$1}
|
||||||
\\caption{${2:Caption}}
|
\t\\caption{${2:Caption}}
|
||||||
\\label{${3:fig:my_label}}
|
\t\\label{${3:fig:my_label}}
|
||||||
\\end{figure}
|
\\end{figure}
|
||||||
"""
|
"""
|
||||||
meta: "env"
|
meta: "env"
|
||||||
|
@ -44,8 +44,8 @@ define () ->
|
||||||
caption: "\\begin{tabular}..."
|
caption: "\\begin{tabular}..."
|
||||||
snippet: """
|
snippet: """
|
||||||
\\begin{tabular}{${1:c|c}}
|
\\begin{tabular}{${1:c|c}}
|
||||||
$2 & $3 \\\\\\\\
|
\t$2 & $3 \\\\\\\\
|
||||||
$4 & $5
|
\t$4 & $5
|
||||||
\\end{tabular}
|
\\end{tabular}
|
||||||
"""
|
"""
|
||||||
meta: "env"
|
meta: "env"
|
||||||
|
@ -53,13 +53,13 @@ define () ->
|
||||||
caption: "\\begin{table}..."
|
caption: "\\begin{table}..."
|
||||||
snippet: """
|
snippet: """
|
||||||
\\begin{table}[$1]
|
\\begin{table}[$1]
|
||||||
\\centering
|
\t\\centering
|
||||||
\\begin{tabular}{${2:c|c}}
|
\t\\begin{tabular}{${2:c|c}}
|
||||||
$3 & $4 \\\\\\\\
|
\t\t$3 & $4 \\\\\\\\
|
||||||
$5 & $6
|
\t\t$5 & $6
|
||||||
\\end{tabular}
|
\t\\end{tabular}
|
||||||
\\caption{${7:Caption}}
|
\t\\caption{${7:Caption}}
|
||||||
\\label{${8:tab:my_label}}
|
\t\\label{${8:tab:my_label}}
|
||||||
\\end{table}
|
\\end{table}
|
||||||
"""
|
"""
|
||||||
meta: "env"
|
meta: "env"
|
||||||
|
@ -67,7 +67,7 @@ define () ->
|
||||||
caption: "\\begin{list}..."
|
caption: "\\begin{list}..."
|
||||||
snippet: """
|
snippet: """
|
||||||
\\begin{list}
|
\\begin{list}
|
||||||
\\item $1
|
\t\\item $1
|
||||||
\\end{list}
|
\\end{list}
|
||||||
"""
|
"""
|
||||||
meta: "env"
|
meta: "env"
|
||||||
|
@ -75,7 +75,7 @@ define () ->
|
||||||
caption: "\\begin{enumerate}..."
|
caption: "\\begin{enumerate}..."
|
||||||
snippet: """
|
snippet: """
|
||||||
\\begin{enumerate}
|
\\begin{enumerate}
|
||||||
\\item $1
|
\t\\item $1
|
||||||
\\end{enumerate}
|
\\end{enumerate}
|
||||||
"""
|
"""
|
||||||
meta: "env"
|
meta: "env"
|
||||||
|
@ -83,7 +83,7 @@ define () ->
|
||||||
caption: "\\begin{itemize}..."
|
caption: "\\begin{itemize}..."
|
||||||
snippet: """
|
snippet: """
|
||||||
\\begin{itemize}
|
\\begin{itemize}
|
||||||
\\item $1
|
\t\\item $1
|
||||||
\\end{itemize}
|
\\end{itemize}
|
||||||
"""
|
"""
|
||||||
meta: "env"
|
meta: "env"
|
||||||
|
@ -91,7 +91,7 @@ define () ->
|
||||||
caption: "\\begin{frame}..."
|
caption: "\\begin{frame}..."
|
||||||
snippet: """
|
snippet: """
|
||||||
\\begin{frame}{${1:Frame Title}}
|
\\begin{frame}{${1:Frame Title}}
|
||||||
$2
|
\t$2
|
||||||
\\end{frame}
|
\\end{frame}
|
||||||
"""
|
"""
|
||||||
meta: "env"
|
meta: "env"
|
||||||
|
|
Loading…
Reference in a new issue