General ⇒ Table of contents problem
Table of contents problem
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!!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- 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¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Table of contents problem
\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: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Table of contents problem
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
Re: Table of contents problem
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 [...]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Table of contents problem
{\normalsize \tableofcontents}
\chapter{\LARGE{chapter title}}
Re: Table of contents problem
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.