如何修复 scrjura TOC 中的重叠文本?

如何修复 scrjura TOC 中的重叠文本?

在 scrjura 中,当 2 位数条款包含子条款时,目录中的文本会重叠。以下是第 11a 条中发生这种情况的示例:

在此处输入图片描述

我该如何解决?

\documentclass{scrreport}
\usepackage[juratotoc]{scrjura}

\begin{document}
\tableofcontents

\begin{contract}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\SubClause{title={Subclause}, preskip=0em, postskip=0em}
\end{contract}

\end{document}

答案1

添加

\DeclareTOCStyleEntry[dynnumwidth]{tocline}{cpar}

自动调整目录中子条款编号的空间。

例子:

\documentclass{scrreport}
\usepackage[juratotoc]{scrjura}
\DeclareTOCStyleEntry[dynnumwidth]{tocline}{cpar}% <t added

\begin{document}
\tableofcontents
\begin{contract}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\Clause{title={Clause}, preskip=0em, postskip=0em}
\SubClause{title={Subclause}, preskip=0em, postskip=0em}
\end{contract}
\end{document}

在此处输入图片描述

相关内容