Linked Section shows text and only some attributes

If I link only a section in a document, the text and character styles appear correctly. However, indents and background attributes don’t appear as in the section in the source document.

Is this a known bug?

I am using LibreOffice Writer 7.2 in Windows 11.

If I link the whole document, the indents and background color of the section appear as in the source document.

EDIT: @ajlittoz Here is the result I get.
Sections ILLUSTATION DOC.odt (13.0 KB)

Attach a sample file for close examination. Description is not sufficient to understand what is at stake.

Indents

There is no bug. “Text containers” in Writer are based on an HTML-like model. Every “container” has (outer) margins (bearing various names in Writer; this is not very consistent), a border and (inner) padding space surrounding the text.

  • A section has no margin not border, only padding space called Indent in the configuration dialog
  • A paragraph is a full-fledged box with “margins” called indents horizontally and spacing vertically, a border and padding

When a paragraph is nested in a section, you add up section indents and paragraph properties.

Your original document in inserted in a section called Whole Document which is created from scratch. Whole contents is imported without modification, including the inner section called Linked text. In the imported document, this section has its own indents set at 1.27cm (1/2") at left and right.

You created a section called Section only where you inserted partial contents from the other document. You didn’t define any indents for this one.

In both sections, text is formatted by Text Body which has no indents. Consequently the difference comes only from the difference in section configuration.

Background colour

Once again, you have to look at the section configurations. In the imported document, section Linked text has a background colour while your fresh section Section only has no background.

Unfortunately, there is no “section style” which would solve this consistency issue. You must be manually careful about your section parametrisation.

PS: By the way, your use of “linked” word is faulty (causing confusion). “Linked” would hint at some “reference” to the other file without copying contents. This allows to update automatically referenced contents when the external object is changed (dynamic behaviour). You inserted the file into a section, in effect copying the contents and freezing it to the state at time of insertion (static behaviour).

Here a better word would have been “nested” because you have a section inside a section. Hence my request for a sample file to see exactly how you proceeded.

1 Like

Thank you @ajlittoz for the lengthy and detailed explanation.

I guess my thoughts were that sections were similar to paragraph styles and that, when inserting a section, the characteristics set for that section would be inserted with it.

The properties are effectively kept when a section is “imported”, i.e. you don’t create it explicitly. It comes with the rest of the material. But when you explicitly create a section, like in the case of your Section only, you’re doomed to set all properties because you “import” only the text, not the surrounding section container.