Answers.Body: <p>Since the CBZ format is not standardised, there are some pitfalls if you try to achieve this.</p>
  
  <p>The best you can do is render the ToC as an image and add it at the front of list of image files contained in the CBZ.
  Adding an extra file with the ToC information might break existing readers, if that ToC is not an image file.</p>
  
  <p>An alternative is to load the data in the file comment of the CBZ file. This is limited in size (64K IIRC). There is an effort for <a href="https://code.google.com/p/comicbookinfo/" rel="nofollow">metadata in CBZ</a> this way (using JSON) that you could piggy-back on.</p>
  
  <p>Disadvantage of a metadata solution is that there are no tools that currently display that information.</p>
  
  <p>A bigger problem might be to get the information that you want to put into the ToC. Contrary to analysing the text of EPUB files after they are generated, the individual images of a CBZ have little to form the basis of a ToC.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-12-22T18:41:30.757Z
Answers.Text: Thanks,but that's not really what I'm looking for. Both the metadata and the image won't be useful to navigate it from any reader.
Answers.UserDisplayName: Sekhemty
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-12-22T18:56:43.253Z
Answers.Text: @Sekhemty, so what reader are you using? Does is support some kind of ToC already?
Answers.UserDisplayName: Anthon
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-12-22T21:45:03.550Z
Answers.Text: I'm using a Kobo Glo and Okular (KDE document reader), and they support, as any other reader that I'm aware of, TOCs for PDF, EPUB, MOBI, and so on. But given that a comic archive is a different kind of file, I was curious if if it could support this feature too.
Answers.UserDisplayName: Sekhemty
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-12-22T18:37:56.290Z
Answers.LastActivityDate: 2013-12-22T18:37:56.290Z
Answers.UserDisplayName: Anthon
Answers.Body: <p>Yes, but not directly.
  You can name each image file with a specific name-description (ex.&quot;Story-A&quot;, &quot;Story-B&quot; etc).
  You can see this &quot;table of contents&quot;(TOC) in some -but not all- cbz viewers, Pocketbook reader supports it.
  The &quot;TOC&quot; contents are displayed in alphabetical order and for all files with no exception, so you should name them as: Story-A-1, Story-A-2, Story-A-3 , Story-B1, Story-B2 etc.
  Another option is to convert the cbz file to PDF or epub and then add a real TOC to it.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-14T12:21:14.163Z
Answers.LastActivityDate: 2023-04-14T12:21:14.163Z
Answers.UserDisplayName: A.CH.
Body: <p>Like the title says, is it possible to add something like a Table of Contents to a <code>.cbz</code> file, maybe as an additional text file used to better navigate the content? And if it is, how should it be structured?</p>
  
Tags: <table-of-contents><cbz>
Title: Is it possible to add a Table of Contents to a CBZ file?
UserDisplayName: Sekhemty
ThreadText: # Is it possible to add a Table of Contents to a CBZ file?
  
  (Asked by: username_0 on 2013-12-22)
  
  Like the title says, is it possible to add something like a Table of Contents to a `.cbz` file, maybe as an additional text file used to better navigate the content? And if it is, how should it be structured?
  
  **Tags:** table-of-contents, cbz
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2013-12-22. Score: 2
  
  Since the CBZ format is not standardised, there are some pitfalls if you try to achieve this.
  
  The best you can do is render the ToC as an image and add it at the front of list of image files contained in the CBZ.
  Adding an extra file with the ToC information might break existing readers, if that ToC is not an image file.
  
  An alternative is to load the data in the file comment of the CBZ file. This is limited in size (64K IIRC). There is an effort for [metadata in CBZ](https://code.google.com/p/comicbookinfo/) this way (using JSON) that you could piggy-back on.
  
  Disadvantage of a metadata solution is that there are no tools that currently display that information.
  
  A bigger problem might be to get the information that you want to put into the ToC. Contrary to analysing the text of EPUB files after they are generated, the individual images of a CBZ have little to form the basis of a ToC.
  
  > **Comments:**
  > **username_0**: Thanks,but that's not really what I'm looking for. Both the metadata and the image won't be useful to navigate it from any reader.  
  > **username_1**: @username_0, so what reader are you using? Does is support some kind of ToC already?  
  > **username_0**: I'm using a Kobo Glo and Okular (KDE document reader), and they support, as any other reader that I'm aware of, TOCs for PDF, EPUB, MOBI, and so on. But given that a comic archive is a different kind of file, I was curious if if it could support this feature too.  
  
  ---
  
  ### Answer by username_2 on 2023-04-14. Score: 0
  
  Yes, but not directly.
  You can name each image file with a specific name-description (ex."Story-A", "Story-B" etc).
  You can see this "table of contents"(TOC) in some -but not all- cbz viewers, Pocketbook reader supports it.
  The "TOC" contents are displayed in alphabetical order and for all files with no exception, so you should name them as: Story-A-1, Story-A-2, Story-A-3 , Story-B1, Story-B2 etc.
  Another option is to convert the cbz file to PDF or epub and then add a real TOC to it.
  
  
  ---
  
  