Skip to main content
Known Participant
June 7, 2024
Answered

Small Case to Sentence Case in TOC

  • June 7, 2024
  • 22 replies
  • 1628 views

Hello! 

I am creating a brand guide where the chaper headings are in small caps (e.g. typography) and in the TOC, I need it to be in Sentence Case (e.g. Typography). I am wondering how to achieve this. Thank you!

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer James Gifford—NitroPress

It's picking up the contents of the Chapter Heading paragraph style. 


Okay... so do you have autonumbering on the Chapter Head style? Or are you applying numbering on the TOC style?

 

If the whole TOC string begins with chapter head numbering, the GREP style will have to bypass that to reach the first actual letter. That can get involved, but this should select one digit plus a following white space and ignore it, then apply the uppercase style to the first letter: (?<=\d\t)[\l]

 

I think your combination of styles, styling and text layout might be a little convoluted; this all might work better if it's simplified.

22 replies

James Gifford—NitroPress
Legend
June 7, 2024

It is more or less a glitch that ID pulls in all character styles and spot changes from TOC source paragraphs. I have books where a word is properly bolded or italicized, for example, in a chapter heading, and getting this gloss out of the TOC entry proves nearly impossible.

 

It's possible GREP styles could override character settings, but my recollection is that ID is really stubborn about bringing those styles with the paragraph. The only good solution may be to use a phantom chapter title (1pt white or no-color type) above or below the actual chapter title, and link the TOC to that.

Known Participant
June 7, 2024

I have seen solutions in the community for changing all caps text (by typign in sentence case and applying all caps to the paragraph style) in the spreads to sentence case in TOC, which seems easier to achieve. But ID doesn't have a Small case option to apply to the paragraph style, which is making it harder.

James Gifford—NitroPress
Legend
June 7, 2024

ID supports small caps in paragraph styles; Style menu | Basic | Case setting. 🙂

 

And interesting, at that level the case setting does not come through. This may be a solution but only if the paragraph style sets small caps and not a character style.