mirror of
https://github.com/NotXia/dotfiles.git
synced 2025-12-14 10:01:54 +01:00
Add LaTeX figure snippet
This commit is contained in:
15
.config/Code/User/snippets/latex.json
Normal file
15
.config/Code/User/snippets/latex.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"Centered figure": {
|
||||
"prefix": [ "\\figure" ],
|
||||
"body": [
|
||||
"\\begin{figure}[H]",
|
||||
"\t\\centering",
|
||||
"\t\\includegraphics[width=$2\\linewidth]{$1}",
|
||||
"\t\\caption{",
|
||||
"\t\t\\parbox[t]{$2\\linewidth}{$3}",
|
||||
"\t}",
|
||||
"\\end{figure}",
|
||||
],
|
||||
"description": "Centered figure"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user