Page LayoutBold Math Font in ToC Entries for Sections

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Jojoba86
Posts: 6
Joined: Fri Dec 09, 2011 7:52 pm

Bold Math Font in ToC Entries for Sections

Post by Jojoba86 »

I am having a problem with using maths in the section names. For the section names themselves the following code works to give me the appropriate bold style,

Code: Select all

\subsection{Copper \texorpdfstring{$\boldsymbol {K_\alpha}$}{Ka} Imager}
while not upsetting hyperref with maths in PDF bookmarks.

However, this also has the undesirable effect of making $K_\alpha$ bold in the contents line entry.

Is there any easy way around this, for example is there away of putting in a custom contents line entry, while still keeping the section numbering going?
Last edited by Jojoba86 on Fri Dec 23, 2011 7:14 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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Jojoba86
Posts: 6
Joined: Fri Dec 09, 2011 7:52 pm

Bold Math Font in ToC Entries for Sections

Post by Jojoba86 »

Oh, nevermind, I see it is quite easy really,

Code: Select all

\subsection[Copper \texorpdfstring{$K_\alpha$}{Ka} Imager]{Copper $\boldsymbol {K_\alpha}$ Imager}
gives the desired effect.
Post Reply