3

I am making a project. When I made a frontpage and a table of content my text does not begin from the top of the page.

Can someone help me to fix it

karlkoeller
  • 124,410

1 Answers1

1

By default chapter headings start a bit lower on the page which simply is a matter of the typographical design that was set in the LaTeX core. If you want to change it you can have a look at the question Space before chapters and contents.

Regarding your question about the table of contents: The macro generating it, \tableofcontents (assuming that you use the standard classes) is defined like:

\newcommand\tableofcontents{%
    \if@twocolumn
      \@restonecoltrue\onecolumn
    \else
      \@restonecolfalse
    \fi
    \chapter*{\contentsname
        \@mkboth{%
           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
    \@starttoc{toc}%
    \if@restonecol\twocolumn\fi
    }

As you see, after checking for twocolumn-mode it calls the \chapter(*) macro and then icludes the .toc file via \@starttoc. That's why your table of contents starts as low as the first pages of the chapters in your document.

Ruben
  • 13,448