Skip to content

Markdown to Latex (PDF) #2395

Closed
frafor opened this Issue · 6 comments

2 participants

@frafor

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.

@jgm
Owner
@frafor
@jgm
Owner
@frafor
@jgm
Owner
@jgm
Owner

TODO: check the documentclass metadata variable in addition to the template, when looking for book classes.

@jgm jgm closed this in da1b599
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.