summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/koma-script/doc/english/common-fontsize.tex
blob: 25a090c3f644f2d260124e02b265afc4f6a7d76e (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
% ======================================================================
% common-fontsize.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-fontsize.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-fontsize.tex}
                 [$Date: 2017-01-02 13:30:07 +0100 (Mon, 02 Jan 2017) $
                  KOMA-Script guide (common paragraphs: fontsize)]
\translator{Markus Kohm\and Krickette Murabayashi}

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

\section{Selection of the Document Font Size}
\seclabel{fontOptions}%
\BeginIndexGroup
\BeginIndex{}{font>size}%

\IfThisCommonFirstRun{}{%
  What is described in \autoref{sec:\ThisCommonFirstLabelBase.fontOptions}
  applies, mutatis mutandis.  So if you have alread read and understood
  \autoref{sec:\ThisCommonFirstLabelBase.fontOptions} you can jump to the
  \IfThisCommonLabelBase{scrlttr2}{example at the }{%
    \IfThisCommonLabelBase{last paragraph at the }{}%
  }%
  end of this section on
  \autopageref{sec:\ThisCommonLabelBase.fontOptions.end}.%
}

The main document font size is one of the basic decisions for the document
layout. The maximum width of the text area, and therefore splitting the page
into text area and margins, depends on the font size as stated in
\autoref{cha:typearea}. The main document font will be used for most 
of the text. All font variations either in mode, weight, declination, or size
should relate to the main document font.


\begin{Declaration}
  \OptionVName{fontsize}{size}
\end{Declaration}
In contrast to the standard classes and most other classes that provide only
a very limited number of font sizes, the \KOMAScript{} classes offer the
feature of selection of any desired \PName{size} for the main document
font. In this context, any well known \TeX{} unit of measure may be used and
using a number without unit of measure means \PValue{pt}.\iffree{}{ More
  information about font size selection for experts and interested users may
  be found in \autoref{sec:maincls-experts.addInfos},
  \DescPageRef{maincls-experts.option.fontsize}.}

If you use this option inside the document, the main document font size and
all dependent sizes will change from this point. This may be useful, e.\,g.,
if \IfThisCommonLabelBase{scrlttr2}{one more letter }{the appendix }%
should be set using smaller fonts on the whole. It should be noted that
changing the main font size does not result in an automatic recalculation of
type area and margins (see
\DescRef{typearea.cmd.recalctypearea}\IndexCmd{recalctypearea},
\autoref{sec:typearea.options},
\DescPageRef{typearea.cmd.recalctypearea}). On the other hand, each
recalculation of type area and margins will be done on the basis of the
current main font size. The effects of changing the main font size to other
additionally loaded packages or the used document class depend on those
packages and the class. This may even result in error messages or typesetting
errors, which cannot be considered a fault of \KOMAScript, and even the
\KOMAScript{} classes do not change all lengths if the main font size changes
after loading the class.

This\textnote{Attention!} option is not intended to be a substitution for
\Macro{fontsize} (see \cite{latex:fntguide}). Also, you should not use it
instead of one of the main font depending font size commands \Macro{tiny} up
to \Macro{Huge}!%
\phantomsection\label{sec:\ThisCommonLabelBase.fontOptions.end}%
\IfThisCommonLabelBase{scrlttr2}{%
  \ Default at \Class{scrlttr2} is \OptionValue{fontsize}{12pt}.

  \begin{Example}
    Assumed, the example is a letter to \emph{``The friends of insane font
      sizes''} and therefor it should be printed with 14\Unit{pt} instead of
    12\Unit{pt}. Only a simple change of the first line is needed:%
    \lstinputcode[xleftmargin=1em]{letter-6}%
    Alternatively the option may be set at the optional argument of the
    \DescRef{\LabelBase.env.letter} environment:%
    \lstinputcode[xleftmargin=1em]{letter-5}%
    In the case of this late change of the font size no recalculation of the
    type area will happen. Because of this, the two results of
    \autoref{fig:scrlttr2.letter-5-6} differ.
    \begin{figure}
      \centering
      \frame{\includegraphics[width=.4\textwidth]{letter-5}}\quad
      \frame{\includegraphics[width=.4\textwidth]{letter-6}}
      \caption[{Example: letter with addressee, opening, text, closing,
        postscript, distribution list, enclosure, and insane large font
        size}]{%
        result of a small letter with addressee, opening, text, closing,
        postscript, distribution list, enclosure, and insane large font size
        (date and folding marks are defaults of DIN-letters): at left one the
        font size has been defined by the optional argument of
        \DescRef{\LabelBase.env.letter}, at the right one the optional
        argument of \DescRef{\LabelBase.cmd.documentclass} has been used}
      \label{fig:scrlttr2.letter-5-6}
    \end{figure}
  \end{Example}
}{%
  \IfThisCommonLabelBase{maincls}{%
    The default at \Class{scrbook}, \Class{scrreprt}, and \Class{scrartcl} is
    \OptionValue{fontsize}{11pt}.\textnote{\KOMAScript{} vs. standard classes}
    In contrast, the default of the standard classes would be
    \Option{10pt}. You may attend to this if you switch from a standard class
    to a \KOMAScript{} class.%
  }{}%
}%
%
\EndIndexGroup
%
\EndIndexGroup

\endinput

%%% Local Variables:
%%% mode: latex
%%% coding: us-ascii
%%% TeX-master: "../guide"
%%% End: