Text FormattingShort Headings in Header, Full Headings in ToC

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
clairepop
Posts: 2
Joined: Mon Jul 25, 2011 2:20 pm

Short Headings in Header, Full Headings in ToC

Post by clairepop »

could anybody tell me how to use \thechapter in the table of contents rather than \chaptermark?

The problem I have is that I want to use short titles across the top of each page, but full titles in the toc. I'm using \pagestyle{fancyplain} \usepackage[]{tocstyle}
\usetocstyle{classic}

thanks for any help, Claire
Last edited by clairepop on Thu Jul 28, 2011 6:38 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.

clairepop
Posts: 2
Joined: Mon Jul 25, 2011 2:20 pm

Short Headings in Header, Full Headings in ToC

Post by clairepop »

I have now solved this using:

Code: Select all

\pagestyle{headings}
\makeatletter
\newcommand*\std@chapter{}
\let\std@chapter=\@chapter
\renewcommand*\@chapter[2][]{\std@chapter[#2]{#2}\chaptermark{#1}}
\makeatother
Last edited by Stefan Kottwitz on Mon Jul 25, 2011 6:22 pm, edited 1 time in total.
Post Reply