This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this questionI have MS Word document which contains around 50 images with caption.
My problem is if I am inserting images in between (say inserting image after image 21) then the image is not taking the cap开发者_C百科tion on its own(new image must be inserted with caption 22).
I need to manually update number for all the images after the newly added image. Can I automate it?
I assume you are using the caption feature of Word, that is, captions were not typed in as normal text, but were inserted using Insert > Caption (Word versions before 2007), or References > Insert Caption (in the ribbon of Word 2007 and up). If done correctly, the captions are really 'fields'. You'll know if it is a field if the caption's background turns grey when you put your cursor on them (or is permanently displayed grey).
Captions are fields - Unfortunately fields (like caption fields) are only updated on specific actions, like opening of the document, printing, switching from print view to normal view, etc. The easiest way to force updating of all (caption) fields when you want it is by doing the following:
- Select all text in your document (easiest way is to press ctrl-a)
- Press F9, this command tells Word to update all fields in the selection.
Captions are normal text - If the caption number is not a field, I am afraid you'll have to edit the text manually.
- Select whole document (Ctrl+A)
- Press F9
- Save
Should update the figure caption automatically.
My question is tho, how can one also 'assign' referenced figures '(Fig.4)' in the text to do the same thing - aka change when an image is added above it?
EDIT: Figured it out.. In word go to Insert and Cross-ref and assign the ref. Then Ctrl+A and F9 and everything should sort itself out.
Office 2007
Right click the figure, select Insert Caption, Select Numbering, check box next to 'Include chapter number', select OK, Select OK again, then you figure identifier should be updated.
精彩评论