On Tue, 22 May 2007 13:22:34 -0500
Andrew Harrington <[EMAIL PROTECTED]> wrote:
> I just sent a message on this topic, and I have a partial answer:
> In Lyx my graphics file names are listed with the .png suffix. In
> the export of the tex file (plain or pdflatex), the .png gets dropped.
>
> I went back in and manually changed the tex file from Lyx in all
> places like \includegraphics{IdleEditWindow}
> to
> \includegraphics{IdleEditWindow.png}
>
> Then htlatex worked fine.
>
> The new question is, why does the Lyx's tex conversion drop the .png?
> Is there a way to stop it without resorting to manual conversions?
I'm not sure that this is the same problem, but it looks similar to a
problem that I had exporting pdflatex from LyX. The resulting file
wouldn't compile because the graphic files did not have .jpeg as part
of the name.
I solved it with \DeclareGraphicsRule{.jpeg}{jpg}{.jpeg}{} and
\DeclareGraphicsExtensions{.jpeg,.png,.jpg,} commands in the Preamble.
This suggests that something similar might work for you. See the
documentation that you get with a "texdoc graphicx" command.
HTH,
Alan
>
> Thanks
>
> - - - - - - - - - - - - - - - -
>
> previous email:
>
> I could not get htlatex to accept my png images. Conversion to pdf
> with pdflatex worked fine. It is strange, since nothing needs to be
> done to the png images to use them in html.
>
> The beginning and the end of the console output are shown below. It
> was not willing to consider png images. One of the links, with the
> file included in the same directory, is IdleEditWindow.png. If I
> force continuation, it just leaves the pictures out of the final html
> file.
>
> I am running Lyx 1.4.4 on Windows XP, with all the standard extra
> downloads, including miktex 2.5.
>
> As I remember, I had no such problem with html output under Lyx 1.3.7.
>
> Thanks!
>
> - - - - - - - - - - - -
>
> C:\anh\hands-on\handsonHtml>call htlatex handson.tex "html,1"
>
> C:\anh\hands-on\handsonHtml>latex
> \makeatletter\def\HCode{\futurelet\HCode\HCha
> r}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode
> \else\expanda [EMAIL PROTECTED]@macro
> [EMAIL PROTECTED] e[#1,html]{tex4ht}}\let\HCode
> \documentstyle\def\documentstyle{\let\documentstyle \HCode\expandafter
> \def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\document
> style[tex4ht,[EMAIL PROTECTED]
> \makeatother\HCode html.a.b.c.\input handson.tex
>
>
> ...
>
>
> ! LaTeX Error: File `IdleEditWindow' not found.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H <return> for immediate help.
> ...
>
> l.554 \includegraphics{IdleEditWindow}
>
> ? h
> I could not locate the file with any of these extensions:
> .eps,.ps,.eps.gz,.ps.gz,.eps.Z
> Try typing <return> to proceed.
>
> --
> Andrew N. Harrington
> Computer Science Department Director of Academic Programs
> Loyola University Chicago http://www.cs.luc.edu/~anh
> 512B Lewis Towers (office) Phone: 312-915-7999
> Snail mail to Lewis Towers 416 Fax: 312-915-7998
> 820 North Michigan Avenue [EMAIL PROTECTED] for graduate admin
> Chicago, Illinois 60611 [EMAIL PROTECTED] for undergrad admin
> [EMAIL PROTECTED] as professor
>
>
>