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

--- Comment #18 from [email protected] ---
Some points of clarification:  

1. The attachment 156451 corresponds to the description in the OP. That is, a
Chapter (document) field type is inserted. (It is not a cross-reference as
discussed in comment 2, comment 6, and comment 7).

2. There is no "level" setting for a cross-reference, and cross-references
would not work in this context, because they would continue to refer to the
same heading.

3. In part, the OP seems to reflect a misunderstanding of the function of the
"level" attribute for the Chapter field type - by assuming (reasonably, but
incorrectly) that the "level" specifies the outline level of the "Chapter name"
to be displayed. (this is a documentation problem, which is being addressed,
e.g., bug 153560 comment 9).

4. The test case in attachment 156451 is focused on the first page. There may
be a bug in the actual behavior of "Chapter" field types when inserted in the
Header on the first page of a document (see bug 93904, comment 6), which could
obscure understanding/diagnosis of the problem, but even if that bug was
addressed, it would not address the main issue in the OP.

5. The main (and genuine) problem of the OP is raised in comment 5

     When a new level 2 chapname appears in middle of page, 
     it only start to show on the FOLLOWING page.

but there is a critical ambiguity here. What if two new headings with outline
level 2 appear on the same page, which one should be shown in the header?
(this point is raised in comment 10)

6.  comment 12 has some great examples (plausible use cases), which I believe
are impossible to achieve with the Chapter field type for the following two
reasons.

Two main showstoppers: 

a. It is not possible to specify very precisely (except for outline level 1)
what outline level to use for the field.

b. The Header does not "read forward" to pick up the header on the page where
it appears.  (This is also the complaint of the OP).

[side note:  The field in the Header does "read forward" if a new page starts
with a heading, whose outline level is within the "level" range specified for
the field.]

Maybe those two problems (a) and (b) should be separated into two different
tickets, if they do not exist already.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to