-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown to Latex (PDF) #2395
Comments
You can use the --chapters command-line option to make Pandoc will look at the template and do this automatically +++ Franz J Fortuny L de M [Sep 13 15 21:18 ]:
|
Well, the documentclass is set to book in the yaml section of.the markdown Ok I will try the --chapters option. Was this modified recently? I installed it from Ubuntu and it is the El 14/09/2015 00:41, "John MacFarlane" [email protected] escribió:
|
Yes, the current code checks the template directly; Ubuntu tends to have old versions of pandoc in the +++ Franz J Fortuny L de M [Sep 14 15 07:43 ]:
|
I did make the changes and it works OK. Do you check for the language of the book being printed, so that things On Mon, Sep 14, 2015 at 11:05 AM, John MacFarlane [email protected]
|
There's a template variable for this, which must be set in +++ Franz J Fortuny L de M [Sep 14 15 09:19 ]:
|
TODO: check the |
When doing Markdown to LaTeX (for PDF) transformation, we see that if what is requested is the documentclass book, then the numeric index is formed starting with Chapter 0 and ending with Chapter 0, as if ALL sections were from chapter zero.
This is because you are tranforming the new ONE-POUNT (#, or h1) as section instead of chapter when the documentclass is book.
If documentclass is article, then, fine: h1 h2 etc become sections; but LaTeX demands that h1 becomes Chapter title when a book is generated from a quite a long markdown text, with h1 (#) symbols considered Chapter's titles.
Please, review this; it works perfectly ok when generating an ePub book, but it fails because the Pandoc transformation mechanism or machine is not considering the type of documentclass (book) that is being generated in the LaTeX for PDF machine.
The text was updated successfully, but these errors were encountered: