caption editing

Hi there,

I made the mistake to have one image as Drawing and another one as
Illustration. Now I want to change the Drawing into Illustration. The
Caption entry in the Insert menu is only for creating a new caption -
how can I get a similar menu for editing a caption?

- Gergely

Hi :slight_smile:
You can just click into the text of an existing caption and then edit it as normal text. 
Regards from
Tom :slight_smile:

But you will end up with numbering not updated automatically, i.e. will got
two "Illustration 1".

There is option to edit field reference, but I was not able to get it working.
Perhaps I was doing something wrong.

I'm not sure there is any easy direct method. You can edit the text of a caption in place. You can even edit the headword "Drawing" to "Illustration" in place - but this does not modify the associated field, so caption numbering will no longer behave correctly: your new illustration will be numbered as if it were still a drawing. That's your problem, of course.

Here's a workaround:
o Click in the image to select it: you will see the eight green handles. Make sure you select the image and not the frame that contains the image and its caption.
o Cut the image (Edit | Cut or Ctrl+X).
o Click the edge of the frame that now contains just the caption to select it.
o Press Backspace to delete the frame.
o Paste the cut image (Edit | Paste or Ctrl+V).
o Now create a new "Illustration" caption for the new image.
o If necessary, press F9 to update the fields to renumber the illustrations automatically.

I trust this helps.

Brian Barker

I don't think there is any menu.
Good news: your problem can be solved.
Bad news: this is not straightforward way.

Let's assume you have two images with captions from different ranges and you
want them to be in one range ("Illustration").
Go to View → Field Names (or press Ctrl+F9). Instead of number you will see
text "Number range <Drawing or Illustration>". Right click on that text, and
select "Fields...".

In lower part of new window you will see "Value field". One will have
"Illustration+1" and second will have "Drawing+1". You want both fields in
captions to have the same value, e.g. "Illustration+1". You may want to copy
and paste it to be sure there is no spelling mistake.

Click "OK" to close that window. LO (at least 3.4.6) does not update field
text, so you may think that nothing has changed. But if you press Ctrl+F9
again, you will see that second number is greater than first one.

All you have to do now is manually change "Drawing" to "Illustration" in
second caption, as Tom said.

You may want to make sure that there is checkbox checked in
Tools → Options → Appearance → Field shadings
Then all fields (automatically updated text) will have different background
color. This way you may be sure which text is safe to remove and which has
special meaning (it is safe to remove, too, but may break your numbering).

Replace the current Drawing caption with a new Illustration
caption.
     Steps to do this:
1) Place the cursor at the end of the Drawing caption.
2) Insert a new Illustration caption.
3) Erase the Drawing caption.

     This works whether you inserted the image in a frame or used
AutoCaption.

--Dan

Sorry, but this doesn't work. The new field will read "Drawing = Illustration+1" - not "Illustration = Illustration+1", as it needs to. This means that the modified field will give the correct illustration number for this illustration, but the next illustration will repeat the same number (and any later illustrations have numbers one too small), and any later drawings will in general have wrong numbers too. That's why there is a problem.

Brian Barker

You are right. I checked only for two images and it seemed to be working. Too
bad it is really not.

Perhaps workaround presented in your post is the only way to achieve what
Gergely was asking (apart from editing content.xml in odt file, of course).
Don't you think this is serious UI issue? Maybe it should be raised on UI list
or reported as bug?

Is it really necessary to remove also frame?

My test case: three images with captions. First is Illustration 1, second is
Drawing 1 and third is Illustration 2. I have removed Drawing 1 caption inside
frame; only text, image and frame was still there. Then I selected image and
added "Illustration" caption. Effect: first image had Illustration 1, second
Illustration 2 and third Illustration 3.
Then I inserted fourth image and it had caption Illustration 4.

It seems to be desired behavior, although my test case was so simple, I might
have missed something important here (again :frowning: ).

I wonder what happened to my reply sent 12 hours ago? Here it is
again:

     Replace the current Drawing caption with a new Illustration
caption.
     Steps to do this:
1) Place the cursor at the end of the Drawing caption.
2) Insert a new Illustration caption.
3) Erase the Drawing caption.

     This works whether you inserted the image in a frame or used
AutoCaption.

--Dan

Hi :slight_smile:
+1
Well, kinda.  I don't think it's a serious UI problem but i still think it would be good to create a "feature request" for it.
Regards from
Tom :slight_smile:

Is it really necessary to remove also frame?

Possibly not.

My test case: three images with captions. First is Illustration 1, second is Drawing 1 and third is Illustration 2. I have removed Drawing 1 caption inside frame; only text, image and frame was still there. Then I selected image and added "Illustration" caption. Effect: first image had Illustration 1, second Illustration 2 and third Illustration 3. Then I inserted fourth image and it had caption Illustration 4.

If I do this, I end up with a second frame containing the first frame, which is slightly messy. But yes: the numbering works and this is another workaround.

Brian Barker

PS: Apologies that my mail client refuses to reproduce your L-stroke.