Skip to main content
Known Participant
June 7, 2024
Answered

Small Case to Sentence Case in TOC

  • June 7, 2024
  • 1 reply
  • 1590 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 has been closed for replies.
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.

1 reply

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.

Known Participant
June 7, 2024

I don't quite get your question. There are two options that can be applied via either Paragraph or Character styles, 'Small Caps' and "OpenType Small Caps.' They vary slightly but are otherwise consistent, and both appear to use small-caps glyphs (at least, with a font that contains them, such as Minion Pro).

 

The difference seems to be that Small Caps applies only to lowecase letters, leaving the caps as caps, while the opentype version reduces all to small cap glyphs. I think the OP would want to use the latter setting for the chapter headings, but type the actual content in Sentence or Title Case so it appears that way in the TOC.


I am attaching a screenshot to help better explain I am looking for. The typeface is Minion Pro and the small caps is setting the 'All Caps' in smaller size instead of the smaller cases of the alphabets. I hope I am making sense.