Anzeige:
Ergebnis 1 bis 4 von 4

Thema: Inhaltsverzeichnisseite vergrößern?

  1. #1
    Registrierter Benutzer
    Registriert seit
    10.04.2005
    Ort
    Hannover
    Beiträge
    1.854

    Inhaltsverzeichnisseite vergrößern?

    Ich habe ein Inhaltsverzeichnis das um wenige Zeilen auf die nächste Seite hinausgeht und würde gerne alles auf einer Seite haben.

    Dazu habe ich ausprobiert im Text vor dem entsprechenden Abschnitt ein
    Code:
    \addtocontents{toc}{\enlargethispage{10cm}}
    zu setzen.

    Das bringt mir jedoch nur wirre Fehlermeldungen:
    ! Use of \@flstop doesn't match its definition.
    \new@ifnextchar ...served@d = #1\def \reserved@a {
    #2}\def \reserved@b {#3}\f...
    l.56 \addtocontents{toc}{\enlargethispage{10cm}}

    If you say, e.g., `\def\a1{...}', then you must always
    put `1' after `\a', since control sequence names are
    made up of letters only. The macro here has not been
    followed by the required stuff, so I'm ignoring it.
    ...

    Im folgenden Minimalbeispiel sind die Fehler anders, aber funtkionieren tut es dennoch nicht

    Code:
    \documentclass{report}
    \begin{document}
    \tableofcontents
    \chapter{ABC}
    \section{abc}\section{abc}\section{abc}\section{abc}\section{abc}\section{abc}\section{abc}
    \chapter{ABC}
    \section{abc}\section{abc}\section{abc}\section{abc}\section{abc}\section{abc}\section{abc}
    \chapter{ABC}
    \section{abc}\section{abc}\section{abc}\section{abc}\section{abc}\section{abc}\section{abc}
    \addtocontents{toc}{\enlargethispage{10cm}}
    \chapter{ABC}
    \section{abc}\section{abc}\section{abc}\section{abc}\section{abc}\section{abc}\section{abc}
    \end{document}
    ! Argument of \@sect has an extra }.

    \par
    l.11 \addtocontents{toc}{\enlargethispage{10cm}}

    I've run across a `}' that doesn't seem to match anything.
    For example, `\def\a#1{...}' and `\a}' would produce
    this error. If you simply proceed now, the `\par' that
    I've just inserted will cause me to report a runaway
    argument that might be the root of the problem. But if
    your `}' was spurious, just type `2' and it will go away.

    Runaway argument?
    {\normalfont \Large \bfseries }{\@firstoftwo {\@enlargepage {\hbox {\kern \ETC.
    ! Paragraph ended before \@sect was complete.

    \par
    l.11 \addtocontents{toc}{\enlargethispage{10cm}}

    I suspect you've forgotten a `}', causing me to apply this
    control sequence to too much text. How can we recover?
    My plan is to forget the whole thing and hope for the best.
    Was wäre die Lösung ?

    Matthias

  2. #2
    Registrierter Benutzer Avatar von localghost
    Registriert seit
    01.11.2006
    Ort
    Braunschweig
    Beiträge
    3.413

    Arrow Umgehung

    Warum dieser Fehler zustande kommt, kann ich dir nicht erklären. Es gibt aber eine Lösung, mit der Du auch zum Ziel kommst.
    Code:
    \documentclass{report}
    \begin{document}
      \tableofcontents\enlargethispage{1\baselineskip}\newpage
      \chapter{ABC}
        \section{abc}\section{abc}\section{abc}\section{abc}\section{abc}\section{abc}\section{abc}
      \chapter{ABC}
        \section{abc}\section{abc}\section{abc}\section{abc}\section{abc}\section{abc}\section{abc}
      \chapter{ABC}
        \section{abc}\section{abc}\section{abc}\section{abc}\section{abc}\section{abc}\section{abc}
      \chapter{ABC}
        \section{abc}\section{abc}\section{abc}\section{abc}\section{abc}\section{abc}\section{abc}
    \end{document}
    Das funktioniert zumindest mal für dein Beispiel. Den Seitenumbruch kann man weglassen. Der spielt nur bei Verwendung von hyperref eine Rolle.
    TeX und LaTeX, Fragen und Antworten – TeXwelt

    ¹ Es tut mir Leid. Meine Antworten sind begrenzt. Sie müssen die richtigen Fragen stellen.
    ² System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013, TeXworks 0.5 (r1351)

  3. #3
    Registrierter Benutzer Avatar von rais
    Registriert seit
    18.07.2005
    Beiträge
    5.859
    evtl. klappt auch
    Code:
    \addtocontents{toc}{\protect\enlargethispage{1cm}}
    MfG,
    Rainer
    There's nothing a good whack with a hammer won't fix!

  4. #4
    Registrierter Benutzer
    Registriert seit
    10.04.2005
    Ort
    Hannover
    Beiträge
    1.854
    Zitat Zitat von rais Beitrag anzeigen
    evtl. klappt auch
    Code:
    \addtocontents{toc}{\protect\enlargethispage{1cm}}
    Ja das funktioniert.

    Matthias

Lesezeichen

Berechtigungen

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