-
Notifications
You must be signed in to change notification settings - Fork 32
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
Table of contents for book with faulty layout with epub3 #85
Comments
Hi Fredefic, thanks for the report. You are right, appendix sections are broken in Epub 3. I've hopefully fixed that in the development version (2284bb1). Best regards, |
Hi Michal Thanks for the fix. Indeed, the structure is now correct on my real-life example. However, I have found another problem I have not noticed earlier relative to all sections (apparently) in the table of contents for epub3 (but not for epub): textsuperscript characters appears as normal characters. For instance, when the source is: This problem is far less impacting than the previous one, obviously. Once again, than you for the fix. Frédéric |
Hi Frédéric, the superscript issue is strange, I cannot reproduce it when I just add a chapter with superscript to your previous example. It produces correct output for both Epub and Epub 3. Can you make a MWE that shows it? Best, |
Hi Michal This is strange. Here is a MWE: If you cannot reproduce the problem with that example, may it be due to different versions of tex4ht? Best, |
Hi Frédéric, I see it now. Best, |
Hi Michal The epub3 looks fine now. I add noticed another problem but not yet found a MWE for it, but it looks like your fix also fixed that other indentation problem. Thanks a lot. Best, |
Hi Frédéric, that's good to hear! I hope to release a new tex4ebook version to CTAN soon, if you don't find other issues :) Best, |
Hi
First of all thanks for the work. I am working on a booklet and was impressed by the output of my first attempt at using tex4ebook. I noticed a couple of problems, here is one. In a book with chapters, and chapters in the appendix, the part of the table of contents related to the appendix has a faulty layout.
Toy example:
\documentclass{book}
\usepackage{tex4ebook}
\begin{document}
\tableofcontents
\chapter{First chapter}
Here is some text.
\chapter{Second chapter}
Here is some text.
\appendix
\chapter{First chapter in appendix}
Here is some text.
\chapter{Second chapter in appendix}
Here is some text.
\end{document}
When calling tex4ebook -f epub3 on the above example, the table of contents is:
A First chapter in appendix
B Second chapter in appendix
Hence, the part of the table of contents related to the appendix appears to be nested inside the entry for the last chapter before the appendix (notice the location of ). Also, the chapters in the appendix do not appear to be processed the same way than the ones in the main part. The problem does not seem to appear with the epub target.
I have not tried to locate the origin of the problem.
Best.
The text was updated successfully, but these errors were encountered: