https://bugs.documentfoundation.org/show_bug.cgi?id=105628

            Bug ID: 105628
           Summary: TOC cannot be made to show chapter number on doc with
                    page numbers by chapter
           Product: LibreOffice
           Version: 5.2.4.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
For a document which is page numbered by chapter ie 1-1,1-2,1-3,2-1,2-2 ... The
TOC cannot be made to show the chapter number.  Anything below a chapter
heading (h1 level) treats the E# element as nothing.

This use to work.  Previous documents do have this and it continues to work
HOWEVER, if you were the delete the E# element in one of the TOC level entries
and reinsert it, it would loose the chapter number for that level TOC.

Attached is an example of an older format document, which works. Taking out an
E# element in the TOC would cause that level to no longer work.  New documents
cannot be made to have a working E# (chapter number) in the TOC entries other
than heading level 1.

Steps to Reproduce:
1.Create a document with several levels of heading
2.In tools->outline->numbering, set level one to use numbers (1,2,3)
3.Set each chapter (heading 1) to begin on a page by inserting a page break. 
Be sure to specify a style (default will do) and reset page number when
generating the page break
4. In the footer, set the page number to be chapter number hyphen page number
5. Create the TOC - it is here you cannot make the proper page numbers appear
because the chapter entity (E#) is blank for all but the heading level 1.
----------------------------------
Using the document attached of which the TOC comes from a document created on
either an early 5.0 or maybe a 4. version, the TOC works until you edit the TOC
to remove chapter entity then put it back.  The entity that is put back is no
good, even though it is the same thing as the entity just removed.

Actual Results:  
TOC as follows

Fish........................1-1
   Salmon....................-4
   Cod.......................-6
Bird........................2-1
   Robin.....................-3
   Turkey....................-6
   Goose.....................-8
Reptile.....................3-1
   Cobra.....................-4
   Dragon....................-9



Expected Results:
Fish........................1-1
   Salmon...................1-4
   Cod......................1-6
Bird........................2-1
   Robin....................2-3
   Turkey...................2-6
   Goose....................2-8
Reptile.....................3-1
   Cobra....................3-4
   Dragon...................3-9


Reproducible: Always

User Profile Reset: No
I did try it on Ubuntu and XP, using LibreOffice 5.2.4.2.  In away, they are
different UserProfiles since, they aren't even the same computer.

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101
Firefox/54.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to