Am Samstag, 25. November 2006 03:09 schrieb Uwe Stöhr: > icebna schrieb: > > > In the preamble I have included an image in format eps as logo. The > > image can see in the visor dvi, but does not print her because says > > that does not find her, nevertheless finds all the other images. > > I assume that you mean with print to print it to PDF. The reason is, that the PDF-format can only embed images in JPEG, PNG, or PDF-format. DVI > can only include EPS-images. Normally LyX takes care about this and transform it automatically, but LyX is not able to do this for images > included in the document preamble.
Exactly. > (For more information about possible image formats, have a look in the appendix of the Extended-Insets manual: > http://wiki.lyx.org/LyX/DocumentationDevelopment#Extended-Insets ) > > > That is the preamble to my logo : > > > > \newsavebox{\mylogo} > > \savebox{\mylogo}{\includegraphics[width=1cm]{/home/miguel/ant}} > > \rhead{La Escuela de las hormigas\usebox{\mylogo}} > > To have the needed image format, use this instead in the document preamble: > > \newsavebox{\mylogo} > > \usepackage{ifpdf} > \ifpdf % if document is converted to PDF > \savebox{\mylogo}{\includegraphics[width=1cm]{/home/miguel/ant.jpg}} > \else % if document is converted to DVI > \savebox{\mylogo}{\includegraphics[width=1cm]{/home/miguel/ant.eps}} > \fi > > \lhead{} > \rhead{La Escuela de las hormigas \usebox{\mylogo}} Why? The original version should work, provided that both ant.jpg and and.eps exists. And I would recommend to store the logo as ant.pdf in vector format btw, that looks better if the original logo is not bitmapped. I suspect that the problem is something else. Georg
