Issue 90848 - New 'Keep with same paragraphs' option
Summary: New 'Keep with same paragraphs' option
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 2.4.0
Hardware: Unknown All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-18 14:19 UTC by mathieu_bonnet
Modified: 2013-08-07 14:38 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mathieu_bonnet 2008-06-18 14:19:25 UTC
Hi,

I have two levels of chapters, in a long document.

I generate an index, which spans multiple pages.

I'd like each chapter, and its subchapters, to be kept on the same page (so that
the subchapters are strongly associated, with their parent chapter title -this
is for a particular technical book, for which the index is especially important,
and I want maximum readability).


For the «Contents 1» paragraph style, I simply use the «Keep with next
paragraph» option. However, for «Contents 2», I cannot do this, as the last
subchapter would be kept with the next «Contents 1», meaning the whole index
would be linked together, and OOo would split it as if the option was not set.


A new option should be created, in the paragraph styles, «Text Flow» tab,
«Options» section, which would be named «Keep with same paragraphs» (or «Keep
with sibling paragraphs», if you want to keep the family metaphor, used for the
orphan/widow control -although CSS and XSL use «sibling», as «same level», and
not as «same level *AND* same kind of element»).

If activated, it would keep together, same paragraphs. In my case, the «Contents
2» paragraphs, meaning, all the subchapters of a specific chapter. Then, they
will be followed by the next chapter, as a «Contents 1» paragraph, before which,
OOo could insert an automatic page break.


For example:

A  -> Contents 1 -> Keep with next paragraph
A1 -> Contents 2 -> Keep with same paragraphs
A2 -> Contents 2 -> Keep with same paragraphs
A3 -> Contents 2 -> Keep with same paragraphs
(possible page break, as B is not the same kind of paragraph as A3)
B  -> Contents 1 -> Keep with next paragraph
B1 -> Contents 2 -> Keep with same paragraphs
B2 -> Contents 2 -> Keep with same paragraphs
B3 -> Contents 2 -> Keep with same paragraphs



For the index, the current workaround is to edit the index manually, to add
paragraph breaks manually, but this might, in some cases, add a new page, which
will shift the page numbers (so you have to add temporary placeholder pages,
just after the index, and remove them, after you edited the index, to keep the
same page numbers...).



Thanks to everyone who will work on this.
Comment 1 eric.savary 2008-06-18 15:28:37 UTC
Reassigned to Requirements