Contents | Start | End | Previous: KB0203: Why do I get formatting problems on Kindle for iOS? | Next: KB0205: How do I fix bookmark not found errors?


KB0204: Why are there bookmark errors referencing the table of contents when compiling an ODT file?

See also:
How do I link back from section headings to the table of contents?
How do I fix bookmark not found errors?

You may see these errors when compiling with an OpenDocument configuration:

ERROR (Jutoh): bookmark tableofcontents was not found. The source document was XYZ, and the target document was Table of Contents.

The problem is that you are linking back to the table of contents, and when compiling an ODT, the table of contents in the project is replaced by a special TOC that's ODT-specific and is dynamically created from headings in your ODT file for maximum ODT-compatibility. This means that if you were to edit your ODT file outside of Jutoh and add headings, they will be reflected in the TOC automatically. But it does mean that the bookmark in the original TOC is no longer available for linking in the Jutoh project.

This can happen when you are linking back from headings to the TOC. First, consider whether it's really that helpful to backlink headings to the TOC - probably most people can find their way to the TOC without needing a link in every chapter. But if you really want them, you can switch off the ODT-specific TOC that Jutoh generates, as follows.

The fix: edit the OpenDocument configuration (hit Edit next to OpenDocument in the bottom-left Jutoh pane) and search for Special table of contents formatting in the search field at the bottom of the configuration list. Clear this, press OK, and compile again. Now the errors will be gone, and the original table of contents will be output to the ODT, rather than an ODT-specific, dynamic one.


Contents | Start | End | Previous: KB0203: Why do I get formatting problems on Kindle for iOS? | Next: KB0205: How do I fix bookmark not found errors?