TOC, erase the fullstop?
Learn / Forums / General InDesign Topics / TOC, erase the fullstop?
- This topic has 5 replies, 4 voices, and was last updated 4 years ago by Peter Kahrel.
-
AuthorPosts
-
-
April 14, 2020 at 2:13 am #1238193Ilija LazarevicParticipant
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 -
April 14, 2020 at 4:12 am #123821Dieter StockertMember
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.
-
April 14, 2020 at 4:28 am #123822Ilija LazarevicParticipant
How can I do that though? How can I set a nested style only for the LAST character in the row?
-
April 14, 2020 at 6:00 am #123823David BlatnerKeymaster
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: -
April 15, 2020 at 6:43 am #123845Ilija LazarevicParticipant
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 -
April 17, 2020 at 3:28 am #1238774Peter KahrelParticipant
Look again at David’s expression, where he has a code for ‘any punctuation’. Combine that with yours and you get
[[:punct:]](?=~%)
-
-
AuthorPosts
- You must be logged in to reply to this topic.