From 4fca59102b0d6cd915a76f2e28da891b0e36152a Mon Sep 17 00:00:00 2001 From: NotXia <35894453+NotXia@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:48:01 +0200 Subject: [PATCH] Add LaTeX figure snippet --- .config/Code/User/snippets/latex.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .config/Code/User/snippets/latex.json diff --git a/.config/Code/User/snippets/latex.json b/.config/Code/User/snippets/latex.json new file mode 100644 index 0000000..aab8433 --- /dev/null +++ b/.config/Code/User/snippets/latex.json @@ -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" + } +} \ No newline at end of file