From 57f11d7cb1914705bdc4b87e79301f97a2d17171 Mon Sep 17 00:00:00 2001 From: Arthur Grisel-Davy Date: Mon, 2 May 2022 13:10:12 -0400 Subject: [PATCH] prep work --- .gitignore | 11 +++++++++++ readme.md | 22 +++++++++++++++++++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16733f2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +# Latex files +*.dvi +*.fls +*.out +*.aux +*.fdb_latexmk +*.log +*.pdf + +# vim swap file +*.swp diff --git a/readme.md b/readme.md index 4d28ba9..9e2d0a8 100644 --- a/readme.md +++ b/readme.md @@ -6,5 +6,25 @@ wget -qO- "https://yihui.org/tinytex/install-bin-unix.sh" | sh ``` packages: -```tlmgr install `cat requirements.txt` ``` +``` +tlmgr install `cat requirements.txt` +``` +## Usage: +Save `.svg` files from latex and convert them before compiling the document with +``` +inkscape -D -z file=images/plop.svg export-pdf=images/image.pdf --export-latex +``` +For converting all hte figures: +``` +find images/. -name "*.svg" -exec inkscape -D -z file=images/{} --export-latex \; +``` + +Include the figure in hte document with +``` +\begin{figure} + \centering + \def\svgwidth{\columnwidth} + \input{image.pdf_tex} +\end{figure} +```