Difference between revisions of "Documentation/How Tos/Inserting Pictures That are Reasonably Manageable"

From Apache OpenOffice Wiki
Jump to: navigation, search
(See also)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Documentation/CheckedAccuracy|[[User:Mwaller|Mwaller]] 09:14, 10 February 2009 (UTC)}}
+
What is the best way to anchor pictures in a standard context like this? You have a paragraph or line of text describing something, and you might then say "…as shown in the following illustration." Then you have a picture on a line by itself. No wrapping or anything, very simple. Like this:
 
+
What is the best way to anchor pictures in a standard context like this? You have a paragraph or line of text describing something, and you might then say "....as shown in the following illustration." Then you have a picture on a line by itself. No wrapping or anything, very simple. Like this:
+
  
  
Line 7: Line 5:
  
 
[[Image:Doc_HowTo_pict_aschar.png|thumb|none|500px|Kalispell Dude Ranch]]
 
[[Image:Doc_HowTo_pict_aschar.png|thumb|none|500px|Kalispell Dude Ranch]]
 
  
  
Line 15: Line 12:
 
<ol>
 
<ol>
 
<li>Create a blank line for the picture by pressing '''Return''' after the text.</li>  
 
<li>Create a blank line for the picture by pressing '''Return''' after the text.</li>  
<li>Make sure that paragraph markers are visible: Check '''View > Nonprinting Characters'''.</li>  
+
<li>Make sure that paragraph markers are visible: Check {{menu|View|Nonprinting Characters}}.</li>  
 
<li>Choose '''Insert > Picture > From File''' and find the file (or just drag the picture in from the Gallery).</li>
 
<li>Choose '''Insert > Picture > From File''' and find the file (or just drag the picture in from the Gallery).</li>
<li>Right-click on the picture and choose '''Anchor > As Character'''.</li>
+
<li>Right-click on the picture and choose {{menu|Anchor|As Character}}.</li>
<li>If you want to continue writing below the picture, click to the right of the picture and press '''Return'''.</li>
+
<li>If you want to continue writing below the picture, click to the right of the picture and press {{key|Return}}.</li>
 
</ol>
 
</ol>
  
Line 30: Line 27:
  
 
* Choose '''Default''' from the dropdown style list.
 
* Choose '''Default''' from the dropdown style list.
* Or, choose '''Format > Paragraph''', '''Indents&Spacing''' tab, and in the Line spacing section select '''Single'''.
+
* Or, choose {{menu|Format|Paragraph}}, '''Indents&Spacing''' tab, and in the Line spacing section select '''Single'''.
  
 
==To Position the Picture Vertically==
 
==To Position the Picture Vertically==
  
To control whether the picture is vertically at the top, middle, or bottom of the blank line, right-click on it again and choose '''Alignment > Base At Top''', '''Middle''', or '''Bottom'''. You do not have to do this if you think the way it looks is fine.
+
To control whether the picture is vertically at the top, middle, or bottom of the blank line, right-click on it again and choose {{menu|Alignment|Base At Top}}, '''Middle''', or '''Bottom'''. You do not have to do this if you think the way it looks is fine.
  
If you want to make sure that the graphic automatically stays with the previous line of text describing it, select the text above the picture, choose '''Format > Paragraph''', '''Text Flow''' tab, and select '''Keep With Next Paragraph'''.   
+
If you want to make sure that the graphic automatically stays with the previous line of text describing it, select the text above the picture, choose {{menu|Format|Paragraph}}, '''Text Flow''' tab, and select '''Keep With Next Paragraph'''.   
  
{{Documentation/Note | Be sure to do this only with the paragraphs that precede graphics or you will end up with unusual pagination.
+
{{Note | Be sure to do this only with the paragraphs that precede graphics or you will end up with unusual pagination.
  
 
You might decide to create a specific style that you use for paragraphs that precede graphics, and define that style with the '''Keep With Next Paragraph''' attribute.}}
 
You might decide to create a specific style that you use for paragraphs that precede graphics, and define that style with the '''Keep With Next Paragraph''' attribute.}}
  
  
If the picture looks too crowded up against the text, click on the line, on the same line as the picture, and choose '''Format > Paragraph''', '''Indents&Spacing''' tab. In the Spacing section in the middle, you can set spacing above and below the picture to space it so that it looks good.
+
If the picture looks too crowded up against the text, click on the line, on the same line as the picture, and choose {{menu|Format|Paragraph}}, '''Indents&Spacing''' tab. In the Spacing section in the middle, you can set spacing above and below the picture to space it so that it looks good.
  
  
 
==Other Tips==
 
==Other Tips==
  
* To create a caption that stays with the picture click on the picture and choose '''Insert > Caption'''. <br> The text, with a numbered field, will be inserted next to the picture. And the picture and the new caption will be encased in a frame. This way the caption stays with the picture.
+
* To create a caption that stays with the picture click on the picture and choose {{menu|Insert|Caption}}. <br> The text, with a numbered field, will be inserted next to the picture. And the picture and the new caption will be encased in a frame. This way the caption stays with the picture.
  
 
* Here is what '''not''' to do. Right-click on the picture, choose '''Frame''', and in the '''Type''' tab unmark the '''Follow text flow''' setting in the Position section.<br> That will give you this result, with the picture going outside the margin. [[Image:Doc_HowTo_pict_flow.png|thumb|none|500px|Picture outside the type area]]
 
