Skip to content

Commit 4734a45

Browse files
committed
latex: Using \centering rather than center environment
1 parent efff286 commit 4734a45

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

snippets/latex/latex-snippets.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,8 @@
279279
"prefix": "figure",
280280
"body": [
281281
"\\begin{figure}",
282-
"\t\\begin{center}",
283-
"\t\t\\includegraphics[width=0.95\\textwidth]{figures/$1}",
284-
"\t\\end{center}",
282+
"\t\\centering",
283+
"\t\\includegraphics[width=0.95\\textwidth]{figures/$1}",
285284
"\t\\caption{$3}\\label{fig:$4}",
286285
"\\end{figure}",
287286
"$0"

0 commit comments

Comments
 (0)