With the workflow:

LyX -> LaTeX -> ePub (via pandoc)

And I'm having a problem where an image filename included in LyX (say "image.jpg") will be converted into "image" (no extension) in LaTeX. pandoc will then obviously complain it can't find the images.

Is there any way (short of parsing the LaTeX and adding the file extensions externally) of configuring LyX to keep them? (I'm using LyX's own export to LaTeX)


1 Answer 1


No, I don't think you can configure the export from Lyx this way, because LaTeX usually adds the extensions.

But what is the point against using regular expressions and changing "includegraphics{([a-z]...)}" against "includegraphics{\1.jpg}", details depend on the editor?

Learning regular expressions at least a bit is always worth the time.

  • Nothing against regex except Lundh's lemma: "Some people, when confronted with a problem, think “I know, I'll use regular expressions.” Now they have two problems."
    – Rui Vieira
    Commented Jul 18, 2014 at 15:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .