Loading Blog Search...

Saturday, March 05, 2005

figures Latex & pdflatex

latex command generates dvi files, while pdflatex generates pdf. as pdflatex does not recognize eps format used by ps&dvi format, \includingraphics(xx.eps} will failed in pdflatex.
the tip to solve this problem is prepare two versioni of the figure, xx.eps and xx.pdf, and replace \includingraphics(xx.eps} with \includingraphics(xx}. then both pdflatex and latex can pass. if there are many eps in ur legacy latex sources. the following shell scripts can convert all those eps to pdf in one time.
for FILE in *.eps;
NEWFILE=$(echo "$FILE" | sed -e "s/eps\$/pdf/");
convert $FILE $NEWFILE ;

No comments: