如果使用对话包则忽略 parskip

如果使用对话包则忽略 parskip

我在我的文档中使用该dialogue包,并使用scrartcl选项parskip

我怎样才能关闭parskip对话?我不想在行间留有空白。

\documentclass[parskip]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{dialogue}

\begin{document}

Some text: ergk kfjnw kjeb oqie kebwueb  ueibr iwube b iueb uf bwieu beu bwob bk jbwbekjbf bwjeb bfuweij bkjejbrkjwb j.

Some more text ...

Beginn of the Dialogue
\begin{dialogue}
\speak{Tim} Hi, how are you?
\speak{Karl} I think thats obvious!
\end{dialogue}

\end{document}

我怎样才能删除 TIM 和 KARL 之间的空格?

谢谢你!

答案1

您可以扩展到环境内部的\PreDialogue选项切换:parskip

\documentclass[parskip]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{dialogue}

\usepackage{xpatch}
\apptocmd{\PreDialogue}{\KOMAoption{parskip}{false}}{}{\undefined}

\begin{document}

Some text: ergk kfjnw kjeb oqie kebwueb  ueibr iwube b iueb uf bwieu beu bwob bk jbwbekjbf bwjeb bfuweij bkjejbrkjwb j.

Some more text ...

Beginn of the Dialogue
\begin{dialogue}
\speak{Tim} Hi, how are you?
\speak{Karl} I think thats obvious!
\end{dialogue}
And some text

after the dialogue.

\end{document}

结果

相关内容