How to maintain original figure numbers in pdf document saved from Word 2007 file?

2

1

I have a Word 2007 document in which the Figure numbers and List 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. The List of Figures in the pdf document comes out exactly as present in the Word document, however, when I click on a Figure number in the List of Figures, I see a different number on the actual Figure than present in List of Figures.

For example, I have this Figure number on List of Figures:

enter image description here

But the corresponding Figure on Page 61 shows following Figure number:

enter image description here

Figure number is becoming 4-21 from 4-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 from 4-1, so the number 4-21 is actually 4-7 in that case.

How can I correct this? Thanks.

user42307

Posted 2012-04-15T22:19:03.363

Reputation:

Do the numbers change when you Print Preview the document in Word? – iglvzx – 2012-04-17T22:56:17.573

Numbers 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 in List of Figures do not change. – None – 2012-04-17T23:02:54.010

I know that. I am asking you if they change when you print or print preview. If they do not change, you could use a virtual printer (i.e. Print to PDF) as workaround. – iglvzx – 2012-04-17T23:04:59.650

1Yes 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. – None – 2012-04-17T23:10:00.023

Is 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? – fencepost – 2012-04-17T23:31:18.997

@fencepost: I am manually entering chapter numbers for e.g. "4-". I did not understand your 2nd point/question though. – None – 2012-04-18T01:08:07.410

1

OK, 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: https://cybertext.wordpress.com/2008/04/27/word-2003-automated-tables-of-figures/

– fencepost – 2012-04-18T04:24:07.330

Also of note: http://www.trickyways.com/2010/04/how-to-create-table-of-figures-in-word-2007-2010/, plus in 2007/2010 I believe the table update command is on the Reference tab bar.

– fencepost – 2012-04-18T04:27:29.073

@fencepost: Thanks for the information. I think it's true that Word is numbering the figures as a single list of figures which is evident through the numbers of Figures. I would like to know if there is any way I can obviate Word to change the figure numbers while converting the Word file to pdf? Also, regarding your question about Figure updating, you can update List of Figures, Tables etc. by right clicking and choosing Update Field. – None – 2012-04-19T01:45:11.103

Answers

0

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).

fencepost

Posted 2012-04-15T22:19:03.363

Reputation: 1 086

fencepost: Chapter number associated with Figures doesn't increases. It's set at 1 and shows that everywhere. – None – 2012-04-21T06:32:26.017

Right, 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? – fencepost – 2012-04-21T23:14:01.600

Hi fencepost: It looks like this - { SEQ Figure\* ARABIC }. – None – 2012-04-21T23:55:57.900

fencepost: 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? – None – 2012-04-22T00:04:00.290

I removed the field codes from some of the documents as follow: Ctrl+A then Ctrl+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? – None – 2012-04-22T00:11:07.943

I found out how to toggle off field codes. It was scary man. If you suggest to change something which is permanent you should inform the way to revert back to original condition as well. Phew!! – None – 2012-04-22T00:17:47.963

1Sorry, 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. – fencepost – 2012-04-22T02:49:01.610

fencepost: 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 used Ctrl+Shift+F9 or in all the word documents? Thanks. – None – 2012-04-22T05:00:30.513

Ctrl-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.) – fencepost – 2012-04-22T06:01:56.970

fencepost: 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. – None – 2012-04-22T20:55:28.330

fencepost: I think we might have found the answer to my question based on playing around with field codes. Thanks. – None – 2012-04-22T21:18:32.623

0

The problem described is occurring because word automatically updates the caption field codes before printing/saving. When this happens, the numbers that are assigned to each caption are sequentially assigned; ie: 1, 2, 3, 4... etc. This happens even if you manually assign them to 1, 2a, 2b, 3... In this case, when you hit "print", you'll end up with 1, 2a, 3b, 4... and so on.

As a workaround you can restart the numbering by toggling field codes, inserting a "\r Number you want to restart from", and then updating the field. You should no longer experience the problem you were having.

This workaround is explained in greater detail in this Microsoft Knowledgebase here: https://support.microsoft.com/en-us/kb/145508

isktarum

Posted 2012-04-15T22:19:03.363

Reputation: 1