Text FormattingBold in section title, but now also bold in TOC

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
dax42
Posts: 11
Joined: Wed Jun 16, 2010 1:07 pm

Bold in section title, but now also bold in TOC

Post by dax42 »

Hi there,

in one of my subsection titles I have a subscript, which did not get turned bold. Hence I used textbf. However, this means that now in the table of contents, this particular subscript is also bold! That just looks weird...

Any idea how I could have it bold in the subsection title, but not in the TOC?
Thanks!
Last edited by dax42 on Fri Oct 22, 2010 8:12 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Bold in section title, but now also bold in TOC

Post by frabjous »

You could use the optional parameter to \subsection:

Code: Select all

\subsection[title to appear to TOC]{title to appear in body}
or there might be other alternatives depending on exactly what's going on here. (In that case, a minimal working example would be helpful.)
dax42
Posts: 11
Joined: Wed Jun 16, 2010 1:07 pm

Re: Bold in section title, but now also bold in TOC

Post by dax42 »

Ha! Sometimes the easiest solutions just won't come to mind.
Thanks!
Post Reply