Hi! I have the following code for my chapters:
\chapter[shortversion]moretext]{thelooooooooooooongversion}
As you may notice I got a square bracket in the short version. That means that the "moretext" won't be in the TOC. How do fix it so it will be in the TOC?
General ⇒ Square Bracket in Chapter Name
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Square Bracket in Chapter Name
In such cases you need additional grouping by curly braces.
Best regards and welcome to the board
Thorsten
Code: Select all
\chapter[{[Short Version] for List Entry}]{Long Version for actual Chapter Title}
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Square Bracket in Chapter Name
Thank you so much! So easy - why didn't i think of that? 
