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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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