Bug 137663 - TOC is wrong when using "Tools | Chapter Numbering"
Summary: TOC is wrong when using "Tools | Chapter Numbering"
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.2.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: TableofContents-Indexes
  Show dependency treegraph
 
Reported: 2020-10-21 17:03 UTC by David W. Snow
Modified: 2022-04-11 09:25 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Image of TOC (196.99 KB, image/png)
2020-10-21 17:03 UTC, David W. Snow
Details
ODT file for example (450.76 KB, application/vnd.oasis.opendocument.text)
2020-10-21 17:04 UTC, David W. Snow
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David W. Snow 2020-10-21 17:03:22 UTC
Created attachment 166596 [details]
Image of TOC

LibreOffice Writer has a great feature in “Tools | Chapter Numbering” that will automatically number headings and subheadings. It can do 1,2,3,4, A,B,C,D or one, two, three, four, and much more. This allows the author to use the Navigator pane to reorder headings and subheadings without having to renumber them. 

However, I wanted to use this for a novel where the chapters were “Chapter One” “Chapter Two” etc. There was no text for the [Heading 1] just a blank line. The actual text looked great, but the TOC was a disaster. It was missing the lines for the blank heading 1 entries. I can see where the authors of novels would really like this to work. A lot of time is spent when writing to get the chapters and scenes in the correct order. Renumbering by hand each time adds to the work and frustration.

Attached is an image of the TOC for a “simple” novel as well as the actual odt file.

Chapters 1 & 5 have titles while 2-4 have blank titles. In the Navigator, they look correct. But in the TOX Chapters 2-4 have no entries. This makes LibreOffice Writer’s “ChapterNumbering” almost useless when writing the most common style for novels today.
Comment 1 David W. Snow 2020-10-21 17:04:17 UTC
Created attachment 166597 [details]
ODT file for example
Comment 2 Dieter 2020-10-21 20:37:45 UTC
I confirm it with

Version: 7.0.2.2 (x64)
Build ID: 8349ace3c3162073abd90d81fd06dcfb6b36b994
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded

Workaround: It works even if you add a blank space as "title"
Comment 3 Roman Kuznetsov 2020-12-03 20:02:25 UTC
You didn't get chapters 2-4 in TOC because you have no any symbols in these headings!
As workaround you can enter one space after chapter numbering in these empty headings and then you'll update TOC and it will look fine.
Comment 4 BogdanB 2021-02-01 10:10:19 UTC
Ecactly, you have a book without chapter names.... Insert a naem after chapter name and eveything will pe perfect
Comment 5 Timur 2022-04-11 09:25:56 UTC
wrongly confirmed but rightly explained. I close as Notabug.