khajavi / pandoc

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

writeLatex still working? #219

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I have installed the new Pandoc 1.4 with cabal

2. In my code, I use the (usual) statement to call writeLaTeX:
   writeFile outputFile
             (writeLaTeX ourDefaultWriterOptions{writerTemplate=header}
                         thePandoc)

What is the expected output? What do you see instead?
I had expected the code to produce a header, followed by the LaTeX code for 
thePandoc. Instead, I got just the header only.
My suspicion was directed to the function "writeLaTeX" after printing 
"thePandoc" with prettyPandoc. This went smoothly, proving that the 
variable "thePandoc" is all right.

What version of the product are you using? On what operating system?
pandoc 1.4 on Windows XP

Please provide any additional information below.

Original issue reported on code.google.com by stef.joo...@ou.nl on 23 Feb 2010 at 5:39

GoogleCodeExporter commented 9 years ago
Pandoc 1.4 uses templates instead of headers.  Templates are described in
http://johnmacfarlane.net/pandoc/README.html#templates
If you're trying to use your old header as a template, it won't work.

You should look at the standard LaTeX template (which you can get by doing 
'pandoc -
D latex' and modify it for your needs.

Original comment by fiddloso...@gmail.com on 23 Feb 2010 at 5:51

GoogleCodeExporter commented 9 years ago
I'm closing this bug report, but let me know if you still have trouble.

Original comment by fiddloso...@gmail.com on 24 Feb 2010 at 12:44

GoogleCodeExporter commented 9 years ago
Thanks a lot. The remark to do pandoc -D latex was just what I needed. Problem 
solved!

Original comment by stef.joo...@ou.nl on 24 Feb 2010 at 11:47