Text FormattingPrevent Citation in Heading from Appearance in ToC

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Scorpion
Posts: 12
Joined: Sun May 05, 2013 10:37 pm

Prevent Citation in Heading from Appearance in ToC

Post by Scorpion »

Hey!

I cited a complete section, so i did the following.

Code: Select all

\section{sectionX \cite{XXX}}
But now the citation also appears in the ToC, but I don't want this! How can I prevent that? Same problem with the subsection. :(


Best,
Johannes

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Prevent Citation in Heading from Appearance in ToC

Post by cgnieder »

Hi,

Use the optional argument of \section. It goes like this.

Code: Select all

\section[goes into ToC and header]{is the actual heading}
The same holds for all other sectioning commands.

Regards
site moderator & package author
Scorpion
Posts: 12
Joined: Sun May 05, 2013 10:37 pm

Re: Prevent Citation in Heading from Appearance in ToC

Post by Scorpion »

Oh, I'm so stupid. Thank you very very much!
Post Reply