Anzeige:
Ergebnis 1 bis 3 von 3

Thema: Inhaltsverzeichnis vertikal zentrieren

  1. #1
    Registrierter Benutzer
    Registriert seit
    06.09.2010
    Beiträge
    4

    Question Inhaltsverzeichnis vertikal zentrieren

    Hallo, ich hab das Forum durchsucht, aber leider nichts für mein Problem gefunden. Sollte ich etwas übersehen haben, dann entschuldigt den Doppenpost.
    Mein Problem ist Folgendes:
    Ich habe ein relativ langes Inhaltsverzeichnis, das ich mit Hilfe von
    \addtocontents{toc}{\protect\newpage}
    auf zwei seiten aufgeteilt habe.
    Natürlich fangen nun beide seiten des Inhaltsverzeichnisses ganz oben an und unten ist relativ viel platz. Das würde ich gerne durch eine vertikale Zentrierung ändern, sodass auf beiden Seiten das Verzeichnis schön mittig ist.

    Hier ein kleines Beispiel, wie es bei mir aussieht:

    \documentclass[10pt,a4paper]{article}
    \usepackage{geometry}
    \geometry{a4paper, left=25mm, right=25mm, top=2cm, bottom=3cm}
    \usepackage[latin1]{inputenc}

    \begin{document}
    %Titelseite mit Abstract
    %Leerseite
    \renewcommand{\thepage}{\roman{page}}
    \setcounter{page}{1}
    \tableofcontents
    \newpage
    \renewcommand{\thepage}{\arabic{page}}
    \setcounter{page}{1}
    \section{XXX}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \newpage
    \section{XXX}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \newpage
    \addtocontents{toc}{\protect\newpage}
    \section{XXX}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \newpage
    \section{XXX}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \end{document}

  2. #2
    Registrierter Benutzer Avatar von voss
    Registriert seit
    10.04.2005
    Beiträge
    5.045
    Zitat Zitat von biggy2706 Beitrag anzeigen
    Mein Problem ist Folgendes:
    Ich habe ein relativ langes Inhaltsverzeichnis, das ich mit Hilfe von
    \addtocontents{toc}{\protect\newpage}
    auf zwei seiten aufgeteilt habe.
    Natürlich fangen nun beide seiten des Inhaltsverzeichnisses ganz oben an und unten ist relativ viel platz. Das würde ich gerne durch eine vertikale Zentrierung ändern, sodass auf beiden Seiten das Verzeichnis schön mittig ist.
    sieht doch nicht schön aus!
    Code:
    \documentclass[10pt,a4paper]{article}
    \usepackage{geometry}
    \geometry{a4paper, left=25mm, right=25mm, top=2cm, bottom=3cm}
    \usepackage[latin1]{inputenc}
    
    \begin{document}
    \clearpage
    \renewcommand{\thepage}{\roman{page}}
    \setcounter{page}{1}
    \vspace*{\fill}
    \tableofcontents
    \vfill
    \newpage
    \renewcommand{\thepage}{\arabic{page}}
    \setcounter{page}{1}
    \section{XXX}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \newpage
    \section{XXX}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \newpage
    \addtocontents{toc}{\protect\vfill\newpage\vspace*{\fill}}
    \section{XXX}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \newpage
    \section{XXX}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \subsection{YYY}\subsubsection{ZZZ}\subsubsection{ ZZZ}\subsubsection{ZZZ}
    \end{document}
    Herbert

  3. #3
    Registrierter Benutzer
    Registriert seit
    06.09.2010
    Beiträge
    4
    vielen dank! funktioniert super.
    und ich muss sagen, dass es mir so schon etwas besser gefällt.
    vermutlich geschmackssache!
    Nochmals vielen dank für die schnelle antwort!

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •