| 1 |
% ====================================================================== |
| 2 |
% common-dictum-en.tex |
| 3 |
% Copyright (c) Markus Kohm, 2001-2023 |
| 4 |
% |
| 5 |
% This file is part of the LaTeX2e KOMA-Script bundle. |
| 6 |
% |
| 7 |
% This work may be distributed and/or modified under the conditions of |
| 8 |
% the LaTeX Project Public License, version 1.3c of the license. |
| 9 |
% The latest version of this license is in |
| 10 |
% http://www.latex-project.org/lppl.txt |
| 11 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 12 |
% version 2005/12/01 or later and of this work. |
| 13 |
% |
| 14 |
% This work has the LPPL maintenance status "author-maintained". |
| 15 |
% |
| 16 |
% The Current Maintainer and author of this work is Markus Kohm. |
| 17 |
% |
| 18 |
% This work consists of all files listed in MANIFEST.md. |
| 19 |
% ====================================================================== |
| 20 |
% |
| 21 |
% Paragraphs that are common for several chapters of the KOMA-Script guide |
| 22 |
% Maintained by Markus Kohm |
| 23 |
% |
| 24 |
% ====================================================================== |
| 25 |
|
| 26 |
\KOMAProvidesFile{common-dictum-en.tex} |
| 27 |
[$Date: 2023-04-20 10:04:17 +0200 (Do, 20. Apr 2023) $ |
| 28 |
KOMA-Script guide (common paragraphs)] |
| 29 |
\translator{Gernot Hassenpflug\and Markus Kohm\and Krickette Murabayashi\and |
| 30 |
Karl Hagen} |
| 31 |
|
| 32 |
\section{Dicta} |
| 33 |
\seclabel{dictum}% |
| 34 |
\BeginIndexGroup |
| 35 |
\BeginIndex{}{saying}% |
| 36 |
\BeginIndex{}{dictum}% |
| 37 |
\BeginIndex{}{epigraph}% |
| 38 |
|
| 39 |
\IfThisCommonFirstRun{}{% |
| 40 |
The information in \autoref{sec:\ThisCommonFirstLabelBase.dictum} applies |
| 41 |
equally to this chapter. % |
| 42 |
\IfThisCommonLabelBase{scrextend}{% |
| 43 |
However, \Package{scrextend} does not support the commands |
| 44 |
\DescRef{maincls.cmd.setchapterpreamble} and |
| 45 |
\DescRef{maincls.cmd.setpartpreamble}. |
| 46 |
\iftrue% Umbruchvariante |
| 47 |
Whether the class you are using offers an equivalent instruction |
| 48 |
can be found in the documentation for the respective class .% |
| 49 |
\fi% |
| 50 |
}{}% |
| 51 |
So if you have already read and understood |
| 52 |
\autoref{sec:\ThisCommonFirstLabelBase.dictum}, you can skip ahead to |
| 53 |
\autoref{sec:\ThisCommonLabelBase.dictum.next}, |
| 54 |
\autopageref{sec:\ThisCommonLabelBase.dictum.next}.% |
| 55 |
}{}% |
| 56 |
|
| 57 |
\IfThisCommonLabelBase{scrextend}{% Umbruchkorrekturvarianten |
| 58 |
A common element in a document is an epigraph or quotation that is set above |
| 59 |
or below a chapter or section heading, typically right-justified. The |
| 60 |
epigraph and its source are usually specially formatted.% |
| 61 |
}{% |
| 62 |
A common element in a document is an epigraph or quotation that is set above |
| 63 |
or below a chapter or section heading, along with a reference to the source |
| 64 |
and its own formatting.% |
| 65 |
} % |
| 66 |
\KOMAScript{} refers to such an epigraph as a \emph{dictum}. |
| 67 |
|
| 68 |
\begin{Declaration} |
| 69 |
\Macro{dictum}\OParameter{author}\Parameter{text}% |
| 70 |
\Macro{dictumwidth}% |
| 71 |
\Macro{dictumauthorformat}\Parameter{author}% |
| 72 |
\Macro{dictumrule}% |
| 73 |
\Macro{raggeddictum}% |
| 74 |
\Macro{raggeddictumtext}% |
| 75 |
\Macro{raggeddictumauthor} |
| 76 |
\end{Declaration}% |
| 77 |
You can set such a saying with the help of the \Macro{dictum} command. % |
| 78 |
\IfThisCommonLabelBase{maincls}{% |
| 79 |
This\textnote{Hint!} macro can be included in the mandatory argument of |
| 80 |
either the \DescRef{maincls.cmd.setchapterpreamble} or the |
| 81 |
\DescRef{maincls.cmd.setpartpreamble} command. However, this is not |
| 82 |
obligatory.\par% |
| 83 |
}{}% |
| 84 |
The dictum, along with an optional \PName{author}, is inserted in a |
| 85 |
\Macro{parbox}\IndexCmd{parbox} (see \cite{latex:usrguide}) of width |
| 86 |
\Macro{dictumwidth}. However, \Macro{dictumwidth} is not a length which can be |
| 87 |
set with \Macro{setlength}. It is a macro that can be redefined using |
| 88 |
\Macro{renewcommand}. The default is \PValue{0.3333\Length{textwidth}}, which |
| 89 |
is one third of the text width. The box itself is aligned with the command |
| 90 |
\Macro{raggeddictum}. The default is \Macro{raggedleft}\IndexCmd{raggedleft}, |
| 91 |
that is, right justified. \Macro{raggeddictum} can be redefined |
| 92 |
with \IfThisCommonLabelBase{scrextend}{% Umbruchoptimierung |
| 93 |
}{the help of }\Macro{renewcommand}. |
| 94 |
|
| 95 |
You can align the \PName{dictum} within the box using |
| 96 |
\Macro{raggeddictumtext}\important{\Macro{raggeddictumtext}}. |
| 97 |
The default is \Macro{raggedright}\IndexCmd{raggedright}, that is, left |
| 98 |
justified. You can also redefine this macro with \Macro{renewcommand}.% |
| 99 |
\BeginIndexGroup |
| 100 |
\BeginIndex{FontElement}{dictum}\LabelFontElement{dictum}% |
| 101 |
\LabelFontElement{dictumtext}% |
| 102 |
The output uses the default font setting for the element |
| 103 |
\FontElement{dictum}\important{\FontElement{dictum}}, which can be changed |
| 104 |
with the commands \DescRef{\ThisCommonLabelBase.cmd.setkomafont} and |
| 105 |
\DescRef{\ThisCommonLabelBase.cmd.addtokomafont} (see |
| 106 |
\autoref{sec:\ThisCommonLabelBase.textmarkup}, |
| 107 |
\DescPageRef{\ThisCommonLabelBase.cmd.setkomafont}). Default settings are |
| 108 |
listed in \autoref{tab:maincls.dictumfont}% |
| 109 |
\IfThisCommonFirstRun{.% |
| 110 |
\begin{table} |
| 111 |
% \centering% |
| 112 |
\KOMAoptions{captions=topbeside}% |
| 113 |
\setcapindent{0pt}% |
| 114 |
% \caption |
| 115 |
\begin{captionbeside}{Default settings for the elements of a dictum} |
| 116 |
[l] |
| 117 |
\begin{tabular}[t]{ll} |
| 118 |
\toprule |
| 119 |
Element & Default \\ |
| 120 |
\midrule |
| 121 |
\IfThisCommonLabelBase{maincls}{% |
| 122 |
\ChangedAt{v3.39}{\Class{scrbook}\and \Class{scrreprt}\and |
| 123 |
\Class{scrartcl}}% |
| 124 |
}{% |
| 125 |
\IfThisCommonLabelBase{scrextend}{% |
| 126 |
\ChangedAt{v3.39}{\Package{screxend}}% |
| 127 |
}{% |
| 128 |
\IfThisCommonLabelBase{scrlttr2}{% |
| 129 |
\ChangedAt{v3.39}{\Class{scrlttr2}}% |
| 130 |
}{}% |
| 131 |
}% |
| 132 |
}% |
| 133 |
\DescRef{\LabelBase.fontelement.dictum} |
| 134 |
& \Macro{normalfont}\Macro{normalcolor}% |
| 135 |
\DescRef{\LabelBase.cmd.maybesffamily}\IndexCmd{maybesffamily}% |
| 136 |
\Macro{small}\\ |
| 137 |
\DescRef{\LabelBase.fontelement.dictumauthor} & |
| 138 |
\Macro{itshape}\\ |
| 139 |
\bottomrule |
| 140 |
\end{tabular} |
| 141 |
\end{captionbeside} |
| 142 |
\label{tab:\ThisCommonLabelBase.dictumfont} |
| 143 |
\end{table} |
| 144 |
}{% |
| 145 |
, \autopageref{tab:\ThisCommonFirstLabelBase.dictumfont}.% |
| 146 |
} |
| 147 |
\EndIndexGroup |
| 148 |
|
| 149 |
If an \PName{author} is defined, it is separated from the \PName{dictum} by |
| 150 |
a horizontal rule spanning the full width of the \Macro{parbox}. This% |
| 151 |
\IfThisCommonLabelBase{maincls}{% |
| 152 |
\ChangedAt{v3.10}{\Class{scrbook}\and \Class{scrreprt}\and |
| 153 |
\Class{scrartcl}}% |
| 154 |
}{% |
| 155 |
\IfThisCommonLabelBase{scrextend}{% |
| 156 |
\ChangedAt{v3.10}{\Package{scrextend}}% |
| 157 |
}{\InternalCommonFileUsageError}% |
| 158 |
} % |
| 159 |
rule is defined in \Macro{dictumrule}\important{\Macro{dictumrule}} as a |
| 160 |
vertical object with |
| 161 |
\begin{lstcode} |
| 162 |
\newcommand*{\dictumrule}{\vskip-1ex\hrulefill\par} |
| 163 |
\end{lstcode} |
| 164 |
|
| 165 |
The \Macro{raggeddictumauthor}\important{\Macro{raggeddictumauthor}} command |
| 166 |
defines the alignment for the rule and the \PName{author}. The default is |
| 167 |
\Macro{raggedleft}. This command can also be redefined using |
| 168 |
\Macro{renewcommand}. The format is defined with |
| 169 |
\Macro{dictumauthorformat}\important{\Macro{dictumauthorformat}}. This macro |
| 170 |
expects the \PName{author} text as its argument. By default |
| 171 |
\Macro{dictumauthorformat} is defined as |
| 172 |
\begin{lstcode} |
| 173 |
\newcommand*{\dictumauthorformat}[1]{(#1)} |
| 174 |
\end{lstcode} |
| 175 |
Thus the \PName{author} is set enclosed in rounded parentheses. |
| 176 |
\BeginIndexGroup |
| 177 |
\BeginIndex{FontElement}{dictumauthor}\LabelFontElement{dictumauthor}% |
| 178 |
For the \FontElement{dictumauthor}\important{\FontElement{dictumauthor}} |
| 179 |
element, you can define a different font than that used for the |
| 180 |
\DescRef{\LabelBase.fontelement.dictum} element. The default settings are |
| 181 |
listed in \autoref{tab:maincls.dictumfont}. Changes can be made using the |
| 182 |
\DescRef{\ThisCommonLabelBase.cmd.setkomafont} and |
| 183 |
\DescRef{\ThisCommonLabelBase.cmd.addtokomafont} commands (see |
| 184 |
\autoref{sec:\ThisCommonLabelBase.textmarkup}, |
| 185 |
\DescPageRef{\ThisCommonLabelBase.cmd.setkomafont}).% |
| 186 |
\EndIndexGroup |
| 187 |
|
| 188 |
\IfThisCommonLabelBase{maincls}{% |
| 189 |
If you use \Macro{dictum} within the |
| 190 |
\DescRef{maincls.cmd.setchapterpreamble} or |
| 191 |
\DescRef{maincls.cmd.setpartpreamble} macro, \Length{textwidth} is not the |
| 192 |
width of the whole text body but the current text width. If |
| 193 |
\Macro{dictumwidth} is set to \PValue{.5\Length{textwidth}} and |
| 194 |
\DescRef{maincls.cmd.setchapterpreamble} has an optional width of |
| 195 |
\PValue{.5\Length{textwidth}} too, you will get a box with a width one |
| 196 |
quarter of the text width. The horizontal positioning of the dictum inside |
| 197 |
the box is always done with \Macro{raggeddictum}. The optional argument for |
| 198 |
horizontal positioning which is implemented for these two commands has no |
| 199 |
effect to the \Macro{text}. If you use \Macro{dictum} you should |
| 200 |
refrain from setting the optional width for |
| 201 |
\DescRef{maincls.cmd.setchapterpreamble} or |
| 202 |
\DescRef{maincls.cmd.setpartpreamble}. |
| 203 |
|
| 204 |
If\textnote{Hint!} you have more than one dictum, one under another, you |
| 205 |
should separate them by an additional vertical space, which is easily |
| 206 |
accomplished using the \Macro{bigskip}\IndexCmd{bigskip} command.% |
| 207 |
\iftrue% |
| 208 |
}{\csname iffalse\endcsname} |
| 209 |
|
| 210 |
\begin{Example} |
| 211 |
You are writing a chapter about modern marriage, and you want to place a |
| 212 |
dictum in the preamble to the chapter heading. You write: |
| 213 |
\begin{lstcode} |
| 214 |
\setchapterpreamble[u]{% |
| 215 |
\dictum[Schiller]{So pause ye who would link your fates~\dots}} |
| 216 |
\chapter{Modern Marriage} |
| 217 |
\end{lstcode} |
| 218 |
The output would look as follows: |
| 219 |
\begin{ShowOutput} |
| 220 |
{\usekomafont{disposition}\usekomafont{chapter}% |
| 221 |
17\enskip Modern Marriage\par} \vspace{\baselineskip} |
| 222 |
\dictum[Schiller]{So pause ye who would link |
| 223 |
your fates~\dots} |
| 224 |
\end{ShowOutput} |
| 225 |
|
| 226 |
If you want the dictum to span only a quarter of the text width |
| 227 |
rather than a third, you can redefine \Macro{dictumwidth} this way: |
| 228 |
\begin{lstcode} |
| 229 |
\renewcommand*{\dictumwidth}{.25\textwidth} |
| 230 |
\end{lstcode} |
| 231 |
\end{Example} |
| 232 |
|
| 233 |
\IfThisCommonLabelBase{maincls}{}{% Umbruchkorrekturtext |
| 234 |
At this point, note the \Package{ragged2e}\important{\Package{ragged2e}}% |
| 235 |
\IndexPackage{ragged2e} package, with which you can produce unjustified text |
| 236 |
that uses hyphenation (see \cite{package:ragged2e}).% |
| 237 |
}% |
| 238 |
\fi |
| 239 |
% |
| 240 |
\EndIndexGroup |
| 241 |
% |
| 242 |
\EndIndexGroup |
| 243 |
|
| 244 |
%%% Local Variables: |
| 245 |
%%% mode: latex |
| 246 |
%%% TeX-master: "scrguide-en.tex" |
| 247 |
%%% coding: utf-8 |
| 248 |
%%% ispell-local-dictionary: "en_GB" |
| 249 |
%%% eval: (flyspell-mode 1) |
| 250 |
%%% End: |