How can I change fonts of numbers of each numbered list individually?

  • LibreOffice Writer
  • Version 4.3.5.2 - Dutch
  • Windows 8.1 - Dutch

It seems to happen that when I select a certain row of enumeration and change its font, it changes the font of all other enumeration lists in the whole document. Example:


Bibliography

  1. B. Klaus and P. Horn, Robot Vision. Cambridge, MA: MIT Press, 1986.
  2. L. Stein, “Random patterns,” in Computers and You, J. S. Brake, Ed. New York: Wiley, 1994, pp. 55-70.

Attachment 1 - Hello World C Code

  1. /* Hello World program */
  2. #include < stdio.h >
  3. main()
  4. {
  5. printf("Hello World");
    
  6. }

I would like to have two different fonts for the bibliography enumeration and the code enumeration. I’ve tried a lot of things already, but none have worked so far. Whenever I select one list of enumeration and change it font/size/etc, it applies to both lists… The only thing that does work is changing the kind of numbers, like [1], (1) or {1} individually. It’s very disturbing for me, please help me! I have added the .odt file which has this problem for me.

Downloads:

Extra details:
The “Bibliography” and “Attachment 1 - Hello World C Code” are both heading 1 style. They are both on different pages seperated with the use of ctrl+enter.

You need to use more than one list style, one for the bibliography and one for the code. In the Styles & Formatting window, click the List Styles button and a list of predefined styles are shown. You can apply these to your document (and edit them) or create your own list styles to suit your purposes. Then apply the styles to your lists by selecting the list and double-clicking the style name.

Font_Numbering_List_Problem_solved.odt

I have selected the bibliography list, and selected numbering 1 style. After that I’ve selected the code list and selected numbering style 2. I changed the fonts for both styles that I want. After doing that, I still didn’t notice any changes to the font of the numbers. I clicked on the number of the list (wich selects it making it grey) and noticed that the styles are correct. The bibliography says numbering style 1 and the code list number says numbering style 2. It didn’t work :frowning:

Furthermore, instead of using the style window to change the font (which didn’t change the numbering font, neither the font of the text after it), I used the normal font selector in the toolbar, which changed the font of both lists’ numbers. Even though they are both different styles.

Also I notice a small disturbance of vertical distance between enumerations when I increase the font size or change the font of the numbering style. The font still stays the same as it was, even though the style says otherwise.

I have added a link to my testing .odt document, try it for yourself. If it works for you, I’ll install your version of LibreOffice. :stuck_out_tongue:

You’ll have to install my version of LibreOffice. :slight_smile: Right click on Numbering 1 style, choose Modify. Click on Options, under Character Style, choose Strong Emphasis. Click Apply, then Ok. Do the same for Numbering 2, but choose a different character style, such as Rubies. You can then click on Character Styles and modify the Strong Emphasis and Rubies styles to your liking (font, etc.). See the example I’ve uploaded in my answer.

@Dmaster
@razon_22 ’ answer is correct! However,

… I changed the fonts for both
styles that I want. After doing that,
I still didn’t notice any changes to
the font of the numbers…

gives me the impression that you are not using the numbering list you modified or you used direct formating for the same list. Direct formating overwrites list styles and blocks list styles from changing the direct formatting. If you want to see the list style you must remove the direct formating (select > right click > Clear direct formating)

I would do the following:

Create a few lines of text.
asdfja
asjkdhfal
ajsdhf
and then a break of 2 - 3 lines and again
asjdhfkjah
as;dfjh
asdfi
and again a break… repeat 1-2 times more.

Select the first few lines
F11 > tab List styles > double click Numbering 1 => you see how Numbering Style 1 looks like
Select the second few lines and repeat the same with Numbering Style 2
Continue this for 1 - 2 times more. This gives you a picture on what Numbering Styles you have.

Select the one which is closest to your first needed style.
In the Style window (F11) tab List Styles
Right click the Numbering Style being closest to your needs > New
Name: Give it a name you like
Next Style: Select the style you gave as a name.
Modify all elements to your needs and click OK

Select the list you want to modify with this style and double click your newly created style in the List Style window.

Now repeat all equivalent.

I recommend to have a look at the free guides which you can download from http://www.libreoffice.org/get-help/documentation/

Styles are great in LibO!!!

Thanks for the clear instructions! I did exactly what you said. But the fonts were still linked even though every separate list had a different Numbering Style. So if I made the numbers of one list bold, it would apply to all other lists too. @razon_22 was indeed correct.

I submitted this problem as a bug, and the person who replied there came with the same solution as @razon_22. I consider it as a workaround since it’s not what the common mind would do. I will explain it in another answer…

It’s just strange that I have to change the character style from “numbering symbol” to something like “pagenumbers” or anything else that’s in that list. Because it is not a pagenumber, it is a numbering symbol. I’m not sure if it would be better if every character style of each list didn’t affect any other list as an improvement.

I just find out that following your instructions, after applying the list styles, I applied a paragraph style to one of the lists, whithout the use of direct formatting, and that actually worked. Each list had the same character style (numbering symbol), but the fonts could be changed independently through the paragraph styles. So I consider this as the true way to do it. Thanks for giving me the awareness of “direct formatting”. :smiley:

As @razon_22 said, you have to change the character style of the list to anything other than a numbering symbol. You can change this in the option tab of the list style window. Where you can also add brackets or any symbol you want before or after the number.

I made a list with a character style of “pagenumbers”, instead of “numbering symbol”. I could also choose “Citation” or anything else than numbering symbol.

It seems that those character styles are linked together which is annoying.