Debian Codegraph @

texmf-dist/source/latex/koma-script/doc/common-footnotes-en.tex

raw
1 % ======================================================================
2 % common-footnotes-en.tex
3 % Copyright (c) Markus Kohm, 2001-2022
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-footnotes-en.tex}
27 [$Date: 2022-06-05 12:40:11 +0200 (So, 05. Jun 2022) $
28 KOMA-Script guide (common paragraphs: Footnotes)]
29 \translator{Markus Kohm\and Krickette Murabayashi\and Karl Hagen}
30
31 \section{Footnotes}
32 \seclabel{footnotes}%
33 \BeginIndexGroup
34 \BeginIndex{}{footnotes}%
35
36 \IfThisCommonFirstRun{}{%
37 The information in \autoref{sec:\ThisCommonFirstLabelBase.footnotes} applies
38 equally to this chapter. So if you have already read and understood
39 \autoref{sec:\ThisCommonFirstLabelBase.footnotes}, you can skip ahead to
40 \autopageref{sec:\ThisCommonLabelBase.footnotes.next},
41 \autopageref{sec:\ThisCommonLabelBase.footnotes.next}.%
42 \IfThisCommonLabelBase{scrlttr2}{ %
43 If you do not use a \KOMAScript{} class, \Package{scrletter}%
44 \OnlyAt{\Package{scrletter}} relies on the
45 \hyperref[cha:scrextend]{\Package{scrextend}}\IndexPackage{scrextend}%
46 \important{\hyperref[cha:scrextend]{\Package{scrextend}}} package.
47 Therefore, see also \autoref{sec:scrextend.footnotes},
48 \autopageref{sec:scrextend.footnotes} when using \Package{scrletter}.%
49 \iffalse% Umbruchkorrekturtext
50 \ Note in particular that in this case some typical \KOMAScript{}
51 extensions are not active by default\textnote{default}. Instead, the
52 footnotes make use of the class used, or the \LaTeX{} kernel.%
53 \fi%
54 }{}%
55 }
56
57 \IfThisCommonLabelBase{maincls}{%
58 Unlike\textnote{\KOMAScript{} vs. standard classes} the standard classes,
59 \KOMAScript{} offers the ability to configure the format of the footnote
60 block.%
61 }{%
62 \IfThisCommonLabelBase{scrlttr2}{%
63 You can find the basic commands to set footnotes in any introduction to
64 \LaTeX, for example \cite{lshort}. \KOMAScript{}%
65 \textnote{\KOMAScript{} vs. standard classes} provides additional features
66 to change the format of the footnote block. %
67 \iffalse % Umbruchoptimierung
68
69 Whether footnotes should be allowed for letters depends very much on the
70 type of letter and its layout. For example, you should not allow
71 footnotes to overlap visually with the letterhead footer or be confused
72 with the courtesy-copy list. Doing so is the responsibility of the
73 user.%
74
75 Since footnotes are rarely used in letters, examples in this section have
76 been omitted. If you need examples, you can find them in
77 \autoref{sec:\ThisCommonFirstLabelBase.footnotes},
78 \autopageref{sec:\ThisCommonFirstLabelBase.footnotes}.%
79 \fi%
80 }{%
81 \IfThisCommonLabelBase{scrextend}{%
82 The footnote capabilities of the \KOMAScript{} classes are also
83 provided by \Package{scrextend}. By default, the formatting of
84 footnotes is left to the class used. This changes as soon as you
85 issue the \DescRef{\ThisCommonLabelBase.cmd.deffootnote} command,
86 which is explained in detail on
87 \DescPageRef{\ThisCommonLabelBase.cmd.deffootnote}.
88
89 The options for adjusting the dividing line above footnotes, however,
90 are not provided by \Package{scrextend}.%
91 }{\InternalCommonFileUsageError}%
92 }%
93 }%
94
95 \begin{Declaration}
96 \OptionVName{footnotes}{setting}
97 \Macro{multfootsep}
98 \end{Declaration}
99 \IfThisCommonLabelBase{scrextend}{Many classes mark footnotes }{%
100 Footnotes %
101 \IfThisCommonLabelBase{maincls}{%
102 \ChangedAt{v3.00}{\Class{scrbook}\and \Class{scrreprt}\and
103 \Class{scrartcl}}%
104 }{%
105 \IfThisCommonLabelBase{scrlttr2}{%
106 \ChangedAt{v3.00}{\Class{scrlttr2}}%
107 }{}%
108 }%
109 are marked %
110 }%
111 by default in the text with a small superscript number. If several footnotes
112 appear in succession at the same point, it gives the impression that there is
113 one footnote with a large number rather than multiple footnotes (e.\,g.
114 footnote 12 instead of footnotes 1 and 2).
115 With\important{\OptionValue{footnotes}{multiple}}
116 \OptionValue{footnotes}{multiple}\IndexOption{footnotes=~multiple}, footnotes
117 that follow each other directly are separated with a delimiter instead. The
118 default delimiter in \Macro{multfootsep}\important{\Macro{multfootsep}} is
119 defined as a comma without a space:
120 \begin{lstcode}
121 \newcommand*{\multfootsep}{,}
122 \end{lstcode}
123 This can be redefined.
124
125 The whole mechanism is compatible with the
126 \Package{footmisc}\IndexPackage{footmisc}\important{\Package{footmisc}}
127 package, version~5.3d to 5.5b (see \cite{package:footmisc}). It affects
128 footnote markers placed using
129 \DescRef{\ThisCommonLabelBase.cmd.footnote}\IndexCmd{footnote}, as well as
130 those placed directly with
131 \DescRef{\ThisCommonLabelBase.cmd.footnotemark}\IndexCmd{footnotemark}.
132
133 You can switch back to the default
134 \OptionValue{footnotes}{nomultiple} at any time using the
135 \DescRef{\ThisCommonLabelBase.cmd.KOMAoptions} or
136 \DescRef{\ThisCommonLabelBase.cmd.KOMAoption} command. However, if you
137 encounter any problems using another package that alters the footnotes, you
138 should not use this option, nor should you change the \PName{setting} anywhere
139 inside the document.
140
141 A summary of the available \PName{setting} values of \Option{footnotes} can
142 be found in \autoref{tab:\ThisCommonFirstLabelBase.footnotes}%
143 \IfThisCommonFirstRun{%
144 .
145 \begin{table}
146 \caption[{Available values for the \Option{footnotes} option}]
147 {Available values for the \Option{footnotes} option to configure footnotes}
148 \label{tab:\ThisCommonLabelBase.footnotes}
149 \begin{desctabular}
150 \pventry{multiple}{%
151 Consecutive footnote marks will be separated by
152 \DescRef{\ThisCommonLabelBase.cmd.multfootsep}\IndexCmd{multfootsep}.%
153 \IndexOption{footnotes~=\textKValue{multiple}}}%
154 \pventry{nomultiple}{%
155 Consecutive footnote marks will be handled like single footnotes
156 and not separated from each other.%
157 \IndexOption{footnotes~=\textKValue{nomultiple}}}%
158 \end{desctabular}
159 \end{table}%
160 }{,
161 \autopageref{tab:\ThisCommonFirstLabelBase.footnotes}.%
162 }%
163 %
164 \EndIndexGroup
165
166
167 \begin{Declaration}
168 \Macro{footnote}\OParameter{number}\Parameter{text}%
169 \Macro{footnotemark}\OParameter{number}%
170 \Macro{footnotetext}\OParameter{number}\Parameter{text}%
171 \Macro{multiplefootnoteseparator}%
172 \end{Declaration}%
173 Footnotes in \KOMAScript{} are produced, as they are in the standard classes,
174 with the \Macro{footnote} command, or alternatively the pair of commands
175 \Macro{footnotemark} and \Macro{footnotetext}. As in the standard classes,
176 it is possible for a page break to occur within a footnote. Normally this
177 happens if the footnote mark is placed so near the bottom of a page as to
178 leave \LaTeX{} no choice but to move the footnote to the next page.
179 Unlike\textnote{\KOMAScript{} vs. standard classes}
180 \IfThisCommonLabelBase{maincls}{%
181 \ChangedAt{v3.00}{\Class{scrbook}\and \Class{scrreprt}\and
182 \Class{scrartcl}}%
183 }{%
184 \IfThisCommonLabelBase{scrlttr2}{%
185 \ChangedAt{v3.00}{\Class{scrlttr2}}%
186 }{}%
187 } %
188 the standard classes, \KOMAScript{} can recognize and separate consecutive
189 footnotes automatically.
190 See\important{\DescRef{\ThisCommonLabelBase.option.footnotes}} the previously
191 documented option \DescRef{\ThisCommonLabelBase.option.footnotes}.
192
193 If instead you want to place this delimiter manually, you can do so by calling
194 \Macro{multiplefootnoteseparator}. However, users should not redefine this
195 command, as it contains not only the delimiter but also the delimiter's
196 formatting, for example the font size selection and the superscript. The
197 delimiter itself is stored in the previously described
198 \DescRef{\ThisCommonLabelBase.cmd.multfootsep}%
199 \important{\DescRef{\ThisCommonLabelBase.cmd.multfootsep}}%
200 \IndexCmd{multfootsep} command.
201
202 \IfThisCommonFirstRun{\iftrue}{%
203 You can find examples and additional hints in
204 \autoref{sec:\ThisCommonFirstLabelBase.footnotes} from
205 \PageRefxmpl{\ThisCommonFirstLabelBase.cmd.footnote}.%
206 \csname iffalse\endcsname }%
207 \begin{Example}
208 \phantomsection\xmpllabel{cmd.footnote}%
209 Suppose you want to put two footnotes after a single word. First you try
210 \begin{lstcode}
211 Word\footnote{1st footnote}\footnote{2nd footnote}
212 \end{lstcode}
213 Let's assume that the footnotes are numbered 1 and 2. Since the two
214 footnote numbers follow each other directly, it creates the impression
215 that the word has only one footnote numbered 12. You can change this
216 behaviour by using
217 \begin{lstcode}
218 \KOMAoptions{footnotes=multiple}
219 \end{lstcode}
220 to enable the automatic recognition of footnote sequences. Alternatively,
221 you can use
222 \begin{lstcode}
223 word\footnote{Footnote 1}%
224 \multiplefootnoteseparator
225 \footnote{Footnote 2}
226 \end{lstcode}
227 This should give you the desired result even if automatic detection
228 fails or cannot be used for some reason.
229
230 Now suppose you also want the footnote numbers to be separated not just by
231 a comma, but by a comma and a space. In this case, write
232 \begin{lstcode}
233 \renewcommand*{\multfootsep}{,\nobreakspace}
234 \end{lstcode}
235 in the preamble of your document.
236 \Macro{nobreakspace}\IndexCmd{nobreakspace} was used here instead of a
237 normal space to avoid paragraph or page breaks within the sequence of
238 footnotes.
239 \end{Example}%
240 \fi%
241 %
242 \EndIndexGroup
243
244
245 \begin{Declaration}
246 \Macro{footref}\Parameter{reference}
247 \end{Declaration}
248 Sometimes\IfThisCommonLabelBase{maincls}{%
249 \ChangedAt{v3.00}{\Class{scrbook}\and \Class{scrreprt}\and
250 \Class{scrartcl}}%
251 }{%
252 \IfThisCommonLabelBase{scrlttr2}{%
253 \ChangedAt{v3.00}{\Class{scrlttr2}}%
254 }{}} you have a footnote in a document to which there are several references
255 in the text. An inconvenient way to typeset this would be to use
256 \DescRef{\ThisCommonLabelBase.cmd.footnotemark} to set the number directly.
257 The disadvantage of this method is that you need to know the number and
258 manually set every \DescRef{\ThisCommonLabelBase.cmd.footnotemark} command.
259 And if the number changes because you add or remove an earlier footnote, you
260 will have to change each \DescRef{\ThisCommonLabelBase.cmd.footnotemark}.
261 \KOMAScript{} thefore offers the \Macro{label}\IndexCmd{label}%
262 \important{\Macro{label}} mechanism to handle such cases. After placing a
263 \Macro{label} inside the footnote, you can use \Macro{footref} to set all the
264 other marks for this footnote in the text.
265 \IfThisCommonFirstRun{\iftrue}{\csname iffalse\endcsname}%
266 \begin{Example}
267 \phantomsection\xmpllabel{cmd.footref}%
268 You are writing a text in which you must create a footnote each time a
269 brand name occurs, indicating that it is a registered trademark. You can
270 write, for example,
271 \begin{lstcode}
272 Company SplishSplash\footnote{This is a registered trade name.
273 All rights are reserved.\label{refnote}}
274 produces not only SplishPlump\footref{refnote}
275 but also SplishPlash\footref{refnote}.
276 \end{lstcode}
277 This will produce the same footnote mark three times, but only one
278 footnote text. The first footnote mark is produced by
279 \DescRef{\ThisCommonLabelBase.cmd.footnote} itself, and the following two
280 footnote marks are produced by the additional \Macro{footref}
281 commands. The footnote text will be produced by
282 \DescRef{\ThisCommonLabelBase.cmd.footnote}.
283 \end{Example}
284 \fi%
285 When setting footnote marks with the \Macro{label} mechanism, any
286 changes to the footnote numbers will require at least two \LaTeX{} runs to
287 ensure correct numbers for all \Macro{footref} marks.%
288 \IfThisCommonLabelBaseOneOf{scrlttr2,scrextend}{\par%
289 You can find an example of how to use \Macro{footref} in
290 \autoref{sec:\ThisCommonFirstLabelBase.footnotes} on
291 \PageRefxmpl{\ThisCommonFirstLabelBase.cmd.footref}. %
292 }{}%
293 \IfThisCommonLabelBase{scrlttr2}{}{%
294 \par
295 Note\textnote{Attention!} that statements like \Macro{ref}\IndexCmd{ref}
296 or \Macro{pageref}\IndexCmd{pageref} are fragile and therefore you should
297 put \Macro{protect}\IndexCmd{protect} in front of them if they appear in
298 moving arguments such as headings. %
299 }%
300 By the way, from\IfThisCommonLabelBase{maincls}{%
301 \ChangedAt{v3.33}{\Class{scrbook}\and \Class{scrreprt}\and
302 \Class{scrartcl}\and \Package{scrextend}}%
303 }{%
304 \IfThisCommonLabelBase{scrlttr2}{%
305 \ChangedAt{v3.33}{\Class{scrlttr2}}%
306 }{}%
307 } %
308 \LaTeX{} 2021-05-01 on, the command is provided by \LaTeX{} itself.%
309 \EndIndexGroup
310
311
312 \begin{Declaration}
313 \Macro{deffootnote}\OParameter{mark width}\Parameter{indent}%
314 \Parameter{parindent}\Parameter{definition}%
315 \Macro{deffootnotemark}\Parameter{definition}%
316 \Macro{thefootnotemark}
317 \end{Declaration}%
318 \IfThisCommonLabelBase{maincls}{The \KOMAScript{} classes set}{\KOMAScript{}
319 sets}\textnote{\KOMAScript{} vs. standard classes} footnotes slightly
320 differently than the standard classes do. As in the standard classes, the
321 footnote mark in the text is rendered with small, superscript numbers. The
322 same formatting is used in the footnote itself. The mark in the footnote is
323 typeset right-justified in a box with a width of \PName{mark width}. The first
324 line of the footnote follows directly.
325
326 All subsequent lines will be indented by the length of \PName{indent}. If the
327 optional parameter \PName{mark width} is not specified, it defaults to
328 \PName{indent}. If the footnote consists of more than one paragraph, the first
329 line of each paragraph is indented by the value of \PName{parindent}.
330
331 \autoref{fig:\ThisCommonFirstLabelBase.deffootnote} %
332 \IfThisCommonFirstRun{}{on
333 \autopageref{fig:\ThisCommonFirstLabelBase.deffootnote} }{}%
334 shows the different parameters%
335 \IfThisCommonLabelBase{maincls}{ again}{}%
336 . The default configuration of the \KOMAScript{} classes is as follows:
337 \IfThisCommonLabelBase{scrextend}{\iftrue}{\csname iffalse\endcsname}%
338 \begin{lstcode}
339 \deffootnote[1em]{1.5em}{1em}{%
340 \textsuperscript{\thefootnotemark}}
341 \end{lstcode}
342 \else
343 \begin{lstcode}
344 \deffootnote[1em]{1.5em}{1em}{%
345 \textsuperscript{\thefootnotemark}%
346 }
347 \end{lstcode}
348 \fi%
349 \Macro{textsuperscript} controls both the
350 superscript and the smaller font size. The command \Macro{thefootnotemark}
351 contains the current footnote mark without any formatting.%
352 \IfThisCommonLabelBase{scrextend}{ %
353 The \Package{scrextend} package, by contrast, does not change the default
354 footnote settings of the class you are using. Simply loading the package,
355 therefore, should not lead to any changes in the formatting of footnote
356 marks or footnote text. To use the default settings of the \KOMAScript{}
357 classes with \Package{scrextend}, you must change the settings above
358 yourself. For example, you can insert the line of code above immediately
359 after loading the \Package{scrextend} package.%
360 }{}%
361
362 \IfThisCommonLabelBase{maincls}{%
363 \begin{figure}
364 % \centering
365 \KOMAoption{captions}{bottombeside}
366 \setcapindent{0pt}%
367 \begin{captionbeside}
368 [{Parameters that control the footnote layout}]%
369 {\label{fig:\ThisCommonLabelBase.deffootnote}\hspace{0pt plus 1ex}%
370 Parameters that control the footnote layout}%
371 [l]
372 \setlength{\unitlength}{1mm}
373 \begin{picture}(100,22)
374 \thinlines
375 % frame of following paragraph
376 \put(5,0){\line(1,0){90}}
377 \put(5,0){\line(0,1){5}}
378 \put(10,5){\line(0,1){5}}\put(5,5){\line(1,0){5}}
379 \put(95,0){\line(0,1){10}}
380 \put(10,10){\line(1,0){85}}
381 % frame of first paragraph
382 \put(5,11){\line(1,0){90}}
383 \put(5,11){\line(0,1){5}}
384 \put(15,16){\line(0,1){5}}\put(5,16){\line(1,0){10}}
385 \put(95,11){\line(0,1){10}}
386 \put(15,21){\line(1,0){80}}
387 % box of the footnote mark
388 \put(0,16.5){\framebox(14.5,4.5){\mbox{}}}
389 % description of paragraphs
390 \put(45,16){\makebox(0,0)[l]{\textsf{first paragraph of a footnote}}}
391 \put(45,5){\makebox(0,0)[l]{\textsf{next paragraph of a footnote}}}
392 % help lines
393 \thicklines
394 \multiput(0,0)(0,3){7}{\line(0,1){2}}
395 \multiput(5,0)(0,3){3}{\line(0,1){2}}
396 % parameters
397 \put(2,7){\vector(1,0){3}}
398 \put(5,7){\line(1,0){5}}
399 \put(15,7){\vector(-1,0){5}}
400 \put(15,7){\makebox(0,0)[l]{\small\PName{parindent}}}
401 %
402 \put(-3,13){\vector(1,0){3}}
403 \put(0,13){\line(1,0){5}}
404 \put(10,13){\vector(-1,0){5}}
405 \put(10,13){\makebox(0,0)[l]{\small\PName{indent}}}
406 %
407 \put(-3,19){\vector(1,0){3}}
408 \put(0,19){\line(1,0){14.5}}
409 \put(19.5,19){\vector(-1,0){5}}
410 \put(19.5,19){\makebox(0,0)[l]{\small\PName{mark width}}}
411 \end{picture}
412 \end{captionbeside}
413 \end{figure}}
414
415 \BeginIndexGroup
416 \BeginIndex{FontElement}{footnote}\LabelFontElement{footnote}%
417 \BeginIndex{FontElement}{footnotelabel}\LabelFontElement{footnotelabel}%
418 The footnote\IfThisCommonLabelBase{maincls}{%
419 \ChangedAt{v2.8q}{\Class{scrbook}\and \Class{scrreprt}\and
420 \Class{scrartcl}%
421 }}{}, including the footnote mark, uses the font specified in the
422 \FontElement{footnote}\important{\FontElement{footnote}} element. You can
423 change the font of the footnote mark separately using the
424 \DescRef{\ThisCommonLabelBase.cmd.setkomafont} and
425 \DescRef{\ThisCommonLabelBase.cmd.addtokomafont} commands (see
426 \autoref{sec:\ThisCommonLabelBase.textmarkup},
427 \DescPageRef{\ThisCommonLabelBase.cmd.setkomafont})
428 for the \FontElement{footnotelabel}\important{\FontElement{footnotelabel}}
429 element. See also \autoref{tab:\ThisCommonLabelBase.fontelements},
430 \autopageref{tab:\ThisCommonLabelBase.fontelements}.
431 The default setting is no change to the font.%
432 \IfThisCommonLabelBase{scrextend}{ %
433 However, with \Package{scrextend} these elements will only change the fonts
434 if footnotes are handled by the package, that is, after using
435 \Macro{deffootnote}.%
436 }{} Please don't misuse this element for other purposes, for example to set
437 the footnotes ragged right (see also \DescRef{\LabelBase.cmd.raggedfootnote},
438 \DescPageRef{\LabelBase.cmd.raggedfootnote}).
439
440 \BeginIndex{FontElement}{footnotereference}%
441 \LabelFontElement{footnotereference}%
442 The footnote mark in the text is defined separately from the mark in
443 front of the actual footnote. This is done with
444 \Macro{deffootnotemark}. The default setting is:
445 \begin{lstcode}
446 \deffootnotemark{%
447 \textsuperscript{\thefootnotemark}}
448 \end{lstcode}
449 With\IfThisCommonLabelBase{maincls}{%
450 \ChangedAt{v2.8q}{\Class{scrbook}\and \Class{scrreprt}\and
451 \Class{scrartcl}}%
452 }{} this default, the font for the
453 \FontElement{footnotereference}\important{\FontElement{footnotereference}}
454 element is used (see \autoref{tab:\ThisCommonLabelBase.fontelements},
455 \autopageref{tab:\ThisCommonLabelBase.fontelements}). Thus, the footnote marks
456 in the text and in the footnote itself are identical. You can change the font
457 with the commands \DescRef{\ThisCommonLabelBase.cmd.setkomafont} and
458 \DescRef{\ThisCommonLabelBase.cmd.addtokomafont} (see
459 \autoref{sec:\ThisCommonLabelBase.textmarkup},
460 \DescPageRef{\ThisCommonLabelBase.cmd.setkomafont}).
461
462 \IfThisCommonFirstRun{\iftrue}{\csname iffalse\endcsname}%
463 \begin{Example}
464 \phantomsection
465 \xmpllabel{cmd.deffootnote}%
466 One\textnote{Hint!} feature that is often requested is footnote marks
467 which are neither in superscript nor in a smaller font. They should not
468 touch the footnote text but be separated by a small space. You can
469 accomplish this as follows:
470 \begin{lstcode}
471 \deffootnote{1em}{1em}{\thefootnotemark\ }
472 \end{lstcode}
473 This will set the footnote mark and subsequent space right-aligned in a
474 box of width 1\Unit{em}. The lines of the footnote text that follow are
475 also indented by 1\Unit{em} from the left margin.
476
477 Another\textnote{Hint!} layout that is often requested is footnote marks
478 that are left-aligned. You can obtain them with the following
479 definition:
480 \begin{lstcode}
481 \deffootnote{1.5em}{1em}{%
482 \makebox[1.5em][l]{\thefootnotemark}}
483 \end{lstcode}
484
485 If, however you want to change the font for all footnotes, for example
486 to sans serif, this can easily be done with the commands
487 \DescRef{\ThisCommonLabelBase.cmd.setkomafont} and
488 \DescRef{\ThisCommonLabelBase.cmd.addtokomafont} (see
489 \autoref{sec:\ThisCommonLabelBase.textmarkup},
490 \DescPageRef{\ThisCommonLabelBase.cmd.setkomafont}):
491 \begin{lstcode}
492 \setkomafont{footnote}{\sffamily}
493 \end{lstcode}
494 \end{Example}%
495 \IfThisCommonLabelBase{scrextend}{}{%
496 As the examples show, {\KOMAScript} allows a wide variety of different
497 footnote formats with this simple user interface.%
498 }%
499 \fi%
500 \IfThisCommonFirstRun{}{%
501 For examples, see \autoref{sec:\ThisCommonFirstLabelBase.footnotes},
502 \PageRefxmpl{\ThisCommonFirstLabelBase.cmd.deffootnote}.%
503 }{}%
504 %
505 \EndIndexGroup
506 \EndIndexGroup
507
508 \IfThisCommonLabelBase{scrextend}{\iffalse}{\csname iftrue\endcsname}
509 \begin{Declaration}
510 \Macro{setfootnoterule}\OParameter{thickness}\Parameter{length}%
511 \end{Declaration}%
512 Generally,\IfThisCommonLabelBase{maincls}{%
513 \ChangedAt{v3.06}{\Class{scrbook}\and \Class{scrreprt}\and
514 \Class{scrartcl}}%
515 }{%
516 \IfThisCommonLabelBase{scrlttr2}{%
517 \ChangedAt{v3.06}{\Class{scrlttr2}}%
518 }{%
519 \IfThisCommonLabelBase{scrextend}{%
520 \ChangedAt{v3.06}{\Package{scrextend}}%
521 }{}%
522 }%
523 } a horizontal rule is set between the text area and the footnote area, but
524 normally this rule does not extend the full width of the type area. With
525 \Macro{setfootnoterule}, you can set the exact thickness and length of the
526 rule. In this case, the parameters \PName{thickness} and \PName{length} are
527 only evaluated when setting the rule itself. If the optional argument
528 \PName{thickness} has been omitted, the thickness of the rule will not be
529 changed. Empty arguments for \PName{thickness} or \PName{length} are also
530 allowed and do not change the corresponding parameters. Using absurd values
531 will result in warning messages both when setting and when using the
532 parameters.
533
534 \BeginIndexGroup
535 \BeginIndex{FontElement}{footnoterule}\LabelFontElement{footnoterule}%
536 You can%
537 \IfThisCommonLabelBase{maincls}{%
538 \ChangedAt{v3.07}{\Class{scrbook}\and \Class{scrreprt}\and
539 \Class{scrartcl}}%
540 }{%
541 \IfThisCommonLabelBase{scrlttr2}{%
542 \ChangedAt{v3.07}{\Class{scrlttr2}}%
543 }{%
544 \IfThisCommonLabelBase{scrextend}{%
545 \ChangedAt{v3.07}{\Package{scrextend}}%
546 }{}%
547 }%
548 } %
549 change the colour of the rule with the
550 \FontElement{footnoterule}\important{\FontElement{footnoterule}} element using
551 the \DescRef{\ThisCommonLabelBase.cmd.setkomafont} and
552 \DescRef{\ThisCommonLabelBase.cmd.addtokomafont} commands (see
553 \autoref{sec:\ThisCommonLabelBase.textmarkup},
554 \DescPageRef{\ThisCommonLabelBase.cmd.setkomafont}). The default is no change
555 of font or colour. In order to change the colour, you must also load a colour
556 package like
557 \Package{xcolor}\IndexPackage{xcolor}\important{\Package{xcolor}}.%
558 \EndIndexGroup
559 \EndIndexGroup
560 \fi
561
562 \begin{Declaration}
563 \Macro{raggedfootnote}
564 \end{Declaration}
565 By default%
566 \IfThisCommonLabelBase{maincls}{%
567 \ChangedAt{v3.23}{\Class{scrbook}\and \Class{scrreprt}\and
568 \Class{scrartcl}}%
569 }{%
570 \IfThisCommonLabelBase{scrlttr2}{%
571 \ChangedAt{v3.23}{\Class{scrlttr2}}%
572 }{%
573 \IfThisCommonLabelBase{scrextend}{%
574 \ChangedAt{v3.23}{\Package{scrextend}}%
575 }{}%
576 }%
577 } %
578 \KOMAScript{} justifies footnotes just as in the standard classes.
579 But\IfThisCommonLabelBase{scrextend}{%
580 \ if you use \DescRef{\LabelBase.cmd.deffootnote}%
581 \important{\DescRef{\LabelBase.cmd.deffootnote}}%
582 \IndexCmd{deffootnote}%
583 }{%
584 \textnote{\KOMAScript{} vs. standard classes}%
585 } you can also change the justification separately from the rest of the
586 document by redefining \Macro{raggedfootnote}. Valid definitions are
587 \Macro{raggedright}\IndexCmd{raggedright},
588 \Macro{raggedleft}\IndexCmd{raggedleft},
589 \Macro{centering}\IndexCmd{centering}, \Macro{relax}\IndexCmd{relax} or an
590 empty definition, which is the default. The alignment commands of the
591 \Package{ragged2e}\IndexPackage{ragged2e} package are also valid (see
592 \cite{package:ragged2e}). \IfThisCommonLabelBase{scrextend}{%
593 You can find a suitable example in
594 \autoref{sec:\ThisCommonFirstLabelBase.footnotes},
595 \PageRefxmpl{\ThisCommonFirstLabelBase.cmd.raggedfootnote}.%
596 \iffalse }{\csname iftrue\endcsname}%
597 \begin{Example}
598 \phantomsection\xmpllabel{cmd.raggedfootnote}%
599 Suppose you are using footnotes only to provide references to very long
600 links, where line breaks would produce poor results if justified. You can
601 use
602 \begin{lstcode}
603 \let\raggedfootnote\raggedright
604 \end{lstcode}
605 in your document's preamble to switch to ragged-right footnotes.
606 \end{Example}%
607 \fi
608 \EndIndexGroup
609
610 \begin{Declaration}
611 \DoHook{footnote/text/begin}%
612 \DoHook{footnote/text/end}%
613 \end{Declaration}
614 \BeginIndex{}{hook}%
615 For\ChangedAt{v3.36}{\Class{scrbook}\and \Class{scrreprt}\and
616 \Class{scrartcl}\and \Package{scrextend}} experts there are also two hooks
617 of type \emph{do-hook} (see \autoref{sec:scrbase.hooks} from
618 \autopageref{sec:scrbase.hooks}). The first of these is used at the very
619 beginning of \Macro{@makefntext} before
620 \DescRef{\LabelBase.cmd.raggedfootnote} is executed. The second one at the end
621 before the paragraph is finished. Currently neither hook is used by
622 \KOMAScript{} itself.%
623 \EndIndexGroup
624 %
625 \EndIndexGroup
626
627
628 %%% Local Variables:
629 %%% mode: latex
630 %%% coding: utf-8
631 %%% ispell-local-dictionary: "en_GB"
632 %%% eval: (flyspell-mode 1)
633 %%% TeX-master: "../guide"
634 %%% End: