prep work
This commit is contained in:
parent
3b3f7ea49f
commit
57f11d7cb1
2 changed files with 32 additions and 1 deletions
11
.gitignore
vendored
Normal file
11
.gitignore
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# Latex files
|
||||||
|
*.dvi
|
||||||
|
*.fls
|
||||||
|
*.out
|
||||||
|
*.aux
|
||||||
|
*.fdb_latexmk
|
||||||
|
*.log
|
||||||
|
*.pdf
|
||||||
|
|
||||||
|
# vim swap file
|
||||||
|
*.swp
|
22
readme.md
22
readme.md
|
@ -6,5 +6,25 @@ wget -qO- "https://yihui.org/tinytex/install-bin-unix.sh" | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
packages:
|
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}
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue