-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Undefined control sequence \chapter on ePub -> LaTeX PDF #4076
Comments
I can reproduce this with current master:
And two minimal examples. Put the following two HTML snippets in an epub file (e.g. generate one with pandoc, then open with vim and edit contained html file).
|
Support for chapters was added in 266e197 |
I don't think any reader should generate level-0 headers. |
I suppose one approach would be to have the HTML/epub reader set some flag in the internal PandocMonad state. This can then be checked (probably in App) and the With this change, we'd change the HTML reader so that instead of changing header levels when it sees the "chapter" annotation on section, it sets this special flag in the internal PandocMonad state. |
@adius as a workaround, you could try adding |
even for chapter sections in epubs. This causes problems because writers aren't set up to expect these. This fixes the most immediate problem in #4076. It would be good to think more about how to propagate the information that top-level headers are chapters from the reader to the writer.
I'm trying to convert the 2. edition of ProGit (https://git-scm.com/book/en/v2) to PDF, but it fails.
The text was updated successfully, but these errors were encountered: