0

i'm new to latex and i'm wondering why the toc font size does change when i change the chapter font size.

For example. what i do is:

\chapter{\Large{This is my chapter}}

and this part of code does effect the font size of this chapter in my toc. But why? How can i change the chapter font size but not the font size of this chapter in my toc?

(btw: sorry for my bad english)

Hope someone can help. Thanks guys!

Schweinebacke
  • 26,336
mtzE
  • 23

2 Answers2

2

I suggest that you use the titlesec package for this purpose. More instance, you can do something like:

\documentclass{book}
\usepackage{titlesec}
\titleformat{\chapter}[display]
  {\Large\bfseries}{\LARGE\thechapter}{1ex}
  {\vspace{2ex}}
\begin{document}
\tableofcontents
\chapter{Introduction}
\end{document}
1

The reason for this behaviour is that proceeding this way, Large is written to the .toc file, that \tableofcontents reads.

If you're using a standard class that with titlesec and just write in your preamble:

\usepackage{title}
\titleformat*{\chapter}{\Large}
Bernard
  • 271,350
  • how do i change the font size of only one specific chapter title? I don't want to change all of them – mtzE Jul 18 '17 at 11:28
  • You can use \titleformat* in the document body. To make it local, enclose the command and the chapter within a \begingroup\endgroup. – Bernard Jul 18 '17 at 11:40
  • Thanks Bernard! But @Mico solved my problem in a comment above :) – mtzE Jul 18 '17 at 11:41