hidden toctree entries makes chapters in epub unaccessible

Anonymous avatarAnonymous created an issue

I am making a ebook where I don't want to have links show up in the text so I use the :hidden: tag for toc-tree.

By doing this the chapters are not accessible through the simple forward navigation for eg. in Kindle reader.

You can see it also in Calibre.

I think a reasonable behaviour would be that navigation works as if used without the hidden-tag and that only the links to the included chapters does not show up in the text itself.

Comments (3)

  1. Jan Ulrich Hasecke

    A workaround for those who need hidden toctrees.

    1. Open your ebook in calibre.

    2. Right-click on the title entry in the main window and choose "optimize book"

    3. Select "Explode ePub". It's the upper left button.

    3. The File Manager opens and you see the contents of a temporary folder. Its name ends with "exploded". This is the contents of your ebook.

    4. You can now open the HTML-Files in this folder and simply delete the toctree links which you don't want to have in your ebook.

    5. When you are finished. Push the lower right button: "Create new ePub".

    6. Calibre creates a new ebook, which does not contain the links.

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.