
我使用 scrreprt,並在章節開始之前放置這樣的銘文:
\setkomafont{dictumauthor}{\normalfont}
\renewcommand*\dictumwidth{0.5\linewidth}
\setchapterpreamble{%
\dictum[Lewis Carroll]{
Begin at the beginning, and go on till you come to the end: then stop.}}
然後,文字將以“flushleft”“版式”(= raggedright)顯示。和
\renewcommand*{\raggeddictumtext}{\centering}
我可以將排版更改為居中(或類似flushrigt)。有什麼辦法可以讓格言文字合理化(就像普通文字一樣)?我查閱了 KOMA 指南(第 3.17 節),但沒有找到答案
答案1
使用
\renewcommand*\raggeddictumtext{}
要得到
代碼:
\documentclass{scrreprt}
\setkomafont{dictumauthor}{\normalfont}
\renewcommand*\dictumwidth{0.5\linewidth}
\renewcommand*\raggeddictumtext{}
\begin{document}
\setchapterpreamble{%
\dictum[Lewis Carroll]{%
Begin at the beginning, and go on till you come to the end: then stop.}}
\chapter{Chapter}
\end{document}