Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index

jmadero wrote
Are styles supposed to retain properties like "bold." I am consistently
getting mixed results using styles.

The comments up-thread by Kevin O'Brien and Brian Barker are correct,
despite a number of disagreements. So called "direct" or "manual" (directly
applied) formatting will always override a pre-defined style definition
e.g., a character or paragraph style. In LibreOffice "direct formatting"
(which is a Microsoft Office term) is equivalent to any style definition in
content.xml, rather than styles.xml (which is where pre-defined styles are

I have already commented in the bug report raised by Joel (which has since
been closed as NOTABUG), but it seems that this principle of overriding
styles is not well understood. Both ISO/IEC 26300 (ODF, Part 1, §16) and
ISO/IEC 29500:2012 (OOXML Part 1, §17.7.2) define a hierarchy of application
for styles. In both specifications what amounts to directly applied
formatting[1] are the last to be applied and so act as an override (which is
to be expected, otherwise clicking toolbar formatting buttons AFTER applying
a style would have no effect). This can however result in apparently
surreptitious behaviour that is at the root of why style adherents tend to
loath directly applied formatting i.e., it interfers with the effective
application of pre-defined styles.

If others would like me to expand on what was occurring in the example
document in greater detail for clarity I will. In simple terms there was a
direct formatting character definition (style T9 in content.xml) setting
both the font style and font weight to normal. This definition was
overriding the equivalent settings in any subsequently applied paragraph
style definition that used a weight of bold (for example Heading 3).

[1] In OOXML these tend to be paragraph or run properties that are not from
styles, while in ODF the determination is obtained by following the
child-parent chain in style definitions.

Best wishes, Owen.

View this message in context:
Sent from the Users mailing list archive at

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.