News for hackers. Stuff that matters.
Re:LibreOffice still kicking at 40, now with browser tricks ... by omnimus on Thursday February 13, 2025 @03:38PM (#43041015)
The way Writer works with styles is same how every other type setting program does it. Indesign, Scribus, Affinity, Quark. Not sure how this would be out of the ordinary. Maybe MS Word doesn't have paragraph styles at all? Not sure i haven't used in in a long while.

Character styles are settings for selected group of characters (things ike emphasis, italic, underline). Paragraph styles are set for whole paragraph you are in. You make new paragraph by hitting enter. If you hit enter twice you make two paragraphs. In paragraph style you define how paragraphs should be separated (empty line, first line indent, rule whaever you want). You should never do what can be done using paragraph style by writing them because later when you want to change them you would have to change it everywhere instead just changing style.

Re:LibreOffice still kicking at 40, now with browser tricks ... by scblock on Thursday February 13, 2025 @04:14PM (#43041456)
MS Word works with styles in a very similar way, and the appropriate thing to do is modify the styles to match your use case. But Word does not necessarily enforce this, and so creates additional ad-hoc if you manually go in and change specific formatting. Luckily it is fairly easy to make a change like that and then find the real style and tell Word to update the style to match your selection.
Re:LibreOffice still kicking at 40, now with browser tricks ... by masfuerte on Thursday February 13, 2025 @06:22PM (#43042763)
Writer does differ from Word in quite an unintuitive way.

Create a document with two one-line paragraphs.

In Word, put the cursor at the start of the first paragraph. Press SHIFT+DOWN. This selects the first paragraph. Apply a paragraph style, Heading 1, say. Paragraph one has the new style, paragraph two does not.

In Writer, do the same thing. The style is applied to both paragraphs!

I use Writer all the time but this funkiness in paragraph selection continues to bug me. You have to select paragraphs excluding the final paragraph mark, which requires more keystrokes than Word's selection behaviour.

Re:LibreOffice still kicking at 40, now with browser tricks ... by mixmastamyk on Thursday February 13, 2025 @11:07PM (#43044731)
My LO Writer (24.8.4.2) only changed the first paragraph. You don't mention if you meant a blank line between the two lines but I added one.
Re:LibreOffice still kicking at 40, now with browser tricks ... by masfuerte on Friday February 14, 2025 @06:12AM (#43047225)
It's still a problem if you leave a blank line. If you make the first line bulleted you now have a bullet on the blank line too.
Re:LibreOffice still kicking at 40, now with browser tricks ... by omnimus on Friday February 14, 2025 @03:56AM (#43046335)
What do you mean by selecting paragraph? Paragraph styles are applied to the paragraph your line cursor is in or if you highlight/select multiple characters it sets their paragraph to be that paragraph style.

Single character can only be part of a single paragraph. So if you select characters that are in different parahraphs and want to set their paragraph styles it should set all of them.

Ive just tried it in Writer and like i said its seems to be the “norm” how other soft does it (i dont have acess to Word to test that).