Ich habe ein einfaches Dokument mit memoir
der Klasse wie folgt erstellt:
\documentclass[12pt,a5paper]{memoir}
\renewcommand\thepart{\arabic{part}}
% modify ToC part
\renewcommand{\cftpartaftersnum}{.}
\renewcommand{\cftpartfont}{\normalsize\bfseries}
\renewcommand{\cftpartpagefont}{\normalsize\bfseries}
\setlength{\cftbeforepartskip}{16pt}
\setlength{\cftpartnumwidth}{2.5em}
% modify ToC chapter
\renewcommand{\cftchapteraftersnum}{.}
\renewcommand{\cftchapterfont}{\normalsize}
\renewcommand{\cftchapterleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftchapterpagefont}{\normalsize}
\setlength{\cftbeforechapterskip}{2pt}
\setlength{\cftchapternumwidth}{2.5em}
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\part{Part One}
\chapter[Chapter Title]{Chapter Title}
\chapter[Chapter Title]{Chapter Title}
\chapter[Chapter Title]{Chapter Title}
\part{Part Two}
\chapter[Chapter Title]{Chapter Title}
\chapter[Chapter Title]{Chapter Title}
\chapter[Chapter Title]{Chapter Title}
\backmatter
\pagestyle{plain}
\chapter[About Writer]{About Writer}
\end{document}
Wie kann ich zwischen und dem letzten Kapitel im Inhaltsverzeichnis mehr Platz (sagen wir 16pt) einfügen About Writer
(wie zwischen Part One
und Part Two
)? Danke.
UPDATE: BeideKarlkoeller'sUndJohannes_B'sAntworten funktionierten einwandfrei, wenn ich verwendete \chapter[About Writer]{About Writer}
. Aber als ich verwendete \include{aboutwriter}
(als @barbara-beetonerwähnt), sie haben nicht funktioniert.
\documentclass[12pt,a5paper]{memoir}
\renewcommand\thepart{\arabic{part}}
% modify ToC part
\renewcommand{\cftpartaftersnum}{.}
\renewcommand{\cftpartfont}{\normalsize\bfseries}
\renewcommand{\cftpartpagefont}{\normalsize\bfseries}
\setlength{\cftbeforepartskip}{16pt}
\setlength{\cftpartnumwidth}{2.5em}
% modify ToC chapter
\renewcommand{\cftchapteraftersnum}{.}
\renewcommand{\cftchapterfont}{\normalsize}
\renewcommand{\cftchapterleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftchapterpagefont}{\normalsize}
\setlength{\cftbeforechapterskip}{2pt}
\setlength{\cftchapternumwidth}{2.5em}
% Karlkoeller said:
\usepackage{etoolbox}
\appto{\backmatter}{\addtocontents{toc}{\protect\addvspace{16pt}}}{}{}
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\part{Part One}
\chapter[Chapter Title]{Chapter Title}
\chapter[Chapter Title]{Chapter Title}
\chapter[Chapter Title]{Chapter Title}
\part{Part Two}
\chapter[Chapter Title]{Chapter Title}
\chapter[Chapter Title]{Chapter Title}
\chapter[Chapter Title]{Chapter Title}
\backmatter
\pagestyle{plain}
% \chapter[About Writer]{About Writer}
% Johannes_B said:
% \addtocontents{toc}{\protect\vspace{16pt}}
\include{aboutwriter} % Include external file
\end{document}
Antwort1
Laden Sie das Paket etoolbox
und geben Sie
\preto{\backmatter}{\addtocontents{toc}{\protect\addvspace{16pt}}}
Auf diese Weise wird bei Ihrer Ausgabe \backmatter
ein 16pt
Sprung in das Inhaltsverzeichnis eingefügt.
MWE:
\documentclass[12pt,a5paper]{memoir}
\renewcommand\thepart{\arabic{part}}
% modify ToC part
\renewcommand{\cftpartaftersnum}{.}
\renewcommand{\cftpartfont}{\normalsize\bfseries}
\renewcommand{\cftpartpagefont}{\normalsize\bfseries}
\setlength{\cftbeforepartskip}{16pt}
\setlength{\cftpartnumwidth}{2.5em}
% modify ToC chapter
\renewcommand{\cftchapteraftersnum}{.}
\renewcommand{\cftchapterfont}{\normalsize}
\renewcommand{\cftchapterleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftchapterpagefont}{\normalsize}
\setlength{\cftbeforechapterskip}{2pt}
\setlength{\cftchapternumwidth}{2.5em}
\usepackage{etoolbox}
\preto{\backmatter}{\addtocontents{toc}{\protect\addvspace{16pt}}}
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\part{Part One}
\chapter[Chapter Title]{Chapter Title}
\chapter[Chapter Title]{Chapter Title}
\chapter[Chapter Title]{Chapter Title}
\part{Part Two}
\chapter[Chapter Title]{Chapter Title}
\chapter[Chapter Title]{Chapter Title}
\chapter[Chapter Title]{Chapter Title}
\backmatter
\pagestyle{plain}
\chapter[About Writer]{About Writer}
\end{document}
Ausgabe:
Antwort2
Der Platz in den früheren Teilen rührt daher \part
, und es ist einfacher und führt meiner Meinung nach zu einem leichter verständlichen Inhaltsverzeichnis, hier den gleichen Mechanismus zu verwenden, statt sich einfach auf den Platz zu verlassen.
\documentclass[12pt,a5paper]{memoir}
\renewcommand\thepart{\arabic{part}}
% modify ToC part
\renewcommand{\cftpartaftersnum}{.}
\renewcommand{\cftpartfont}{\normalsize\bfseries}
\renewcommand{\cftpartpagefont}{\normalsize\bfseries}
\setlength{\cftbeforepartskip}{16pt}
\setlength{\cftpartnumwidth}{2.5em}
% modify ToC chapter
\renewcommand{\cftchapteraftersnum}{.}
\renewcommand{\cftchapterfont}{\normalsize}
\renewcommand{\cftchapterleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftchapterpagefont}{\normalsize}
\setlength{\cftbeforechapterskip}{2pt}
\setlength{\cftchapternumwidth}{2.5em}
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\part{Part One}
\chapter[Chapter Title]{Chapter Title}
\chapter[Chapter Title]{Chapter Title}
\chapter[Chapter Title]{Chapter Title}
\part{Part Two}
\chapter[Chapter Title]{Chapter Title}
\chapter[Chapter Title]{Chapter Title}
%\chapter[Chapter Title]{Chapter Title}
\backmatter
\part{The Appendix Bits}
\pagestyle{plain}
\chapter[About Writer]{About Writer}
\end{document}