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
Curly brackets always used from \chapter even if square brackets present #51
Comments
This seems to be caused by Memoir, it works with the Book class. Anyway, it can be fixed using the following configuration:
It is possible to redefine all macros that may cause issues in the TOC in the |
Can this be fixed in tex4ebook to avoid surprising other authors down the line? |
Sure, I've reported this issue on tex4ht issue tracker. I was not able to identify the source of the bug yet. |
This brings up a bug, possibly in tex4ebook. "\tableofcontents*" works like expected, but a trailing star is emitted into the resulting epub.
The fix for this issue has been just pushed to TL. |
The \chapter takes two parameters: in curly brackets (more common) and square brackets (less common). If just curly brackets are used, that text is used for both the TOC and chapter header. If curly and square are used, then the text in square brackets are used by LaTeX for the TOC and the text in curly brackets are used for the chapter header. Tex4ebook appears to ignore the square brackets and use whatever's in the curly brackets for both TOC and chapter headers. This is a problem for my current project because I have newlines in the chapter names where they appear at chapter headers, but this is ugly in the TOC.
In the context of this bug report, if only square brackets are used, it is legal for demons to fly out of the author's nose.
The text was updated successfully, but these errors were encountered: