ich habe hier ein kurzes Bash-Script das unter Linux läuft und würde es genauso gerne unter Windows laufen lassen daher würde ich Hilfe beim Übersetzen brauchen, hab auf die schnelle nicht herausgefunden wie man sämtliche Dateien eines Dateityps in einem Ordner mittels Batchscript abarbeiten kann - vielleicht hat einer von euch eine schnelle Lösung parat :-)
Danke schonmal!
Hier der Code!
#!/bin/sh
for FILE in `find *.eps -type f`
do
rm *.aux
rm *.dvi
rm *.ps
echo "\input{${FILE%.*}}" > ./matlabtotex2.tex
latex --src -interaction=nonstopmode matlabtotex.tex
dvips matlabtotex
ps2epsi matlabtotex.ps matlabtotex.eps
epstopdf matlabtotex.eps
mv -f matlabtotex.pdf ../${FILE%.*}.pdf
done
#move files to processed folder
rm matlabtotex.eps
for FILE in `find *.eps -type f`
do
mv -f ${FILE%.*}.tex ./processed/${FILE%.*}.tex
mv -f ${FILE%.*}.eps ./processed/${FILE%.*}.eps
done

Hilfe
Neues Thema
Antworten

Nach oben

