I'm writing an automatic compiling pipeline that should be able to compile any given tex file into a pdf. The diversity of the input tex files mainly shows up in what format of figures they use and how they include them. The figures are mostly eps, ps, and pdf, and they may use psfig, graphix etc to include them.
I'm not particular clear on what criteria I should set up in the pipeline about what figure handling packages used in those tex file should trigger which latex compiling scheme among pdflatex, latex, and xelatex. Any easy rule of thumbs or any tables that I can look for the rules? thanks.
EDIT
I am aware the question is not well posed in the first place. I think what I want is 1) is there a tool that could compile all sorts of tex files with different figure formats and figure handling packages. 2) if not, is there a specific keyword I should search for in the file that tells me what compiling method I should use?
My current design is to try various compiling schemes one by one (latex->pdflatex->xelatex) until it succeeds.
psfigis obsolete; nothing that can be done with it can't withgraphicx. Moreover the more recent TeX distributions allow for conversion on the fly of EPS files into PDF, so the question is not well posed. It's different if you're talking aboutpstricks. – egreg May 29 '12 at 21:48pdflatexunless they're using PSTricks graphics or some special input character set, which might require the use ofxelatex), it would be great if you could write a self-answer. – Jake May 29 '12 at 22:06pdfinfoon a PDF from the arxiv I getdvips + GPL Ghostscript GIT PRERELEASE 9.05which strongly suggestslatex. On one of my articles, I getLuaTeX-0.70.1so it waslualatex. On another, I getxdvipdfmx (0.7.8)whencexelatex. So if you download the source and the PDF then it's an easier task than just going from the source alone. – Andrew Stacey May 30 '12 at 11:01