This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
OTHER2017/tex_reviewed/gfx2/standalone/build.sh
2017-08-02 09:43:43 +02:00

17 lines
392 B
Bash
Executable File

#!/bin/bash
PATH=$PATH:/mnt/vm/programme/texlive/bin/x86_64-linux/
# build pdf
# one page per image
pdflatex exp
rm exp.log
rm exp.aux
# convert each PDF page to a PNG image
convert -density 300 exp.pdf -background white -alpha remove image%d.png
# convert each PDF page to an EPS image
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
do
pdftops -f $i -l $i -eps "exp.pdf" "image$i.eps"
done