Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Non breaking space in cross reference?

Return to Member Forum

  • Author
    Posts
    • #82161

      We have several maps in a long document, each has a caption that is styled with a style that automatically numbers them sequentially. We then refer to those captions in the text with cross references. The cross references are set to “paragraph number.” That yields “Map X.X.” The caption style is defined as “Map ^H.^1: .”
      Any way to replace the normal space with a non-breaking space either in the caption style or in the cross reference style/ specification?
      TIA,
      Dave

    • #82165
      Peter Kahrel
      Participant

      Unfortunately you can’t set a fixed space in the automatic number. I’d have thought that “Map^S^H.^1:.” would do it, but it doesn’t. You could do a Grep replacement, looking for (?<=Map) (?=\d) and replacing with ~S. In the Find Format panel, set the character and/or paragraph style used for cross-reference (if any).

    • #101789

      Probably a long shot, but I have come back to see if any recently added functions or changes to InDesign make what I am describing above possible? Insering a non-breaking space into an automatically generated cross reference.

    • #101816

      Maybe create a character style that only uses ‘No Break’, and use a GREP style to apply it to the text?

    • #101824

      Hi,

      Sorry to not understand this question but if you want a non-breaking space in a cross-reference based on an auto-numbering, just [and simply] include it …
      in the auto-numbering!
      It’s not because the “non-breaking space” is not included in the para settings window pop-up that you can’t play with it! …
      Always try and think different! … Nothing more!*

      Best,
      Michel, from FRIdNGE

      [* I don’t think things were different in 2016! ]

    • #101846
      Peter Kahrel
      Participant

      Michel — Did you try including a non-breaking space in the Number field of the Numbering Style panel of the paragraph style window? If you got it to work, please share.

      Peter

    • #101847

      That’s what I said! …

      Just copy a non-breaking space from the current text and paste it! …

      Best,
      Michel, from FRIdNGE

    • #101848
      Peter Kahrel
      Participant

      Ah, pasting a fixed space there works indeed — clever, but far from obvious, mon brave. Why didn’t you mention pasting a character there in the first place?

      P.

    • #101849

      Peter,

      I knew my laconic answer, as in the past, would spark your curiosity, especially about an answer you gave yourself 2 years ago! … ;-)
      [I’ve used this same trick to insert flush/non-breaking spaces in a javascript array!]

      See you next time! …

      Best,
      Michel, from FRIdNGE

    • #101859

      I am a little confused by this suggestion – within my paragraph style options, in the Bullets and Numbering options, in the Numbering Style section, in the Number Field I have tried to paste a non-breaking space and that does not seem to effect the breaking. I’m not sure if it should show up, but it also does not then show up as a non breaking space when the resulting text is then viewed in hidden character mode. Am I pasting it in the wrong spot?

    • #101862

      No! … And you won’t see with “hidden chars”! … But if you associate to this numbering a cross-ref., you’ll see it!

      Best,
      Michel, from FRIdNGE

    • #101871

      Thank you all, this worked – just had to update existing cross references after the style was changed.

Viewing 11 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads