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?
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?
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:image xlink:href="Pictures/10000000000002680000033579D2BB49.jpg"/>
</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.,
This results in much cleaner XML like:
<text:p text:style-name="P1">
<draw:frame draw:style-name="fr1" draw:name="graphics1">
<draw:image xlink:href="Pictures/10000000000002680000033579D2BB49.jpg"/>
</draw:frame>
Illustration <text:sequence>1</text:sequence> : Here is the caption text.
</text:p>