* Here is what '''not''' to do. Right-click on the picture, choose '''Frame''', and in the '''Type''' tab unmark the '''Follow text flow''' setting in the Position section.<br> That will give you this result, with the picture going outside the margin. [[Image:Doc_HowTo_pict_flow.png|thumb|none|500px|Picture outside the type area]]
Line 54: Line 51:
 
* In the '''Type''' tab you may also anchor the picture '''to paragraph'''. This is OK, as long as you do not unmark the '''Follow Text Flow''' option above. You can drag the picture around with Anchor to Paragraph. But anytime you have that amount of freedom, it is possible to accidentally put the graphic where it should not be.
 
* In the '''Type''' tab you may also anchor the picture '''to paragraph'''. This is OK, as long as you do not unmark the '''Follow Text Flow''' option above. You can drag the picture around with Anchor to Paragraph. But anytime you have that amount of freedom, it is possible to accidentally put the graphic where it should not be.
  
{{Documentation/SeeAlso|  
+
{{SeeAlso|EN|  
 
*[[Documentation/How_Tos/Getting_a_Picture_into_the_Gallery|Getting a Picture into the Gallery]]
 
*[[Documentation/How_Tos/Getting_a_Picture_into_the_Gallery|Getting a Picture into the Gallery]]
 
}}
 
}}
Line 61: Line 58:
  
  
This How To comes from [http://openoffice.blogs.com Solveig Haugland's Blog]
+
This How To comes from [https://openoffice.blogs.com Solveig Haugland's Blog]
  
 
{{PDL1}}
 
{{PDL1}}
  
 
[[Category:Documentation/How Tos/Writer]]
 
[[Category:Documentation/How Tos/Writer]]

Latest revision as of 10:22, 2 September 2022

What is the best way to anchor pictures in a standard context like this? You have a paragraph or line of text describing something, and you might then say "…as shown in the following illustration." Then you have a picture on a line by itself. No wrapping or anything, very simple. Like this:


The horses at the Kalispell Dude Ranch are well-trained and gentle.

Kalispell Dude Ranch


A very reliable way to do it is by anchoring as character. This treats the graphic like a letter. Which means you cannot drag it around, but that you can position it using the text alignment and indent features. And the less dragging, the less it is likely to be a little skittery.

To Use Anchor as Character

  1. Create a blank line for the picture by pressing Return after the text.
  2. Make sure that paragraph markers are visible: Check View → Nonprinting Characters.
  3. Choose Insert > Picture > From File and find the file (or just drag the picture in from the Gallery).
  4. Right-click on the picture and choose Anchor → As Character.
  5. If you want to continue writing below the picture, click to the right of the picture and press  Return .

To Position the Picture Horizontally

  1. Click to the right of the picture (not on the picture).
  2. Use the Align Left, Centered, or Align Right icon on the formatting toolbar.

Troubleshooting: If the picture shows up about a quarter inch high, that is because the paragraph style applied has a height max on it. Nothing wrong with that, it is just not suitable for a style that is applied to the line a picture is on.

Click in the paragraph marker next to the picture and do one of the following:

  • Choose Default from the dropdown style list.
  • Or, choose Format → Paragraph, Indents&Spacing tab, and in the Line spacing section select Single.

To Position the Picture Vertically

To control whether the picture is vertically at the top, middle, or bottom of the blank line, right-click on it again and choose Alignment → Base At Top, Middle, or Bottom. You do not have to do this if you think the way it looks is fine.

If you want to make sure that the graphic automatically stays with the previous line of text describing it, select the text above the picture, choose Format → Paragraph, Text Flow tab, and select Keep With Next Paragraph.

Documentation note.png Be sure to do this only with the paragraphs that precede graphics or you will end up with unusual pagination.

You might decide to create a specific style that you use for paragraphs that precede graphics, and define that style with the Keep With Next Paragraph attribute.


If the picture looks too crowded up against the text, click on the line, on the same line as the picture, and choose Format → Paragraph, Indents&Spacing tab. In the Spacing section in the middle, you can set spacing above and below the picture to space it so that it looks good.


Other Tips

  • To create a caption that stays with the picture click on the picture and choose Insert → Caption.
    The text, with a numbered field, will be inserted next to the picture. And the picture and the new caption will be encased in a frame. This way the caption stays with the picture.
  • Here is what not to do. Right-click on the picture, choose Frame, and in the Type tab unmark the Follow text flow setting in the Position section.
    That will give you this result, with the picture going outside the margin.
    Picture outside the type area
  • In the Type tab you may also anchor the picture to paragraph. This is OK, as long as you do not unmark the Follow Text Flow option above. You can drag the picture around with Anchor to Paragraph. But anytime you have that amount of freedom, it is possible to accidentally put the graphic where it should not be.



See Also




This How To comes from Solveig Haugland's Blog

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools