Andis Lazdins wrote:

There are two problems:

  1. I like to have captions above graphics, not below, and I did not
     find how to do it automatically in swriter, like in case of tables.
  2. Usually I have to export most of documents to msword format to
     make them available for others and in this case disposition of
     graphics and captions is changed, so I need manually position
     graphics and their captions.

There are many questions about this issue in ooo support page, but no valuable solution. I do not see any reason for introduction of frames for graphics with captions. I suppose that there are technical problems which are not visible from outside or not so many users use captions built in function.

I would:

* Define a paragraph style for the graphic. Now, you do NOT place this into a frame AND you want a caption tied to it, so be certain to insert the image as a character. * Define a paragraph style for the caption. Be certain to indicate that the next style is the "graphic" style and tell this paragraph to STAY with the next paragraph. * When you know that you want to insert a caption, start by choosing your paragraph style (or do it later) and then type in the text "Figure ". * Now, you want to insert the figure number. Use Insert > Fields > Other to open the fields dialog.
* Choose the "Variables" tab.
* In the type column, choose "Number Range". Note that the variables Drawing, Table, Illustration, and Text already exist. * On the far right, you probably want to choose the display type as "Arabic (1, 2, 3)". You can even set the number of levels to display. * On the bottom, enter the variable name "Figure" and for the value enter "Figure+1"
* Click on the "Insert" button to insert the figure number.
* Now you can close the dialog.
* Enter the rest of the text after "Figure 1".

The field that displays the "1" will be incremented sequentially as you add figure numbers before this location, and the same for figured entered afterwards. After I do this once, I usually copy the entire paragraph and paste it when I need a new figure.

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to