How to maintain original figure numbers in pdf document saved from Word 2007 file?
Ok, here's a nice meaty sample document (https://docs.google.com/open?id=0B4qT-cHb903mS3k3bjZoTV95Slk) that I should be able to leave out there just about forever. It's large because it includes CC pictures as sample figures. I'm also including the notes section of it that should have enough information to recreate what I did or at least get you close to solving your issue - the document just provides a "live" example so you can look at field codes, etc. but the important values are documented here.
Chapter titles are formatted as Heading 1, and chapter numbering is done by having the cursor within the first chapter name, going to the Home tab, selecting the multi-level list button/dropdown and selecting a numbering format.
To keep Word from making the Table of Contents into Chapter 1, click into the Contents heading, select the multi-level list button, and change the formatting there to None. I did this after I had already right-clicked on the Notes chapter heading and told it to restart numbering at 1. This was a bit squirrely, as it initially had the chapter numbering in the figures off by one. Inserting a Next Page Section Break (Page Layout tab, Page Setup section, Breaks dropdown) after the Table of Contents then redoing the chapter numbering (e.g. resetting start at 1, etc.) seemed to take care of this after I changed the Heading 1 Style to have a page break before it, which caused the chapter numbering to reset to default including the Table of Contents.
Pictures were simply copied and pasted, then the text wrapping was set to Square to make them float, then they were dragged around a bit. They’re not anchored to spots in the text though they probably should be.
Picture Captions were added by right-clicking the picture and selecting Insert Caption; the caption numbering was set to Automatic and told to include chapter numbers (which is where setting chapter numbering comes in up above).
A bunch of this is actually controlled by Fields, press Alt-F9 to see the field codes. It’s likely worth noting that the field codes for my captions are “Figure {STYLEREF 1 \s}-{SEQ Figure * ARABIC \s 1}", the \s doesn’t appear to be well documented, at least not within the STYLEREF info. Additional information here: http://wordfaqs.mvps.org/styleref.htm
UPDATE: It looks like this MSDN page may be the best reference relevant to this: http://msdn.microsoft.com/en-us/library/aa163918%28v=office.10%29.aspx In particular, the "\s 1" tells the field code to restart the figure numbering at the most recent heading of the specified level (here, level 1).
Related videos on Youtube
Admin
Updated on September 18, 2022Comments
-
Admin over 1 year
I have a Word 2007 document in which the
Figure numbers
andList of Figures
are listed exactly as I want. I generate a pdf (Adobe Reader X, Version 10.1.2) from Word 2007 document using the save as option. TheList of Figures
in the pdf document comes out exactly as present in the Word document, however, when I click on a Figure number in theList of Figures
, I see a different number on the actual Figure than present inList of Figures
.For example, I have this Figure number on
List of Figures
:But the corresponding Figure on Page 61 shows following
Figure number
:Figure number
is becoming4-21
from4-7
because the total number of Figures from Chapters 1 till this Figure are 20. However, I want break in number of Figures between each Chapter i.e. Figures for Chapter 4 should start from4-1
, so the number4-21
is actually4-7
in that case.How can I correct this? Thanks.
-
iglvzx about 12 yearsDo the numbers change when you Print Preview the document in Word?
-
Admin about 12 yearsNumbers change when I save the Word document as pdf from the
save as
option in Word 2007. On saving as pdf, the numbers under the Figures change both in the original Word file as well as the pdf file. However, the numbers inList of Figures
do not change. -
Admin about 12 yearsYes the numbers change during print preview. I have tried converting the word file to pdf through online services, but even the file through their conversion also contains changed numbers. Another anomaly is that the numbers for Chapter 7 do not change. But, wherever Chapter 7 ends, the next Chapter with Figures have changed numbers and their numbering starts with number which is next after Figure number where Chapter 7 ends.
-
fencepost about 12 yearsIs the chapter number ("4-") part of the automated numbering or something that you're manually entering for each caption? Similarly, is your list of figures up-to-date? In earlier versions of Word you sometimes had to force it to manually refresh the numbering for tables of contents, etc. - is that still the case now?
-
Admin about 12 years@fencepost: I am manually entering chapter numbers for e.g.
"4-"
. I did not understand your 2nd point/question though. -
fencepost about 12 yearsOK, so Word may not really know about your chapter numbers - it's just numbering the figures as a single list of figures. Unless you're captioning with a format that includes the chapter number, this seems like expected behavior. I think that the numbering issue you're seeing is because (at least in 2003, details on 2007 seem skimpier) you often had to select the table of contents/figures/index and hit F9 to force a refresh. This may also be relevant: cybertext.wordpress.com/2008/04/27/…
-
fencepost about 12 yearsAlso of note: trickyways.com/2010/04/…, plus in 2007/2010 I believe the table update command is on the Reference tab bar.
-
-
Kinetic about 12 yearsfencepost: Chapter number associated with Figures doesn't increases. It's set at 1 and shows that everywhere.
-
fencepost about 12 yearsRight, but because you put the chapter number in the caption manually instead of using the chapter field code, it's treating the figure number as being for the entire document. If you hit Alt-F9 what does your field code for the figure number in the caption look like?
-
Kinetic about 12 yearsHi fencepost: It looks like this -
{ SEQ Figure\* ARABIC }
. -
Kinetic about 12 yearsfencepost: I pressed Alt-F9 and even the documents which were not opened are changed now and showing code all over the documents wherever Figure is placed. How to revert them back to normal view without field codes?
-
Kinetic about 12 yearsI removed the field codes from some of the documents as follow:
Ctrl+A
thenCtrl+Shift+F9
. However, the field codes are not gone from all the documents. How do I revert the field codes to view normal text in ALL documents? -
fencepost about 12 yearsSorry, was away but it should be Alt-F9 again - it's a toggle between the two values. I think Ctrl-Shift-F9 converts field codes back to fixed text so they'll never update again; I hope that's not the case for what you did here. also, try adding the "\s" shown in my example to your field code - that may take it over to basing on the current chapter.
-
Kinetic about 12 yearsfencepost: Actually, I did do
Ctrl+Shift+F9
and I saw the codes are not updating again i.e. the Figure, Table numbers etc. are static and not updating. Would this be true only for the document in which I usedCtrl+Shift+F9
or in all the word documents? Thanks. -
fencepost about 12 yearsCtrl-Shift-F9 applies only to what was selected when you did it, so it's only in the document you used it in. It'll affect all figure captions, and might affect page and chapter numbering. If you haven't made major changes and it's a long document, you might want to revert to an earlier version - if you're using Dropbox or Crashplan both offer good previous version support; some versions of Windows do some level if configured for it. (and if you're not doing backups, here's a good reminder to start.)
-
Kinetic about 12 yearsfencepost: I think I can convert the Word to pdf by copying the document to another word and disabling the field codes. So in that case the pdf produced would have Figure numbers as mentioned in the Word.
-
Kinetic about 12 yearsfencepost: I think we might have found the answer to my question based on playing around with field codes. Thanks.