Debian Codegraph @

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

raw
1 % ======================================================================
2 % common-fontsize-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-fontsize-en.tex}
27 [$Date: 2022-10-06 14:30:20 +0200 (Do, 06. Okt 2022) $
28 KOMA-Script guide (common paragraphs: fontsize)]
29 \translator{Markus Kohm\and Krickette Murabayashi\and Karl Hagen}
30
31 \section{Choosing the Document Font Size}
32 \seclabel{fontOptions}%
33 \BeginIndexGroup
34 \BeginIndex{}{font>size}%
35
36 \IfThisCommonFirstRun{%
37 The main font and its size are central elements in the design of a document.
38 As stated in \autoref{cha:typearea}, the division of the page into the text
39 area and the margins fundamentally depends on them. The main font is the one
40 that is used for most of the text in a document. All variations, whether in
41 shape, thickness, slant, or size, are related to the main font.%
42 }{%
43 The information in \autoref{sec:\ThisCommonFirstLabelBase.fontOptions}
44 applies equally to
45 \IfThisCommonLabelBase{scrlttr2}{\Class{scrlttr2}\OnlyAt{scrlttr2}}%
46 {this chapter}. \IfThisCommonLabelBase{scrlttr2}{By contrast, the
47 \Package{scrletter} package by itself does not offer font-size selection
48 but depends completely on the class you use.}{} So if you have already
49 read and understood \autoref{sec:\ThisCommonFirstLabelBase.fontOptions}, you
50 can \IfThisCommonLabelBase{scrlttr2}{continue to
51 \autopageref{sec:\ThisCommonLabelBase.fontOptions.end} at the end of this
52 section. If you use \Package{scrletter}, you can }{}%
53 skip directly to \autoref{sec:\ThisCommonLabelBase.fontOptions.next},
54 \autopageref{sec:\ThisCommonLabelBase.fontOptions.next}.%
55 }
56
57 \begin{Declaration}
58 \OptionVName{fontsize}{size}
59 \end{Declaration}
60 While\IfThisCommonLabelBase{scrlttr2}{\OnlyAt{\Class{scrlttr2}}}{%
61 \textnote{\KOMAScript{} vs. standard classes}} the standard classes support
62 only a very limited number of font sizes,
63 \IfThisCommonLabelBase{scrlttr2}{\Class{scrlttr2}}{\KOMAScript} provides the
64 ability to specify any \PName{size} for the main font. You can also use any
65 known \TeX unit as a unit for the \PName{size}. If the \PName{size} is
66 specified without a unit, it is assumed to be \PValue{pt}.\iffree{}{ The exact
67 procedure for setting the font size is documented for experts and interested
68 users in \autoref{sec:maincls-experts.addInfos},
69 \DescPageRef{maincls-experts.option.fontsize}.}
70
71 If you set the option within the document, the main font size and the
72 dependent font sizes of the commands \Macro{tiny}, \Macro{scriptsize},
73 \Macro{footnotesize}, \Macro{small}, \Macro{normalsize}, \Macro{large},
74 \Macro{Large}, \Macro{LARGE}, \Macro{huge} and \Macro{Huge} are changed. This
75 can be useful, for example, if you want %
76 \IfThisCommonLabelBase{scrlttr2}{another letter }{the appendix }%
77 to be set in a smaller font size.
78
79 Note\textnote{Attention!} that using this option after
80 \IfThisCommonLabelBase{scrextend}{potentially loading
81 \hyperref[cha:typearea]{\Package{typearea}}\IndexPackage{typearea}%
82 \important{\hyperref[cha:typearea]{\Package{typearea}}}}{loading the class}
83 does not automatically recalculate the type area and margins (see
84 \DescRef{typearea.cmd.recalctypearea}\IndexCmd{recalctypearea},
85 \autoref{sec:typearea.typearea},
86 \DescPageRef{typearea.cmd.recalctypearea}). However, if this recalculation is
87 performed, it will be based on the current main font size. The effects of
88 changing the main font size upon other loaded packages or the class used
89 depends on these packages and on the class. \IfThisCommonLabelBase{maincls}{%
90 This means that you can encounter errors which are not the fault of
91 \KOMAScript, and even the \KOMAScript{} classes themselves do not
92 recalculate all lengths if the main font size changes after loading the
93 class.%
94 }{%
95 \IfThisCommonLabelBase{scrlttr2}{%
96 You can encounter errors which are not the fault of \KOMAScript{}, and
97 further, the \Class{scrlttr2} class itself does not recalculate all
98 lengths if the main font size changes after loading the class.%
99 }{%
100 This means that you can encounter errors which are not the fault of
101 \KOMAScript{}.%
102 }%
103 }%
104
105 This\textnote{Attention!} option should by no means be misinterpreted as a
106 substitute for \Macro{fontsize} (see \cite{latex:fntguide}). Also, you should
107 not use it in place of one of the font size commands that are relative to the
108 main font, from \Macro{tiny} to \Macro{Huge}. The use within a paragraph is
109 therefore also explicitly prohibited.
110 \IfThisCommonLabelBase{scrlttr2}{%
111 For \Class{scrlttr2} the default is \OptionValue{fontsize}{12pt}.
112
113 \begin{Example}
114 \phantomsection\label{sec:\ThisCommonLabelBase.fontOptions.end}%
115 Suppose the organization in the sample letter is the \emph{``Friends of
116 Noxious Font Sizes''}, for which reason it should be set in 14\Unit{pt}
117 instead of 12\Unit{pt}. You can achieve this by making a small change to
118 the first line:%
119 \lstinputcode[xleftmargin=1em]{letter-example-06-en.tex}%
120 Alternatively, the option could be set as an optional argument to
121 \DescRef{\LabelBase.env.letter}:
122 \lstinputcode[xleftmargin=1em]{letter-example-05-en.tex}%
123 Since the text area is not recalculated in this late change of the font
124 size, the two results differ in \autoref{fig:scrlttr2.letter-05-06}.
125 \begin{figure}
126 \centering
127 \frame{\includegraphics[width=.4\textwidth]{letter-example-05-en}}\quad
128 \frame{\includegraphics[width=.4\textwidth]{letter-example-06-en}}
129 \caption[{Example: letter with address, salutation, text, closing phrase,
130 postscript, enclosures, distribution list, and noxiously large font
131 size}]
132 {result of a short letter with recipient, opening, text, closing,
133 postscript, enclosures, distribution list, and a noxiously large font
134 (the date is set by default): in the left-hand version, the font size
135 has been defined by the optional argument of
136 \DescRef{\LabelBase.env.letter}; in the right-hand one, the optional
137 argument of \DescRef{\LabelBase.cmd.documentclass} has been used}
138 \label{fig:scrlttr2.letter-05-06}
139 \end{figure}
140 \end{Example}
141 \ExampleEndFix
142 }{%
143 \IfThisCommonLabelBase{maincls}{%
144 \par
145 \phantomsection\label{sec:\ThisCommonLabelBase.fontOptions.end}%
146 The default for \Class{scrbook}, \Class{scrreprt}, and \Class{scrartcl} is
147 \OptionValue{fontsize}{11pt}.\textnote{\KOMAScript{} vs. standard classes}
148 In contrast, the default size in the standard classes is \Option{10pt}.
149 You may need to account for this difference if you switch from a standard
150 class to a \KOMAScript{} class\iffree{}{ or when using the
151 \DescRef{maincls-experts.option.emulatestandardclasses}%
152 \IndexOption{emulatestandardclasses} option}.%
153 }{}%
154 }%
155 %
156 \EndIndexGroup
157 %
158 \EndIndexGroup
159
160
161 %%% Local Variables:
162 %%% mode: latex
163 %%% TeX-master: "scrguide-en.tex"
164 %%% coding: utf-8
165 %%% ispell-local-dictionary: "en_GB"
166 %%% eval: (flyspell-mode 1)
167 %%% End: