On 03/04/2012 12:22 AM, William Seager wrote:
Hi all. This is more a latex problem than a lyx problem, but since
I'm using lyx I thought I'd ask here.
I have a complex document in which the table of contents
spans several pages.
My problem is that in the header the name of the table of contents,
(which is "Contents") appears capitalized and emphasized (italics).
What document class is this? What page style are you using? Do you want
to change how this looks only in the TOC, or in the rest of the document
as well?
In book.cls, this would be controlled by two things: the definition of
the page style, and this:
\newcommand\tableofcontents{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\contentsname
\@mkboth{%
\MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
\@starttoc{toc}%
\if@restonecol\twocolumn\fi
}
As you see, the \@mkboth command is what's giving you the uppercase. But
the italics are probably coming from the page style.
Richard