How to change the font for multiple styles

When writing a book I use quite of lot of styles, with the font Liberation Serif, and that works fine.
In that book I have a appendix, which is large. Using the same amount of styles in the appendix, gives a uniform impression, which is good.

But I want to show the appendix is different, than the content by using only a different font: DejaVu Sans Book. So than both expects are fulfilled, uniform impression, but still different.

This can be done by creating new styles, from the existing styles, and only change the font. This does work. But then it is hard to keep the content-text, and the appendix-text in sync, what style concerned. Second, my appendix is unfortunately very large, so I have to change each peace of text and change it manually to the new created styles.

I have searched on this forum but I did not find a solution.

Is it possible to do this on an easier way, and keeps the style in sync, as desired?

hard to keep the content-text, and the appendix-text in sync

What do you mean under keep … in sync?

From your description, it looks like you are doing right, not much to advise.

I have, for example style with the name “Heading 3”. Which Contains:
Western text: 11 pt + bold + Single + Numbering(Outline) + 3 + Indentleft 0,0 mm, Indent right 0,0 mm+ From top 3,49 mm, From bottom 2,12 mm AND "font family :Liberation Sans, style : bold, Size: 11 pt
I would like to keep this style for both content-text and appendix-text Only the style for the appendix-text should have the font DejaVu Sans Book. But also bold, and also 11 pt. I have more than 20 custom styles like this. If I would change “Indent right” from 0,0 mm into 5,0 mm this would be for both the content-text style and appendix-text style. If there would be only this change, I can do it manually. But if (not desired) many changes are needed than change exist the contant-text stysles are not in sync anymore with the appendix-text styles. And this is very hard to detect.

What you describe, must happen automatically, provided that you keep styles in hierarchies. Thus, if you create your appendix-text style based on Heading 3, any change of Heading 3 (the parent style) will also happen in the appendix-text style (and any other child style) except for the following: a) options that are overridden by your style (in the described case, it is the font face), b) manual formatting.

Thus said, when you create your own style and apply it to a paragraph, do not forget to clear manual formatting (Ctrl + M).

That is correct. But, that is a mayor but. I have more than 20 styles. With all existing written text (more then 50 appendix pages) and used styles. I switch every page 10 time or more from style. , or less with the style. So now I have to rearrange about 500 styles (50 * 10). The change for a mistake, and so an inconsistency is large. The appendix is, as normal, at the end of the content-text. So it would be nice to switch on the end of the content-text.
As workaround I could create a separated document for the appendix. Copy the template, and change the template with a different font. But then I do not need to change 500 styles. But than it is harder to keep the styles in sync. And, also important, I am not able to create a simple pdf file to be printed.

I wouldn’t claim to have understood everything (for a long time now I didn’t create long complex text docs), but…
Do you know that you can change heritage by Drag’n Drop in the Stylist?

If you have a somehow reasonable hierarchy of styles, and you didn’t change or explicitly set inherited attributes willfully, you can move a style to a different place in the hierarchy, and by that change inherited attributes while explicitly set attributes remain as set.

A style inherited LiberationSans from its parent, and was set to 16 pt height explicitly.
You move it to a different place where the styles inherited Times, from a parent not having changed the default height 12pt which was introduced by the Default Style (common ancestor of all the styles).
Now it works out Times with 16 pt.

If an attribute was “fixed” (set explicitly) inadvertently, and later is expected to be again as inherited from the immediate ancestor, you can get this per tabbed dialog using the Standard button. (I didn’t yet test again if the “per tab” is correct.)

(I also miss the setting As Inherited per attribute. IMO it should be offered per dropdown on top in a similar way as i is shown for the Language attribute in Calc when edditing number formazs of cells.)

(If you are fond of programming, you can create customized tools for related purposes.)

This looks really good. Is LO 7.1.3 stable enough, in your opinion, to use for large documents?

…Is LO 7.1.3 stable enough,…

I think so, but as I already told my experiences with large and complicated documents are limited. and not updated for years now. From his many good answers to different questions i would assume zhat @ajlittoz is much more experienced.

I’m using and am satisfied with it.

As a rule of thumb, versions x.y.0/1 are considered “early adopters” and x.y.2+ are debugged stable versions.

I am reluctant to change, and luckily, with the help of this forum, I could solve my problem. So I do not need to upgrade right now. Especially not for my existing long document. But I will do so for sure in the future because the new features working with styles really appeal to me.

What you describe is a requirement for organizing styles into “families”. There is already this kind of structuring in the built-in styles. To see the hierarchy, select Hierarchical from the drop-down menu at bottom of the style sidepane.

You can see the 3 main “families” with ancestor styles Heading, Index and Text Body. Changing font face in one of them will have effect on all headings (Heading n paragraphs), TOC and indexes (styles Contents n, Index n and the like) and document content.

Built-in styles are fine for usual documents.

In your case, you want the “factory” hierarchy for your main content and a distinctive similar hierarchy for your appendix.

