TOC, erase the fullstop?

Learn / Forums / General InDesign Topics / TOC, erase the fullstop?

Viewing 5 reply threads
  • Author
    Posts
    • #1238193
      Ilija Lazarevic
      Participant

      Hello to everyone in the commmunity,

      I have a question concerning the TOC:

      – in the company I work for we use a periiod at the end of a chapter title, to emphasize it, for example:
      Invest smart.

      But in the TOC I don’t want Indesign to take over thew period. Is there a solution to this in Indesign, without having to click and erase the periods / applying different paragraph style only to them?

      I would appreciate your support, stay healthy!
      Ilija

    • #123821

      You could use a nested style within your paragraph style where you have the character style set to no colour. That would mean the period is still there but it is not visible.

    • #123822
      Ilija Lazarevic
      Participant

      How can I do that though? How can I set a nested style only for the LAST character in the row?

    • #123823
      David Blatner
      Keymaster

      You could create a character style (I usually call it “disappear”) that sets the punctuation to None color (and maybe make it really small). Then apply that character style using GREP Styles with this: [[:punct:]]\s*?$
      That will find any punctuation at the end of a paragraph, even if there is a space (or more than one) after it.
      More on grep styles and disappearing here:

      5 Cool Things You Can Do with GREP Styles

    • #123845
      Ilija Lazarevic
      Participant

      Hallo David,

      thank you for your answer. I watched your video with the “dissapear” character style. But this GREP you sent didn’t work, maybe I made a mistake somewhere. I have found a solution for this specific problem, with this specific GREP: \.(?=~%), erasing all the dots that appear before a sixth squad. But it would of course be cool if I had a GREP that erases any puntuation at the end of the paragraph …

      It’s maybe important to mention that the paragraph style it a part of a TOC, which has this structure:

      1.- tab – Chapter Title(with the period) – sixth quad – Right indent Tab sixht quad – Page number

      I hope you understand the structure well.

      Many greetings, stay healthy
      Ilija

    • #1238774
      Peter Kahrel
      Participant

      Look again at David’s expression, where he has a code for ‘any punctuation’. Combine that with yours and you get [[:punct:]](?=~%)

Viewing 5 reply threads
  • You must be logged in to reply to this topic.
>