File Object Captions Without Labels
Instead of using the "caption" property of the File object, you can enter the caption as Topic text. This way you won't get the figure number or label and it also allows you to display the captions in your Winhelp and HTML outputs if you wish - if you don't want the captions in your other outputs, you can apply a style to the caption text that is set to only appear in your Word output. Note that the drawback of this approach is the caption is no longer tied to the graphic – so you'd need to enter it each time you added the graphic to a topic.
Alternatively, if you don't like the preset "Figure", Equation", or "Table" labels, keep the captions and then use an AfterPublish macro to loop through the document and remove the label and figure numbering. The macro required would be something like this:
|
|
|
Sub Macro1()
|
|
Selection.Find.ClearFormatting
|
|
Selection.Find.Style = ActiveDocument.Styles("Caption")
|
|
Selection.Find.ParagraphFormat.Borders.Shadow = False
|
|
Selection.Find.Replacement.ClearFormatting
|
|
With Selection.Find
|
|
|
.Text = "Figure*: "
|
|
|
.Replacement.Text = ""
|
|
|
.Forward = True
|
|
|
.Wrap = wdFindContinue
|
|
|
.Format = True
|
|
|
.MatchCase = False
|
|
|
.MatchWholeWord = False
|
|
|
.MatchAllWordForms = False
|
|
|
.MatchSoundsLike = False
|
|
|
.MatchWildcards = True
|
|
End With
|
|
Selection.Find.Execute Replace:=wdReplaceAll
|
End Sub
|
|