John MacFarlane | 21 May 2012 07:37
Picon

Re: images in latex source

+++ Christian [May 20 12 21:02 ]:
> I'm working to convert some latex files to an epub.  With the current
> version of pandoc I seem to have problems converting latex with an
> image to an epub or even to markdown.  I've had success in the past;
> has something changed such that \centerline is no longer understood?
> I'm using pandoc 1.9.3 on OSX 10.7.3.
> 
> === tmp.tex ===
> \\documentclass{book}
> \usepackage{graphicx}
> \newcommand{\centerline}{}

Here you're defining the \centerline macro so that it produces
nothing.  AS of pandoc 1.9.2, pandoc understands macro definitions,
so it takes

>     \centerline{\includegraphics[width=3in]{../images/

and treats it as {}, i.e. nothing.

What happens if you remove that \newcommand statement?


Gmane