Bug 129502 - is there a difference between insert cross-reference "number" and insert cross-reference "number (no context)"?
Summary: is there a difference between insert cross-reference "number" and insert cros...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-19 17:00 UTC by sdc.blanco
Modified: 2019-12-20 10:45 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
document to illustrate cross references with number (12.38 KB, application/vnd.oasis.opendocument.text)
2019-12-19 17:00 UTC, sdc.blanco
Details
Differece between options (13.21 KB, application/vnd.oasis.opendocument.text)
2019-12-20 07:34 UTC, Dieter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sdc.blanco 2019-12-19 17:00:52 UTC
Created attachment 156679 [details]
document to illustrate cross references with number

According to https://help.libreoffice.org/6.4/en-US/text/swriter/01/04090002.html
there are three different formats for inserting references to:  number, number (no context), number (full context).

Question:  Is there a difference in behavior between number and number (no context)?

The attached document attempts to test this question by using three levels of heading, and then uses cross references to these headings, using all three of these formats [number, number (no context), number (full context)]. 

I cannot see that number and number (no context) give a different result.  Are there conditions where they should give differences?  

Additional information.

1. LibreOffice Writer Guide 6.0 (p. 380) only describes number (no context) and number (full context).  It does not mention number alone. 

2.  The online/offline help for "number"  (alone) gives an unclear discussion, referring to context.  But if "number" should not be present at all, then maybe this discussion needs to be removed, rather than clarified.

3. In short, it is unclear what is intended, what might be bug, and what might be documentation problem.

tested with 6.3.3.2 and 

Version: 6.4.0.0.beta1 (x64)
Build ID: 4d7e5b0c40ed843384704eca3ce21981d4e98920
CPU threads: 8; OS: Windows 10.0 Build 18363; UI render: GL; VCL: win; 
Locale: en-US (en_DK); UI-Language: en-US
Calc: CL
Comment 1 Dieter 2019-12-20 07:34:29 UTC
Created attachment 156684 [details]
Differece between options

Yes there's a difference (see attachment)

So for me NOTABUG. Docmentation is correct (perhaps not very clear). Please feel free to reopen it with a short reasoning, if you don't agree.
Comment 2 sdc.blanco 2019-12-20 10:45:09 UTC
(In reply to Dieter Praas from comment #1)

> Yes there's a difference (see attachment)

Thanks for that.  I expected there was a difference, but could not find a way to produce it.
 
> So for me NOTABUG. 

I agree. 

> Docmentation is correct (perhaps not very clear). 

Ok.  Then I would suggest reclassifying this a request for documentation improvement.   Maybe it is correct, but I read it several times before trying my tests (without being able to succeed), and even now, when I read the help page, I still can not get it to make sense.

I think I understand now that:  Chapter + number = number(full context)

But Chapter is (in effect) simply the top level of the heading. (This seems to confuse one functional use (i.e., Chapter).   I could, for example, change the top level Style to Title (which does not change the value for "number", which is good).  

I think there is an interaction with Tools > Chapter numbering that might also be relevant to mention.  And maybe also whether Numbering is applied to the Headings or not.  (I tried more experiments, without being figure out the interactions or how to control the effects -- so I will stop here.)