![KOMA-Script 和格言的布局问题](https://linux22.com/image/444634/KOMA-Script%20%E5%92%8C%E6%A0%BC%E8%A8%80%E7%9A%84%E5%B8%83%E5%B1%80%E9%97%AE%E9%A2%98.png)
我在 KOMA-Script 中使用格言时遇到了两个问题。
- 该格言与下一段之间没有空格。
- 第一段章节以缩进开始。
我可以通过\bigskip\noindent
在每个格言下写作使其看起来正确,但我该如何重新定义\dictum
以使其自动发生?
最小工作示例
\documentclass[a5paper]{scrreprt}
\usepackage[english]{babel}
\begin{document}
\chapter{Chapter Title}
\dictum{An epigraph is a short quotation or saying at the beginning of a book or chapter, intended to suggest its theme.}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus eu efficitur purus, vitae mollis risus. Curabitur lorem elit, tempus sed mollis ac, luctus eget leo.
\end{document}
答案1
正如 KOMA Script 手册中提到的,建议在章节中使用\dictum
inside \setchapterpreamble
。这可以解决虚假缩进的问题。该手册还指出“你负责标题、序言和后续文本之间的间距”。您可以轻松编写一个方便的宏。
\documentclass[a5paper]{scrreprt}
\usepackage[english]{babel}
\newcommand\setchapterdictum[1]{%
\setchapterpreamble{%
\dictum{#1}%
\bigskip
}%
}
\begin{document}
\setchapterdictum{An epigraph is a short quotation or saying at the beginning of a book or chapter, intended to suggest its theme.}
\chapter{Chapter Title}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus eu efficitur purus, vitae mollis risus. Curabitur lorem elit, tempus sed mollis ac, luctus eget leo.
\end{document}