kopia lustrzana https://github.com/RobertGawron/IonizationChamber
28 wiersze
550 B
Bash
28 wiersze
550 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
# generate .png from all .tex in current directory
|
||
|
|
|
||
|
|
for filename_with_extension in *.tex
|
||
|
|
do
|
||
|
|
echo "processing $filename_with_extension..."
|
||
|
|
|
||
|
|
# remove file exctension to made file handling easier
|
||
|
|
|
||
|
|
filename=${filename_with_extension%.*}
|
||
|
|
|
||
|
|
# convert .tex to .png
|
||
|
|
|
||
|
|
pdflatex $filename.tex
|
||
|
|
pdfcrop $filename.pdf $filename-tmp.pdf
|
||
|
|
pdftoppm -png -r 800 $filename-tmp.pdf $filename
|
||
|
|
|
||
|
|
# remove junk files
|
||
|
|
|
||
|
|
rm $filename.aux
|
||
|
|
rm $filename.log
|
||
|
|
rm $filename-tmp.pdf
|
||
|
|
rm $filename.pdf
|
||
|
|
rm texput.log
|
||
|
|
done
|
||
|
|
|