| 1 |
% ====================================================================== |
| 2 |
% common-compatibility-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-compatibility-en.tex} |
| 27 |
[$Date: 2022-06-05 12:40:11 +0200 (So, 05. Jun 2022) $ |
| 28 |
KOMA-Script guide (common paragraphs)] |
| 29 |
\translator{Markus Kohm\and Krickette Murabayashi\and Karl Hagen} |
| 30 |
|
| 31 |
\section{Compatibility with Earlier Versions of \KOMAScript} |
| 32 |
\seclabel{compatibilityOptions} |
| 33 |
\BeginIndexGroup |
| 34 |
\BeginIndex{}{Compatibility} |
| 35 |
|
| 36 |
\IfThisCommonFirstRun{}{% |
| 37 |
The information in |
| 38 |
\autoref{sec:\ThisCommonFirstLabelBase.compatibilityOptions} applies equally |
| 39 |
to this chapter. |
| 40 |
\IfThisCommonLabelBase{scrlttr2}{However, this feature has existed in |
| 41 |
\Class{scrlttr2} since version~2.9t, whereas \Package{scrletter} does not |
| 42 |
offer it. }{}% |
| 43 |
So if you have already read and understood |
| 44 |
\autoref{sec:\ThisCommonFirstLabelBase.compatibilityOptions} you can skip |
| 45 |
ahead to \autopageref{sec:\ThisCommonLabelBase.compatibilityOptions.next}, |
| 46 |
\autopageref{sec:\ThisCommonLabelBase.compatibilityOptions.next}.% |
| 47 |
} |
| 48 |
|
| 49 |
\IfThisCommonLabelBaseOneOf{typearea,maincls,scrlttr2}{% |
| 50 |
Those who produce their documents from source code typically attach the |
| 51 |
utmost importance to the fact that future \LaTeX{} runs will yield exactly |
| 52 |
the same result. In some cases, however, improvements and bug fixes to the |
| 53 |
\IfThisCommonLabelBaseOneOf{maincls,scrlttr2}{class}{package} will |
| 54 |
result in changes of behaviour, especially to the layout. This, however, |
| 55 |
may be undesirable.% |
| 56 |
}{% |
| 57 |
\IfThisCommonLabelBase{scrextend}{% |
| 58 |
% In some cases, improvements and bug fixes to the package will result |
| 59 |
% in changes of behaviour, especially to the layout. This, however, |
| 60 |
% may be undesirable. Those who produce their documents from source code |
| 61 |
% typically attach the utmost importance to the fact that future |
| 62 |
% \LaTeX{} runs will yield exactly the same result.% |
| 63 |
}{% |
| 64 |
\ThisCommonLabelBaseFailure |
| 65 |
% \IfThisCommonLabelBase{scrlttr2}{% |
| 66 |
% In some cases, improvements and bug fixes to the package will result |
| 67 |
% in changes of behaviour, especially to the layout. This, however, |
| 68 |
% may be undesirable. |
| 69 |
% }{}% |
| 70 |
}% |
| 71 |
}% |
| 72 |
|
| 73 |
|
| 74 |
\begin{Declaration} |
| 75 |
\OptionVName{version}{value}% |
| 76 |
\OptionValue{version}{first}% |
| 77 |
\OptionValue{version}{last} |
| 78 |
\end{Declaration} |
| 79 |
%\ChangedAt{v2.96a}{\Class{scrbook}\and \Class{scrreprt}\and \Class{scrartcl}}% |
| 80 |
%\ChangedAt{v2.9t}{\Class{scrlttr2}}% |
| 81 |
%\ChangedAt{v3.01b}{\Package{typearea}}% |
| 82 |
\IfThisCommonLabelBase{scrextend}{With \Package{scrextend}, you can}{Since |
| 83 |
\IfThisCommonLabelBase{typearea}{% |
| 84 |
Version~3.01b, \Package{typearea}\ChangedAt{v3.01b}{\Package{typearea}}}{% |
| 85 |
\IfThisCommonLabelBase{maincls}{% |
| 86 |
Version~2.96a, \KOMAScript{}\ChangedAt{v2.96a}{\Class{scrbook}\and |
| 87 |
\Class{scrreprt}\and \Class{scrartcl}}}{% |
| 88 |
\IfThisCommonLabelBase{scrlttr2}{% |
| 89 |
Version~2.9t, \Class{scrlttr2}\OnlyAt{\Class{scrlttr2}}% |
| 90 |
\ChangedAt{v2.9t}{\Class{scrlttr2}}}{% |
| 91 |
\InteralCommonFileUsageError}% |
| 92 |
}% |
| 93 |
}% |
| 94 |
\ has been able to} % |
| 95 |
choose whether the source file should, as much as possible, |
| 96 |
continue to produce exactly the same result within a \LaTeX{} run or should |
| 97 |
be formatted according to the modifications of the latest version% |
| 98 |
\IfThisCommonLabelBaseOneOf{maincls,scrlttr2}{ of the class}{}. You |
| 99 |
can specify the version with which you want your file to be compatible by |
| 100 |
using the \Option{version} option. Compatibility with the oldest supported |
| 101 |
\KOMAScript{} version can be achieved with |
| 102 |
\OptionValue{version}{first}\important{\OptionValue{version}{first}} or |
| 103 |
\OptionValue{version}{2.9} or \OptionValue{version}{2.9t}. Setting |
| 104 |
\PName{value} to an unknown release number will result in a warning message |
| 105 |
and selects \OptionValue{version}{first} for safety. |
| 106 |
|
| 107 |
With \OptionValue{version}{last}\important{\OptionValue{version}{last}}% |
| 108 |
\textnote{default}, you can select the latest version. In this case, you give |
| 109 |
up backwards compatibility. If the option is used without a value, |
| 110 |
\PValue{last} is assumed. This\ChangedAt{v3.01a}{\Class{scrbook}\and |
| 111 |
\Class{scrreprt}\and \Class{scrartcl}\and \Class{scrlttr2}\and |
| 112 |
\Package{scrextend}} also corresponds to the default setting, as long as you |
| 113 |
do not use any deprecated options. |
| 114 |
|
| 115 |
\IfThisCommonLabelBase{scrextend}{% scrextend doesn't recognize obsolete options |
| 116 |
}{% |
| 117 |
If\textnote{Attention!} you use a deprecated option of \KOMAScript~2, |
| 118 |
\KOMAScript~3 will switch to \OptionValue{version}{first} automatically. |
| 119 |
This will also result in a warning message that explains how to prevent |
| 120 |
this switch. Alternatively, you can choose a different setting for |
| 121 |
\Option{version} with the desired compatibility after the deprecated |
| 122 |
option.% |
| 123 |
} |
| 124 |
|
| 125 |
Compatibility is primarily a question of line and page breaks (wrapping). If |
| 126 |
you choose compatibility with an older version, new options that do not affect |
| 127 |
wrapping are still available. The \Option{version} option does not affect any |
| 128 |
wrapping changes that are the result of fixing unambiguous errors. |
| 129 |
If\textnote{Hint!} you need unconditional wrapping compatibility even in the |
| 130 |
case of bugs, you should physically save the old \KOMAScript{} version you |
| 131 |
need together with your document. |
| 132 |
|
| 133 |
\IfThisCommonLabelBase{scrlttr2}{% |
| 134 |
\begin{Example} |
| 135 |
The example letters in this chapter should use all the features of the |
| 136 |
latest version of \KOMAScript{}. For this, the we set the compatibility |
| 137 |
correspondingly when loading the class:% |
| 138 |
\lstinputcode[xleftmargin=1em,lastline=1]{letter-example-00-en.tex}% |
| 139 |
In this case the symbolic value \PValue{last} has been used to select the |
| 140 |
latest version.% |
| 141 |
\iftrue% Umbruchkorrektur |
| 142 |
Here, the latest version was simply chosen with the symbolic value |
| 143 |
\PValue{last}.% |
| 144 |
\else% |
| 145 |
In order not to have to specify a new version number for each new version, |
| 146 |
the symbolic value \PValue{last} was chosen here.% |
| 147 |
\fi |
| 148 |
\end{Example}}{} |
| 149 |
|
| 150 |
Note\textnote{Attention!} that you cannot change the \Option{version} option |
| 151 |
after loading the % |
| 152 |
\IfThisCommonLabelBaseOneOf{maincls,scrlttr2}{class}{% |
| 153 |
\IfThisCommonLabelBase{typearea}{\Package{typearea}}{% |
| 154 |
\IfThisCommonLabelBase{scrextend}{\Package{scrextend}}{% |
| 155 |
\InternalCommonFileUsageError }% |
| 156 |
}% |
| 157 |
\ package}. Setting this option with |
| 158 |
\DescRef{\ThisCommonLabelBase.cmd.KOMAoptions} or |
| 159 |
\DescRef{\ThisCommonLabelBase.cmd.KOMAoption} will |
| 160 |
therefore cause an error.% |
| 161 |
\EndIndexGroup |
| 162 |
% |
| 163 |
\EndIndexGroup |
| 164 |
|
| 165 |
\phantomsection |
| 166 |
\label{sec:\ThisCommonLabelBase.compatibilityOptions.end} |
| 167 |
\endinput |
| 168 |
|
| 169 |
%%% Local Variables: |
| 170 |
%%% mode: latex |
| 171 |
%%% TeX-master: "scrguide-en.tex" |
| 172 |
%%% coding: utf-8 |
| 173 |
%%% ispell-local-dictionary: "en_GB" |
| 174 |
%%% eval: (flyspell-mode 1) |
| 175 |
%%% End: |