Awkee / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

Pandoc 1.8.1.1 fails do deal with LaTeX documents using \include when generating EPUB files #293

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a LaTeX document with one or more \include-d "sub-documents"
2. Run "pandoc -o /tmp/blah.epub input-doc.tex"
3. Look at the resulting EPUB file

What is the expected output? What do you see instead?
I was expecting to see the text of the included documents (one chapter per 
document), instead, I see a single page, listing the names of the individual 
files in { } pairs (like: {chapter1} {chapter2} {chapter3} ...)

What version of the product are you using? On what operating system?

Version 1.8.1.1, linux. Built via "cabal install pandoc" on March 17th, 2011.

Please provide any additional information below.

Original issue reported on code.google.com by imaginea...@gmail.com on 18 Mar 2011 at 10:12

GoogleCodeExporter commented 9 years ago
This isn't an issue that's specific to epub.  Pandoc's latex parser is only 
partial (as the documentation says), and one of the constructs that is not 
handled is \include.

Perhaps \include will be supported in a later version, but it would require 
architectural changes, because the latex parser is "pure" -- it doesn't do IO.  
In the mean time, you can workaround by preprocessing your latex file with a 
short script that replaces \include statements with the contents of the files.

Original comment by fiddloso...@gmail.com on 18 Mar 2011 at 5:29

GoogleCodeExporter commented 9 years ago
It would be less surprising if pandoc would bail out with an error, instead of 
completing successfully. The latter looks like indicating to the user that it 
has done a conversion, where in fact it hasn't done anything even close to that.

Original comment by imaginea...@gmail.com on 21 Mar 2011 at 9:19

GoogleCodeExporter commented 9 years ago
It would be excellent if there were a simple options to turn off the symbol 
escaping.  Particularly in latex, and allow any \latex code remain proper 
\latex.  Leaving any escaping that must be done to the author.

Original comment by amr...@gmail.com on 18 Dec 2012 at 11:24