views:

53

answers:

3

Hi,

I am compiling a latex file on a server and download from there the generated dvi, ps and pdf files to view them.

The latex file by \includegraphics includes some figure files which are not on my local machine. I found that dvi file generated by latex command does not show the figures after dowloaded to my local, but ps file generated by dvips -Ppdf have the figures, and pdf file generated by either ps2pdf or pdflatex seem not have the figures again. Is it because the figures are not actually embeded as part of the dvi and pdf files by those compilation commands? How to actually embed figures so we can only export the document files to other machines?

are the case for tables in separated tex files included into main tex file by /input and the case for style files included by \usepackage similar to the above case for figure files included by \includegraphics ?

Thanks and regards!

+1  A: 

you should look at the warnings. i am sure there some, because for ps you will need eps pictures and for pdflatex you'll need png or jpeg (try compiling at your local machine first, e.g. with kile or the gedit plugin)

I am using kile's compile commands for pdf generation which works always fine (pics incl.). they use pdflatex for that.

Karussell
+1  A: 

it depends a lot on the format of your picture files, and how those formats are handled by the various tools you use to convert dvi -> ps -> pdf

If you product ps, the best is to provide your figures in eps (encapsulated postscript) format, compile with latex and use dvips.

If you want to generate pdf, then provide your fgure in pdf or png format, and use pdflatex.

See http://en.wikibooks.org/wiki/LaTeX/Importing_Graphics and http://amath.colorado.edu/documentation/LaTeX/reference/figures.html for good explanations of what happens.

The output of the latex command can be very informative about whant happens with your figures too.

tonio
+1  A: 
Charles Stewart