# caption without frame [closed]

In LibreOffice, when I add a Caption, a frame is automatically inserted.

What I would like to do is to add a Caption, either above or below a picture, without having a frame. Is there anyway to do this?

edit retag reopen merge delete

### Closed for the following reason question is not relevant or outdated by Alex Kemp close date 2015-11-07 11:26:58.768357

Sort by » oldest newest most voted

It appears the ODF v1.2 specification does not appear to proscribe the manner in which captions are encoded. There is a <draw:caption> element although this does not appear to be used when inserting captions against a table or figure in Writer. A caption seems to be encoded as plain text with a field set within an enclosing frame. A captioned image (illustration in this case) will have a (simplified) form of XML like:

<draw:frame draw:style-name="fr1" draw:name="Frame1">
<draw:text-box>
<text:p text:style-name="Illustration">
<draw:frame draw:style-name="fr2" draw:name="graphics1">
</draw:frame>
Illustration <text:sequence>1</text:sequence> : Here is the caption text.
</text:p>
</draw:text-box>
</draw:frame>


I know of no way to prevent this arrangement other than by manual intervention i.e.,

1. Inserting a caption for an object (table / image).
2. De-selecting the outer frame.
3. Clicking the caption area.
4. Highlighting and copying the caption text.
5. Using the undo (CTRL+Z) function to remove the inserted frame and caption.
6. Placing the cursor either above (table) or below (figure) the object to be captioned.
7. Paste the caption text.
8. Ensure it uses an appropriate paragraph style (Caption, Illustration, etc.)
9. Copy this paragraph (caption) for future captions and amend content as required.

This results in much cleaner XML like:

<text:p text:style-name="P1">
<draw:frame draw:style-name="fr1" draw:name="graphics1">