Paul A. Rubin wrote:
> <div class="moz-text-flowed" style="font-family: -moz-fixed">BigG wrote:
>> I have LyX 1.6.4 installed in cygwin on W2K, and LyXWindows 1.6.4 on
>> W2K on another box. When I use beamerlyxexample1.lyx, warnings about
>> missing graphics are generated. The following are
>> examples:
>>
>> Package pgf Warning: File "beamer-icsi-logo" not found when defining
>> image "ics
>> i-logo".
>> (pgf)                Tried all extensions in ".pdf:.jpg:.jpeg:.png:"
>> on input l
>> ine 49.
>>
>>
>> Package pgf Warning: Missing height for image "icsi-logo" in draft mode.
>> (pgf)                Using 1cm instead on input line 49.
>>
>>
>> Package pgf Warning: File "beamer-knight1-mask" not found when
>> defining mask "k
>> night1-mask".
>> (pgf)                Tried all extensions in ".pdf:.jpg:.jpeg:.png:"
>> on input l
>> ine 169.
>>
>>
>> Package pgf Warning: File "beamer-knight1" not found when defining
>> image "knigh
>> t1".
>> (pgf)                Tried all extensions in ".pdf:.jpg:.jpeg:.png:"
>> on input l
>> ine 169.
>>
>> The PDF generated is fine, but missing the four knight images, and the
>> ICSI logo. This is what I
>> would expect. However, the relevant image files are actually there in
>> the same directory as
>> beamerlyxexample1.lyx. For example,
>>
>> $ ls -w 80 /usr/local/share/lyx/examples/beam*
>> /usr/local/share/lyx/examples/beamer-g4-mask.jpg*
>> /usr/local/share/lyx/examples/beamer-g4.jpg*
>> /usr/local/share/lyx/examples/beamer-icsi-logo.pdf*
>> /usr/local/share/lyx/examples/beamer-knight1-mask.png*
>> /usr/local/share/lyx/examples/beamer-knight1.png*
>> /usr/local/share/lyx/examples/beamer-knight2-mask.png*
>> /usr/local/share/lyx/examples/beamer-knight2.png*
>> /usr/local/share/lyx/examples/beamer-knight3-mask.png*
>> /usr/local/share/lyx/examples/beamer-knight3.png*
>> /usr/local/share/lyx/examples/beamer-knight4-mask.png*
>> /usr/local/share/lyx/examples/beamer-knight4.png*
>> /usr/local/share/lyx/examples/beamerlyxexample1.lyx*
>>
>> Why can't pdflatex find them?
>>
>> Bill Gordon
>>
> 
> Works fine on Win XP here.  Is this occurring when you try View->PDF
> (pdflatex)?  If so, here are a couple of things to try:
> 
> 1.  Try exporting a TeX file and running pdflatex against it manually.
> 
> 2.  Do View->PDF (pdflatex) and, while the PDF version is open, use a
> DOS window to navigate to your temp directory.  (Tools -> Preferences ->
> Paths -> Temporary directory will point you to it if the location is not
> obvious.)  You should see beamerlyxexample1.tex sitting there.  Open it
> with any text viewer.  About the third line should be a path command,
> something like
> 
> \def\in...@path{{\string"C:/Program
> Files/LyX16/Resources/examples/\string"/}}
> 
> (give or take).  Check to make sure the path is correct.
> 
> /Paul
> 
> 
> </div>
> 
Thanks for responding Paul.

I now have three machines with the following setups:

Machine 1:      W2K     LyX 1.6.4 on cygwin(tetex)
                        LyXWindows 1.6.4 MiKTeX 2.7
Machine 2:      W2K     LyXWindows 1.6.4 MiKTeX 2.7
Machine 3:      XP      LyXWindows 1.6.4 MiKTeX 2.7

so that's four installations of LyX. They all give basically the same result 
for beamerlyxexample1.lyx, which is as follows:

File->Export->LaTeX (pdflatex) produces a TeX file which does not have the 
\def\input line. Running this through pdflatex produces the warnings above, and 
a PDF with no graphics. However, if the graphics files are put into the same 
directory as the TeX file, there are no warnings about missing graphics files, 
and the PDF file does have the appropriate graphics. This seems consistent with 
the lack of \def\input line.

View->PDF (pdflatex) produces a TeX file which does have the \def\input line. 
In each of the four cases, the path appears to be correct (in the cygwin case, 
the two occurences of \string are not present, though). Running these through 
pdflatex produces the warnings above, and a PDF with no graphics in each of the 
four cases. Again, if the the graphics files are put into the same directory as 
the TeX file, there are no warnings about missing graphics files, and the PDF 
file does have the appropriate graphics. This would imply that the \def\input 
line is ignored for some reason.

So

a) your XP installation works, mine doesn't
b) my \def\input lines appear to be OK, but are ignored or incorrectly 
interpreted by pdflatex
c) my Export-ed files don't have the \def\input line (don't know if this is as 
expected or not).

Any thoughts, anyone?

Bill Gordon


Reply via email to