# Reduce Section heading number and spacing in document having a table of content [closed]

I have set up a document to have a table of content:

\begin{document}
\selectlanguage{english}
\tableofcontents{}


I then have sections within the document which appear in the table of content

\section{\small{Introduction}}


text

\section{\small{Chapter 1}}


text

The problem is, at section 1, I get a large 1 followed by the text Introduction which is much smaller. Then in section 2, I get a large 2 followed by the text Chapter 2 which is much smaller. How can I reduce the size of these numbers?

Also the space above and below the section titles is far too large. How can I reduce these?
I tried:

 \usepackage[compact]{titlesec}
\titlespacing{\section}{0pt}{-5pt}{-5pt}


but I still had large spacing above and below the section heading.

## closed as unclear what you're asking by user31729, Mensch, Henri Menke, user13907, Martin SchröderSep 3 '16 at 22:23

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• Which document class are you using? Why \tableofcontents with an argument? – Gonzalo Medina Oct 1 '15 at 15:33
• \documentclass[10pt,a5paper]{extarticle} – adam.888 Oct 1 '15 at 15:46
• I added argument: small to table of content in the hope of making the section number and section spacing smaller – adam.888 Oct 1 '15 at 15:48
• Do you want to reduce the space between section entries in the ToC or the space between section titles and surrounding text in the document? – Gonzalo Medina Oct 1 '15 at 15:51
• Do you plan to use all sections this way? i.e. \section{\small some title}. By the way, please don't use {\small{text}} it's {\small text}. – touhami Oct 5 '15 at 7:38

The sizes of the sectioning command headings are fixed in the definitions using \@startsection -- it's the last argument there.

The spacings before and after the heading can be controlled with the 4th and 5th argument of \@startsection.

I changed the values only slightly -- the precise values are left to the O.P -- those values depend on personal preferences, but they shouldn't exceed any boundary, i.e. leak into the margins.

In order to change the size of the ToC entries: tocloft and its \cftsecfont and \cftsubsecfont commands can be redefined to use \small or \tiny.

\documentclass[10pt,a5paper]{extarticle}

\usepackage[english]{babel}
\usepackage{tocloft}
\usepackage{blindtext}

\makeatletter
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-2.5ex \@plus -1ex \@minus -.2ex}%
{0.3ex \@plus.2ex}%
{\normalfont\small\bfseries}}

\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\tiny\bfseries}}
\makeatother

\renewcommand{\cftsecfont}{\small}
\renewcommand{\cftsubsecfont}{\tiny}

\begin{document}
\tableofcontents
\clearpage
\section{Foo}
\blindtext
\section{Foobar}
\blindtext
\end{document}