Issue 17882

Summary: Table captions not numbered properly when inserted in Master Document
Product: Writer Reporter: dnigbur <d.nigbur>
Component: formattingAssignee: writerneedsconfirm <swneedsconfirm>
Status: CLOSED WONT_FIX QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P3 CC: esigra, issues, jbf.faure
Version: OOo 1.1 RC   
Target Milestone: ---   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description dnigbur 2003-08-05 10:46:32 UTC
(found in OOo 1.1rc1 on both Win98 and SuSE Linux 8.2)

Created a master document and inserted six chapters (individual Writer
documents). In the original documents, I had tables and figures captioned and
the captions numbered with the number of the chapter and the number of the table
or figure within the chapter. Examples:

Table 1.2: Reaction time blah blah blah

Figure 3.1: Change in reaction blah blah.

Both tables and figures were captioned within Writer by right-clicking on the
table or figure and selecting "Caption...". This creates captions with the style
"Table" for tables and the style "Figure" for figures.

Now, when inserting these documents into the master doc, there is no problem
with the numbering of figures - 3.1 remains 3.1.

But with the tables, I now find that they are consecutively numbered, ignoring
the partitioning into chapters! Table 1.2 has become Table 2, Table 2.1 has
become Table 4, and so on.

Either this is a bug, in which case it should be fixed. It seems to make no
sense that figure/illustration captions are numbered properly, but tables are not.

Or this could be user error - but I've double-checked this, and people on the
OOo-users mailing list suggested it may be a bug.

Or, if this is intended behaviour, it would be good to have an option (new
functionality?) to amend the numbering of captions manually, maybe as a property
of the caption style or the table/figure.

Thanks!
Comment 1 rblackeagle 2003-08-05 21:56:48 UTC
I agree.  Both methods should work the same, whether for tables or
figures.
Comment 2 jack.warchold 2003-11-13 17:39:22 UTC
please install the latest release of OOo and come back if the error 
still occurs on your system.

this issue will be closed if i do not read any further comments until 
11-28-03

reassigend to jw
Comment 3 jack.warchold 2003-11-17 14:37:02 UTC
added keyword needmoreinfo
Comment 4 dnigbur 2003-11-20 15:32:59 UTC
Tried this again with the release version of OOo 1.1. 
 
Good news: tables and figures are now both numbered in the same 
way. 
 
Bad news: both are numbered consecutively from 1, whereas the 
original files had them numbered as 1.1, 1.2, and so on. 
 
This should not change when inserting text files into a master 
document. 
Comment 5 jack.warchold 2003-11-24 14:40:00 UTC
can you please attach a document showiung this behaviour?
Comment 6 jack.warchold 2003-12-23 09:56:57 UTC
this issue will be closed if i do not read any further comments from the issue 
reporter until 5 jan 2004
Comment 7 jack.warchold 2004-01-08 14:27:48 UTC
hello Dennis, so i played arround with the documents you mailed me and found out 
some things about your issue.

when i inserted your documents in a masterdocuments, all page and paragraph 
styles will be overwritten bei the ones frome the masterdocument, this is a 
known issue and it may be changed in a later OOo release, this is seen as a 
feature so far. So if you like to see your documents like the are as single 
documents you have to reassign the outlinenumbering and load the styles from 
your documents.
step by step advice:
- load the document into the master document.
- unprotect the text via format -> sections -> write protection uncheck the  
"protected" checkbox.
- load the old styles via format -> styles -> load... -> from file (check the 
necessary checkboxes in this dialog) choose the file you like to take the styles 
out of.
- reassign the outlinenumbering for the master document.

i had do reassign the table numbering as well, i dont know why, it works fine 
for the figures.

after that your documents are looking as they look as single documents.

i will set this issuetype to enhancement and reassign this to bh as owner of 
enhancement issues.
just to show the necessarty of a wizzard for masterdocument creation.
Comment 8 hagar_de_lest 2008-05-05 14:16:32 UTC
This bug is still in the 2.4 version!
See here: http://user.services.openoffice.org/en/forum/viewtopic.php?f=7&t=5145

Workaround:
Insert a table and caption it the way you want (in an area of the master
document that you can edit).
Other captions from sub-document sections should be updated.
Delete the new table and its caption (you can use the undo button).

At next load, if the fields are not correct, hit F9 to update them. Same for
figures.
Comment 9 jbf.faure 2009-09-01 09:07:13 UTC
Confirmed in OOo 3.1.1.
From my point of view it is not an enhancement, it is a defect.

Step to reproduce :
-create some document with tables and pictures (figures) numbered by chapter
- insert this document in a master document  => numbering by chapter for tables
is lost, it is not for figures.
- workaround : create a table numbered by chapter in texte area of master
document => all tables become correctly numbered by chapter.
Comment 10 michael.ruess 2009-09-01 15:25:22 UTC
Well, I had a look at this... the issue is invalid or wontfix either. I wonder
why some people get chapter numbers for graphic captions but not for table
captions. It could not work at all (like in my tests). The setting whether you
have chapter numbers in captions or not is stored at a document - you have to
newly do this setting at the master document by inserting once such a field and
setting the "chapter". It behaves like the Outline numbering - the setting
refers to the whole document not only to certain fields or paragraphs.
Comment 11 michael.ruess 2009-09-01 15:27:47 UTC
Closed. Problem cannot be solved. Imagine following scenario: One inserts two
documents into Master doc, one has fields with chapter active, the other has
not. Where should OOo know, which setting the user prefers in his own special case?
Comment 12 jbf.faure 2009-09-01 19:10:07 UTC
Okay, I understand your argument. But what is surprising is the different
behavior between pictures and tables : numbering by chapter is kept for pictures
but not for tables. That is this heterogeneity which give to think that is a bug.

Kind regards
JBF
Comment 13 michael.ruess 2009-09-01 20:46:38 UTC
If there is a testcase showing the behavior - feel free to file a new issue for
this inconsistency. Please attach at least the child document to that issue.
I was not able to see that behavior with my test document having captioned
graphics and tables.
Thanks you very much!