summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/koma-script/doc/english/common-textmarkup.tex
blob: 9746ed6ee9954cbf8bccbb80f9057331a8bef4da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
% ======================================================================
% common-textmarkup.tex
% Copyright (c) Markus Kohm, 2001-2017
%
% This file is part of the LaTeX2e KOMA-Script bundle.
%
% This work may be distributed and/or modified under the conditions of
% the LaTeX Project Public License, version 1.3c of the license.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX 
% version 2005/12/01 or later and of this work.
%
% This work has the LPPL maintenance status "author-maintained".
%
% The Current Maintainer and author of this work is Markus Kohm.
%
% This work consists of all files listed in manifest.txt.
% ----------------------------------------------------------------------
% common-textmarkup.tex
% Copyright (c) Markus Kohm, 2001-2017
%
% Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz,
% Version 1.3c, verteilt und/oder veraendert werden.
% Die neuste Version dieser Lizenz ist
%   http://www.latex-project.org/lppl.txt
% und Version 1.3c ist Teil aller Verteilungen von LaTeX
% Version 2005/12/01 oder spaeter und dieses Werks.
%
% Dieses Werk hat den LPPL-Verwaltungs-Status "author-maintained"
% (allein durch den Autor verwaltet).
%
% Der Aktuelle Verwalter und Autor dieses Werkes ist Markus Kohm.
% 
% Dieses Werk besteht aus den in manifest.txt aufgefuehrten Dateien.
% ======================================================================
%
% Paragraphs that are common for several chapters of the KOMA-Script guide
% Maintained by Markus Kohm
%
% ----------------------------------------------------------------------
%
% Absaetze, die mehreren Kapiteln der KOMA-Script-Anleitung gemeinsam sind
% Verwaltet von Markus Kohm
%
% ======================================================================

\KOMAProvidesFile{common-textmarkup.tex}
                 [$Date: 2017-01-02 13:30:07 +0100 (Mon, 02 Jan 2017) $
                  KOMA-Script guide (common paragraphs)]
\translator{Gernot Hassenpflug\and Markus Kohm\and Krickette Murabayashi}

% Date of the translated German file: 2017-01-02

\section{Text Markup}
\seclabel{textmarkup}%
\BeginIndexGroup%
\BeginIndex{}{text>markup}%
\BeginIndex{}{font}%

\IfThisCommonFirstRun{}{%
  What is described in \autoref{sec:\ThisCommonFirstLabelBase.textmarkup}
  applies, mutatis mutandis. So if you have alread read and understood
  \autoref{sec:\ThisCommonFirstLabelBase.textmarkup.next} you can switch
  to \autopageref{sec:\ThisCommonLabelBase.textmarkup.next}.%
  \IfThisCommonLabelBaseOneOf{scrextend,scrjura,scrlayer-notecolumn}{}{ %
    But you should have a look at
    \autoref{tab:\ThisCommonLabelBase.fontelements},
    \autopageref{tab:\ThisCommonLabelBase.fontelements}.%
  }%
}

{\LaTeX} offers different possibilities for logical and direct
markup\Index{logical markup}\Index{markup} of text.
Selection of the
font family commands, as well as choosing the font size and width is
supported. More information about the standard font facilities may be found at
\cite{lshort}, \cite{latex:usrguide}, and \cite{latex:fntguide}.


\IfThisCommonLabelBaseOneOf{scrlayer-scrpage,scrjura,scrlayer-notecolumn}{%
  \iffalse}{%
  \csname iftrue\endcsname}%
  \begin{Declaration}
    \Macro{textsuperscript}\Parameter{Text}%
    \Macro{textsubscript}\Parameter{Text}
  \end{Declaration}
  The \LaTeX-Kern already defines the command
  \Macro{textsuperscript}\IndexCmd{textsuperscript} to
  superscript\Index{text>superscript}\Index{superscript} text. Unfortunately,
  until release 2015/01/01 {\LaTeX} itself does not offer a command to produce
  text in subscript\Index{text>subscript}\Index{subscript} instead of
  superscript\Index{text>superscript}\Index{superscript}. {\KOMAScript}
  defines \Macro{textsubscript} for this purpose. %
  \ifthiscommonfirst
    \begin{Example}
      \phantomsection
      \xmpllabel{cmd.textsubscript}%
      You are writing a text on human metabolism. From time to time you
      have to give some simple chemical formulas in which the numbers are
      in subscript. For enabling logical markup you first define in the
      document preamble or in a separate package:
