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.
(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}}
Attached a LyX example file.
regards Uwe
newfile3.lyx
Description: application/lyx
