Results 1 to 5 of 5
  1. #1
    2 Star Lounger
    Join Date
    Mar 2007
    Location
    Montreal, Quebec
    Posts
    125
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Using Office XP.
    How can I insert a cross reference to a caption without including the label.
    I want to insert a reference to "Figures 1, 2 and 4" but can't seem to find a way to not put "Figure" with the numbers.
    I tried to modify the field code and "supress all non-delimiter characters" without success.
    Please help.
    Tks.
    Johanne Champagne
    Montreal (Quebec) CANADA

  2. #2
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts
    It looks like there's nothing available within the built-in options for cross-references to captions, that will allow you to do that.

    There is a workaround, that would be a pain to implement (and would have one very big drawback), but that might work in a limited capacity:

    For every Figure caption in the document (or at least, for those you need to be able to set cross-refs to): Select just the number part of the caption. Then go to Insert > Bookmark, and add a bookmark by typing in a name that tracks the caption number, for example "Fig1".

    Then when you add the cross-references, add the cross-refs to the bookmarks, rather than the captions - this would let you get a result like "Figures 1, 2 and 4".

    The big drawback is that if you ever made any edits that changed the order of the captions, you could update the caption numbers automatically by updating the fields, but the bookmarks would still be stuck referring to the previously-assigned number. [Editing my edit - after yet more testing, I think the originally-identified drawback stands. - GF]

    Gary

  3. #3
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,055
    Thanks
    2
    Thanked 417 Times in 346 Posts
    Quote Originally Posted by Gary Frieder View Post
    It looks like there's nothing available within the built-in options for cross-references to captions, that will allow you to do that.

    There is a workaround, that would be a pain to implement (and would have one very big drawback), but that might work in a limited capacity:
    ...

    Gary
    Hi Gary,

    Why make it so difficult?

    Simply insert the cross-reference in the normal manner, then select the cross-reference and press Shift-F9 to expose the field code, which will look something like:
    { REF _Ref218925266 \h } or { REF _Ref218925266 }
    Simply change this to:
    { REF _Ref218925266 \# 0 \h } or { REF _Ref218925266 \# 0 }
    by adding the '\# 0' - before the \h (if it appears). When you're done, press F9 again to update the field.

    The \h switch in the above example indicates a cross-reference inserted as a hyperlink; if you chose not to hyperlink the cross-reference, the field will not have this switch.

    See: 'The brilliant way'
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  4. #4
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts
    Quote Originally Posted by macropod View Post
    Why make it so difficult?
    Because we mere mortals lack your insight into bending fields to your will? (at least if I came up with a similar solution as Suzanne Barnhill's, I figure I'm in good company!) Very cool, thanks.

    Gary

  5. #5
    2 Star Lounger
    Join Date
    Mar 2007
    Location
    Montreal, Quebec
    Posts
    125
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The \# 0 worked just fine.
    Tks guys.
    jc
    Johanne Champagne
    Montreal (Quebec) CANADA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •