making graphics stay where you put them

Charles:

I'd be happy to file a bug report, but I'm hoping to find out a bit more the
situation before I do. This delay is partly selfish, because my personal need
is to find a workaround, but I'm hoping it will also help correct the problem
if I can give some details.

I almost always anchor the picture AS a character on a line by itself with a specific character style that should keep it with the next paragraph, a manually inserted caption. You can see this in any of my macro documents. AndrewMacro and OOME are both very long with numerous images and they have no problems.

Years ago I had my images inside of frames, but, I found a very nasty bug that caused OOo to crash based on a certain set of conditions. I manually edited the XML in a text editor to remove the problem so that I could keep the document. I do believe that bug was fixed by Sun :slight_smile:

The first WP I really knew back to front was WP 6.1. In that, there was a text orientation setting/button which I remember as being called 'justify'. Whatever it was called, it spread the text equally across the page, giving hard edges at both left and right.

In my current Libre Office Version: 4.1.3.2, there are four (text orientation ) buttons on the tool bar - but so far as I can see, the fourth, called Justify, seems to format exactly the same as the first, Align Left.

Have I got a glitch, or am I missing something ?

Ian Graham
Wales
UK

Hi Ian

Ian Graham wrote

In my current Libre Office Version: 4.1.3.2, there are four (text
orientation ) buttons on the tool bar - but so far as I can see, the
fourth,
called Justify, seems to format exactly the same as the first, Align Left.

Have I got a glitch, or am I missing something ?

Your question is a bit off-topic, but there is no glitch.
Maybe the text you are trying to flow is broken in paragraphs at the end of
each line? Click on View > Nonprinting Characters to check.
If each paragraph is shorter than page width, justify will behave as left
align.

Hope this helps.
Pedro

please don't reply to a message and then change the subject. That is called "hijacking the thread" and really messes up those of us that thread our messages by subject.

Having said that, what you want is to change to alignment to justify.
There are buttons for that or you can find it on the Format menu.

It works for me, even with sparse lines (which turn out ugly on the screen).

If this doesn't help, please start a new thread.

-bill

You're missing something. On the third line from the top--the one with the font size on it, there is a set of icons after the font size number,
B i U then four icons with parallel horizontal lines: ragged right, centered, ragged left, fully justified. They also bring up a keyboard shortcut
if you don't want to use the icons. these are, respectively, align left (ctrl+L), centered (ctrl+E), align right (ctrl+R), justified (ctrl+J).
After these, there are more icons for other things.

--doug

I forgot to mention: if you have already typed the text you want justified, you have to highlight it when clicking on the justify button.

-bill

​Technically, it should work by just having the cursor in the paragraph, as
the justification is a paragraph property. If it doesn't apply the
justification to other lines, then indeed your lines are not part of the
same paragraph (e.g. the return key was used somewhere).​

Hallo again, and thanks to everyone who has replied to my original post, privately or here.

First of all, I understand I may have unwittingly transgressed in the posting of it . If so, I do apologise.

As to the substantive points: what I think I've learnt is that (a) yes, I had missed something (b) that something being that the alignment buttons are more limited than going the menu route, and specifically that the 'justify' button does not work on a single line, or the last line of a paragraph, whereas (I think) the other three buttons do.

The query originally came to my attention when I was laying out a 'display'-style document, ie not continuous text. There was one line I wanted to spread as widely as possible without increasing the font size. Applying what I now know: the Justify command (via format menu) treats the individual words as sacrosanct, and just increases the spaces between them, which can look a bit odd. Manually adding spaces between letters overcomes this, and then inserting more spaces (to taste!) in what should be the gaps between 'words' progressively reduces the 'value' of the spaces within the 'words'.

Once again, many thanks

Ian G.
Wales UK

... what I think I've learnt is [...] that the alignment buttons are more limited than going the menu route, ...

I'm not sure what you mean here: if the "menu route" is to change the alignment at Format | Paragraph... | Alignment | Options, you are surely changing the same thing and the effect is identical? But yes: paragraph formatting has additional options, of course.

... and specifically that the 'justify' button does not work on a single line, or the last line of a paragraph, whereas (I think) the other three buttons do.

That's very standard and surely what you would generally want? The last line of a paragraph (or a single line, if that's all it is) generally has less text than other lines. If this was justified, you would see the text unhelpfully spaced out: in an extreme case, you might see the penultimate word at the left margin of a page and the last (perhaps only of two or three letters) at the right - with oodles of space between.

But if you do want this, Format | Paragraph... | Alignment | Options (or right-click | Paragraph... | Alignment | Options) provides, for the Justified option, various ways of treating the last line of the paragraph - including having it justified and even (where necessary) expanding a single word to achieve this.

Incidentally, for lines ending with line breaks (rather than those flowing naturally or ending with paragraph breaks), you can control the effect of justification with the setting at Tools | Options... | LibreOffice Writer | Compatibility | Options | Expand word space on lines with manual line breaks in justified paragraphs. That might help get what you want with individual lines.

