Contents | Start | End | Previous: KB0357: Why does Jutoh warn me about point text size in my fixed layout project? | Next: KB0359: Why does Jutoh warn me that 'TOC Entry' styles are used outside of the table of contents?


KB0358: Why does Jutoh complain about duplicate NavMap targets?

When you compile a project, you may see this warning:

WARNING (Jutoh): navigation map item 'Chapter 1' points to the same target as 'Chapter 2'.

If you edit the Project Properties, click Indexes, and look at the two items in question, you will see that the document identifier and bookmark (if any) are the same.

This isn't allowed in an Epub or Kindle navigation map (NCX file) and will cause an EpubCheck error. Jutoh shouldn't generate a navigation map like this normally, but it may have been imported from an existing Epub file, or manually edited.

If there are just a few entries at fault, you can manually edit them by removing one of them or changing a target to a different document and/or bookmark. Or you can clear all the index entries to let Jutoh create them from document titles when compiling. If there are many errors, or you don't know how to fix them manually, you can get Jutoh to recreate the index by doing this:

  1. Click Build Table of Contents on the Format | Book menu.

  2. Check Create contents with Jutoh's help and Recreate contents by scanning documents. If you want to keep your existing contents page, clear Create a contents page; otherwise, check it. Click Next.

  3. Check Use document depth, not heading level if any of your project documents have sub-documents and you want to use the document hierarchy and titles instead of headings found in the book. Click Next, Next, and Finish.

  4. You now have a set of index entries from which Jutoh can generate a navigation map - after compiling, these errors should have gone away.


Contents | Start | End | Previous: KB0357: Why does Jutoh warn me about point text size in my fixed layout project? | Next: KB0359: Why does Jutoh warn me that 'TOC Entry' styles are used outside of the table of contents?