\begin{lstcode}
  \newcommand*{\molec}[2]{#1\textsubscript{#2}}
\end{lstcode}
      \newcommand*{\molec}[2]{#1\textsubscript{#2}}
      Using this you then write:
\begin{lstcode}
  The cell produces its energy partly from reaction of \molec C6\molec
  H{12}\molec O6 and \molec O2 to produce \molec H2\Molec O{} and
  \molec C{}\molec O2.  However, arsenic (\molec{As}{}) has a quite
  detrimental effect on the metabolism.
\end{lstcode}
      The output looks as follows:
      \begin{ShowOutput}
        The cell produces its energy from reaction of \molec C6\molec
        H{12}\molec O6 and \molec O2 to produce \molec H2\molec O{} and
        \molec C{}\molec O2.  However, arsenic (\molec{As}{}) has a quite
        detrimental effect on the metabolism.
      \end{ShowOutput}

      Some time later you decide that the chemical formulas should be
      typeset in sans serif. Now you can see the advantages of using
      logical markup. You only have the redefine the \Macro{molec}
      command:
\begin{lstcode}
  \newcommand*{\molec}[2]{\textsf{#1\textsubscript{#2}}}
\end{lstcode}
      \renewcommand*{\molec}[2]{\textsf{#1\textsubscript{#2}}}
      Now the output in the whole document changes to:
      \begin{ShowOutput}
        The cell produces its energy partly from reaction of \molec
        C6\molec H{12}\molec O6 and \molec O2 to produce \molec H2\molec
        O{} and \molec C{}\molec O2.  However, arsenic (\molec{As}{}) has
        a quite detrimental effect on the metabolism.
      \end{ShowOutput}
    \end{Example}
    \iftrue
      \begin{Explain}
        In the example above, the notation ``\verb|\molec C6|'' is used. 
        This makes use of the fact that arguments consisting of only one
        character do not have to be enclosed in parentheses. That is why
        ``\verb|\molec C6|'' is similar to ``\verb|\molec{C}{6}|''. You
        might already know this from indices or powers in mathematical
        environments, such as ``\verb|$x^2$|'' instead of ``\verb|$x^{2}$|''
        for ``$x^2$''.
      \end{Explain}
    \else % maybe some time I've made an English book
      Experts can find information about the reason why the example above does
      work unless putting all arguments of \Macro{molec} into braces in
      \autoref{sec:experts.knowhow},
      \DescPageRef{experts.macroargs}.%
    \fi
  \else
    You may find an example of usage at
    \autoref{sec:\ThisCommonFirstLabelBase.textmarkup},
    \PageRefxmpl{\ThisCommonFirstLabelBase.cmd.textsubscript}.
  \fi%
  \EndIndexGroup%
\fi


\begin{Declaration}
  \Macro{setkomafont}\Parameter{element}\Parameter{commands}%
  \Macro{addtokomafont}\Parameter{element}\Parameter{commands}%
  \Macro{usekomafont}\Parameter{element}
\end{Declaration}%
With\ChangedAt{v2.8p}{\Class{scrbook}\and \Class{scrreprt}\and
  \Class{scrartcl}} the help of the two commands \Macro{setkomafont} and
\Macro{addtokomafont}, it is possible to define the \PName{commands} that
change the characteristics of a given \PName{element}. Theoretically, all
possible statements including literal text could be used as \PName{commands}.
You should\textnote{Attention!}, however, absolutely limit yourself to those
statements that really switch only one font attribute. This will usually be
the commands \Macro{normalfont}, \Macro{rmfamily}, \Macro{sffamily},
\Macro{ttfamily}, \Macro{mdseries}, \Macro{bfseries}, \Macro{upshape},
\Macro{itshape}, \Macro{slshape}, and \Macro{scshape}, as well as the font
size commands \Macro{Huge}, \Macro{huge}, \Macro{LARGE}, \Macro{Large},
\Macro{large}, \Macro{normalsize}, \Macro{small}, \Macro{footnotesize},
\Macro{scriptsize}, and \Macro{tiny}. The description of these commands can be
found in \cite{lshort}, \cite{latex:usrguide}, or \cite{latex:fntguide}. Color
switching commands like \Macro{normalcolor} (see \cite{package:graphics} and
\cite{package:xcolor}) are also acceptable.  The behavior when using other
commands, especially those that make redefinitions or generate output, is not
defined. Strange behavior is possible and does not represent a bug.

The command \Macro{setkomafont} provides a font switching command with a
completely new definition. In contrast to this, the \Macro{addtokomafont}
command merely extends an existing definition. It is recommended to not use
both commands inside the document body, but only in the document preamble.
Usage examples can be found in the paragraphs on the corresponding element.%
\IfThisCommonLabelBaseOneOf{scrjura,scrlayer-notecolumn}{}{%
  \ Names\IfThisCommonLabelBase{scrlayer-scrpage}{, defaults,}{} and meanings
  of the individual items are listed in %
  \IfThisCommonLabelBase{scrextend}{%
    \autoref{tab:maincls.fontelements}, \autopageref{tab:maincls.fontelements}
  }{%
    \autoref{tab:\ThisCommonLabelBase.fontelements} %
  }.%
  \IfThisCommonLabelBase{scrextend}{ %
    However only the listed elements for the document title, dicta, footnotes,
    and the \DescRef{maincls.env.labeling} environment are supported. Though
    element \DescRef{maincls.fontelement.disposition} exists, it will also be
    used for the document title only. This has been done for compatibility
    with the \KOMAScript{} classes.%
  }{}%
  \IfThisCommonLabelBase{scrlayer-scrpage}{}{ %
    The default values are shown in the corresponding paragraphs.%
  }%
}%

With command \Macro{usekomafont} the current font style may be changed into
the font style of the selected \PName{element}.%
\IfThisCommonLabelBase{maincls}{\iftrue}{\csname iffalse\endcsname}
  \begin{Example}
    \phantomsection\xmpllabel{cmd.setkomafont}%
    Assume that you want to use for the element
    \DescRef{\ThisCommonLabelBase.fontelement.captionlabel} the same font
    specification that is used with
    \DescRef{\ThisCommonLabelBase.fontelement.descriptionlabel}. This can be
    easily done with:
\begin{lstcode}
  \setkomafont{captionlabel}{%
    \usekomafont{descriptionlabel}%
  }
\end{lstcode}
    You can find other examples in the paragraphs on each element.
  \end{Example}

  \begin{desclist}
    \desccaption{%
      Elements whose type style can be changed with the {\KOMAScript} command
      \Macro{setkomafont} or
      \Macro{addtokomafont}%
      \label{tab:maincls.fontelements}%
      \label{tab:scrextend.fontelements}%     
    }{%
      Elements whose type style can be changed (\emph{continuation})%
    }%
    \feentry{author}{%
      \ChangedAt{v3.12}{\Class{scrbook}\and \Class{scrreprt}\and
        \Class{scrartcl}\and \Package{scrextend}}%
      author of the document on the main title, i.\,e., the argument of
      \DescRef{\ThisCommonLabelBase.cmd.author} when
      \DescRef{\ThisCommonLabelBase.cmd.maketitle} will be used (see
      \autoref{sec:maincls.titlepage}, \DescPageRef{maincls.cmd.author})}%
    \feentry{caption}{text of a table or figure caption (see
      \autoref{sec:maincls.floats}, \DescPageRef{maincls.cmd.caption})}%
    \feentry{captionlabel}{label of a table or figure caption; used according
      to the element \DescRef{\ThisCommonLabelBase.fontelement.caption} (see
      \autoref{sec:maincls.floats}, \DescPageRef{maincls.cmd.caption})}%
    \feentry{chapter}{title of the sectional unit
      \DescRef{\ThisCommonLabelBase.cmd.chapter} (see
      \autoref{sec:maincls.structure}, \DescPageRef{maincls.cmd.chapter})}%
    \feentry{chapterentry}{%
      table of contents entry of the sectional unit
      \DescRef{\ThisCommonLabelBase.cmd.chapter} (see
      \autoref{sec:maincls.toc}, \DescPageRef{maincls.cmd.tableofcontents})}%
    \feentry{chapterentrypagenumber}{%
      page number of the table of contents entry of the sectional unit
      \DescRef{\ThisCommonLabelBase.cmd.chapter}, variation on the element
      \DescRef{\ThisCommonLabelBase.fontelement.chapterentry} (see
      \autoref{sec:maincls.toc}, \DescPageRef{maincls.cmd.tableofcontents})}%
    \feentry{chapterprefix}{%
      chapter number line at setting
      \OptionValueRef{maincls}{chapterprefix}{true} or
      \OptionValueRef{maincls}{appendixprefix}{true} (see
      \autoref{sec:maincls.structure},
      \DescPageRef{maincls.option.chapterprefix})}%
    \feentry{date}{%
      \ChangedAt{v3.12}{\Class{scrbook}\and \Class{scrreprt}\and
        \Class{scrartcl}\and \Package{scrextend}}%
      date of the document on the main title, i.\,e., the argument of
      \DescRef{\ThisCommonLabelBase.cmd.date} when
      \DescRef{\ThisCommonLabelBase.cmd.maketitle} will be used (see
      \autoref{sec:maincls.titlepage}, \DescPageRef{maincls.cmd.date})}%
    \feentry{dedication}{%
      \ChangedAt{v3.12}{\Class{scrbook}\and \Class{scrreprt}\and
        \Class{scrartcl}\and \Package{scrextend}}%
      dedication page after the main title, i.\,e., the argument of
      \DescRef{\ThisCommonLabelBase.cmd.dedication} when
      \DescRef{\ThisCommonLabelBase.cmd.maketitle} will be used (see
      \autoref{sec:maincls.titlepage}, \DescPageRef{maincls.cmd.dedication})}%
    \feentry{descriptionlabel}{labels, i.\,e., the optional argument of
      \DescRef{\ThisCommonLabelBase.cmd.item.description} in the
      \DescRef{\ThisCommonLabelBase.env.description} environment (see
      \autoref{sec:maincls.lists}, \DescPageRef{maincls.env.description})}%
    \feentry{dictum}{dictum, wise saying, or smart slogan (see
      \autoref{sec:maincls.dictum}, \DescPageRef{maincls.cmd.dictum})}%
    \feentry{dictumauthor}{author of a dictum, wise saying, or smart slogan;
      used according to the element
      \DescRef{\ThisCommonLabelBase.fontelement.dictum} (see
      \autoref{sec:maincls.dictum}, \DescPageRef{maincls.cmd.dictum})}%
    \feentry{dictumtext}{another name for
      \DescRef{\ThisCommonLabelBase.fontelement.dictum}}%
    \feentry{disposition}{all sectional unit titles, i.\,e., the arguments of
      \DescRef{\ThisCommonLabelBase.cmd.part} down to
      \DescRef{\ThisCommonLabelBase.cmd.subparagraph} and
      \DescRef{\ThisCommonLabelBase.cmd.minisec}, including the title of the
      abstract; used before the element of the corresponding unit (see
      \autoref{sec:maincls.structure} ab
      \autopageref{sec:maincls.structure})}%
    \feentry{footnote}{footnote text and marker (see
      \autoref{sec:maincls.footnotes}, \DescPageRef{maincls.cmd.footnote})}%
    \feentry{footnotelabel}{mark of a footnote; used according to the element
      \DescRef{\ThisCommonLabelBase.fontelement.footnote} (see
      \autoref{sec:maincls.footnotes}, \DescPageRef{maincls.cmd.footnote})}%
    \feentry{footnotereference}{footnote reference in the text (see
      \autoref{sec:maincls.footnotes}, \DescPageRef{maincls.cmd.footnote})}%
    \feentry{footnoterule}{%
      horizontal rule\ChangedAt{v3.07}{\Class{scrbook}\and
        \Class{scrreprt}\and \Class{scrartcl}} above the footnotes at the end
      of the text area (see \autoref{sec:maincls.footnotes},
      \DescPageRef{maincls.cmd.setfootnoterule})}%
    \feentry{labelinglabel}{labels, i.\,e., the optional argument of
      \DescRef{\ThisCommonLabelBase.cmd.item.labeling} in the
      \DescRef{\ThisCommonLabelBase.env.labeling} environment (see
      \autoref{sec:maincls.lists}, \DescPageRef{maincls.env.labeling})}%
    \feentry{labelingseparator}{separator, i.\,e., the optional argument of
      the \DescRef{\ThisCommonLabelBase.env.labeling} environment; used
      according to the element
      \DescRef{\ThisCommonLabelBase.fontelement.labelinglabel} (see
      \autoref{sec:maincls.lists}, \DescPageRef{maincls.env.labeling})}%
    \feentry{minisec}{title of \DescRef{\ThisCommonLabelBase.cmd.minisec} (see
      \autoref{sec:maincls.structure} ab \DescPageRef{maincls.cmd.minisec})}%
    \feentry{pagefoot}{only used if package \Package{scrlayer-scrpage} has
      been loaded (see \autoref{cha:scrlayer-scrpage},
      \DescPageRef{scrlayer-scrpage.fontelement.pagefoot})}%
    \feentry{pagehead}{another name for
      \DescRef{\ThisCommonLabelBase.fontelement.pageheadfoot}}%
    \feentry{pageheadfoot}{the head of a page, but also the foot of a page
      (see \autoref{sec:maincls.pagestyle} ab
      \autopageref{sec:maincls.pagestyle})}%
    \feentry{pagenumber}{page number in the header or footer (see
      \autoref{sec:maincls.pagestyle})}%
    \feentry{pagination}{another name for
      \DescRef{\ThisCommonLabelBase.fontelement.pagenumber}}%
    \feentry{paragraph}{title of the sectional unit
      \DescRef{\ThisCommonLabelBase.cmd.paragraph} (see
      \autoref{sec:maincls.structure}, \DescPageRef{maincls.cmd.paragraph})}%
    \feentry{part}{title of the \DescRef{\ThisCommonLabelBase.cmd.part}
      sectional unit, without the line containing the part number (see
      \autoref{sec:maincls.structure}, \DescPageRef{maincls.cmd.part})}%
    \feentry{partentry}{%
      table of contents entry of the sectional unit
      \DescRef{\ThisCommonLabelBase.cmd.part} (see \autoref{sec:maincls.toc},
      \DescPageRef{maincls.cmd.tableofcontents})}%
    \feentry{partentrypagenumber}{%
      Page number of the table of contents entry of the sectional unit
      \DescRef{\ThisCommonLabelBase.cmd.part} variation on the element
      \DescRef{\ThisCommonLabelBase.fontelement.partentry} (see
      \autoref{sec:maincls.toc}, \DescPageRef{maincls.cmd.tableofcontents})}%
    \feentry{partnumber}{line containing the part number in a title of the
      sectional unit \DescRef{\ThisCommonLabelBase.cmd.part} (see
      \autoref{sec:maincls.structure}, \DescPageRef{maincls.cmd.part})}%
    \feentry{publishers}{%
      \ChangedAt{v3.12}{\Class{scrbook}\and \Class{scrreprt}\and
        \Class{scrartcl}\and \Package{scrextend}}%
      publishers of the document on the main title, i.\,e., the argument of
      \DescRef{\ThisCommonLabelBase.cmd.publishers} when
      \DescRef{\ThisCommonLabelBase.cmd.maketitle} will be used (see
      \autoref{sec:maincls.titlepage}, \DescPageRef{maincls.cmd.publishers})}%
    \feentry{section}{title of the sectional unit
      \DescRef{\ThisCommonLabelBase.cmd.section} (see
      \autoref{sec:maincls.structure}, \DescPageRef{maincls.cmd.section})}%
    \feentry{sectionentry}{%
      table of contents entry of sectional unit
      \DescRef{\ThisCommonLabelBase.cmd.section} (only available in
      \Class{scrartcl}, see \autoref{sec:maincls.toc},
      \DescPageRef{maincls.cmd.tableofcontents})}%
    \feentry{sectionentrypagenumber}{%
      page number of the table of contents entry of the sectional unit
      \DescRef{\ThisCommonLabelBase.cmd.section}, variation on element
      \DescRef{\ThisCommonLabelBase.fontelement.sectionentry} (only available
      in \Class{scrartcl, see \autoref{sec:maincls.toc},
        \DescPageRef{maincls.cmd.tableofcontents}})}%
    \feentry{sectioning}{another name for
      \DescRef{\ThisCommonLabelBase.fontelement.disposition}}%
    \feentry{subject}{%
      categorization of the document, i.\,e., the argument of
      \DescRef{\ThisCommonLabelBase.cmd.subject} on the main title page (see
      \autoref{sec:maincls.titlepage}, \DescPageRef{maincls.cmd.subject})}%
    \feentry{subparagraph}{title of the sectional unit
      \DescRef{\ThisCommonLabelBase.cmd.subparagraph} (see
      \autoref{sec:maincls.structure},
      \DescPageRef{maincls.cmd.subparagraph})}%
    \feentry{subsection}{title of the sectional unit
      \DescRef{\ThisCommonLabelBase.cmd.subsection} (see
      \autoref{sec:maincls.structure}, \DescPageRef{maincls.cmd.subsection})}%
    \feentry{subsubsection}{title of the sectional unit
      \DescRef{\ThisCommonLabelBase.cmd.subsubsection} (see
      \autoref{sec:maincls.structure},
      \DescPageRef{maincls.cmd.subsubsection})}%
    \feentry{subtitle}{%
      subtitle of the document, i.\,e., the argument of
      \DescRef{\ThisCommonLabelBase.cmd.subtitle} on the main title page (see
      \autoref{sec:maincls.titlepage}, \DescPageRef{maincls.cmd.title})}%
    \feentry{title}{main title of the document, i.\,e., the argument of
      \DescRef{\ThisCommonLabelBase.cmd.title} (for details about the title
      size see the additional note in the text of
      \autoref{sec:maincls.titlepage} from \DescPageRef{maincls.cmd.title})}%
    \feentry{titlehead}{%
      \ChangedAt{v3.12}{\Class{scrbook}\and \Class{scrreprt}\and
        \Class{scrartcl}\and \Package{scrextend}}%
      head above the main title of the document, i.\,e., the argument of
      \DescRef{\ThisCommonLabelBase.cmd.titlehead} when
      \DescRef{\ThisCommonLabelBase.cmd.maketitle} will be used (see
      \autoref{sec:maincls.titlepage}, \DescPageRef{maincls.cmd.titlehead})}%
  \end{desclist}
\else
  \IfThisCommonLabelBase{scrextend}{\iftrue}{\csname iffalse\endcsname}
    \begin{Example}
      Assumed, you want to print the document title in a serif font and with
      red colour. You may do this using:
\begin{lstcode}
  \setkomafont{title}{\color{red}}
\end{lstcode}
      Package \Package{color} or \Package{xcolor} will be needed for command
      \Macro{color}\PParameter{red}. The additional usage of
      \Macro{normalfont} is not needed in this case, because it is already
      part of the definition of the title itself. This\textnote{Attention!}
      example also needs option
      \OptionValueRef{scrextend}{extendedfeature}{title} (see
      \autoref{sec:scrextend.optionalFeatures}, 
      \DescPageRef{scrextend.option.extendedfeature}).
    \end{Example}
  \else
    \IfThisCommonLabelBase{scrlttr2}{%
      A general example for the usage of \Macro{setkomafont} and
      \Macro{usekomafont} may be found in \autoref{sec:maincls.textmarkup} at
      \PageRefxmpl{maincls.cmd.setkomafont}.

      \begin{desclist}
        \desccaption{%
          Alphabetical list of elements whose font can be changed in
          \Class{scrlttr2} using the commands \Macro{setkomafont} and
          \Macro{addtokomafont}\label{tab:scrlttr2.fontelements}%
        }{%
          Elements whose font can be changed (\emph{continuation})%
        }%
        \feentry{addressee}{name und address in address field %
          (\autoref{sec:scrlttr2.firstpage},
          \DescPageRef{scrlttr2.option.addrfield})}%
        \feentry{backaddress}{%
          return address for a window envelope %
          (\autoref{sec:scrlttr2.firstpage},
          \DescPageRef{scrlttr2.option.backaddress})}%
        \feentry{descriptionlabel}{%
          label, i.\,e., the optional argument of
          \DescRef{\ThisCommonLabelBase.cmd.item.description}, in a
          \DescRef{\ThisCommonLabelBase.env.description} environment %
          (\autoref{sec:scrlttr2.lists},
          \DescPageRef{scrlttr2.env.description})}%
        \feentry{foldmark}{%
          foldmark on the letter page; intended for color settings %
          (\autoref{sec:scrlttr2.firstpage},
          \DescPageRef{scrlttr2.option.foldmarks})}%
        \feentry{footnote}{%
          footnote text and marker %
          (see \autoref{sec:scrlttr2.footnotes},
          \DescPageRef{scrlttr2.cmd.footnote})}%
        \feentry{footnotelabel}{%
          mark of a footnote; used according to the element
          \DescRef{\ThisCommonLabelBase.fontelement.footnote} %
          (see \autoref{sec:scrlttr2.footnotes},
          \DescPageRef{scrlttr2.cmd.footnote})}%
        \feentry{footnotereference}{%
          footnote reference in the text %
          (see \autoref{sec:scrlttr2.footnotes},
          \DescPageRef{scrlttr2.cmd.footnote})}%
        \feentry{footnoterule}{%
          horizontal rule\ChangedAt{v3.07}{\Class{scrlttr2}} above the
          footnotes at the end of the text area %
          (see \autoref{sec:maincls.footnotes},
          \DescPageRef{maincls.cmd.setfootnoterule})}%
        \feentry{labelinglabel}{%
          labels, i.\,e., the optional argument of
          \DescRef{\ThisCommonLabelBase.cmd.item.labeling} in the
          \DescRef{\ThisCommonLabelBase.env.labeling} environment %
          (see \autoref{sec:scrlttr2.lists},
          \DescPageRef{scrlttr2.env.labeling})}%
        \feentry{labelingseparator}{%
          separator, i.\,e., the optional argument of the
          \DescRef{\ThisCommonLabelBase.env.labeling} environment; used
          according to the element
          \DescRef{\ThisCommonLabelBase.fontelement.labelinglabel} %
          (see \autoref{sec:scrlttr2.lists},
          \DescPageRef{scrlttr2.env.labeling})}%
        \feentry{pagefoot}{%
          used after element
          \DescRef{\ThisCommonLabelBase.fontelement.pageheadfoot} for the page
          foot, that has been defined with variable
          \DescRef{scrlttr2.variable.nextfoot}\IndexVariable{nextfoot}, or for
          the page foot of package \Package{scrlayer-scrpage} %
          (\autoref{cha:scrlayer-scrpage},
          \DescPageRef{scrlayer-scrpage.fontelement.pagefoot})}%
        \feentry{pagehead}{%
          another name for
          \DescRef{\ThisCommonLabelBase.fontelement.pageheadfoot}}%
        \feentry{pageheadfoot}{%
          the head of a page, but also the foot of a page at all page style,
          that has been defined using \KOMAScript{} %
          (see \autoref{sec:scrlttr2.pagestyle},
          \DescPageRef{scrlttr2.fontelement.pageheadfoot})}%
        \feentry{pagenumber}{%
          page number in the header or footer %
          (see \autoref{sec:scrlttr2.pagestyle},
          \DescPageRef{scrlttr2.fontelement.pagenumber})}%
        \feentry{pagination}{%
          another name for
          \DescRef{\ThisCommonLabelBase.fontelement.pagenumber}}%
        \feentry{placeanddate}{%
          \ChangedAt{v3.12}{\Class{scrlttr2}}%
          place and date, if a date line will be used instead of a normal
          reference line (\autoref{sec:scrlttr2.firstpage},
          \DescPageRef{scrlttr2.variable.placeseparator})}%
        \feentry{refname}{%
          description or title of the fields in the reference line %
          (\autoref{sec:scrlttr2.firstpage},
          \DescPageRef{scrlttr2.variable.yourref})}%
        \feentry{refvalue}{%
          content of the fields in the reference line %
          (\autoref{sec:scrlttr2.firstpage},
          \DescPageRef{scrlttr2.variable.yourref})}%
        \feentry{specialmail}{%
          mode of dispatch in the address field %
          (\autoref{sec:scrlttr2.firstpage},
          \DescPageRef{scrlttr2.variable.specialmail})}%
        \feentry{lettersubject}{%
          \ChangedAt{v3.17}{\Class{scrlttr2}\and \Package{scrletter}}%
          subject in the opening of the letter %
          (\autoref{sec:scrlttr2.firstpage},
          \DescPageRef{scrlttr2.variable.subject})}%
        \feentry{lettertitle}{%
          \ChangedAt{v3.17}{\Class{scrlttr2}\and \Package{scrletter}}%
          title in the opening of the letter %
          (\autoref{sec:scrlttr2.firstpage},
          \DescPageRef{scrlttr2.variable.title})}%
        \feentry{toaddress}{%
          variation of the element
          \DescRef{\ThisCommonLabelBase.fontelement.addressee} for setting the
          addressee address (less the name) in the address field %
          (\autoref{sec:scrlttr2.firstpage},
          \DescPageRef{scrlttr2.variable.toaddress})}%
        \feentry{toname}{%
          variation of the element
          \DescRef{\ThisCommonLabelBase.fontelement.addressee} for the name
          (only) of the addressee in the address field %
          (\autoref{sec:scrlttr2.firstpage},
          \DescPageRef{scrlttr2.variable.toname})}%
      \end{desclist}
    }{%
      \IfThisCommonLabelBase{scrlayer-scrpage}{%
        \begin{desclist}
          \desccaption[{Elements of \Package{scrlayer-scrpage} whose type
            style can be changed with \KOMAScript{} command
            \Macro{setkomafont} or \Macro{addtokomafont}}]%
          {Elements of \Package{scrlayer-scrpage} whose type style can be
            changed with \KOMAScript{} command \Macro{setkomafont} or
            \Macro{addtokomafont} and the default of those, if they have not
            been defined before loading \Package{scrlayer-scrpage}%
            \label{tab:scrlayer-scrpage.fontelements}%
          }%
          {Elements whose type style can be changed (\emph{continuation})}%
          \feentry{footbotline}{%
            Horizontal line below the footer of a page style defined using
            \Package{scrlayer-scrpage}. The font will be used after
            \Macro{normalfont}\IndexCmd{normalfont} and the fonts of elements
            \DescRef{\ThisCommonLabelBase.fontelement.pageheadfoot}%
            \IndexFontElement{pageheadfoot} and
            \DescRef{\ThisCommonLabelBase.fontelement.pagefoot}%
            \IndexFontElement{pagefoot}. It is recommended to use this element
            for colour changes only.\par
            Default: \emph{empty}%
          }%
          \feentry{footsepline}{%
            Horizontal line above the footer of a page style defined using
            \Package{scrlayer-scrpage}. The font will be used after
            \Macro{normalfont}\IndexCmd{normalfont} and the fonts of elements
            \DescRef{\ThisCommonLabelBase.fontelement.pageheadfoot}%
            \IndexFontElement{pageheadfoot} and
            \DescRef{\ThisCommonLabelBase.fontelement.pagefoot}%
            \IndexFontElement{pagefoot}. It is recommended to use this element
            for colour changes only.\par
            Default: \emph{empty}%
          }%
          \feentry{headsepline}{%
            Horizontal line below the header of a page style defined using
            \Package{scrlayer-scrpage}. The font will be used after
            \Macro{normalfont}\IndexCmd{normalfont} and the fonts of elements
            \DescRef{\ThisCommonLabelBase.fontelement.pageheadfoot}%
            \IndexFontElement{pageheadfoot} and
            \DescRef{\ThisCommonLabelBase.fontelement.pagehead}%
            \IndexFontElement{pagehead}. It is recommended to use this element
            for colour changes only.\par
            Default: \emph{empty}%
          }%
          \feentry{headtopline}{%
            Horizontal line above the header of a page style defined using
            \Package{scrlayer-scrpage}. The font will be used after
            \Macro{normalfont}\IndexCmd{normalfont} and the fonts of elements
            \DescRef{\ThisCommonLabelBase.fontelement.pageheadfoot}%
            \IndexFontElement{pageheadfoot} and
            \DescRef{\ThisCommonLabelBase.fontelement.pagehead}%
            \IndexFontElement{pagehead}. It is recommended to use this element
            for colour changes only.\par
            Default: \emph{empty}%
          }%
          \feentry{pagefoot}{%
            Contents of the page footer of a page style defined using
            \Package{scrlayer-scrpage}. The font will be used after
            \Macro{normalfont}\IndexCmd{normalfont} and the font of element
            \DescRef{\ThisCommonLabelBase.fontelement.pageheadfoot}%
            \IndexFontElement{pageheadfoot}.\par
            Default: \emph{empty}%
          }%
          \feentry{pagehead}{%
            Contents of the page header of a page style defined using
            \Package{scrlayer-scrpage}. The font will be used after
            \Macro{normalfont}\IndexCmd{normalfont} and the font of element
            \DescRef{\ThisCommonLabelBase.fontelement.pageheadfoot}%
            \IndexFontElement{pageheadfoot}.\par
            Default: \emph{empty}%
          }%
          \feentry{pageheadfoot}{%
            Contents of the page header or footer of a page style defined
            using \Package{scrlayer-scrpage}. The font will be used after
            \Macro{normalfont}\IndexCmd{normalfont}.\par
            Default: \Macro{normalcolor}\Macro{slshape}%
          }%
          \feentry{pagenumber}{%
            Pagination set with
            \DescRef{\ThisCommonLabelBase.cmd.pagemark}. If you redefine
            \DescRef{\ThisCommonLabelBase.cmd.pagemark}, you have to take care
            that your redefinition also uses
            \Macro{usekomafont}\PParameter{pagenumber}!\par
            Default: \Macro{normalfont}%
          }%
        \end{desclist}
      }{%
        \IfThisCommonLabelBaseOneOf{scrjura,scrlayer-notecolumn}{}{%
          \InternalCommonFileUsageError%
        }%
      }%
    }%
  \fi%
\fi
\EndIndexGroup


\begin{Declaration}
  \Macro{usefontofkomafont}\Parameter{element}%
  \Macro{useencodingofkomafont}\Parameter{element}%
  \Macro{usesizeofkomafont}\Parameter{element}%
  \Macro{usefamilyofkomafont}\Parameter{element}%
  \Macro{useseriesofkomafont}\Parameter{element}%
  \Macro{useshapeofkomafont}\Parameter{element}
\end{Declaration}
Sometimes\ChangedAt{v3.12}{\Class{scrbook}\and \Class{scrreprt}\and
  \Class{scrartcl}\and \Package{scrextend}} and despite the recommendation
users use the font setting feature of elements not only for font settings but
for other settings too. In this case it may be useful to switch only to the
font setting of an element but not to those other settings. You may use
\Macro{usefontofkomafont} in such cases. This will activate the font size and
baseline skip, the font encoding, the font family, the font series, and the
font shape of an element, but no further settings as long as those further
settings are local.

You may also switch to one of those attributes only using one of the other
commands. Note, that \Macro{usesizeofkomafont} will activate both, the font
size and the baseline skip.

You should not misunderstand these commands as a legitimation of using all
kind of commands at the font setting of an element. Hence this would result
in errors sooner or later (see \autoref{sec:maincls-experts.experts},
\DescPageRef{maincls-experts.cmd.addtokomafontrelaxlist}).%
\EndIndexGroup
%
\EndIndexGroup

%%% Local Variables:
%%% mode: latex
%%% mode: flyspell
%%% coding: us-ascii
%%% ispell-local-dictionary: "en_GB"
%%% TeX-master: "../guide"
%%% End:

%  LocalWords:  mutatis mutandis