Can I automatically space out words in a line

Hello! In an assignment given to me some lines seem to have dynamically spaced out words either to make both collumns the same width or to make shorter lines appear longer(I guess).

Is there a way to recreate this effect in writer? I searched all throughout the app to no real effect

You can resize the created columns as you want in the applied Page Style or in the applied Section.
And you can use Paragraph Styles with Justified property and with special options for the last line of the paragraph.

2 Likes

@RedLightPumpkin
Read @Zizi64’s advice thoroughly and check the images’ …

  • anchor
  • wrapping

of the sample file.
For more details don’t hesitate and ask again. - Cheers
.
JustifiedText_Image_Anchor-Wrapping.odt (80.3 KB)

1 Like

Mastering frame (image) position is difficult. The hardest point to master is keeping the relative position to text when text is edited (which changes the way it is laid out).

This is why I prefer to specify frame positions relative to “typographical” references instead of absolute position like in @Grantler’s sample file.

Therefore, the first frame would be horizontally centered relative to Entire paragraph area or Paragraph text area (here it does not make any difference because there are not indents around the paragraph). The second frame is in a 2-column area but is not restricted to its anchor paragraph. Then I position it horizontally centered relative to Entire page area or Page text area (again this makes no differences because margins are symmetrical).

Vertical position is more tricky because the image is taller than its anchor paragraph and seems to be related to a group of paragraphs, i.e. to a full subpart of the document. In this case, relative positioning can’t be used because it is pointless: paragraph is inappropriate because too “local” and page would create a conflict between both images, not speaking of the loss of relevance between position and text. So, here, using an explicit distance between the top of the anchor paragraph is legitimate but text edits may need a change in the distance.

Since the image pertains to the whole text following a title, it would be more “logical” to anchor it to the title, making sure Title paragraph style (used for the title) has Keep with next paragraph enabled to avoid weird layout and also frame has Keep inside text boundaries ticked. Both settings would add page breaks when needed to ensure the desired layout.

1 Like

Hey, thanks for helping. I managed to make my collumns look better with justification although the paragraph with the image wrapping still has some issues

I’ve looked through the example you’ve provided and made adjustments to my own paragraph although only text to the left of the image seems to have been justified properly

Attach a sample file corresponding to the screenshot (1 page max).

@RedLightPumpkin
Probably the paragraph’s align is left, not justified. Because you don’t display the formatting marks I cannot decide if this is the right clue.

:+1: Also my recommendation!

example.odt (60.8 KB)
There you go

You’re the one to blame! Text after "Podwieczorek (obrazek) is made of several 1-line paragraphs, i.e. you have one paragraph mark at end of every line.

As usual with justify alignment, last line of paragraph is left as is by default. I have no notion of Polish but I note there is no capital letter at beginning of your one-liners, suggesting you copied your text from some web site or PDF without rebuilding the paragraph structure. What I say about this “paragraph” is also valid for the others, except for the 2-column part where you have 2 paragraphs (one per column) which is probably also wrong (logically, I’d bet for 3 paragraphs, the last two being list items).

I also note that you practice direct formatting instead of styling. Your document is visually sophisticated. You won’t succeed with formatting and layout if you don’t switch to styles.

Direct formatting may seem more “intuitive” but will put you in severe pain when you’ll want to tune the layout.

1 Like

Oh of course I am to blame, no doubts here. I am quite a buffoon when it comes to text editing since last time someone was grading me for it was at least 3 years ago.

I fixed the whole paragraph problem and result is way better, thank you

Spoken aside:
Never switch off the display of Formatting Aids.
Never align anything with lots of spaces. That’s probably MS-think.

1 Like