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
epub chapter generated by latex before first markdown section #2161
Comments
The chunking into chapters occurs before we have rendered to HTML, so
the raw latex bit looks like something.
We could detect it in an ad hoc way. But is this really the best
approach for you? I would think that using a custom latex template that
puts this code after the introductory metadata would make more sense.
|
Yeah, that's probably the right way to do it, but I'm trying to avoid using templates so I have less to maintain. At least that's my initial thought in jumping into Pandoc. Instead, I override what I need using a header .sty and only need a custom title in the pdf output to fit a specific requirement. Since the same latex is ignored in the other output formats, I figured it would be in the epub output as well. |
Using my demo project: https://github.com/danomatika/pandoc-test Build epub and printing first chapter:
gives me:
|
I'd rather not do something ad hoc here, so I'm going to recommend the template approach. |
Yeah that makes sense. I actually have exported and modified the default templates which is the better option so far. |
Using: pandoc 1.13.2.1
I'm working with markdown and using some latex after the yaml header and my first section # section. When exporting an epub (epub & epub3), the ignored latex triggers a blank chapter with the same name as the title.
Expected behavior for me, would be to ignore the latex and use the first section as the first chapter. This also ocurrs with html comments, but I see that as expected since epub uses html.
A minimal example, test.md:
epub generated with:
results in these first two pages as viewed in iBooks on OSX:
The text was updated successfully, but these errors were encountered: