Ask Your Question
1

Is it possible to highlight only some numbers in a numbered list?

asked 2018-04-19 15:00:29 +0200

ttoms gravatar image

I know how to do this to a whole level, but is it possible to highlight only some numbers (and not the whole entry either) in a numbered list using Writer (without creating really obscure things like faking another list in between of a larger list or restarting the whole list that would later create only headaches to others)? Sort of custom character style just for a single entry?

Instead of long explanations, here's a simple example of what I mean:

image description

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2018-04-19 16:38:13 +0200

Jim K gravatar image

updated 2018-04-19 17:06:38 +0200

The easiest approximation is to highlight the paragraph text instead.

highlight Kiwis and Cherries

This works because the paragraph text is stored in the document. In contrast, the numbering is calculated rather than stored, so it cannot be formatted directly, but rather it is an addition to the paragraph style. This is apparent when the file is unzipped and content.xml is viewed.

Another way is to use fields instead of automated numbering lists. Create a numbered list variable called "List1Level1" and another called "List1Level2". Then use formulas 1 or List1Level1 or List1Level2+1 where appropriate. This is somewhat maintainable but requires a good understanding of variables. Here is a file that demonstrates this approach: Sample ODT - fields

Instead of fields, it would also be possible to maintain the numbers manually. For example, if an entry "1.4 Bananas" is added, then manually update the number for "Pears" to 1.5 et cetera. This may be preferred for people who do not understand variables well. However it may be prohibitively difficult to maintain for large lists.

It looks like the only other way is to create a new list for .3 and a new list for .5. Then force numbering to restart at .3 and .5 respectively. Specific styles are needed for .4 and .6+ as well, to get the numbering back to where it should be. This is what your question states to avoid, and with good reason. Here is a sample for this approach (not recommended): Sample ODT - multiple lists

edit flag offensive delete link more

Comments

Thanks, that's a really good and thought-provoking answer! So I take that it's basically impossible to replicate this kind of list as a true and uniform list. I'm trying to introduce some kind of a level of automation in a document I received. I'll simply convert it to list only at higher or clean levels where it's easy and leave these few crazy sub-levels untouched as a simple text to preserve these markings for now.

ttoms gravatar imagettoms ( 2018-04-19 18:06:40 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-04-19 15:00:29 +0200

Seen: 115 times

Last updated: Apr 19 '18