How to add some text somewhere (middle and at a given distance say 3cm above of the beginning of the table of contents) at the top of the page containing the Table of contents
?
Something like the image below.
\documentclass[12pt]{book}
\title{hello}
\begin{document}
\tableofcontents
\chapter{one}
\chapter{two}
\end{document}
Best Answer
Usually,
\tableofcontents
uses a\chapter*
heading inbook
, i.e. the heading formatter macro\@makeschapterhead
has to be slightly modified, and an injection of an 'arbitrary'\mytextbeforetocheading
command to executed.In order to restrict the modifications to this
toc
only (and not affecting any further\chapter*
), all has to be done a group.