I have a figure created by Xfig that is contained in the files figure.pstex and figure.pstex_t. It is my understanding that to include this figure in a latex document, one needs to run the chain DVI-PS-PDF, instead of pdflatex. However, using this chain makes the inclusion of .jpg files hard. (Parameters natwidth and natheight are needed, which involves a lot of guessing, and is time consuming.) Is there a way to avoid this conundrum?
If the original fig files are no longer available, the following should work:
ps2pdf -dEPSCrop fig1.pstex fig1.pdf sed -i '/\.pstex/.pdf/' fig1.pstex_t
The first command above converts the PostScript file fig1.pstex to a pdf file, here fig1.pdf. The second command changes the relevant line in the LaTeX-file fig1.pstex_t to include the graphics file fig1.pdf instead of fig1.pstex.
Instead of XFig, you can use Inkscape or The Ipe extensible drawing editor. Have a look at this question (and the anwers)
And then you can use pdfLaTeX afterward.