As @egreg says in the comments, the original eps
file is defective, and gets cropped when it is converted to pdf
. The bounding box is wrong, but you probably won't see this in a viewer because the first line is also wrong, causing the file to be displayed as ordinary (non-encapsulated) postscript (so the bounding box will be ignored and you will see a lot of white space around the edges). Luckily, these problems are fairly easy to fix.
Method 1
Rename 'lipari-plot.eps' as 'lipari-plot.ps', and in the terminal, do
ps2eps --ignoreBB lipari-plot.ps
Method 2
Open the eps file in your favourite text editor. Delete the first six lines (those starting with %
), and replace them with the following.
%!PS-Adobe-2.0 EPSF-2.0
%%BoundingBox: 124 78 479 735
%%HiResBoundingBox: 124.000000 78.500000 479.000000 735.000000
%%EndComments
Either of these should produce an eps
file that can be converted to pdf
without any problems.
pdflatex
cannot handle EPS files directly, and you'll note from the log file that .eps
is not among the filetypes it considers:
l.38 ...hics[width=0.75\textwidth]{paperfractalds}
I could not locate the file with any of these extensions:
.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2
Therefore, the file has to be converted to a different format, normally PDF. The package epstopdf
does this for you, so adding
\usepackage{epstopdf}
to the preamble and compiling with shell-escape
enabled (see e.g. How to enable shell-escape in TeXworks?) should take care of that. You may need to use the flag --enable-write18
instead of --shell-escape
(they do the same thing, but the former is used by MikTeX).
Note that with newer versions of TeX Live at least, this conversion is handled automatically, so there is no need to add that package or enable shell-escape
. I do not know if the same is the case for MikTeX 2.9.
I think LyX perhaps handles these conversions itself, hence not needing that package, but I may be completely wrong. Asking a question at the lyx-users
mailing list is probably the best way to figure that out. Also, I though EPS files would work fine when compiling via DVI, so why that doesn't work I don't know.
The log also shows an error from babel
, which can occur for example if you compile once, then remove a language option from \documentclass
or babel
and compile again (see https://tex.stackexchange.com/a/82673/586). \usepackage[english]{babel}
should fix that part I guess.
Best Answer
The main problem here seems to be the understanding of the difference between raster or pixel graphics on the one hand and vector or line graphics on the other hand. The difference is explained in the questions already linked by the OP or in the Wikipedia article on vector graphics.
Typical file formats for raster graphics are
.jpg
,.png
,.gif
or.tiff
(read more here).Programs for creating & editing raster graphics are Microsoft Paint, Photoshop or Gimp and many more.
Typical file formats for vector graphics are
.eps
,.pdf
or.svg
(read more here).Programs for creating & editing vector graphics are Inkscape, Corel Draw, Adobe Illustrator and many more.
Most vector file formats can also contain raster graphics, e.g. as background decoration. Including or converting a
.png
file into a.pdf
file does not make it a vector graphic.On the other hand, converting a vector graphic into a raster graphic makes it a raster graphic forever, there is no way back (apart from vectorisation, which is usually as laborious as creating a new graphic from scratch).
gnuplot and also Matlab, Octave, matplotlib etc are capable of exporting vector graphics:
eps
if your workflow islatex->dvi->ps->pdf
.pdf
if your workflow ispdflatex->pdf
..emf
or.wmf
iy you are using Microsoft Word.The OP also asks about block diagrams created with MS PowerPoint. PowerPoint internaly uses vector graphics for block diagrams but does not allow export to vector graphics directly, not even to the vector formats developed by Microsoft (called
.wmf
and.emf
). The workaround here is to export to pdf, either by "printing" to a pdf printer like Adobe Acrobat Distiller or pdfCreator, or by using the "save to pdf" function which is included in MS Office 2007 and newer. This approach also works for Excel diagrams.As an alternative way to create plots and block diagrams, I would suggest to look at TikZ/PGF.