Page Layout ⇒ Header Font in ToC and Bibliography
-
- Posts: 15
- Joined: Mon Oct 24, 2011 9:38 pm
Header Font in ToC and Bibliography
I'm about to finish formatting my document. However there is still a thing I would like to fix. I'm using for the chapters headers this font \usefont{OT1}{phv}{b}{n}, and I display the chapter name on left pages and the section name on the right ones.
However, the header of both the TOC and The Bibliography are roman smallcaps and I've no idea how can this be changed..
So my question is: is there any way to change the font on the TOC and bibliography to the same one that I'm using on the chapters heads?
Many thanks in advance for your help and time.
Cheers,
Pablo
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
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Header Font in ToC and Bibliography
sure, that's possible, for example using class features, or the titlesec package, or redefining the macro \@makeschapterhead. Which one to choose, depends on your document. You did not tell us your class yet and how you modify the chapter headings.
Stefan
-
- Posts: 15
- Joined: Mon Oct 24, 2011 9:38 pm
Re: Header Font in ToC and Bibliography
many thanks for your fast answer. As a matter of fact, I'm using a template PhDtemplateLatex I found in http://openwetware.org/wiki/LaTeX_templ ... PhD_thesis. You probably know it. It's quite useful for newbies like me. In any case, I cannot find any documentclass line. I guess it defines its own.
The lines I changed to tweak the chapter heads are:
\renewcommand{\chaptermark}[1]{\markboth{\usefont{OT1}{phv}{b}{n}\selectfont{\thechapter. #1 }}{}}
\renewcommand{\sectionmark}[1]{\markright{\usefont{OT1}{phv}{m}{n}\selectfont\thesection\ #1}}
Originally they were small caps and quite big. The problem is that I do not know if these lines exist for TOC or bibliography nor where to find them.
Millions of thanks for your help and time!
Pablo
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Header Font in ToC and Bibliography
Code: Select all
\cleardoublepage
\markboth{...}{...}
\tableofcontents
Code: Select all
\addtocontents{toc}{\protect\markboth{...}{...}}
Stefan
-
- Posts: 15
- Joined: Mon Oct 24, 2011 9:38 pm
Re: Header Font in ToC and Bibliography
thanks a lot! It worked like clockwork for the TOC, LOF and LOT. I'm almost there, but I'm still unable to do the same for the bibliography and the alphabetical index. Is it possible to tweak those ones too?
Thanks! Cheers,
Pablo
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Header Font in ToC and Bibliography
Stefan
-
- Posts: 15
- Joined: Mon Oct 24, 2011 9:38 pm
Re: Header Font in ToC and Bibliography
I finally got to do it placing the line \markboth{...}{...} inside the bib file and the index file.
Thanks a lot for your help! Cheers,
Pablo