Andrew,

Ordinarily I hate top-posting over an unedited post, but yours was such a remarkable answer that I need to depart from my usual policy of replying in interleaved comments to tightly-edited, focused thoughts. It was particularly remarkable because it is concurrent with your reply to another question I had, about enclosing a list within a paragraph, in which you joined Joe Smith's advice to put the list in a frame anchored as a character. Why remarkable? Because both cases had led me to some doubt about the adequacy of Writer's object-oriented model, and in both cases you have finessed the model, beyond the "official" tools, by making your own tools. I have not decided whether such outside-the-box approaches make me further doubt the document model or make me respect its robustness, but they have sure given me something to think about...

They have also provided relatively efficient ways of handling those situations. In this case, I'm not sure whether your alternative approach to captioning is one for which I should edit my current document (a lot of pictures and captions), but it certainly looks like the way forward, and should be included in the "Working with Graphics" document.

Thank you,
John


In a message dated 2009.09.27 12:18 -0500, Andrew Douglas Pitonyak wrote:
On 09/27/2009 03:06 AM, John Kaufmann wrote:
In a document I wrote are a large number of illustrations, most with captions. It seems that Writer always wants to put a frame around any picture with caption and, according to the OO documentation ("Working with Graphics"), any picture inside a frame should have "To Frame" among its Anchor options. But only half of my pictures with frames have that option and, after studying them, I'm still unable to see the difference between those that have and those that do not have the option - even pictures side by side can be different. Can anyone tell me what to look for to normalize this?

And - bonus question - since Writer believes that a picture with caption is lost without a frame (and thus supplies one automatically), why would the picture ever *not* be anchored to the frame?

I do not have an answer, but I do have some comments.

(1) I never use the captioning as performed by OOo because there are problems exporting these these to Word documents and possible other formats. I will occasionally place an image in a frame, but only rarely (say when I want a specific text flow around the image).

- I have a figure paragraph style and a figure caption paragraph style.
- I always place my caption under the figure.
- The figure paragraph style is set to always stay with the caption paragraph style (so they do not split across pages).

I anchor the image as a character on a line by itself (read, in its own paragraph). I then use the figure paragraph style to format as appropriate.

I manually insert the figure numbering by inserting a field with the value "Figure + 1" for the value. So, the caption reads as:

Figure <Figure + 1>. Figure description....

(2) The image is inserted into a text object. A frame has its own text object. It is not important that the image is attached to the frame, it is important that the image is displayed appropriately relative to the caption. In other words, you can attach it to anything that will keep it in the frame and either directly before or after the caption (as you desire). It would be silly to provide a caption and then anchor the image to the page so that the caption can move separately from the image. There was a bug related to pictures in frames with specific anchors, which caused some of my documents to become unusable. I believe that this bug was fixed some time back, but I went through and removed all my images from frames in all of my primary documents when this was discovered. I do not remember what the OOo Authors format is (it has changed over the years).

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to