Skip to content

Commit

Permalink
fix latex snippets label caption space chktex warning24 (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitrisDimitropoulos authored Aug 27, 2023
1 parent a189c2a commit d6e4167
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
4 changes: 2 additions & 2 deletions snippets/latex.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,12 @@
},
"figure": {
"prefix": "BFI",
"body": "\\begin{figure}[${1:htbp}]\n\t\\centering\n\t${0:${TM_SELECTED_TEXT}}\n\t\\caption{${2:<caption>}}\n\t\\label{${3:<label>}}\n\\end{figure}",
"body": "\\begin{figure}[${1:htbp}]\n\t\\centering\n\t${0:${TM_SELECTED_TEXT}}\n\t\\caption{${2:<caption>}}\\label{${3:<label>}}\n\\end{figure}",
"description": "figure"
},
"table": {
"prefix": "BTA",
"body": "\\begin{table}[${1:htbp}]\n\t\\centering\\begin{tabular}{${4:<columns>}}\n\t\t${0:${TM_SELECTED_TEXT}}\n\t\\end{tabular}\n\t\\caption{${2:<caption>}}\n\t\\label{${3:<label>}}\n\\end{table}",
"body": "\\begin{table}[${1:htbp}]\n\t\\centering\\begin{tabular}{${4:<columns>}}\n\t\t${0:${TM_SELECTED_TEXT}}\n\t\\end{tabular}\n\t\\caption{${2:<caption>}}\\label{${3:<label>}}\n\\end{table}",
"description": "table"
},
"tikzpicture": {
Expand Down
21 changes: 7 additions & 14 deletions snippets/latex/latex-snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@
"\t\\floatname{algorithm}{${1:Algorithm}}",
"\t\\algrenewcommand\\algorithmicrequire{\\textbf{${2:Input: }}}",
"\t\\algrenewcommand\\algorithmicensure{\\textbf{${3:Output: }}}",
"\t\\caption{$4}",
"\t\\label{alg:$5}",
"\t\\caption{$4}\\label{alg:$5}",
"\t\\begin{algorithmic}[1]",
"\t\t\\Require \\$input\\$",
"\t\t\\Ensure \\$output\\$",
Expand Down Expand Up @@ -290,8 +289,7 @@
"\t\\begin{center}",
"\t\t\\includegraphics[width=0.95\\textwidth]{figures/$1}",
"\t\\end{center}",
"\t\\caption{$3}",
"\t\\label{fig:$4}",
"\t\\caption{$3}\\label{fig:$4}",
"\\end{figure}",
"$0"
],
Expand All @@ -302,8 +300,7 @@
"body": [
"\\begin{figure}",
"\t\\includegraphics[width=0.45\\textwidth]{figures/$1}",
"\t\\caption{$2}",
"\t\\label{fig:$3}",
"\t\\caption{$2}\\label{fig:$3}",
"\\end{figure}",
"$0"
],
Expand All @@ -314,8 +311,7 @@
"body": [
"\\begin{figure*}",
"\t\\includegraphics[width=0.45\\textwidth]{figures/$1}",
"\t\\caption{$2}",
"\t\\label{fig:$3}",
"\t\\caption{$2}\\label{fig:$3}",
"\\end{figure*}",
"$0"
],
Expand All @@ -325,8 +321,7 @@
"prefix": "table",
"body": [
"\\begin{table}",
"\t\\caption{$1}",
"\t\\label{tab:$2}",
"\t\\caption{$1}\\label{tab:$2}",
"\t\\begin{center}",
"\t\t\\begin{tabular}[c]{l|l}",
"\t\t\t\\hline",
Expand All @@ -348,8 +343,7 @@
"prefix": "table:acm",
"body": [
"\\begin{table}",
"\t\\caption{$1}",
"\t\\label{tab:$2}",
"\t\\caption{$1}\\label{tab:$2}",
"\t\\begin{tabular}{${3:ccl}}",
"\t\t\\toprule",
"\t\t$4",
Expand All @@ -367,8 +361,7 @@
"prefix": "table:acm:*",
"body": [
"\\begin{table*}",
"\t\\caption{$1}",
"\t\\label{tab:$2}",
"\t\\caption{$1}\\label{tab:$2}",
"\t\\begin{tabular}{${3:ccl}}",
"\t\t\\toprule",
"\t\t$4",
Expand Down

0 comments on commit d6e4167

Please sign in to comment.