General ⇒ Table of contents problem
Table of contents problem
Hey!!!
I'm doing my thesis in LaTex, I use TexnicCenter as editor. I have defined the font size to be \Large for each chapter heading but when I create the table of contents the Heding are larger than the numbers. I would like all the table to be in 12pt (now the number are in 12 pt but the heading are in 14pt) any idea how to change this?
I would also like to change the font size of the Contents, list of figures and list of tables titles
Thanks!!
I'm doing my thesis in LaTex, I use TexnicCenter as editor. I have defined the font size to be \Large for each chapter heading but when I create the table of contents the Heding are larger than the numbers. I would like all the table to be in 12pt (now the number are in 12 pt but the heading are in 14pt) any idea how to change this?
I would also like to change the font size of the Contents, list of figures and list of tables titles
Thanks!!
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Table of contents problem
I try to figure out how (and why) you are doing this, because LaTeX does the right choice automatically. To make the problem a bit clearer, please provide a minimal working example (MWE) with your settings and explain through this MWE what has to be done to fit your ideas.alcr wrote:[...] I have defined the font size to be \Large for each chapter heading but when I create the table of contents the Heding are larger than the numbers. [...]
Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Table of contents problem
Well I'm kind of new in Latex and I'm just trying to fix the format so it fits with the one at my department. They ask to have chapter headings centered and in Arial 14pt so what i did to center them and remove the word "chapter" was:
\makeatletter
\renewcommand*\@makechapterhead[1]{%
{\parindent \z@ \raggedright \normalfont
\center\Large\bfseries
\ifnum \c@secnumdepth >\m@ne
\thechapter\space
\fi
#1\par\nobreak
\vskip 20\p@
}}
\makeatother
\begin {document}
\tableofcontents
\include{chapter1}
And then in to have them in font size 14pt in each chapter I did this
\chapter{\Large{Chapter 1}}
as a result the headings are ok now but the table of contents look weird since the number are smaller than the headings
thanks
Alejandra
\makeatletter
\renewcommand*\@makechapterhead[1]{%
{\parindent \z@ \raggedright \normalfont
\center\Large\bfseries
\ifnum \c@secnumdepth >\m@ne
\thechapter\space
\fi
#1\par\nobreak
\vskip 20\p@
}}
\makeatother
\begin {document}
\tableofcontents
\include{chapter1}
And then in to have them in font size 14pt in each chapter I did this
\chapter{\Large{Chapter 1}}
as a result the headings are ok now but the table of contents look weird since the number are smaller than the headings
thanks
Alejandra
- Stefan Kottwitz
- Site Admin
- Posts: 10320
- Joined: Mon Mar 10, 2008 9:44 pm
Table of contents problem
Hi Alejandra,
welcome to the board!
Instead of redefining internal macros of the document class you could use the titlesec package. Try this compilable example:
Have a look at the titlesec documentation for its features. If you should have further questions just let us know.
Stefan
welcome to the board!
Instead of redefining internal macros of the document class you could use the titlesec package. Try this compilable example:
Code: Select all
\documentclass[a4paper,10pt]{report}
\usepackage{titlesec}
\titleformat{\chapter}{\centering\normalfont\Large\bfseries}{\thechapter}{1em}{}
\begin{document}
\tableofcontents
\chapter{Introduction}
\end{document}
Stefan
LaTeX.org admin
Re: Table of contents problem
Thanks Stefan, I did what you suggested and i worked, but now i have a very large space on top of the title and I don't want that, in the documentation it is mentioned that for spacing the comand compact should be used, however I don't know where to place it.
On the other hand I still have the problem with the table of contents which keep having the number smaller that the titles
thanks
Alejandra
On the other hand I still have the problem with the table of contents which keep having the number smaller that the titles

thanks
Alejandra
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Table of contents problem
As described in the titlesec documentation, this is not a command but a package option.alcr wrote:[...] but now i have a very large space on top of the title and I don't want that, in the documentation it is mentioned that for spacing the comand compact should be used, however I don't know where to place it. [...]
Code: Select all
\usepackage[compact]{titlesec}
Show this behaviour through a complete MWE as requested earlier. Follow carefully the instructions on the page behind the link in my first reply.alcr wrote:[...] On the other hand I still have the problem with the table of contents which keep having the number smaller that the titles [...]
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Table of contents problem
I have the same problem. My chapter titles are way too large, so I reduced them a bit. However not they show up very large in the TOC. I tried to "normalsize" the TOC, but it doesn't work.
{\normalsize \tableofcontents}
\chapter{\LARGE{chapter title}}
{\normalsize \tableofcontents}
\chapter{\LARGE{chapter title}}
Re: Table of contents problem
Hi Melinda,
Could you exact show what your problem is, with a Minimal Working Example?
Did you already read the post of Stefan_K? There is also a clear way of solving the problem, in my opinion.
Could you exact show what your problem is, with a Minimal Working Example?
Did you already read the post of Stefan_K? There is also a clear way of solving the problem, in my opinion.