GeneralTable of contents problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
alcr
Posts: 4
Joined: Thu Aug 14, 2008 9:56 am

Table of contents problem

Post by alcr »

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!!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Table of contents problem

Post by localghost »

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. [...]
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.


Best regards and welcome to the board
Thorsten¹
alcr
Posts: 4
Joined: Thu Aug 14, 2008 9:56 am

Re: Table of contents problem

Post by alcr »

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
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Table of contents problem

Post by Stefan Kottwitz »

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:

Code: Select all

\documentclass[a4paper,10pt]{report}
\usepackage{titlesec}
\titleformat{\chapter}{\centering\normalfont\Large\bfseries}{\thechapter}{1em}{}
\begin{document}
\tableofcontents
\chapter{Introduction}
\end{document}
Have a look at the titlesec documentation for its features. If you should have further questions just let us know.

Stefan
LaTeX.org admin
alcr
Posts: 4
Joined: Thu Aug 14, 2008 9:56 am

Re: Table of contents problem

Post by alcr »

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
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Table of contents problem

Post by localghost »

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. [...]
As described in the titlesec documentation, this is not a command but a package option.

Code: Select all

\usepackage[compact]{titlesec}
Including the package like this will have the desired effect.
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 [...]
Show this behaviour through a complete MWE as requested earlier. Follow carefully the instructions on the page behind the link in my first reply.
Melinda
Posts: 2
Joined: Thu Nov 25, 2010 12:41 am

Re: Table of contents problem

Post by Melinda »

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}}
Boersma
Posts: 21
Joined: Mon Nov 22, 2010 9:29 pm

Re: Table of contents problem

Post by Boersma »

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.
Post Reply