On Wednesday, December 14, 2011 07:05:30 PM Guenter Milde wrote:
> On 2011-12-14, Steve Litt wrote:
> > Hi all,
> > 
> > I use:
> > 
> > lyx --export latex myfile.lyx
> > 
> > and it creates a very nice LaTeX file. However, for what I need,
> > I need it to pass on the full name of each image (e.g.
> > radiator.jpg, not just radiator) and not convert to .eps. Yes, I
> > know this won't compile under LaTeX if it has a .jpg or .png or
> > .gif extension, but I need it.
> 
> AFAIK, the extension is kept if you specify it in the LyX source.
> 
> BTW, pdflatex accepts both jpg and png (but not gif).

I thought so too, but with my LyX 2.0.0 April 29, 2011, I inserted 
title_big.jpg specifying the .jpg, and the LaTeX it generated with lyx 
--export latex had just title_big with no extension. I was as 
surprised as you are.

For the purposes I'm doing (alternate version of LyX to Kindle), I 
need the actual LaTeX file, ruling out pdflatex, but also, it doesn't 
matter if the LaTeX file actually compiles, allowing extensions of 
.png, .jpg, .gif, or pretty much anything else. My postprocessor takes 
care of the rest.

This might be a moot point, as eLyXer makes much better HTML than 
anything I could do with a LaTeX file. I was just making the alternate 
for people who code directly to LaTeX, and figured if it worked well 
it could be used for LyX too, absolving me from maintaining two 
programs.

Thanks

SteveT

Steve Litt
Author: The Key to Everyday Excellence
http://www.troubleshooters.com/bookstore/key_excellence.htm
Twitter: http://www.twitter.com/stevelitt

Reply via email to