From fa3d3e1ed32c026baa46318af073e3ed09c459a6 Mon Sep 17 00:00:00 2001 From: Luca Zoppetti Date: Sat, 9 Mar 2024 18:57:44 +0100 Subject: [PATCH] setup super figure --- tex/waves/.vscode/settings.json | 3 ++- tex/waves/figures/svg/.gitkeep | 0 tex/waves/math.tex | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tex/waves/figures/svg/.gitkeep diff --git a/tex/waves/.vscode/settings.json b/tex/waves/.vscode/settings.json index 0847c31..b3916ad 100644 --- a/tex/waves/.vscode/settings.json +++ b/tex/waves/.vscode/settings.json @@ -1,4 +1,5 @@ { "pasteImage.basePath": "${projectRoot}/figures", - "pasteImage.path": "${projectRoot}/figures/screenshots" + "pasteImage.path": "${projectRoot}/figures/screenshots", + "super-figure.filesToWatch": [] } \ No newline at end of file diff --git a/tex/waves/figures/svg/.gitkeep b/tex/waves/figures/svg/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tex/waves/math.tex b/tex/waves/math.tex index 64a03dd..ebc762e 100644 --- a/tex/waves/math.tex +++ b/tex/waves/math.tex @@ -83,4 +83,10 @@ \newcommand{\incfig}[1]{% \def\svgwidth{\columnwidth} \import{./figures/}{#1.pdf_tex} +} + +\newcommand{\incsvg}[2]{% + \def\svgwidth{\columnwidth} + \graphicspath{{#1}} + \input{#2.pdf_tex} } \ No newline at end of file