![scrjura 中的文本“跳跃”](https://linux22.com/image/352714/scrjura%20%E4%B8%AD%E7%9A%84%E6%96%87%E6%9C%AC%E2%80%9C%E8%B7%B3%E8%B7%83%E2%80%9D.png)
抱歉,标题很奇怪,我不知道如何更好地描述它。
我对 scrjura 和新行的开头有疑问。它们不是从同一点开始的,下面是一张我所指的图片。
这是一个简单的例子:
\documentclass[parskip=half]{scrreprt}
\usepackage[margin=2cm]{geometry}
\usepackage[juratotoc]{scrjura}
\usepackage[ngerman]{babel}
\usepackage{url}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\makeatletter
\renewcommand*{\parformat}{%
\global\hangindent 2em
\makebox[2em][l]{(\thepar)\hfill}\hspace{-0,3cm}
}
\makeatother
\begin{document}
\addchap{Vertrag blabla}
\begin{contract}
\Clause{title={Vertragsgegenstand}}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.
Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium.
Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim.
Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue.
\end{contract}
\end{document}
有人知道为什么会发生这种情况以及如何消除它吗?
如果我省去\renewcommand*{\parformat}
... 部分,它仍然会发生,只是没有缩进,所以这似乎不是问题:
答案1
你也得重新定义\parformatseparation
。它的原始定义是\nobreakspace
。
\documentclass[parskip=half]{scrreprt}[2016/05/10]
\usepackage[margin=2cm]{geometry}
\usepackage[juratotoc]{scrjura}
\usepackage[ngerman]{babel}
\usepackage{url}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\makeatletter
\renewcommand*{\parformat}{%
\global\hangindent 2em
\makebox[2em][l]{(\thepar)\hfill}%<- the % is needed here
}
\makeatother
\renewcommand*{\parformatseparation}{}
\begin{document}
\addchap{Vertrag blabla}
\begin{contract}
\Clause{title={Vertragsgegenstand}}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.
Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium.
Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim.
Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue.
\end{contract}
\end{document}