![]() |
|
#1
|
||||
|
||||
![]()
It seems to me that you want Word to include the "current" heading number with a caption? In other words, if a Figure follows a Heading 2 whose numbering is "1.2" you want the caption to be "Figure 1.2-1" and if the figure follows a Heading 1 whose number is 4 you expect the number to be "Figure 4-1"? Unfortunately, Word isn't that clever...
You have to pick a specific level to include with the chosen caption label.
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
#2
|
|||
|
|||
![]() Quote:
|
#3
|
|||
|
|||
![]()
For captions, each label is linked to a single heading style, and the chapter numbering for the caption is obtained from the linked heading style.
If you want your captions to follow a legal heading numbering system then you will have to create a set of caption labels that link a set of caption labels to the relevant heading styles. E.g.heading Figure links to Heading 1 Figure2 links to Heading 2 Figure3 Links to Heading 3 Figure4 links to Heading 4 and likewise for equations equation links to Heading 1 equation2 links to Heading 2 equation3 links to Heading 3 equation4 links to Heading 4 You then need to apply the caption label that reflects the preceding heading style. Alternatively write a couple of macros that look backwards from the caption insertion point and inserts the relevant equation or figure caption based on the first heading style that is found. You'll probably also want a macro that can scan through existing text and revise captions based on the preceding heading, just in case after editing the heading level has changed. You create new labels using References.Insert Caption.New Label You link to the appropriate heading level by selecting (from the 'Insert Caption' dialog box) Numbering Tick the include numbering box Use the pull down menu to select the heading style that will provide the chapter numbering for your figure/equation caption label. |
#4
|
|||
|
|||
![]() Quote:
Anyway thanks again. |
#5
|
||||
|
||||
![]() Quote:
As I wrote, you can't do that via the Caption dialog box. The heading level you choose applies to the whole document (for the selected caption). Any attempt to do what you are asking would require some sort of workaround.
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
List of figures with several labels (caption) - Table of Figures sorting | ibra_ca | Word | 2 | 10-11-2017 07:02 AM |
![]() |
JJH | Word | 4 | 04-14-2016 08:39 AM |
Automatic table of figures includes one of the figures, not just the caption - help! | sarahlt | Word | 1 | 09-28-2014 09:34 AM |
![]() |
NoBolts | Word | 1 | 12-08-2012 09:58 PM |
Numbering equations | Yonnif | Word | 1 | 12-01-2010 03:37 AM |