Beim Schreiben eines Uni-Berichts bin ich momentan gezwungen, eine 4. Untergliederungsebene zu verwenden. Für dieses Unterfangen habe ich bereits eine recht solide Lösung (entnommen von http://uweziegenhagen.de/?p=1074), bei der es lediglich nur noch am Inhaltsverzeichnis hapert:
\documentclass{scrartcl} % Neue Untergliederungsebene definieren + anpassen \makeatletter \renewcommand*\l@paragraph{\@dottedtocline{5}{7.0em}{4.1em}} \renewcommand*\l@subparagraph{\@dottedtocline{6}{10em}{5em}} \makeatother \usepackage{titlesec} \usepackage[]{titletoc} \titlecontents{subsubsubsection}[9em]{}{\contentslabel{3.9em}}% {\hspace*{-1.2em}}{\titlerule*[0.675pc]{.}\contentspage} \makeatletter \newcounter{subsubsubsection}[subsubsection] \setcounter{subsubsubsection}{1} \setcounter{secnumdepth}{4} \renewcommand{\thesubsubsubsection}{\thesubsubsection.\@arabic\c@subsubsubsection} \titleclass{\subsubsubsection}{straight}[\subsubsection] \titleformat{\subsubsubsection}{\normalfont\large}{\thetitle}{0.9em}{}[] \titlespacing{\subsubsubsection}{0pt}{3.25ex plus 1ex minus 0.2ex}{1.5ex plus 0.2ex} \renewcommand\paragraph{\@startsection{paragraph}{5}% {\z@}% {3.25ex \@plus1ex \@minus.2ex}% {-1em}% {\sffamily\normalsize\bfseries}% } \renewcommand\subparagraph{\@startsection{subparagraph}{6}% {\parindent}% {3.25ex \@plus1ex \@minus .2ex}% {-1em}% {\sffamily\normalsize\bfseries}% } \makeatother % Inhaltsverzeichnis formatieren \usepackage{tocloft} \renewcommand{\cftsecfont}{\sffamily\bfseries} \renewcommand{\cftsecpagefont}{\rmfamily\normalfont} \setlength{\cftbeforesecskip}{9pt} \setlength{\cftbeforesubsecskip}{9pt} \setlength{\cftbeforesubsubsecskip}{9pt} % Dokument \begin{document} \setcounter{tocdepth}{4} \tableofcontents \section{Section} \subsection{Subsection} \subsubsection{Subsubsection} \subsubsubsection{Subsubsubsection} \subsubsubsection{Subsubsubsection} \subsubsection{Subsubsection} \subsubsubsection{Subsubsubsection} \subsubsubsection{Subsubsubsection} \subsubsubsection{Subsubsubsection} \section{Section} \subsection{Subsection} \subsubsection{Subsubsection} \subsubsubsection{Subsubsubsection} \subsubsubsection{Subsubsubsection} \subsubsection{Subsubsection} \subsubsubsection{Subsubsubsection} \subsubsubsection{Subsubsubsection} \subsubsubsection{Subsubsubsection} \end{document}
- - \setlength{\cftbeforesecskip}{length}
- \setlength{\cftbeforesubsecskip}{length}
- \setlength{\cftbeforesubsubsecskip}{length}
- u. ä.
Ich würde ganz gerne die Abstände vor den Einträgen (beforeskip) und den Einzug der "subsubsub"-Einträge verändern, damit sich das schön bündig einordnet.
Meine Frage ist nun, ob es irgendwie möglich ist, die dementsprechenden Befehle (wie z.B. oben genannt) nachträglich zu schreiben? Z.B. in Form von
- \cftbeforesubsubsubsecskip
\cftsubsubsubsecindent