Ask Your Question

What are Paragraph Styles > Text Body > List > * styles for if not applied automatically?

asked 2018-11-08 22:45:46 +0200

ZorkNation gravatar image

What are these great-looking paragraph styles for, under Text Body > List > * ?

Can they be applied automatically?

I have already looked at list and numbering styles. I know how those work, and have read other topics.

I want to be able to create a hierarchical list, have these applied automatically, then, for example, change "List 1" to have "keep with next paragraph," and also "List 2" but not "List 2 End". That way a hierarchical list would always page-break correctly, with a List 1 heading at the top of a page. Similarly for Numbering.

I.e. I want to get this:

1. Header 1
   1.1.  Foo
   1.2.  Bar
2. Header 2
   2.1.  Foo
   2.2.  Bar
=== pagination, if we're near the end of the page ===
3. Header 2
   3.1.  Foo
   3.2.  Bar

... etc.

This seems really difficult to do manually. Then what if I want to edit? All of a sudden I have to manually change the paragraph styles on a bunch of individual list items to get the Start/End paragraph and pagination behavior.

Has someone written a macro to apply these to a list? That would be cool.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2018-11-09 15:17:25 +0200

ajlittoz gravatar image

First remember that styles are a matter of personal taste: what you consider nice might be ugly for somebody else. AS a consequence there is no automatic application. To some extent, only styles Heading n are suggested and recommended because there are already linked to TOC construction. The only case of automatic application I know is in parts generated by Writer, i.e. the various indexes (TOC, indexes and bibiography) where the internal engine uses styles Contents n, Index n, User Index n, Bibliography 1, Illustration Index 1, Object Index 1, Table Index 1. Also the notes are also automatically styled.

For real user contents, use of style is highly encouraged but not standardised. The names in the style list tries to hint at usage, e.g. Text Body is for bulk text while Addressee suggests this can be the recipient of the letter or the "salutation" at the beginning and Complimentary Close for that formal sentence at the end.

Unfortunately, there is no "official" document describing the intent meaning diverging interpretation may be given to "built-in" styles (see for example the answer to this question).

Now back to your question. You show above the hierarchy for styles aimed at formatting lists (I don't write list styles because list styles in Writer are only involved in numbering/bulleted formatting). All List n and Numbering n styles derive from List so that modifying List changes simultaneously all non-overridden attributes. All the same, since lists are part of "main text", style List derives from Body Text so that a change in the latter, e.g. change of typeface, also applies to lists.

Well the picture is great, but for a glitch.

Out of the box, List n/Numbering n do not result in list formatting as you show in your example because they are mere paragraph styles. To get the required behaviour, you must associate the List n paragraph style with a list style (once again, I remind you this an ill-named style category which is better described with "numbering style"). The link is in Outline & Numbering tab of style dialog where you choos a Numbering style. List styles and paragraph styles live in different name spaces and there is no restriction on the association: linking List 1 with List 1 may seem natural but you can also link (paragraph) List 1 with (list) Numbering 1 to get a numbered list instead of a bulleted list.

Hierarchical lists are formatted with a single paragraph style. To change level of a list item, put the cursor at the beginning of the paragraph (after the number/bullet/ and type Tab to increase level ou Shift+Tab to decrease level.

As you noticed, the list paragraph styles come in four flavours: List 1, List 1 Start, List 1 End and List 1 Cont. You have to decide how you'll use them. My choice is List 1 start for the first item of anew list and similarly List 1 End for the last ... (more)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-11-08 22:45:46 +0200

Seen: 141 times

Last updated: Nov 09 '18