This means you must duplicate the main hierarchy. There are two ways to do that.

  • “leaf duplication”

    You create a derived style (with right-click+New) for every needed style in the built-in hierarchy.

    This is convenient if your alternate choice for font face is not supposed to change while the other attributes (spacing, indents, alignment, …) are subject to review and edits.

    A change of “geometry” in the main content is immediately echoed in the appendix but a font face change is not.

  • “root duplication”

    You create a derived style close to the root of the built-in hierarchy: Text Body, Heading or even Default Paragraph Style. Below this “appendix root”, you must manually create an alternate hierarchy matching the main content one.

    There is probably more work than in the first procedure because you must configure all the new styles in their spacing, indents, alignment, …

    Here, a change of indent in the main hierarchy is not forwarded to the appendix hierarchy but a change of font face in the appendix root is forwarded to all appendix styles.

There is no way to mix both approaches (which would solve your concern) because styles inherit from a single ancestor. There is nothing like multiple inheritance.

However, when you write you have 500 styles, I question your styling. There is certainly a lack of reasoning and thinking about your document. In Writer, a style does not describe typographical attributes like font face, size, weight, spacing, indent, colour, … A style, instead, tells the semantic value of the paragraph of word: Text Body for bulk discourse (no specific semantic value), Emphasis when a word is important, Strong Emphasis when it is very important. A paragraph may be styled Comment (to be created) when it clarifies the discourse, Quotation to highlight some point, Footnote well this one is obvious.

From an author point of view, you need roughly 10-20 paragraph styles to make a distinction between your paragraphs. Heading n for outline headings are included in this count. Add ~20 character styles to bring nuances to your discourse.

The semantic “grades” are the same in main content and appendix IMHO.

Once you have defined your semantic markup, you give the various styles their typographical attributes. Some “grades” may look the same (e.g. in my case Emphasis and Foreign Text both are rendered italics) but it is important for you, the author, to maintain a different markup because they have not the same significance value.

An author is never confronted to 500 different significances (or else he is unable to structure his thoughts). You should reconsider tour styling under the principle I briefly described.

If you want to clearly identify your appendix as not being part of the main content, I’d suggest the use of a different page style: a different header/footer or page number formatted differently (italics vs. Roman or adding a prefix to it), keeping other attributes unchanged (same margins). You then keep the same paragraph and character styles as in the main content (because these styles carry the semantic markup).

To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

In case you need clarification, edit your question (not an answer which is reserved for solutions) or comment the relevant answer.

There seems some misunderstanding. I have in total 20 styles, with 10 different paragraph styles, from which 5 are headings. I mean I have 500 different “text block” with one of the 10 paragraph styles. So if I should create new specific paragraph styles for the appendix (and so with its own stylename), only 10 new styles should be created. That is doable, although hard to keep in sync. But I have to assign 500 textblock to this new created paragraph stylename.
That is a lot of work, and hard to do without any mistake. In fact it would be almost the equal amount of time, not using styles at all.

The idea of specific page style, might work. But the change of the fount, what I would like to use, it then not available to me anymore.

Thanks for all the support. I have to let it sink in. And I have to look for examples in existing books.

If the only change is the font face. Use the first procedure I outlined, the so-called “leaf duplication”. All attributes other than font face are taken from the “main content” styles. It is very easy for 10 styles.

With this procedure, you only change indents, font size, alignment, … in the main styles and the changes are automatically cascaded to the appendix styles.

This indeed very easy. I have f.e. style “Heading 2” I create a new style named “Heading 2 appendix” and change the font. And I have style “Text Body” and I create a new “Text Body appendix” and change the font. That is also very easy. But my appendix does not change at all. I have to change the style in the appendix with “Text Body” to “Text Body appendix”, that is also very easy to do. And it works. But then I have to repeat this 500 times. And that is a lot of work. Almost the same work if I did not use styles at all.

Depending on the “structure” of your appendix, you can reduce the amount of work: select the whole appendix and apply the most frequent style.

Then put the cursor in an exception paragraph, select a few words. In the same page (to avoid eventually losing selection with bad scrolling), with Ctrl depressed, select other few words in similar paragraphs. Apply the “exception style”.

Since headings are relatively rare, apply their styles individually.

Aesthetically speaking (but I have a very poor artistic sense), I would not go for a font face change between main and appendix. It is very hard to choose visually “compatible” faces. So, a small addition to the page number would be enough to warn reader about what he’s reading, like “123” or “Thesis - 123” in main and “Appendix - 123” or “Discussion - 123” in appendix. This is akin to displaying chapter number in header or footer.

I have have a goal: “make a clear distinction between the contant-text and the appendix-text without losing uniform impression” And a tool trying to achieve that goal: “Changing the font of the text”. To reach my goal with my intended tool, was not easy available. I would lose the strength of styling to make to much similar changes and keep this in sync. So I needed time to accept that. Now I am using the suggestion of ajlittoz, to change the page style to a specific page style for the appendix. I changed the header and the footer with the build in character style Quotation (which is italic). This will give for me clear distinction without losing uniform impression.