von esdd » So 20. Mär 2016, 20:57
Der Beitrag von Uwe unter Deinem Link ist über 5 Jahre alt. Seit dem hat sich bei KOMA-Script sehr viel verändert. Die Pakete
titlesec und
tocloft sollten nicht (mehr) mit den KOMA-Script Klassen verwendet werden. Es ist auch nicht nötig.
Mit der derzeit auf CTAN aktuellen KOMA-Script Version 3.19a wird nur für die Einstellung der Abstände im Inhaltsverzeichnis noch das ebenfalls zur KOMA-Script Sammlung gehörige
tocstyle benötigt.
\documentclass{scrartcl}
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\setkomafont{sectionentrypagenumber}{\rmfamily\normalfont}
\RedeclareSectionCommands[
level=5,
toclevel=5,
increaselevel=1
]{paragraph,subparagraph}
\DeclareNewSectionCommand[
style=section,
level=4,
counterwithin=subsubsection,
indent=0pt,
beforeskip=-3.25ex plus -1ex minus -0.2ex,
afterskip=1.5ex plus .2ex,
font=\normalfont\large,
toclevel=4,
tocindent=7em,
tocnumwidth=4.1em
]{subsubsubsection}
\usepackage[tocindentmanual]{tocstyle}
\usetocstyle{KOMAlike}
\settocfeature[toc]{entryvskip}{9pt}
\begin{document}
\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}
Ergebnis:
Mit der nächsten KOMA-Script Version (3.20) - die Pre-Release bekommt man unter
http://www.komascript.de/current - kann man das ganze ohne weitere Pakete erreichen:
\documentclass{scrartcl}[2016/03/16]
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\setkomafont{sectionentrypagenumber}{\rmfamily\normalfont}
\RedeclareSectionCommands[
level=5,
toclevel=5,
increaselevel=1
]{paragraph,subparagraph}
\DeclareNewSectionCommand[
style=section,
level=4,
counterwithin=subsubsection,
indent=0pt,
beforeskip=-3.25ex plus -1ex minus -0.2ex,
afterskip=1.5ex plus .2ex,
font=\normalfont\large,
toclevel=4,
tocindent=7em,
tocnumwidth=4.1em
]{subsubsubsection}
\RedeclareSectionCommands[
tocbeforeskip=9pt
]{section,subsection,subsubsection,subsubsubsection}
\begin{document}
\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}
Ergebnis:
Gruß
Elke
- Dateianhänge
-

- gl_subsubsubsection2.png (32.77 KiB) 2341 mal betrachtet
-

- gl_subsubsubsection1.png (33.6 KiB) 2362 mal betrachtet
Der Beitrag von Uwe unter Deinem Link ist über 5 Jahre alt. Seit dem hat sich bei KOMA-Script sehr viel verändert. Die Pakete [p]titlesec[/p] und [p]tocloft[/p] sollten nicht (mehr) mit den KOMA-Script Klassen verwendet werden. Es ist auch nicht nötig.
Mit der derzeit auf CTAN aktuellen KOMA-Script Version 3.19a wird nur für die Einstellung der Abstände im Inhaltsverzeichnis noch das ebenfalls zur KOMA-Script Sammlung gehörige [p]tocstyle[/p] benötigt.
[code]\documentclass{scrartcl}
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\setkomafont{sectionentrypagenumber}{\rmfamily\normalfont}
\RedeclareSectionCommands[
level=5,
toclevel=5,
increaselevel=1
]{paragraph,subparagraph}
\DeclareNewSectionCommand[
style=section,
level=4,
counterwithin=subsubsection,
indent=0pt,
beforeskip=-3.25ex plus -1ex minus -0.2ex,
afterskip=1.5ex plus .2ex,
font=\normalfont\large,
toclevel=4,
tocindent=7em,
tocnumwidth=4.1em
]{subsubsubsection}
\usepackage[tocindentmanual]{tocstyle}
\usetocstyle{KOMAlike}
\settocfeature[toc]{entryvskip}{9pt}
\begin{document}
\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}[/code]
Ergebnis:
[img]http://golatex.de/files/gl_subsubsubsection1_558.png[/img]
Mit der nächsten KOMA-Script Version (3.20) - die Pre-Release bekommt man unter [url]http://www.komascript.de/current[/url] - kann man das ganze ohne weitere Pakete erreichen:
[code]\documentclass{scrartcl}[2016/03/16]
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\setkomafont{sectionentrypagenumber}{\rmfamily\normalfont}
\RedeclareSectionCommands[
level=5,
toclevel=5,
increaselevel=1
]{paragraph,subparagraph}
\DeclareNewSectionCommand[
style=section,
level=4,
counterwithin=subsubsection,
indent=0pt,
beforeskip=-3.25ex plus -1ex minus -0.2ex,
afterskip=1.5ex plus .2ex,
font=\normalfont\large,
toclevel=4,
tocindent=7em,
tocnumwidth=4.1em
]{subsubsubsection}
\RedeclareSectionCommands[
tocbeforeskip=9pt
]{section,subsection,subsubsection,subsubsubsection}
\begin{document}
\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}[/code]
Ergebnis:
[img]http://golatex.de/files/gl_subsubsubsection2_206.png[/img]
Gruß
Elke