The query originally came to my attention when I was laying out a 'display'-style document, ie not continuous text. There was one line I wanted to spread as widely as possible without increasing the font size. Applying what I now know: the Justify command (via format menu) treats the individual words as sacrosanct, and just increases the spaces between them, which can look a bit odd. Manually adding spaces between letters overcomes this, and then inserting more spaces (to taste!) in what should be the gaps between 'words' progressively reduces the 'value' of the spaces within the 'words'.

You will get a more consistent (and therefore neater?) effect by leaving single spaces between words, but then adjusting letter spacing. To do this, go to Format | Character... | Position | Spacing (or right-click | Character... | Position | Spacing), select Expanded, and then adjust the "by" amount to taste.

I trust this helps.

Brian Barker

right you are.

-bill

If you anchor it as a character, then just think of it as one huge character. You can type text before and after it, but, the baseline of the image will be set to the baseline of a character. If it is sitting in the middle of a paragraph, there will be a line above and below it. If you have two pictures next to each other on the same line anchored as character, then, their baseline will be the same, so, if they are not the same height, it may look a bit strange.

Hi Andrew,

Andrew Douglas Pitonyak schrieb:

I think, conceptually, that is a problem. You can anchor to page,
paragraph, character, and "as character," whatever that means.

If you anchor it as a character, then just think of it as one huge
character. You can type text before and after it, but, the baseline of
the image will be set to the baseline of a character.

The possible settings are far more. You can combine the vertical positions {top, bottom, center, from bottom} with the references {baseline, character, row}. That gives 12 combinations, and then in addition the different possible values for 'from bottom'.

  If it is sitting

in the middle of a paragraph, there will be a line above and below it.

?? I have no lines.

If you have two pictures next to each other on the same line anchored as
character, then, their baseline will be the same, so, if they are not
the same height, it may look a bit strange.

That is a matter of aesthetic perception; the tools exist to make is looking nice.

Kind regards
Regina

Hi :slight_smile:
It sounds as though you need a "DeskTop Publishing" program rather than a
word-processor.

Word-processing is primarily about creating and editing content = doing the
writing, getting ideas and thoughts 'down onto paper'.

DTP takes existing content and applies the layout.

http://www.brighthub.com/multimedia/publishing/articles/62697.aspx
http://wiki.scribus.net/canvas/Word_Processing_vs_DTP

Errr, i tried to find unbiased sources but they tended to be so heavily
broken-up by advertisements or done by people who are trying to keep things
so simple that they turn into a massive advert for just 1 company's
products. Oddly the Scribus page turns out to be less biased than most
such pages!

Of course the boundary between DTP and word-processing is very blurred,
particularly with Writer. Even Word can do a lot to make the layout look
good enough for most cases but Writer cranks that up several notches. Word
has had many things added to give it an appearance of DTP functionality.
Writer is largely a DTP program at it's core and thus encourages a slightly
different way of doing things. DTP programs tend to allow simple editing
but they are not usually designed for that part to be easy and
comfortable.

Many of the arguments/discussions on this mailing-list are due to Writer
not being primarily a DTP (the images thread, this thread, all the LaTeX
ones etc) OR about how Writer does some things differently from the
infamous MS word-processor.

Apparently Writer does work particularly well with Scribus but apparently
does do output that is easier for professional printing companies to handle
directly (except that many of those have probably become so used to getting
Word files that they don't trust users to produce good enough output).
Regards from
Tom :slight_smile:

Hi:

The bug report is at:

https://www.libreoffice.org/bugzilla/show_bug.cgi?id=79234

It is described in detail at:

http://www.linuxpromagazine.com/Online/Blogs/Off-the-Beat-Bruce-Byfield-s-Blog/The-mysteries-of-positioning-pictures-in-LibreOffice-OpenOffice

This is a problem that dates back to the earliest days of OpenOffice.org. It is
overdue to become a priority. I've suggested several changes in setting that
might help, but I suspect someone will have to dive deep into the code to fix
the problem altogether.

Thanks,

Merely indicating what I expect when I insert two images, anchor them as character and place them on the same line. I was not aware that I could then change other items when it was anchored as a character (primarily because I have never needed to do so (or considered looking). I think I just learned something :slight_smile: As always, you are very helpful Regina!

william drescher had de volgende lumineuze gedachte op 25-05-14 12:47:

I forgot to mention: if you have already typed the text you want
justified, you have to highlight it when clicking on the justify button.

​Technically, it should work by just having the cursor in the
paragraph, as
the justification is a paragraph property. If it doesn't apply the
justification to other lines, then indeed your lines are not part of the
same paragraph (e.g. the return key was used somewhere).​

right you are.

-bill

In my experience this can also happen with doc files that have been imported in Writer. Because of this and of like problems I paste text only from a Word-document into an empty original writer file and restore the formatting in cases that extensive editing is necessary.

Erik