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

            Bug ID: 96733
           Summary: Outline numbering off when skipping outline levels
                    (when compared with LaTeX)
           Product: LibreOffice
           Version: 4.4.7.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 121560
  --> https://bugs.documentfoundation.org/attachment.cgi?id=121560&action=edit
An LO file demonstrating my outlines

I've noticed that LO and LaTeX get different results when outline levels are
mixed. I often use outline numbering in ways that mix and match levels without
necessarily going in hierarchical order. Let's say I have three heading styles
(Heading 1, Heading 2, and Heading 3). If I put them in order, in LO I get
(properly):

1. Heading 1
1.1 Heading 2
1.1.1 Heading 3

This corresponds to LaTeX's Section, Subsection, and Subsubsection
environments, which appear as follows (again properly):

1. Section
1.1 Subsection
1.1.1 Subsubsection

But, if I switch the second and third headings, LO and LaTeX provide different
results. In LO, I get

1. Heading 1
1.1.1 Heading 3
1.2 Heading 2

but, with LaTeX, I get,

1. Section
1.0.1 Subsubsection
1.1 Subsection

I think LaTeX's treatment is mathematically more correct. Until I actually use
the second heading, it's value should remain "0", which is reflected in LaTeX's
second example. But, LO gives it a value of "1" even though I've not yet used
it. Thus, in LO, my first use of the second Heading is given a value of "2" as
in "1.2" whereas in LaTeX, my first use of the second heading is given a value
of 1 as in "1.1".

This is important as I often mix heading levels with regular text levels in my
outlines. In my outline, levels 1 to 5 are heading styles while levels 6
through 10 are regular text, so I can try to create an outline like the
following:

1. Heading 1 (Outline Level 1)

A. Outline-1 (Outline Level 6)

B. Outline-1 (Outline Level 6)

   i. Outline-2 (Outline Level 7)

   ii. Outline-2 (Outline Level 7)

1.1 Heading 2 (Outline Level 2)

But, when I do this, LO makes the Heading 2 1.2 instead of 1.1.

I think this is a bug, but if not, then I am asking that this behavior be
changed to match that of LaTeX as a feature request.

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

Reply via email to