| 1 |
% ====================================================================== |
| 2 |
% scrlttr2-en.tex |
| 3 |
% Copyright (c) Markus Kohm, 2002-2025 |
| 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 |
% https://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 |
% Chapter about scrlttr2 of the KOMA-Script guide |
| 22 |
% Maintained by Markus Kohm |
| 23 |
% |
| 24 |
% ============================================================================ |
| 25 |
|
| 26 |
\KOMAProvidesFile{scrlttr2-en.tex}% |
| 27 |
[$Date: 2025-09-05 12:23:59 +0200 (Fr, 05. Sep 2025) $ |
| 28 |
KOMA-Script guide (chapter: scrlttr2)] |
| 29 |
|
| 30 |
\translator{Harald Bongartz\and Georg Grandke\and Raimund Kohl\and Jens-Uwe |
| 31 |
Morawski\and Stephan Hennig\and Gernot Hassenpflug\and Markus Kohm\and |
| 32 |
Karl Hagen} |
| 33 |
|
| 34 |
\chapter{Letters with the \Class{scrlttr2} Class or the \Package{scrletter} |
| 35 |
Package} |
| 36 |
\labelbase{scrlttr2} |
| 37 |
|
| 38 |
\BeginIndexGroup |
| 39 |
\BeginIndex{Class}{scrlttr2}\BeginIndex{Package}{scrletter}% |
| 40 |
\BeginIndex{}{letters}% |
| 41 |
Letters are quite different in many ways from articles, reports, books, and |
| 42 |
the like. That alone justifies a separate chapter on letters. But there are |
| 43 |
other reasons for a separate chapter on \Class{scrlttr2} and |
| 44 |
\Package{scrletter}. |
| 45 |
|
| 46 |
The \Class{scrlttr2}\important{\Class{scrlttr2}} class was developed from |
| 47 |
scratch in 2002. It provides a completely new user interface, different from |
| 48 |
every other class I know. This new user interface may be unusual, but it |
| 49 |
offers benefits to both new and experienced {\KOMAScript} users. |
| 50 |
|
| 51 |
The \Package{scrletter}\important{\Package{scrletter}}% |
| 52 |
\ChangedAt{v3.15}{\Package{scrletter}} package has supplemented \KOMAScript{} |
| 53 |
since Version~3.15. It also provides all the letter-based functionality of |
| 54 |
\Class{scrlttr2} to the other classes. I recommend you use one of the |
| 55 |
\KOMAScript{} classes\,---\,\Class{scrbook}, \Class{scrreprt} or |
| 56 |
\Class{scrartcl}\,---\, which are explained in the previous chapter. With |
| 57 |
minor limitations, \Package{scrletter} also works well with the standard |
| 58 |
classes. |
| 59 |
|
| 60 |
The starting point for developing \Package{scrletter} was, on the one hand, |
| 61 |
requests from users who also wanted to have elements such as |
| 62 |
section\textnote{headings, floating environments, indexes} headings, floating |
| 63 |
environments, or a bibliography in letters. On the other hand, there were also |
| 64 |
requests to use \Class{scrlttr2} variables in the remaining \KOMAScript{} |
| 65 |
classes. You can achieve both by combining the desired \KOMAScript{} class |
| 66 |
with \Package{scrletter}. |
| 67 |
|
| 68 |
Compared to the letter class, the letter package has a few small changes that |
| 69 |
were necessary to avoid conflicts with other classes. These changes mainly |
| 70 |
affect the page styles and are explicitly documented (see |
| 71 |
\autoref{sec:\LabelBase.pagestyle}, starting at |
| 72 |
\autopageref{sec:\LabelBase.pagestyle}). Where \Package{scrletter} is not |
| 73 |
explicitly mentioned, everything that is documented for \Class{scrlttr2} |
| 74 |
applies without change. |
| 75 |
|
| 76 |
\LoadCommonFile{options} % \section{Early or Late Selection of Options} |
| 77 |
|
| 78 |
\LoadCommonFile{compatibility} % \section{Compatibility with Earlier Versions of |
| 79 |
% \KOMAScript{}} |
| 80 |
|
| 81 |
\LoadCommonFile{draftmode} % \section{Draft-Mode} |
| 82 |
|
| 83 |
\LoadCommonFile{typearea} % \section{Page Layout} |
| 84 |
|
| 85 |
For letters, it is normally not useful to distinguish one-sided and two-sided |
| 86 |
printing. Since letters are not usually bound, each page of a letter will be |
| 87 |
viewed on its own. This is also true even if both the letter is printed on |
| 88 |
both sides of the paper. Vertical adjustment usually does not matter for |
| 89 |
letters either. If you nevertheless need it, or want to understand what it is, |
| 90 |
please refer to the commands |
| 91 |
\DescRef{maincls.cmd.raggedbottom}\IndexCmd{raggedbottom} and |
| 92 |
\DescRef{maincls.cmd.flushbottom}\IndexCmd{flushbottom} explained in |
| 93 |
\autoref{sec:maincls.typearea} on \DescPageRef{maincls.cmd.flushbottom}.% |
| 94 |
% |
| 95 |
\EndIndexGroup |
| 96 |
|
| 97 |
|
| 98 |
\section{Variables} |
| 99 |
\seclabel{variables}% |
| 100 |
\BeginIndexGroup |
| 101 |
\BeginIndex{}{variables} |
| 102 |
|
| 103 |
In addition to options, commands, environments, counters, and lengths, |
| 104 |
\autoref{cha:maincls} introduced the concept of additional elements for |
| 105 |
\KOMAScript{}. A typical property of an element is its font style and the |
| 106 |
ability to change it (see \autoref{sec:\LabelBase.textmarkup}, |
| 107 |
\DescPageRef{\LabelBase.cmd.setkomafont}). In this section we introduce |
| 108 |
variables. Variables can have a label used to identify them when they are |
| 109 |
output in the document as well as their actual content. To avoid confusion |
| 110 |
with labels used for cross-references, this guide refers to such labels as the |
| 111 |
``description'' of the variable. The content of a variable can be set |
| 112 |
independently of the time and place it is used the same way that the content |
| 113 |
of a command can be defined separately from its use. The main difference |
| 114 |
between a command and a variable is that a command usually triggers an action, |
| 115 |
whereas a variable usually consists of plain text which is then output by a |
| 116 |
command. In addition, a variable can also have a description which can be |
| 117 |
customised and output. |
| 118 |
|
| 119 |
This section deliberately confines itself to introducing the concept of |
| 120 |
variables. The examples below have no special meaning. More detailed |
| 121 |
examples can be found in the explanation of predefined variables used in the |
| 122 |
class and the package. An overview of all defined variables is given in |
| 123 |
\autoref{tab:\LabelBase.variables}. |
| 124 |
% |
| 125 |
\begin{desclist} |
| 126 |
%\renewcommand*{\abovecaptionskipcorrection}{-\normalbaselineskip}% |
| 127 |
\desccaption{Supported variables in \Class{scrlttr2} and |
| 128 |
\Package{scrletter}\label{tab:\LabelBase.variables}}% |
| 129 |
{Supported variables in \Class{scrlttr2} and \Package{scrletter} |
| 130 |
(\emph{continued})}% |
| 131 |
\ventry{addresseeimage}{% |
| 132 |
commands used to print the postpaid postmark for the |
| 133 |
\OptionValueRef{\LabelBase}{addrfield}{backgroundimage} option or the |
| 134 |
postpaid address for the \OptionValueRef{\LabelBase}{addrfield}{image} |
| 135 |
option (\autoref{sec:\LabelBase.firstpage}, |
| 136 |
\DescPageRef{\LabelBase.variable.addresseeimage})}% |
| 137 |
\ventry{backaddress}{% |
| 138 |
return address for window envelopes % |
| 139 |
(\autoref{sec:\LabelBase.firstpage}, |
| 140 |
\DescPageRef{\LabelBase.variable.backaddress})}% |
| 141 |
\ventry{% |
| 142 |
backaddressseparator}{separator within the return address % |
| 143 |
(\autoref{sec:\LabelBase.firstpage}, |
| 144 |
\DescPageRef{\LabelBase.variable.backaddressseparator})}% |
| 145 |
\ventry{ccseparator}{% |
| 146 |
separator between title of additional addresses (cc list) |
| 147 |
and additional addresses % |
| 148 |
(\autoref{sec:\LabelBase.document}, |
| 149 |
\DescPageRef{\LabelBase.variable.ccseparator})}% |
| 150 |
\ventry{customer}{% |
| 151 |
customer number % |
| 152 |
(\autoref{sec:\LabelBase.firstpage}, |
| 153 |
\DescPageRef{\LabelBase.variable.customer})}% |
| 154 |
\ventry{date}{% |
| 155 |
date % |
| 156 |
(\autoref{sec:\LabelBase.firstpage}, |
| 157 |
\DescPageRef{\LabelBase.variable.date})}% |
| 158 |
\ventry{emailseparator}{% |
| 159 |
separator between email name and email address % |
| 160 |
(\autoref{sec:\LabelBase.firstpage}, |
| 161 |
\DescPageRef{\LabelBase.variable.emailseparator})}% |
| 162 |
\ventry{enclseparator}{% |
| 163 |
separator between title of enclosure and enclosures % |
| 164 |
(\autoref{sec:\LabelBase.document}, |
| 165 |
\DescPageRef{\LabelBase.variable.enclseparator})}% |
| 166 |
\ventry{faxseparator}{% |
| 167 |
separator between title of fax and fax number % |
| 168 |
(\autoref{sec:\LabelBase.firstpage}, |
| 169 |
\DescPageRef{\LabelBase.variable.faxseparator})}% |
| 170 |
\ventry{firstfoot}{% |
| 171 |
footer\ChangedAt{v3.08}{\Class{scrlttr2}} of the letterhead page % |
| 172 |
(\autoref{sec:\LabelBase.firstpage}, |
| 173 |
\DescPageRef{\LabelBase.variable.firstfoot})}% |
| 174 |
\ventry{firsthead}{% |
| 175 |
header\ChangedAt{v3.08}{\Class{scrlttr2}} of the letterhead page % |
| 176 |
(\autoref{sec:\LabelBase.firstpage}, |
| 177 |
\DescPageRef{\LabelBase.variable.firsthead})}% |
| 178 |
\ventry{fromaddress}{% |
| 179 |
sender's address without sender name % |
| 180 |
(\autoref{sec:\LabelBase.firstpage}, |
| 181 |
\DescPageRef{\LabelBase.variable.fromaddress})}% |
| 182 |
\ventry{frombank}{% |
| 183 |
sender's bank details % |
| 184 |
(\autoref{sec:\LabelBase.firstpage}, |
| 185 |
\DescPageRef{\LabelBase.variable.frombank})}% |
| 186 |
\ventry{fromemail}{% |
| 187 |
sender's e-mail % |
| 188 |
(\autoref{sec:\LabelBase.firstpage}, |
| 189 |
\DescPageRef{\LabelBase.variable.fromemail})}% |
| 190 |
\ventry{fromfax}{% |
| 191 |
sender's fax number % |
| 192 |
(\autoref{sec:\LabelBase.firstpage}, |
| 193 |
\DescPageRef{\LabelBase.variable.fromfax})}% |
| 194 |
\ventry{fromlogo}{% |
| 195 |
commands for inserting the sender's logo % |
| 196 |
(\autoref{sec:\LabelBase.firstpage}, |
| 197 |
\DescPageRef{\LabelBase.variable.fromlogo})}% |
| 198 |
\ventry{frommobilephone}{% |
| 199 |
\ChangedAt{v3.12}{\Class{scrlttr2}}% |
| 200 |
sender's mobile telephone number % |
| 201 |
(\autoref{sec:\LabelBase.firstpage}, |
| 202 |
\DescPageRef{\LabelBase.variable.frommobilephone})}% |
| 203 |
\ventry{fromname}{% |
| 204 |
complete name of sender % |
| 205 |
(\autoref{sec:\LabelBase.firstpage}, |
| 206 |
\DescPageRef{\LabelBase.variable.fromname})}% |
| 207 |
\ventry{fromphone}{% |
| 208 |
sender's telephone number % |
| 209 |
(\autoref{sec:\LabelBase.firstpage}, |
| 210 |
\DescPageRef{\LabelBase.variable.fromphone})}% |
| 211 |
\ventry{fromurl}{% |
| 212 |
URL of the sender, e.\,g. of the sender's homepage % |
| 213 |
(\autoref{sec:\LabelBase.firstpage}, |
| 214 |
\DescPageRef{\LabelBase.variable.fromurl})}% |
| 215 |
\ventry{fromzipcode}{% |
| 216 |
ZIP code (postal code) of the sender for the postpaid postmark of the |
| 217 |
\OptionValueRef{\LabelBase}{addrfield}{PP} option % |
| 218 |
(\autoref{sec:\LabelBase.firstpage}, |
| 219 |
\DescPageRef{\LabelBase.variable.fromzipcode})}% |
| 220 |
\ventry{invoice}{% |
| 221 |
invoice number % |
| 222 |
(\autoref{sec:\LabelBase.firstpage}, |
| 223 |
\DescPageRef{\LabelBase.variable.invoice})}% |
| 224 |
\ventry{location}{% |
| 225 |
extra details of the sender % |
| 226 |
(\autoref{sec:\LabelBase.firstpage}, |
| 227 |
\DescPageRef{\LabelBase.variable.location})}% |
| 228 |
\ventry{myref}{% |
| 229 |
sender's reference % |
| 230 |
(\autoref{sec:\LabelBase.firstpage}, |
| 231 |
\DescPageRef{\LabelBase.variable.myref})}% |
| 232 |
\ventry{nextfoot}{% |
| 233 |
footer\ChangedAt{v3.08}{\Class{scrlttr2}} using page style |
| 234 |
\PageStyle{headings}\IndexPagestyle{headings} or |
| 235 |
\PageStyle{myheadings}\IndexPagestyle{myheadings} % |
| 236 |
(\autoref{sec:\LabelBase.pagestyle}, |
| 237 |
\DescPageRef{\LabelBase.variable.nextfoot})}% |
| 238 |
\ventry{nexthead}{% |
| 239 |
header\ChangedAt{v3.08}{\Class{scrlttr2}} using page style |
| 240 |
\PageStyle{headings}\IndexPagestyle{headings} or |
| 241 |
\PageStyle{myheadings}\IndexPagestyle{myheadings} % |
| 242 |
(\autoref{sec:\LabelBase.pagestyle}, |
| 243 |
\DescPageRef{\LabelBase.variable.nexthead})}% |
| 244 |
\ventry{phoneseparator}{% |
| 245 |
separator between title of telephone and telephone number % |
| 246 |
(\autoref{sec:\LabelBase.firstpage}, |
| 247 |
\DescPageRef{\LabelBase.variable.phoneseparator})}% |
| 248 |
\ventry{place}{% |
| 249 |
sender's location; used next to date % |
| 250 |
(\autoref{sec:\LabelBase.firstpage}, |
| 251 |
\DescPageRef{\LabelBase.variable.place})}% |
| 252 |
\ventry{placeseparator}{% |
| 253 |
separator between location and date % |
| 254 |
(\autoref{sec:\LabelBase.firstpage}, |
| 255 |
\DescPageRef{\LabelBase.variable.placeseparator})}% |
| 256 |
\ventry{PPdatamatrix}{% |
| 257 |
command to print the data array for the |
| 258 |
\OptionValueRef{\LabelBase}{addrfield}{PP} option % |
| 259 |
(\autoref{sec:\LabelBase.firstpage}, |
| 260 |
\DescPageRef{\LabelBase.variable.PPdatamatrix})}% |
| 261 |
\ventry{PPcode}{% |
| 262 |
commands for the sender's identification code for the |
| 263 |
\OptionValueRef{\LabelBase}{addrfield}{PP} option % |
| 264 |
(\autoref{sec:\LabelBase.firstpage}, |
| 265 |
\DescPageRef{\LabelBase.variable.PPcode})}% |
| 266 |
\ventry{signature}{% |
| 267 |
signature annotation beneath the closing text of the letter % |
| 268 |
(\autoref{sec:\LabelBase.closing}, |
| 269 |
\DescPageRef{\LabelBase.variable.signature})}% |
| 270 |
\ventry{specialmail}{% |
| 271 |
delivery method % |
| 272 |
(\autoref{sec:\LabelBase.firstpage}, |
| 273 |
\DescPageRef{\LabelBase.variable.specialmail})}% |
| 274 |
\ventry{subject}{% |
| 275 |
letter's subject % |
| 276 |
(\autoref{sec:\LabelBase.firstpage}, |
| 277 |
\DescPageRef{\LabelBase.variable.subject})}% |
| 278 |
\ventry{subjectseparator}{% |
| 279 |
separator between subject title and subject % |
| 280 |
(\autoref{sec:\LabelBase.firstpage}, |
| 281 |
\DescPageRef{\LabelBase.variable.subjectseparator})}% |
| 282 |
\ventry{title}{% |
| 283 |
letter title % |
| 284 |
(\autoref{sec:\LabelBase.firstpage}, |
| 285 |
\DescPageRef{\LabelBase.variable.title})}% |
| 286 |
\ventry{toaddress}{% |
| 287 |
address of recipient without recipient name % |
| 288 |
(\autoref{sec:\LabelBase.firstpage}, |
| 289 |
\DescPageRef{\LabelBase.variable.toaddress})}% |
| 290 |
\ventry{toname}{% |
| 291 |
complete name of recipient % |
| 292 |
(\autoref{sec:\LabelBase.firstpage}, |
| 293 |
\DescPageRef{\LabelBase.variable.toname})}% |
| 294 |
\ventry{yourmail}{% |
| 295 |
date of recipient's referenced mail % |
| 296 |
(\autoref{sec:\LabelBase.firstpage}, |
| 297 |
\DescPageRef{\LabelBase.variable.yourmail})}% |
| 298 |
\ventry{yourref}{% |
| 299 |
recipient's reference % |
| 300 |
(\autoref{sec:\LabelBase.firstpage}, |
| 301 |
\DescPageRef{\LabelBase.variable.yourref})}% |
| 302 |
\ventry{zipcodeseparator}{% |
| 303 |
separator between the title of ZIP code (postal code) and the code itself % |
| 304 |
(\autoref{sec:\LabelBase.firstpage}, |
| 305 |
\DescPageRef{\LabelBase.variable.zipcodeseparator})}% |
| 306 |
\end{desclist} |
| 307 |
|
| 308 |
\begin{Declaration} |
| 309 |
\Macro{setkomavar}% |
| 310 |
\Parameter{name}\OParameter{description}\Parameter{content}% |
| 311 |
\Macro{setkomavar*}\Parameter{name}\Parameter{description} |
| 312 |
\end{Declaration} |
| 313 |
The \Macro{setkomavar} command sets the \PName{content} of the \PName{name} |
| 314 |
variable. Using the optional argument, you can change the \PName{description} |
| 315 |
of the variable at the same time. In contrast, \Macro{setkomavar*} sets only |
| 316 |
the \PName{description} of the \PName{name} variable. |
| 317 |
\begin{Example} |
| 318 |
It is customary for letters to indicate the sender in the letterhead. |
| 319 |
First, \KOMAScript{} must know the name of the sender. For |
| 320 |
``Joe Public'' that would be done with: |
| 321 |
\begin{lstcode} |
| 322 |
\setkomavar{fromname}{Joe Public} |
| 323 |
\end{lstcode} |
| 324 |
The default for the description of the sender is ``From''. Assuming, |
| 325 |
however, that Mr Public wants to have ``Sender'' in the places where |
| 326 |
\KOMAScript{} outputs his name, he would have to add |
| 327 |
\begin{lstcode} |
| 328 |
\setkomavar*{fromname}{Sender} |
| 329 |
\end{lstcode} |
| 330 |
or combine the two commands into one: |
| 331 |
\begin{lstcode} |
| 332 |
\setkomavar{fromname}[Sender]{Joe Public} |
| 333 |
\end{lstcode} |
| 334 |
He thus kills two birds with one stone, so to speak. |
| 335 |
\end{Example} |
| 336 |
By the way, you can delete the content of the variable by providing an empty |
| 337 |
\PName{content} argument. Of course, you can delete the \PName{description} of |
| 338 |
the variable in the same way, with an empty argument for the description. |
| 339 |
\begin{Example} |
| 340 |
Suppose Mr Public wants to have no label for the name of the sender. He can |
| 341 |
either delete it for himself with |
| 342 |
\begin{lstcode} |
| 343 |
\setkomavar*{fromname}{} |
| 344 |
\end{lstcode} |
| 345 |
or he could again kill two birds with one stone and use |
| 346 |
\begin{lstcode} |
| 347 |
\setkomavar{fromname}[]{Joe Public} |
| 348 |
\end{lstcode} |
| 349 |
This will simultaneously set the contents of the variable and delete its |
| 350 |
description. |
| 351 |
\end{Example} |
| 352 |
% |
| 353 |
\EndIndexGroup |
| 354 |
|
| 355 |
|
| 356 |
\begin{Declaration} |
| 357 |
\Macro{usekomavar}\OParameter{command}\Parameter{name}% |
| 358 |
\Macro{usekomavar*}\OParameter{command}\Parameter{name} |
| 359 |
\end{Declaration} |
| 360 |
In\ChangedAt{v2.9i}{\Class{scrlttr2}} some cases, it is necessary to access |
| 361 |
the content or description of a variable and not to leave this solely to the |
| 362 |
class. This is especially important if you have defined a variable which is |
| 363 |
not added to the reference fields line. Using the command \Macro{usekomavar} |
| 364 |
you have access to the content of the \PName{name} variable, whereas the |
| 365 |
starred version \Macro{usekomavar*} allows you to access the description or |
| 366 |
title. In \autoref{sec:scrlttr2-experts.variables}, |
| 367 |
\DescPageRef{scrlttr2-experts.cmd.newkomavar} you can find more information |
| 368 |
about defining your own variables.% |
| 369 |
\EndIndexGroup |
| 370 |
|
| 371 |
|
| 372 |
\begin{Declaration} |
| 373 |
\Macro{Ifkomavar}\Parameter{name}\Parameter{then code}\Parameter{else code} |
| 374 |
\end{Declaration} |
| 375 |
With\ChangedAt{v3.03}{\Class{scrlttr2}}% |
| 376 |
\ChangedAt{v3.28}{\Class{scrlttr2}\and \Package{scrletter}} this command, you |
| 377 |
can determine if a variable has already been defined. The \PName{then code} |
| 378 |
will be executed only if the variable already exists. The variable's contents |
| 379 |
will not be examined and so can be empty. The \PName{else code} will be |
| 380 |
executed if the variable does not exist. Such tests can be useful, for |
| 381 |
example, if your own variables are defined in one \File{lco} file\Index{lco |
| 382 |
file=\File{lco} file} (see \autoref{sec:\LabelBase.lcoFile} starting at |
| 383 |
\autopageref{sec:\LabelBase.lcoFile}) but used in another \File{lco} file only |
| 384 |
if they exist.% |
| 385 |
\EndIndexGroup |
| 386 |
|
| 387 |
|
| 388 |
\begin{Declaration} |
| 389 |
\Macro{Ifkomavarempty}\Parameter{name}\Parameter{then code}% |
| 390 |
\Parameter{else code}% |
| 391 |
\Macro{Ifkomavarempty*}\Parameter{name}\Parameter{then code}% |
| 392 |
\Parameter{else code} |
| 393 |
\end{Declaration} |
| 394 |
With\ChangedAt{v2.9i}{\Class{scrlttr2}}% |
| 395 |
\ChangedAt{v3.28}{\Class{scrlttr2}\and \Package{scrletter}} these commands, |
| 396 |
you can determine whether either the content or the description of a variable |
| 397 |
is empty. The \PName{then code} will be executed if the expanded content or |
| 398 |
the expanded description of the \PName{name} variable is empty. Otherwise, the |
| 399 |
\PName{else code} will be executed. The starred variant tests the variable's |
| 400 |
description, while the normal variant tests its contents.% |
| 401 |
\EndIndexGroup |
| 402 |
% |
| 403 |
\EndIndexGroup |
| 404 |
|
| 405 |
|
| 406 |
\section{Pseudo-lengths} |
| 407 |
\seclabel{pseudoLength} |
| 408 |
\BeginIndexGroup |
| 409 |
\BeginIndex{}{pseudo-lengths} |
| 410 |
|
| 411 |
\LaTeX{} processes lengths with three commands: |
| 412 |
\Macro{newlength}\IndexCmd{newlength}, \Macro{setlength}\IndexCmd{setlength} |
| 413 |
and \Macro{addtolength}\IndexCmd{addtolength}. Many packages also use macros, |
| 414 |
which are commands, to store lengths. \KOMAScript{} extends this method with |
| 415 |
the ability to process such lengths stored in macros with commands similar to |
| 416 |
those used to handle real lengths. \KOMAScript{} calls lengths that are |
| 417 |
actually stored in macros \emph{pseudo-lengths}. |
| 418 |
|
| 419 |
Note\textnote{Attention!} that even though these pseudo-lengths are internally |
| 420 |
implemented as macros, the commands for pseudo-length management expect only |
| 421 |
the names of the pseudo-lengths not the macros representing the |
| 422 |
pseudo-lengths. The names of pseudo-lengths are written without the initial |
| 423 |
backslash, like the names of \LaTeX{} counters and unlike macros or \LaTeX{} |
| 424 |
lengths. |
| 425 |
|
| 426 |
\begin{Explain} |
| 427 |
Historical \TeX{} works with a fixed number of registers. There are |
| 428 |
registers for tokens, for boxes, for counters, for skips, and for |
| 429 |
dimensions. Overall there are 256 registers for each of these |
| 430 |
categories. For \LaTeX{} lengths, which are defined with \Macro{newlength}, |
| 431 |
skip registers are used. Once all these registers are in use, you can not |
| 432 |
define any more lengths. Both \Class{scrlttr2} and \Package{scrletter} would |
| 433 |
normally use more than 20 of these registers for the first page |
| 434 |
alone. \LaTeX{} itself already uses 40 of these registers. The |
| 435 |
\hyperref[cha:typearea]{\Package{typearea}}% |
| 436 |
\IndexPackage{typearea} package needs some of them too; thus, approximately |
| 437 |
a quarter of these precious registers would already be in use. For this |
| 438 |
reason, in 2002 \Class{scrlttr2} stores letter-specific lengths in macros |
| 439 |
instead of lengths. |
| 440 |
|
| 441 |
Anyone who wants to argue that the recommended \LaTeX{} installation with |
| 442 |
\eTeX{}, which is required for \KOMAScript{} anyway, no longer suffers from |
| 443 |
the above-mentioned limitation would be right. However, that improvement |
| 444 |
came too late for \Class{scrlttr2}. With \Package{scrletter}, the concept of |
| 445 |
psuedo-lengths was adopted for reasons of compatibility. |
| 446 |
\end{Explain} |
| 447 |
|
| 448 |
The pseudo-lengths defined and uses by \KOMAScript{} are listed in |
| 449 |
\autoref{tab:\LabelBase.pseudoLength}, which also provides cross |
| 450 |
references to the detailed descriptions of each pseudo-lengths in the |
| 451 |
following sub-sections. |
| 452 |
|
| 453 |
A schematic display of the most important distances of the letterhead page is |
| 454 |
shown in \autoref{fig:\LabelBase.pseudoLength} on |
| 455 |
\autopageref{fig:\LabelBase.pseudoLength}. In addition to the |
| 456 |
pseudo-lengths for the configurable distances, some non-configurable lengths |
| 457 |
are also shown in light gray. For the sake of clarity, however, some rarely |
| 458 |
required pseudo-lengths have been omitted. |
| 459 |
% |
| 460 |
\begin{desclist} |
| 461 |
\renewcommand{\abovecaptionskipcorrection}{-\normalbaselineskip}% |
| 462 |
\desccaption{% |
| 463 |
Pseudo-lengths provided by \Class{scrlttr2} and \Package{scrletter}% |
| 464 |
\label{tab:\LabelBase.pseudoLength}% |
| 465 |
}{% |
| 466 |
Pseudo-lengths provided by \Class{scrlttr2} and \Package{scrletter} |
| 467 |
(\emph{continued})% |
| 468 |
}% |
| 469 |
\pentry{backaddrheight}{% |
| 470 |
the height of the return address at the upper edge of the address field |
| 471 |
(\autoref{sec:\LabelBase.addressee}, |
| 472 |
\DescPageRef{\LabelBase.plength.backaddrheight})% |
| 473 |
}% |
| 474 |
\pentry{bfoldmarklength}{% |
| 475 |
the length of the bottommost fold mark |
| 476 |
(\autoref{sec:\LabelBase.foldmarks}, |
| 477 |
\DescPageRef{\LabelBase.plength.bfoldmarkvpos})% |
| 478 |
}% |
| 479 |
\pentry{bfoldmarkvpos}{% |
| 480 |
the vertical distance of the bottommost fold mark from the top edge of the |
| 481 |
paper (\autoref{sec:\LabelBase.foldmarks}, |
| 482 |
\DescPageRef{\LabelBase.plength.bfoldmarkvpos})% |
| 483 |
}% |
| 484 |
\pentry{firstfoothpos}{% |
| 485 |
the horizontal distance of the letterhead page footer from the left edge |
| 486 |
of the paper; values greater than the width of the paper or less than the |
| 487 |
negative value of the width of the paper activate special handling % |
| 488 |
(\autoref{sec:\LabelBase.firstFoot}, |
| 489 |
\DescPageRef{\LabelBase.plength.firstfoothpos})% |
| 490 |
}% |
| 491 |
\pentry{firstfootvpos}{% |
| 492 |
the vertical distance of letterhead page footer from the top edge of the |
| 493 |
paper (\autoref{sec:\LabelBase.firstFoot}, |
| 494 |
\DescPageRef{\LabelBase.plength.firstfootvpos})% |
| 495 |
}% |
| 496 |
\pentry{firstfootwidth}{% |
| 497 |
the width of the letterhead page footer |
| 498 |
(\autoref{sec:\LabelBase.firstFoot}, |
| 499 |
\DescPageRef{\LabelBase.plength.firstfootwidth})% |
| 500 |
}% |
| 501 |
\pentry{firstheadhpos}{% |
| 502 |
the horizontal distance of the letterhead from the left edge of the paper; |
| 503 |
values greater than the width of the paper or less than the negative value |
| 504 |
of the width of the paper activate special handling |
| 505 |
(\autoref{sec:\LabelBase.firstHead}, |
| 506 |
\DescPageRef{\LabelBase.plength.firstheadhpos})% |
| 507 |
}% |
| 508 |
\pentry{firstheadvpos}{% |
| 509 |
the vertical distance of the letterhead from the top edge of the paper |
| 510 |
(\autoref{sec:\LabelBase.firstHead}, |
| 511 |
\DescPageRef{\LabelBase.plength.firstheadvpos})% |
| 512 |
}% |
| 513 |
\pentry{firstheadwidth}{% |
| 514 |
the width of the letterhead (\autoref{sec:\LabelBase.firstHead}, |
| 515 |
\DescPageRef{\LabelBase.plength.firstheadwidth})% |
| 516 |
}% |
| 517 |
\pentry{foldmarkhpos}{% |
| 518 |
the horizontal distance of the horizontal fold marks from the left edge of |
| 519 |
the paper (\autoref{sec:\LabelBase.foldmarks}, |
| 520 |
\DescPageRef{\LabelBase.plength.foldmarkhpos})% |
| 521 |
}% |
| 522 |
\pentry{foldmarkvpos}{% |
| 523 |
the vertical distance of the vertical fold marks from the top edge of the |
| 524 |
paper (\autoref{sec:\LabelBase.foldmarks}, |
| 525 |
\DescPageRef{\LabelBase.plength.foldmarkvpos})% |
| 526 |
}% |
| 527 |
\pentry{fromrulethickness}{% |
| 528 |
the thickness of an optional horizontal rule in the letterhead |
| 529 |
(\autoref{sec:\LabelBase.firstHead}, |
| 530 |
\DescPageRef{\LabelBase.plength.fromrulethickness})% |
| 531 |
}% |
| 532 |
\pentry{fromrulewidth}{% |
| 533 |
the length of an optional horizontal rule in the letterhead |
| 534 |
(\autoref{sec:\LabelBase.firstHead}, |
| 535 |
\DescPageRef{\LabelBase.plength.fromrulewidth})% |
| 536 |
}% |
| 537 |
\pentry{lfoldmarkhpos}{% |
| 538 |
the horizontal distance of the vertical fold mark from the left edge of |
| 539 |
the paper (\autoref{sec:\LabelBase.foldmarks}, |
| 540 |
\DescPageRef{\LabelBase.plength.lfoldmarkhpos})% |
| 541 |
}% |
| 542 |
\pentry{lfoldmarklength}{% |
| 543 |
the length of the vertical fold mark |
| 544 |
(\autoref{sec:\LabelBase.foldmarks}, |
| 545 |
\DescPageRef{\LabelBase.plength.lfoldmarklength})% |
| 546 |
}% |
| 547 |
\pentry{locheight}{% |
| 548 |
the height of the field containing the additional sender information if |
| 549 |
the value is not 0; if it is 0, \PLength{toaddrheight} is used instead |
| 550 |
(\autoref{sec:\LabelBase.locationField}, |
| 551 |
\DescPageRef{\LabelBase.plength.locheight})% |
| 552 |
}% |
| 553 |
\pentry{lochpos}{% |
| 554 |
the horizontal distance of the field containing the additional sender |
| 555 |
information; if the value is positive, the distance is measured from the |
| 556 |
right paper edge; if negative, from the left paper edge; if 0, the |
| 557 |
negative value of \PLength{toaddrhpos} is used instead |
| 558 |
(\autoref{sec:\LabelBase.locationField}, |
| 559 |
\DescPageRef{\LabelBase.plength.lochpos})% |
| 560 |
}% |
| 561 |
\pentry{locvpos}{% |
| 562 |
the vertical distance of the field containing the additional sender |
| 563 |
information from the top edge of the paper if the value is not 0; if it is |
| 564 |
0, \PLength{toaddrvpos} is used instead |
| 565 |
(\autoref{sec:\LabelBase.locationField}, |
| 566 |
\DescPageRef{\LabelBase.plength.locvpos})% |
| 567 |
}% |
| 568 |
\pentry{locwidth}{% |
| 569 |
the width of the field containing the additional sender information; if it |
| 570 |
is 0, the width is calculated automatically based on the |
| 571 |
\DescRef{\LabelBase.option.locfield} option described in |
| 572 |
\autoref{sec:\LabelBase.firstpage}, \DescPageRef{\LabelBase.option.locfield} % |
| 573 |
(\autoref{sec:\LabelBase.locationField}, |
| 574 |
\DescPageRef{\LabelBase.plength.locwidth})% |
| 575 |
}% |
| 576 |
\pentry{mfoldmarklength}{% |
| 577 |
the length of the middle horizontal fold mark |
| 578 |
(\autoref{sec:\LabelBase.foldmarks}, |
| 579 |
\DescPageRef{\LabelBase.plength.mfoldmarklength})% |
| 580 |
}% |
| 581 |
\pentry{mfoldmarkvpos}{% |
| 582 |
the vertical distance of the middle horizontal fold mark from the top edge |
| 583 |
of the paper (\autoref{sec:\LabelBase.foldmarks}, |
| 584 |
\DescPageRef{\LabelBase.plength.mfoldmarkvpos})% |
| 585 |
}% |
| 586 |
\pentry{pfoldmarklength}{% |
| 587 |
the length of the hole-punch mark |
| 588 |
(\autoref{sec:\LabelBase.foldmarks}, |
| 589 |
\DescPageRef{\LabelBase.plength.pfoldmarklength})% |
| 590 |
}% |
| 591 |
\pentry{PPdatamatrixvskip}{% |
| 592 |
the vertical distance between the postpaid header and the data array with |
| 593 |
\OptionValueRef{scrlttr2}{addrfield}{PP} |
| 594 |
(\autoref{sec:\LabelBase.addressee}, |
| 595 |
\DescPageRef{\LabelBase.plength.PPdatamatrixvskip})% |
| 596 |
}% |
| 597 |
\pentry{PPheadheight}{% |
| 598 |
the height of the postpaid header |
| 599 |
(\autoref{sec:\LabelBase.addressee}, |
| 600 |
\DescPageRef{\LabelBase.plength.PPheadheight})% |
| 601 |
}% |
| 602 |
\pentry{PPheadwidth}{% |
| 603 |
the width of the left postpaid field with |
| 604 |
\OptionValueRef{scrlttr2}{addrfield}{PP} |
| 605 |
(\autoref{sec:\LabelBase.addressee}, |
| 606 |
\DescPageRef{\LabelBase.plength.PPheadwidth})% |
| 607 |
}% |
| 608 |
\pentry{refaftervskip}{% |
| 609 |
vertical skip below reference-field line % |
| 610 |
(\autoref{sec:\LabelBase.refLine}, |
| 611 |
\DescPageRef{\LabelBase.plength.refaftervskip})% |
| 612 |
}% |
| 613 |
\pentry{refhpos}{% |
| 614 |
the horizontal distance of reference-field line from the left |
| 615 |
edge of the paper; if the value is 0, the reference-field line is centred |
| 616 |
horizontally on the letterhead page |
| 617 |
(\autoref{sec:\LabelBase.refLine}, |
| 618 |
\DescPageRef{\LabelBase.plength.refhpos})% |
| 619 |
}% |
| 620 |
\pentry{refvpos}{% |
| 621 |
the vertical distance of reference-field line from the top |
| 622 |
edge of the paper (\autoref{sec:\LabelBase.refLine}, |
| 623 |
\DescPageRef{\LabelBase.plength.refvpos})% |
| 624 |
}% |
| 625 |
\pentry{refwidth}{% |
| 626 |
the width of the reference-field line |
| 627 |
(\autoref{sec:\LabelBase.refLine}, |
| 628 |
\DescPageRef{\LabelBase.plength.refwidth})% |
| 629 |
}% |
| 630 |
\pentry{sigbeforevskip}{% |
| 631 |
the vertical skip between the closing and the signature |
| 632 |
(\autoref{sec:\LabelBase.closing}, |
| 633 |
\DescPageRef{\LabelBase.plength.sigbeforevskip})% |
| 634 |
}% |
| 635 |
\pentry{sigindent}{% |
| 636 |
the indentation of the signature with respect to the text body |
| 637 |
(\autoref{sec:\LabelBase.closing}, |
| 638 |
\DescPageRef{\LabelBase.plength.sigindent})% |
| 639 |
}% |
| 640 |
\pentry{specialmailindent}{% |
| 641 |
the left indentation of the delivery method within the address field |
| 642 |
(\autoref{sec:\LabelBase.addressee}, |
| 643 |
\DescPageRef{\LabelBase.plength.specialmailindent})% |
| 644 |
}% |
| 645 |
\pentry{specialmailrightindent}{% |
| 646 |
the right indentation of the delivery method within the address field |
| 647 |
(\autoref{sec:\LabelBase.addressee}, |
| 648 |
\DescPageRef{\LabelBase.plength.specialmailrightindent})% |
| 649 |
}% |
| 650 |
\pentry{subjectaftervskip}{% |
| 651 |
the vertical skip after the subject |
| 652 |
(\autoref{sec:\LabelBase.subject}, |
| 653 |
\DescPageRef{\LabelBase.plength.subjectaftervskip})% |
| 654 |
}% |
| 655 |
\pentry{subjectbeforevskip}{% |
| 656 |
additional vertical skip before the subject |
| 657 |
(\autoref{sec:\LabelBase.subject}, |
| 658 |
\DescPageRef{\LabelBase.plength.subjectbeforevskip})% |
| 659 |
}% |
| 660 |
\pentry{subjectvpos}{% |
| 661 |
the vertical distance of the subject from the top edge of the paper; if it |
| 662 |
is 0, the position is calculated based on the |
| 663 |
\DescRef{\LabelBase.option.subject} option |
| 664 |
(\autoref{sec:\LabelBase.subject}, |
| 665 |
\DescPageRef{\LabelBase.plength.subjectaftervskip})% |
| 666 |
}% |
| 667 |
\pentry{tfoldmarklength}{% |
| 668 |
the length of the topmost horizontal fold mark |
| 669 |
(\autoref{sec:\LabelBase.foldmarks}, |
| 670 |
\DescPageRef{\LabelBase.plength.tfoldmarklength})% |
| 671 |
}% |
| 672 |
\pentry{tfoldmarkvpos}{% |
| 673 |
the vertical distance of the topmost horizontal folding mark from the top |
| 674 |
edge of the paper (\autoref{sec:\LabelBase.foldmarks}, |
| 675 |
\DescPageRef{\LabelBase.plength.tfoldmarkvpos})% |
| 676 |
}% |
| 677 |
\pentry{toaddrheight}{% |
| 678 |
the height of the address field (\autoref{sec:\LabelBase.addressee}, |
| 679 |
\DescPageRef{\LabelBase.plength.toaddrheight})% |
| 680 |
}% |
| 681 |
\pentry{toaddrhpos}{% |
| 682 |
the horizontal distance of the address field from left edge of the paper, |
| 683 |
if the value is positive; if it is negative, the negative horizontal |
| 684 |
distance of the address field from the right edge of the paper |
| 685 |
(\autoref{sec:\LabelBase.addressee}, |
| 686 |
\DescPageRef{\LabelBase.plength.toaddrhpos})% |
| 687 |
}% |
| 688 |
\pentry{toaddrindent}{% |
| 689 |
the left and right indentation of the address within the address field |
| 690 |
(\autoref{sec:\LabelBase.addressee}, |
| 691 |
\DescPageRef{\LabelBase.plength.toaddrindent})% |
| 692 |
}% |
| 693 |
\pentry{toaddrvpos}{% |
| 694 |
the vertical distance of the address field from the the top edge of the |
| 695 |
paper (\autoref{sec:\LabelBase.addressee}, |
| 696 |
\DescPageRef{\LabelBase.plength.toaddrvpos})% |
| 697 |
}% |
| 698 |
\pentry{toaddrwidth}{% |
| 699 |
the width of the address field % |
| 700 |
(\autoref{sec:\LabelBase.addressee}, |
| 701 |
\DescPageRef{\LabelBase.plength.toaddrwidth})% |
| 702 |
}% |
| 703 |
\end{desclist} |
| 704 |
|
| 705 |
\begin{figure} |
| 706 |
\centering |
| 707 |
\tikzset{x=.56mm,y=-.56mm} |
| 708 |
\tiny |
| 709 |
\input{plength-tikz.tex} |
| 710 |
\caption{Schematic of the pseudo-lengths for a letter} |
| 711 |
\label{fig:\LabelBase.pseudoLength} |
| 712 |
\end{figure} |
| 713 |
|
| 714 |
|
| 715 |
\begin{Declaration} |
| 716 |
\Macro{newplength}\Parameter{name} |
| 717 |
\end{Declaration} |
| 718 |
This\ChangedAt{v3.26}{\Class{scrlttr2}\and \Package{scrletter}} command |
| 719 |
defines a new pseudo-length. The new pseudo-length is uniquely identified by |
| 720 |
its \PName{name}. Each name can therefore be assigned only once. If you |
| 721 |
attempt to redefine an existing pseudo-length, the commands exits with an |
| 722 |
error message. |
| 723 |
|
| 724 |
\BeginIndex{Cmd}{@newplength}% |
| 725 |
Since the ordinary user does not normally need to define pseudo-lengths, this |
| 726 |
command was not a user instruction until \KOMAScript~3.26. Before then, |
| 727 |
\Macro{@newplength} existed with the same functionality. This instruction still |
| 728 |
exists for package authors.% |
| 729 |
\EndIndexGroup |
| 730 |
|
| 731 |
|
| 732 |
\begin{Declaration} |
| 733 |
\Macro{Ifplength}\Parameter{pseudo-length}% |
| 734 |
\Parameter{then-code}\Parameter{else-code} |
| 735 |
\end{Declaration} |
| 736 |
This\ChangedAt{v3.27}{\Class{scrlttr2}\and \Package{scrletter}} command can be |
| 737 |
used to determine whether a \PName{pseudo-length} has been defined. The |
| 738 |
\PName{then-code} is executed if the \PName{pseudo-length} is defined and not |
| 739 |
\Macro{relax}. Otherwise the \PName{else-code} is executed. |
| 740 |
|
| 741 |
% Note: In the English manual this information is not \iffree{}{...}! |
| 742 |
\BeginIndex{Cmd}{if@plength}% |
| 743 |
For reasons of consistency only, the internal command \Macro{if@plength}, |
| 744 |
with the identical meaning, exists for the use of package authors.% |
| 745 |
\EndIndexGroup |
| 746 |
|
| 747 |
|
| 748 |
\begin{Declaration} |
| 749 |
\Macro{useplength}\Parameter{name} |
| 750 |
\end{Declaration} |
| 751 |
Using this command you can access the value of the pseudo-length of |
| 752 |
the given \PName{name}. This is one of the few user commands in |
| 753 |
connection with pseudo-lengths. Of course this command can also be |
| 754 |
used with an \File{lco} file\Index{lco file=\File{lco} file} (see |
| 755 |
\autoref{sec:\LabelBase.lcoFile} ab \autopageref{sec:\LabelBase.lcoFile}).% |
| 756 |
% |
| 757 |
\EndIndexGroup |
| 758 |
|
| 759 |
|
| 760 |
\begin{Declaration} |
| 761 |
\Macro{setplength}% |
| 762 |
\OParameter{factor}\Parameter{pseudo-length}\Parameter{value}% |
| 763 |
\Macro{addtoplength}% |
| 764 |
\OParameter{factor}\Parameter{pseudo-length}\Parameter{value} |
| 765 |
\end{Declaration} |
| 766 |
Using \Macro{setplength}, you can assign the multiple of a |
| 767 |
\PName{value} to a \PName{pseudo-length}. The \PName{factor} is given as an |
| 768 |
optional argument (see also \DescRef{\LabelBase.cmd.setlengthtoplength}, |
| 769 |
\autoref{sec:\LabelBase.pseudoLength}, |
| 770 |
\DescPageRef{\LabelBase.cmd.setlengthtoplength}). |
| 771 |
|
| 772 |
With \Macro{addtoplength} you can add the multiple of a \PName{value} to a |
| 773 |
\PName{pseudo-length}. Again, you can pass a \PName{factor} as an optional |
| 774 |
argument. |
| 775 |
|
| 776 |
To assign or to add the multiple of one \PName{pseudo-length} to another |
| 777 |
pseudo-length, use the \Macro{useplength} command (see |
| 778 |
\autoref{sec:\LabelBase.pseudoLength}, \DescPageRef{\LabelBase.cmd.useplength}) |
| 779 |
within the \PName{value}. To subtract the value of one \PName{pseudo-length} |
| 780 |
from another \PName{pseudo-length}, you use should use at the same time a |
| 781 |
minus sign or \PValue{-1} as the \PName{factor}. |
| 782 |
|
| 783 |
\BeginIndex{Cmd}{@setplength}% |
| 784 |
\BeginIndex{Cmd}{@addtoplength}% |
| 785 |
Since the ordinary user does not normally need to define pseudo-lengths, these |
| 786 |
commands were not user instructions until \KOMAScript~3.26. Before then, |
| 787 |
\Macro{@setplength} and \Macro{@addtoplength} existed with the |
| 788 |
same functionality. These commands still exist for the use of package authors.% |
| 789 |
\EndIndexGroup |
| 790 |
|
| 791 |
\begin{Declaration} |
| 792 |
\Macro{setplengthtowidth} |
| 793 |
\OParameter{factor}\Parameter{pseudo-length}\Parameter{content}% |
| 794 |
\Macro{setplengthtoheight} |
| 795 |
\OParameter{factor}\Parameter{pseudo-length}\Parameter{content}% |
| 796 |
\Macro{setplengthtodepth} |
| 797 |
\OParameter{factor}\Parameter{pseudo-length}\Parameter{content}% |
| 798 |
\Macro{setplengthtototalheight} |
| 799 |
\OParameter{factor}\Parameter{pseudo-length}\Parameter{content}% |
| 800 |
\end{Declaration} |
| 801 |
The\ChangedAt{v3.26}{\Class{scrlttr2}\and \Package{scrletter}} first three |
| 802 |
commands essentially correspond with \Macro{settowidth}, |
| 803 |
\Macro{settoheight}, and \Macro{settodepth} from the \LaTeX{} kernel, but set |
| 804 |
\PName{pseudo-length}s instead of lengths. Like |
| 805 |
\DescRef{\LabelBase.cmd.setplength}, these commands extend their \LaTeX{} |
| 806 |
kernel equivalents with an optional \PName{factor}. They set a |
| 807 |
\PName{pseudo-length} to the natural width, height or depth of the given |
| 808 |
\PName{content}, multiplied by the optional \PName{factor}. The additional |
| 809 |
command \Macro{setplengthtototalheight} sets the \PName{pseudo-length} to the |
| 810 |
sum of the height and depth of \PName{content} multiplied by the optional |
| 811 |
\PName{factor}.% |
| 812 |
\EndIndexGroup |
| 813 |
|
| 814 |
|
| 815 |
\begin{Declaration} |
| 816 |
\Macro{setlengthtoplength}% |
| 817 |
\OParameter{factor}\Parameter{length}\Parameter{pseudo-length}% |
| 818 |
\Macro{addtolengthplength}% |
| 819 |
\OParameter{factor}\Parameter{length}\Parameter{pseudo-length} |
| 820 |
\end{Declaration} |
| 821 |
With the \Macro{setlengthtoplength} command, you can assign a multiple of a |
| 822 |
\PName{pseudo-length} to a real \PName{length}. The \PName{factor} is given |
| 823 |
as an optional argument instead of directly preceding the |
| 824 |
\PName{pseudo-length}. You should also use this command when you want to |
| 825 |
assign the negative of a \PName{pseudo-length} to a \PName{length}. In this |
| 826 |
case, you can use either a minus sign or \PValue{-1} as the \PName{factor}. |
| 827 |
The \Macro{addtolengthplength} command works very similarly. It adds the |
| 828 |
\PName{pseudo-length} multiplied by the \PName{factor} to the \PName{length}.% |
| 829 |
% |
| 830 |
\EndIndexGroup |
| 831 |
% |
| 832 |
\EndIndexGroup |
| 833 |
|
| 834 |
|
| 835 |
\section{General Structure of Letter Documents} |
| 836 |
\seclabel{document} |
| 837 |
\BeginIndexGroup |
| 838 |
\BeginIndex{}{letter>structure} |
| 839 |
|
| 840 |
The general structure of a letter document differs somewhat from the structure |
| 841 |
of a normal document. Whereas a book document usually contains only one book, |
| 842 |
a letter document can contain several letters. As illustrated in |
| 843 |
\autoref{fig:\LabelBase.document}, a letter document consists of a preamble, |
| 844 |
the individual letters, and the closing. |
| 845 |
|
| 846 |
\begin{figure} |
| 847 |
\KOMAoptions{captions=bottombeside}% |
| 848 |
\setcapindent{0pt}% |
| 849 |
\begin{captionbeside}[{% |
| 850 |
General structure of a letter document containing several individual letters% |
| 851 |
}]{% |
| 852 |
General structure of a letter document containing several individual letters |
| 853 |
(the structure of a single letter is shown in |
| 854 |
\autoref{fig:\LabelBase.letter})% |
| 855 |
\label{fig:\LabelBase.document}% |
| 856 |
}[l] |
| 857 |
\begin{minipage}[b]{.667\linewidth} |
| 858 |
\centering\small\setlength{\fboxsep}{1.5ex}% |
| 859 |
\addtolength{\linewidth}{-\dimexpr2\fboxrule+2\fboxsep\relax}% |
| 860 |
\fbox{\parbox{\linewidth}{\raggedright% |
| 861 |
\Macro{documentclass}\OParameter{\dots}\PParameter{scrlttr2}\\ |
| 862 |
\dots\\ |
| 863 |
{\centering\emph{settings for all letters}\\} |
| 864 |
\dots\\ |
| 865 |
\Macro{begin}\PParameter{document}\\ |
| 866 |
\dots\\ |
| 867 |
{\centering\emph{settings for all letters}\\} |
| 868 |
\dots\\ |
| 869 |
}}\\ |
| 870 |
\fbox{\parbox{\linewidth}{\raggedright% |
| 871 |
\Macro{begin}\PParameter{letter}\Parameter{recipient}\\ |
| 872 |
\dots\\ |
| 873 |
{\centering\emph{content of the individual letter}\\} |
| 874 |
\dots\\ |
| 875 |
\Macro{end}\PParameter{letter}\\ |
| 876 |
}}\\[2pt] |
| 877 |
\parbox{\linewidth}{\raggedright\vspace{-.5ex}\vdots\vspace{1ex}}\\ |
| 878 |
\fbox{\parbox{\linewidth}{\raggedright% |
| 879 |
\Macro{end}\PParameter{document}\\ |
| 880 |
}}\\[\dimexpr\fboxsep+\fboxrule\relax] |
| 881 |
\end{minipage} |
| 882 |
\end{captionbeside} |
| 883 |
\end{figure} |
| 884 |
|
| 885 |
The preamble contains all the settings that apply generally to all letters. |
| 886 |
Most of them can also be overwritten in the settings of the individual |
| 887 |
letters. The only setting which cannot currently be changed within a single |
| 888 |
letter is the version of \Class{scrlttr2} for which compatibility is required |
| 889 |
(see the \DescRef{\LabelBase.option.version} option in |
| 890 |
\autoref{sec:\LabelBase.compatibilityOptions}, |
| 891 |
\DescPageRef{\LabelBase.option.version}). |
| 892 |
|
| 893 |
If you use \Package{scrletter}\important{scrletter}, the only difference is |
| 894 |
that another class is loaded, with |
| 895 |
\DescRef{\LabelBase.cmd.usepackage}\PParameter{scrletter} added before the |
| 896 |
settings for all letters. For setting options with \Package{scrletter}, see |
| 897 |
\autoref{sec:\LabelBase.options}, on \autopageref{sec:\LabelBase.options}. |
| 898 |
|
| 899 |
I recommended that you place only general settings such as loading packages |
| 900 |
and setting options before \Macro{begin}\PParameter{document}. You should |
| 901 |
initialise all variables or other textual features after |
| 902 |
\Macro{begin}\PParameter{document}, particularly when you use the |
| 903 |
\Package{babel} package\IndexPackage{babel} (see \cite{package:babel}) or |
| 904 |
change language-dependent variables of \Class{scrlttr2}. |
| 905 |
|
| 906 |
The closing usually consists only of \Macro{end}\PParameter{document}. Of |
| 907 |
course you can also add additional comments at this point. |
| 908 |
|
| 909 |
\begin{figure} |
| 910 |
\KOMAoptions{captions=bottombeside}% |
| 911 |
\setcapindent{0pt}% |
| 912 |
\begin{captionbeside}[{% |
| 913 |
General structure of a single letter within a letter document% |
| 914 |
}]{% |
| 915 |
General structure of a single letter within a letter document (see also |
| 916 |
\autoref{fig:\LabelBase.document})% |
| 917 |
\label{fig:\LabelBase.letter}}[l] |
| 918 |
\begin{minipage}[b]{.667\linewidth}% |
| 919 |
\centering\small\setlength{\fboxsep}{1.5ex}% |
| 920 |
\addtolength{\linewidth}{-\dimexpr2\fboxrule+2\fboxsep\relax}% |
| 921 |
\fbox{\parbox{\linewidth}{\raggedright% |
| 922 |
\Macro{begin}\PParameter{letter}% |
| 923 |
\OParameter{options}\Parameter{recipient}\\ |
| 924 |
\dots\\[\dp\strutbox] |
| 925 |
{\centering\emph{settings for this letter}\\} |
| 926 |
\dots\\ |
| 927 |
\DescRef{\LabelBase.cmd.opening}\Parameter{salutation}\\ |
| 928 |
}}\\[1pt] |
| 929 |
\fbox{\parbox{\linewidth}{\raggedright% |
| 930 |
\dots\\[\dp\strutbox] |
| 931 |
{\centering\emph{letter text}\\} |
| 932 |
\dots\\ |
| 933 |
}}\\[1pt] |
| 934 |
\fbox{\parbox{\linewidth}{\raggedright% |
| 935 |
\DescRef{\LabelBase.cmd.closing}\Parameter{concluding text}\\ |
| 936 |
\DescRef{\LabelBase.cmd.ps}\\ |
| 937 |
\dots\\[\dp\strutbox] |
| 938 |
{\centering\emph{postscript}\\} |
| 939 |
\dots\\ |
| 940 |
\DescRef{\LabelBase.cmd.encl}\Parameter{enclosures}\\ |
| 941 |
\DescRef{\LabelBase.cmd.cc}\Parameter{additional recipients}\\ |
| 942 |
\Macro{end}\PParameter{letter}\\ |
| 943 |
}}\\[\dimexpr\fboxsep+\fboxrule\relax] |
| 944 |
\end{minipage} |
| 945 |
\end{captionbeside} |
| 946 |
\end{figure} |
| 947 |
|
| 948 |
As detailed in \autoref{fig:\LabelBase.letter}, individual letters each |
| 949 |
consist of an introduction, the body of the letter, and the closing. In the |
| 950 |
introduction, all settings pertaining to the current letter alone are defined. |
| 951 |
It is important that this introduction always ends with |
| 952 |
\DescRef{\LabelBase.cmd.opening}\IndexCmd{opening}. Similarly, the closing |
| 953 |
always starts with \DescRef{\LabelBase.cmd.closing}\IndexCmd{closing}. The |
| 954 |
\PName{opening} and \PName{closing} arguments of the two commands can be left |
| 955 |
empty, but both commands must be used and must have an argument. |
| 956 |
|
| 957 |
Note that you can change additional settings between the individual letters. |
| 958 |
Such changes then apply to all subsequent letters. However, to keep your |
| 959 |
letter documents clear and maintainable, you should think carefully before |
| 960 |
actually placing further general settings of limited scope between the |
| 961 |
letters. I cannot recommend this practice. However, if you use |
| 962 |
\Package{scrletter2}, there is nothing wrong with inserting additional parts |
| 963 |
of the document between or after letters that should not be in the same scope. |
| 964 |
For example, you can combine a cover letter and a CV in one document. |
| 965 |
|
| 966 |
\begin{Declaration} |
| 967 |
\begin{Environment}{letter}\OParameter{options}\Parameter{recipient} |
| 968 |
\end{Environment} |
| 969 |
\end{Declaration} |
| 970 |
\BeginIndex{}{address}% |
| 971 |
The \Environment{letter} environment is one of the key environments of the |
| 972 |
letter class. A noteworthy\textnote{\KOMAScript{} vs. standard classes} |
| 973 |
feature of \Class{scrlttr2} and \Package{scrletter} is that they can provide |
| 974 |
additional \PName{options} for the \Environment{letter} environment. These |
| 975 |
\PName{options} are executed internally using the |
| 976 |
\DescRef{\LabelBase.cmd.KOMAoptions} command. |
| 977 |
|
| 978 |
The \PName{recipient}, or addressee, is a mandatory argument passed to the |
| 979 |
\Environment{letter} environment and includes both the name and the address of |
| 980 |
the recipient of the letter. Double\textnote{Attention!} backslashes serve to |
| 981 |
separate the individual parts of the address. These parts are output on |
| 982 |
individual lines in the address field. Nevertheless, you should not interpret |
| 983 |
the double backslash as a mandatory line break. Vertical material such as new |
| 984 |
paragraphs or vertical space is not permitted within the address. They can |
| 985 |
lead to unexpected results and error messages. Incidentally, this is the same |
| 986 |
for the standard letter class. |
| 987 |
|
| 988 |
\begin{Example} |
| 989 |
\phantomsection\label{desc:\LabelBase.env.letter.example}% |
| 990 |
Suppose you want to write a letter to Joanna Public. A minimalist |
| 991 |
letter document would look like this: |
| 992 |
\begin{lstcode} |
| 993 |
\documentclass[version=last]{scrlttr2} |
| 994 |
\usepackage[british]{babel} |
| 995 |
\begin{document} |
| 996 |
\begin{letter}{Joanna Public\\ |
| 997 |
1 Hillside\\ |
| 998 |
SAMPLESTEAD\\ |
| 999 |
WX12 3YZ} |
| 1000 |
\end{letter} |
| 1001 |
\end{document} |
| 1002 |
\end{lstcode} |
| 1003 |
However, this would not result in any output. It would not even print the |
| 1004 |
recipient on the letterhead page. Why this is the case is explained in the |
| 1005 |
description of the \DescRef{\LabelBase.cmd.opening} command on |
| 1006 |
\DescPageRef{\LabelBase.cmd.opening}. |
| 1007 |
\end{Example} |
| 1008 |
|
| 1009 |
Letters\ChangedAt{v3.27}{\Class{scrlttr2}\and \Package{scrletter}} are always |
| 1010 |
printed in single-column mode and without vertical adjustment. You can use |
| 1011 |
\DescRef{maincls.cmd.flushbottom}, explained in \autoref{sec:maincls.typearea} |
| 1012 |
on \DescPageRef{maincls.cmd.flushbottom}\IndexCmd{flushbottom}, together with |
| 1013 |
\DescRef{\LabelBase.cmd.AtBeginLetter} to force a vertical adjustment.% |
| 1014 |
\EndIndexGroup |
| 1015 |
|
| 1016 |
|
| 1017 |
\begin{Declaration} |
| 1018 |
\Macro{AtBeginLetter}\Parameter{code}% |
| 1019 |
\Macro{AtEndLetter}\Parameter{code} |
| 1020 |
\end{Declaration} |
| 1021 |
As mentioned in \cite{latex:clsguide}, \LaTeX{} lets the user declare |
| 1022 |
additional \PName{code} to be executed at certain points in a \LaTeX{} run. |
| 1023 |
For this purpose, the \LaTeX{} kernel provides, for example, |
| 1024 |
\Macro{AtBeginDocument}\IndexCmd{AtBeginDocument} and |
| 1025 |
\Macro{AtEndOfClass}\IndexCmd{AtEndOfClass}. Such points are called |
| 1026 |
\emph{hooks}\Index{hook}. The \Class{scrlttr2} class and the |
| 1027 |
\Package{scrletter} package provide two additional hooks. You can declare the |
| 1028 |
\PName{code} for these using \Macro{AtBeginLetter} and |
| 1029 |
\Macro{AtEndLetter}\ChangedAt{v2.95}{\Class{scrlttr2}}. Originally, hooks were |
| 1030 |
intended for package and class authors, so they are documented only in |
| 1031 |
\cite{latex:clsguide} and not in \cite{latex:usrguide}. However, with letters |
| 1032 |
there are useful applications at the user level for both new hooks, as the |
| 1033 |
following example illustrates. |
| 1034 |
% |
| 1035 |
\begin{Example} |
| 1036 |
Suppose you have several letters in a document that use their own commands |
| 1037 |
to insert a questionnaire in the letters. The questions are numbered |
| 1038 |
automatically using a counter. Since \KOMAScript{} is unaware of this |
| 1039 |
counter, it would not be reset at the start of each new letter, unlike the |
| 1040 |
page number. If each questionnaire contains ten questions, the first |
| 1041 |
question in the fifth letter would get the number~41. You can solve this |
| 1042 |
problem by telling \KOMAScript{} to reset this counter at the beginning of |
| 1043 |
each letter: |
| 1044 |
\begin{lstlisting} |
| 1045 |
\newcounter{Question} |
| 1046 |
\newcommand{\Question}[1]{% |
| 1047 |
\refstepcounter{Question}\par |
| 1048 |
\noindent\begin{tabularx}{\textwidth}{l@{}X} |
| 1049 |
\theQuestion:~ & #1\\ |
| 1050 |
\end{tabularx}% |
| 1051 |
}% |
| 1052 |
\AtBeginLetter{\setcounter{Question}{0}} |
| 1053 |
\end{lstlisting} |
| 1054 |
This way first question remains question~1, even in the 1001st letter. Of |
| 1055 |
course the definition in this example requires the |
| 1056 |
\Package{tabularx}\IndexPackage{tabularx} package (see |
| 1057 |
\cite{package:tabularx}). |
| 1058 |
\end{Example}% |
| 1059 |
% |
| 1060 |
\EndIndexGroup |
| 1061 |
|
| 1062 |
|
| 1063 |
\begin{Declaration} |
| 1064 |
\Counter{letter}% |
| 1065 |
\Macro{thisletter}% |
| 1066 |
\Macro{letterlastpage} |
| 1067 |
\end{Declaration} |
| 1068 |
If\ChangedAt{v3.19}{\Class{scrlttr2}\and \Package{scrletter}} you have more |
| 1069 |
than one letter in a document, it is useful to have a letter number. For this |
| 1070 |
purpose, \KOMAScript{} has provided the \Counter{letter} counter, which |
| 1071 |
is incremented by one at each \Macro{begin}\PParameter{letter}, since |
| 1072 |
version~3.19. |
| 1073 |
\begin{Example} |
| 1074 |
Let's return to the \DescRef{\LabelBase.cmd.AtBeginLetter} |
| 1075 |
example. Instead of resetting the counter explicitly at |
| 1076 |
\Macro{begin}\PParameter{letter}, we can do so implicitly by defining |
| 1077 |
counter \Counter{Question} to depend on counter \Counter{letter}: |
| 1078 |
\begin{lstlisting} |
| 1079 |
\newcounter{Question}[letter] |
| 1080 |
\newcommand{\Question}[1]{% |
| 1081 |
\refstepcounter{Question}\par |
| 1082 |
\noindent\begin{tabularx}{\textwidth}{l@{}X} |
| 1083 |
\theQuestion:~ & #1\\ |
| 1084 |
\end{tabularx}% |
| 1085 |
}% |
| 1086 |
\end{lstlisting} |
| 1087 |
Now the new counter will be reset at every start of each letter so that |
| 1088 |
the first question in each letter will be number one. |
| 1089 |
\end{Example} |
| 1090 |
|
| 1091 |
If you want to display the current value of \Counter{letter}, this is |
| 1092 |
possible, as usual, with \Macro{theletter}. The counter can also be used for |
| 1093 |
cross-references. So you can use \Macro{label}\Parameter{name} to generate a |
| 1094 |
label immediately after \Macro{begin}\PParameter{letter} and reference it |
| 1095 |
somewhere in the document using \Macro{ref}\Parameter{name}. Inside the same |
| 1096 |
letter you can get the same result by simply using \Macro{thisletter} without |
| 1097 |
creating a label. |
| 1098 |
|
| 1099 |
For labels in form letters, it is necessary to give them a unique name across |
| 1100 |
all letters. Once again, you can use \Macro{thisletter} for this purpose. |
| 1101 |
\KOMAScript{} also uses \Macro{thisletter} internally to put a label on the |
| 1102 |
last page of each letter. This makes it possible to use |
| 1103 |
\Macro{letterlastpage}\IndexCmd{label}\IndexCmd{pageref} to reference the |
| 1104 |
number of the last page of the current letter at any point within the letter. |
| 1105 |
Since \Macro{letterlastpage} uses \Macro{label} and \Macro{pageref}, it is |
| 1106 |
only valid after several \LaTeX{} runs\,---\,usually two or three. If you use |
| 1107 |
\Macro{letterlastpage}, pay attention to the \emph{Rerun} messages in the |
| 1108 |
terminal output or \File{log} file messages about labels that have been |
| 1109 |
changed.% |
| 1110 |
\EndIndexGroup |
| 1111 |
|
| 1112 |
|
| 1113 |
\begin{Declaration} |
| 1114 |
\Macro{opening}\Parameter{salutation} |
| 1115 |
\end{Declaration} |
| 1116 |
This is one of the most important commands for letters. On the surface, it may |
| 1117 |
seem that only the \PName{salutation}\Index{letter>salutation}, for example |
| 1118 |
``Dear Mrs~\dots'', is printed. Actually\textnote{Attention!}, this command |
| 1119 |
also prints the fold marks\Index{fold marks}, the |
| 1120 |
letterhead\Index{letterhead}, the address\Index{address}, the extra sender |
| 1121 |
information, the reference line\Index{reference line}, the title\Index{title}, |
| 1122 |
the subject\Index{subject}, and the footer\Index{page>footer}. In short, |
| 1123 |
without \Macro{opening} there is no letter. If, in fact, you want to print a |
| 1124 |
letter without a salutation, you have to use an \Macro{opening} command with |
| 1125 |
an empty argument. |
| 1126 |
|
| 1127 |
\begin{Example} |
| 1128 |
Let's return to the example of |
| 1129 |
\DescPageRef{\LabelBase.env.letter.example} and add a salutation: |
| 1130 |
\lstinputcode[xleftmargin=1em]{letter-example-00-en.tex} |
| 1131 |
This will result in the letterhead shown in |
| 1132 |
\autoref{fig:\LabelBase.letter-00}. |
| 1133 |
\begin{figure} |
| 1134 |
\setcapindent{0pt}% |
| 1135 |
\begin{captionbeside}[{Example: letter with recipient and salutation}]{% |
| 1136 |
result of a minimalist letter with recipient and salutation only |
| 1137 |
(the date is set by default)}[l] |
| 1138 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-00-en}} |
| 1139 |
\end{captionbeside} |
| 1140 |
\label{fig:\LabelBase.letter-00} |
| 1141 |
\end{figure} |
| 1142 |
\end{Example} |
| 1143 |
\iffalse% Umbruchkorrekturtext |
| 1144 |
\begin{Explain} |
| 1145 |
In the early days of computer-generated letters, a salutation was normally |
| 1146 |
omitted, since individualised form letters were hardly possible. Today |
| 1147 |
personalised greetings are common in mass mailings.% |
| 1148 |
\end{Explain} |
| 1149 |
\fi |
| 1150 |
% |
| 1151 |
\EndIndexGroup |
| 1152 |
|
| 1153 |
|
| 1154 |
\begin{Declaration} |
| 1155 |
\Macro{closing}\Parameter{concluding text} |
| 1156 |
\end{Declaration} |
| 1157 |
The main purpose of the command \Macro{closing} is to typeset the |
| 1158 |
\PName{concluding text}\Index{closing}. This can even consist of multiple |
| 1159 |
lines. In that case, the individual lines should be separated by a double |
| 1160 |
backslash. Paragraph breaks inside the \PName{concluding text} are not |
| 1161 |
allowed. |
| 1162 |
|
| 1163 |
In addition, this command also prints the content of the |
| 1164 |
\DescRef{\LabelBase.variable.signature} variable. You can find more |
| 1165 |
information about the signature and its configuration in |
| 1166 |
\autoref{sec:\LabelBase.closing} on |
| 1167 |
\DescPageRef{\LabelBase.variable.signature}. |
| 1168 |
|
| 1169 |
\begin{Example} |
| 1170 |
Let's extend the our example with a few lines of text and a closing phrase: |
| 1171 |
\lstinputcode[xleftmargin=1em]{letter-example-01-en.tex} |
| 1172 |
This will result in a the letter shown in \autoref{fig:\LabelBase.letter-01}. |
| 1173 |
\begin{figure} |
| 1174 |
\setcapindent{0pt}% |
| 1175 |
\begin{captionbeside}[{Example: letter with recipient, opening, text, and |
| 1176 |
closing}]{% |
| 1177 |
result of a short letter with recipient, opening, text, and closing |
| 1178 |
% The refernce to DIN-letters in the German guide isn't relevant for |
| 1179 |
% English-language letters |
| 1180 |
(the date is set by default)}[l] |
| 1181 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-01-en}} |
| 1182 |
\end{captionbeside} |
| 1183 |
\label{fig:\LabelBase.letter-01} |
| 1184 |
\end{figure} |
| 1185 |
\end{Example} |
| 1186 |
% |
| 1187 |
\EndIndexGroup |
| 1188 |
|
| 1189 |
\begin{Declaration} |
| 1190 |
\Macro{ps} |
| 1191 |
\end{Declaration}% |
| 1192 |
This instruction merely switches to the postscript. To do so, a new paragraph |
| 1193 |
begins, and a vertical gap\,---\,usually below the signature\,---\,is |
| 1194 |
inserted. The \Macro{ps} text can be followed by any text. If you want the |
| 1195 |
postscript to be introduced with the acronym ``PS:'', which in most current |
| 1196 |
usage is written without full stops, you have to type this yourself. This |
| 1197 |
abbreviation is printed neither automatically nor optionally by the |
| 1198 |
\Class{scrlttr2} class. |
| 1199 |
|
| 1200 |
\begin{Example} |
| 1201 |
The sample letter with the addition of a postscript |
| 1202 |
\lstinputcode[xleftmargin=1em]{letter-example-02-en.tex} |
| 1203 |
results in \autoref{fig:\LabelBase.letter-02}. |
| 1204 |
\begin{figure} |
| 1205 |
\setcapindent{0pt}% |
| 1206 |
\begin{captionbeside}[{Example: letter with recipient, opening, text, |
| 1207 |
closing, and postscript}]{% |
| 1208 |
result of a short letter with recipient, opening, text, closing, and |
| 1209 |
postscript (the date is set by default)}[l] |
| 1210 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-02-en}} |
| 1211 |
\end{captionbeside} |
| 1212 |
\label{fig:\LabelBase.letter-02} |
| 1213 |
\end{figure} |
| 1214 |
\end{Example} |
| 1215 |
|
| 1216 |
\begin{Explain} |
| 1217 |
When letters were written still by hand, it was quite common to use a |
| 1218 |
postscript because this was the only way to add information which had been |
| 1219 |
forgotten in the main part of the letter. For letters written with \LaTeX{}, |
| 1220 |
of course, you can easily insert additional lines. Nevertheless, postscripts |
| 1221 |
remain popular. They can be useful to emphasize important points once more, |
| 1222 |
or even to mention the less important matters. |
| 1223 |
\end{Explain} |
| 1224 |
% |
| 1225 |
\EndIndexGroup |
| 1226 |
|
| 1227 |
|
| 1228 |
\begin{Declaration} |
| 1229 |
\Macro{cc}\Parameter{distribution list}% |
| 1230 |
\Variable{ccseparator}% |
| 1231 |
\end{Declaration} |
| 1232 |
You can print a \PName{distribution list}\Index{recipient>additional}% |
| 1233 |
\Index{distribution list}\Index{carbon copy} with the \Macro{cc} command. The |
| 1234 |
command takes the \PName{distribution list} as its argument. If the |
| 1235 |
\PName{name} of the variable |
| 1236 |
\Variable{ccseparator}\Index{separator}\Index{delimiter} is not empty, the |
| 1237 |
\PName{name} and \PName{content} of this variable are inserted before the |
| 1238 |
\PName{distribution list}. In this case, the \PName{distribution list} will be |
| 1239 |
indented appropriately. If the individual entries are to be printed one below |
| 1240 |
the other, they can be separated by a double backslash. |
| 1241 |
\begin{Example} |
| 1242 |
This time, the sample letter should go not only to the chairman but also to |
| 1243 |
all club members: |
| 1244 |
\lstinputcode[xleftmargin=1em]{letter-example-03-en.tex}% |
| 1245 |
The result is shown in \autoref{fig:\LabelBase.letter-03}. |
| 1246 |
\begin{figure} |
| 1247 |
\setcapindent{0pt}% |
| 1248 |
\begin{captionbeside}[{Example: letter with recipient, opening, text, |
| 1249 |
closing, postscript, and distribution list}]{% |
| 1250 |
result of a short letter with recipient, opening, text, closing, |
| 1251 |
postscript, and distribution list (the date is set by default)}[l] |
| 1252 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-03-en}} |
| 1253 |
\end{captionbeside} |
| 1254 |
\label{fig:\LabelBase.letter-03} |
| 1255 |
\end{figure} |
| 1256 |
\end{Example} |
| 1257 |
A vertical gap is inserted automatically before the distribution list.% |
| 1258 |
% |
| 1259 |
\EndIndexGroup |
| 1260 |
|
| 1261 |
|
| 1262 |
\begin{Declaration} |
| 1263 |
\Macro{encl}\Parameter{enclosures}% |
| 1264 |
\Variable{enclseparator}% |
| 1265 |
\end{Declaration} |
| 1266 |
The \PName{enclosures} have the same structure as the distribution list. The |
| 1267 |
only difference is that the list of enclosures begins with the name and |
| 1268 |
content of the \Variable{enclseparator}\Index{separator}\Index{delimiter} |
| 1269 |
variable. |
| 1270 |
\begin{Example} |
| 1271 |
To the sample letter we will attach an excerpt from the club's articles of |
| 1272 |
association. These will be added as an enclosure. Because there is only one |
| 1273 |
enclosure, we change the description title accordingly: |
| 1274 |
\lstinputcode[xleftmargin=1em]{letter-example-04-en.tex} |
| 1275 |
This will result in \autoref{fig:\LabelBase.letter-04}. |
| 1276 |
\begin{figure} |
| 1277 |
\setcapindent{0pt}% |
| 1278 |
\begin{captionbeside}[{Example: letter with recipient, opening, text, |
| 1279 |
closing, postscript, distribution list, and enclosure}]{% |
| 1280 |
result of a short letter with recipient, opening, text, closing, |
| 1281 |
postscript, distribution list, and enclosure (the date is set by |
| 1282 |
default)}[l] |
| 1283 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-04-en}} |
| 1284 |
\end{captionbeside} |
| 1285 |
\label{fig:\LabelBase.letter-04} |
| 1286 |
\end{figure} |
| 1287 |
\end{Example} |
| 1288 |
% |
| 1289 |
\EndIndexGroup |
| 1290 |
% |
| 1291 |
\EndIndexGroup |
| 1292 |
|
| 1293 |
|
| 1294 |
\LoadCommonFile{fontsize} % \section{Choosing the Document Font Size} |
| 1295 |
|
| 1296 |
\LoadCommonFile{textmarkup} % \section{Text Markup} |
| 1297 |
|
| 1298 |
\section{Letterhead Page} |
| 1299 |
\seclabel{firstpage} |
| 1300 |
\BeginIndexGroup |
| 1301 |
\BeginIndex{}{letterhead page}% |
| 1302 |
|
| 1303 |
The letterhead page is the first page of, and therefore the signpost for, each |
| 1304 |
letter. In a business context, the paper for this page is often preprinted |
| 1305 |
stationery containing elements such as a header with the sender's information |
| 1306 |
and logo. This header itself is also known as a letterhead. \KOMAScript{} lets |
| 1307 |
you position these elements freely, and so you can not only replicate the |
| 1308 |
letterhead page directly but also fill in the required fields instantaneously. |
| 1309 |
This free positioning is achieved with pseudo-lengths (see |
| 1310 |
\autoref{sec:\LabelBase.pseudoLength} starting on |
| 1311 |
\autopageref{sec:\LabelBase.pseudoLength}). You can find a schematic |
| 1312 |
representation of the letterhead page and the variables used for it in |
| 1313 |
\autoref{fig:\LabelBase.variables}. The names of the variables are printed in |
| 1314 |
bold to better distinguish the commands from their arguments. |
| 1315 |
|
| 1316 |
Subsequent pages\Index{page>subsequent}\Index{subsequent pages} should be |
| 1317 |
distinguished from the letterhead page. For the purposes of this manual, |
| 1318 |
subsequent pages are all pages of a letter except the first one. |
| 1319 |
|
| 1320 |
\begin{figure} |
| 1321 |
\centering |
| 1322 |
\tikzset{x=.56mm,y=-.56mm} |
| 1323 |
\tiny |
| 1324 |
\input{variables-tikz.tex} |
| 1325 |
\caption{schematic display of the letterhead page outlining the most |
| 1326 |
important commands and variables} |
| 1327 |
\label{fig:\LabelBase.variables} |
| 1328 |
\end{figure} |
| 1329 |
|
| 1330 |
|
| 1331 |
\subsection{Fold Marks} |
| 1332 |
\seclabel{foldmarks} |
| 1333 |
\BeginIndexGroup |
| 1334 |
\BeginIndex{}{fold marks}% |
| 1335 |
\index{marks>folding|see{fold marks}} |
| 1336 |
|
| 1337 |
Fold marks, or folding marks, are short horizontal lines at the left edge, and |
| 1338 |
short vertical lines at the upper edge of the paper. \KOMAScript{} currently |
| 1339 |
supports three configurable horizontal and one configurable vertical fold |
| 1340 |
marks. In addition, there is support for a hole-punch mark, or centre mark, |
| 1341 |
which cannot be shifted vertically. |
| 1342 |
|
| 1343 |
\begin{Declaration} |
| 1344 |
\OptionVName{foldmarks}{setting} |
| 1345 |
\end{Declaration} |
| 1346 |
The \Option{foldmarks} option activates or deactivates fold marks for two, |
| 1347 |
three, or four vertical divisions and one horizontal division. The individual |
| 1348 |
parts do not have to be of equal size. The positions of three of the four |
| 1349 |
horizontal marks and the single vertical mark are configurable via |
| 1350 |
pseudo-lengths (see \autoref{sec:\LabelBase.pseudoLength}, |
| 1351 |
\autopageref{sec:\LabelBase.pseudoLength}). |
| 1352 |
|
| 1353 |
With the \Option{foldmarks} option, you can either use the default values for |
| 1354 |
simple switches described in \autoref{tab:truefalseswitch}, |
| 1355 |
\autopageref{tab:truefalseswitch} in order to activate or deactivate all |
| 1356 |
configured fold marks on the left and upper edges of the paper at once, |
| 1357 |
or\ChangedAt{v2.97e}{\Class{scrlttr2}} you can configure the individual fold |
| 1358 |
marks independently by specifying one or more letters, as listed in |
| 1359 |
\autoref{tab:\LabelBase.foldmark}. In the latter case, the fold marks are only |
| 1360 |
shown if they have not been deactivated globally with \PValue{false}, |
| 1361 |
\PValue{off}, or \PValue{no}. The exact position of the fold marks is depends |
| 1362 |
on the user settings or the \File{lco} files (see |
| 1363 |
\autoref{sec:\LabelBase.lcoFile} starting on |
| 1364 |
\autopageref{sec:\LabelBase.lcoFile}). The default values are \PValue{true} |
| 1365 |
and \PValue{TBMPL}.\textnote{default} |
| 1366 |
% |
| 1367 |
\begin{table} |
| 1368 |
% \centering |
| 1369 |
\KOMAoptions{captions=topbeside}% |
| 1370 |
\setcapindent{0pt}% |
| 1371 |
% \caption |
| 1372 |
\begin{captionbeside}{% |
| 1373 |
Combinable values for configuring fold marks with the |
| 1374 |
\Option{foldmarks} option% |
| 1375 |
}[l] |
| 1376 |
\begin{tabular}[t]{ll} |
| 1377 |
\toprule |
| 1378 |
\PValue{B} & activate bottom horizontal fold mark on left paper edge\\% |
| 1379 |
\PValue{b} & deactivate bottom horizontal fold mark on left paper edge\\% |
| 1380 |
\PValue{H} & activate all horizontal fold marks on left paper edge\\% |
| 1381 |
\PValue{h} & deactivate all horizontal fold marks on left paper edge\\% |
| 1382 |
\PValue{L} & activate left vertical fold mark on upper paper edge\\% |
| 1383 |
\PValue{l} & deactivate left vertical fold mark on upper paper edge\\% |
| 1384 |
\PValue{M} & activate middle horizontal fold mark on left paper edge\\% |
| 1385 |
\PValue{m} & deactivate middle horizontal fold mark on left paper edge\\% |
| 1386 |
\PValue{P} & activate hole-punch or centre mark on left paper edge\\% |
| 1387 |
\PValue{p} & deactivate hole-punch or centre mark on left paper edge\\% |
| 1388 |
\PValue{T} & activate top horizontal fold mark on left paper edge\\% |
| 1389 |
\PValue{t} & deactivate top horizontal fold mark on left paper edge\\% |
| 1390 |
\PValue{V} & activate all vertical fold marks on upper paper edge\\% |
| 1391 |
\PValue{v} & deactivate all vertical fold marks on upper paper edge\\% |
| 1392 |
\bottomrule |
| 1393 |
\end{tabular} |
| 1394 |
\end{captionbeside} |
| 1395 |
\label{tab:\LabelBase.foldmark} |
| 1396 |
\end{table} |
| 1397 |
% |
| 1398 |
\begin{Example} |
| 1399 |
Suppose you want to deactivate all fold marks except the hole-punch mark. If |
| 1400 |
the default has not already been changed, you can deactivate it as follows: |
| 1401 |
\begin{lstlisting} |
| 1402 |
\KOMAoptions{foldmarks=blmt} |
| 1403 |
\end{lstlisting} |
| 1404 |
If there is a chance that the default has already been changed, you should |
| 1405 |
use a safer method. This changes our example a little bit: |
| 1406 |
\lstinputcode[xleftmargin=1em]{letter-example-07-en.tex}% |
| 1407 |
The result is shown in \autoref{fig:\LabelBase.letter-07}. |
| 1408 |
\begin{figure} |
| 1409 |
\setcapindent{0pt}% |
| 1410 |
\begin{captionbeside}[{Example: letter with recipient, opening, text, |
| 1411 |
closing, postscript, distribution list, enclosure, and hole-punch |
| 1412 |
mark}]{% |
| 1413 |
result of a short letter with recipient, opening, text, closing, |
| 1414 |
postscript, distribution list, enclosure, and hole-punch mark |
| 1415 |
(the date is set by default)}[l] |
| 1416 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-07-en}} |
| 1417 |
\end{captionbeside} |
| 1418 |
\label{fig:\LabelBase.letter-07} |
| 1419 |
\end{figure} |
| 1420 |
\end{Example} |
| 1421 |
\BeginIndex{FontElement}{foldmark}\LabelFontElement{foldmark}% |
| 1422 |
You\ChangedAt{v2.97c}{\Class{scrlttr2}} can change the colour of the fold mark |
| 1423 |
with the \DescRef{\LabelBase.cmd.setkomafont} and |
| 1424 |
\DescRef{\LabelBase.cmd.addtokomafont} commands (see |
| 1425 |
\autoref{sec:\LabelBase.textmarkup}, \DescPageRef{\LabelBase.cmd.setkomafont}) |
| 1426 |
with the \FontElement{foldmark} element. The default is no change.% |
| 1427 |
\EndIndexGroup |
| 1428 |
|
| 1429 |
|
| 1430 |
\begin{Declaration} |
| 1431 |
\PLength{tfoldmarkvpos}% |
| 1432 |
\PLength{mfoldmarkvpos}% |
| 1433 |
\PLength{bfoldmarkvpos} |
| 1434 |
\end{Declaration} |
| 1435 |
\KOMAScript{} recognises a total of three fold marks whose vertical position |
| 1436 |
can be configured. The distance of the top fold mark from the upper edge of |
| 1437 |
the paper is determined by the \PLength{tfoldmarkvpos} pseudo-length; the |
| 1438 |
distance of the middle fold mark, by the |
| 1439 |
\PLength{mfoldmarkvpos}\ChangedAt{v2.97e}{\Class{scrlttr2}} pseudo-length; the |
| 1440 |
distance of the bottommost fold mark, by \PLength{bfoldmarkvpos} |
| 1441 |
pseudo-length. With the addition of the hole-punch\Index{hole-punch mark} or |
| 1442 |
centre\Index{centre mark|see{hole-punch mark}} mark, there is yet a fourth |
| 1443 |
horizontal mark. This one is however always placed at the vertical centre of |
| 1444 |
the paper. |
| 1445 |
\iftrue% Umbruchkorrekturtext |
| 1446 |
There is no pseudo-length for this last mark because its vertical position is |
| 1447 |
not configurable. |
| 1448 |
\fi |
| 1449 |
|
| 1450 |
The\textnote{Attention!} top and bottom fold marks do not serve to divide the |
| 1451 |
paper exactly into equal thirds. Instead, the paper should be folded with |
| 1452 |
their help such that the address field can be seen in a window envelope. The |
| 1453 |
settings are therefore different depending on the \File{lco} file chosen. |
| 1454 |
Several such files are available offering predefined formats. One format |
| 1455 |
particularly worth noting is \Option{DINmtext}. This format assumes an |
| 1456 |
envelope format of C6/5 (also known as ``C6 long''). Letters written with this |
| 1457 |
option are typically not suited for C5 or C4 envelopes. |
| 1458 |
|
| 1459 |
The middle fold mark is not normally required for Western letters. In Japan, |
| 1460 |
however, a larger number of envelope formats exists, requiring one more fold |
| 1461 |
mark (see the Japanese \File{lco} files). Note that the terms ``top'', |
| 1462 |
``middle'', and ``bottom'' fold marks only represent a naming convention. In |
| 1463 |
fact, it is not required that \PLength{tfoldmarkvpos} must be smaller than |
| 1464 |
\PLength{mfoldmarkvpos}, which in turn must be smaller than |
| 1465 |
\PLength{bfoldmarkvpos}. If, though, one of the pseudo-lengths is zero, then |
| 1466 |
the corresponding fold mark will not be set even if the |
| 1467 |
\DescRef{\LabelBase.option.foldmarks}\IndexOption{foldmarks~=\PName{setting}}% |
| 1468 |
\important{\DescRef{\LabelBase.option.foldmarks}} option (see |
| 1469 |
\autoref{sec:\LabelBase.firstpage}, \DescPageRef{\LabelBase.option.foldmarks}) is |
| 1470 |
explicitly activated. |
| 1471 |
% |
| 1472 |
\EndIndexGroup |
| 1473 |
|
| 1474 |
|
| 1475 |
\begin{Declaration} |
| 1476 |
\PLength{tfoldmarklength}% |
| 1477 |
\PLength{mfoldmarklength}% |
| 1478 |
\PLength{bfoldmarklength}% |
| 1479 |
\PLength{pfoldmarklength} |
| 1480 |
\end{Declaration} |
| 1481 |
These\ChangedAt{v2.97e}{\Class{scrlttr2}} four pseudo-lengths determine the |
| 1482 |
lengths of the four horizontal fold marks. One\textnote{Attention!} feature is |
| 1483 |
particularly worth noting. If the length is given as zero, then the three |
| 1484 |
vertically configurable pseudo-lengths \PLength{tfoldmarklength}, |
| 1485 |
\PLength{mfoldmarklength} and \PLength{bfoldmarklength} are set to 2\Unit{mm}. |
| 1486 |
The length of the hole-punch mark, \PLength{pfoldmarklength}, however, is set |
| 1487 |
to 4\Unit{mm}.% |
| 1488 |
\EndIndexGroup |
| 1489 |
|
| 1490 |
|
| 1491 |
\begin{Declaration} |
| 1492 |
\PLength{foldmarkhpos} |
| 1493 |
\end{Declaration} |
| 1494 |
This pseudo-length gives the distance of all horizontal fold marks from the |
| 1495 |
left edge of the paper. Normally, this is 3.5\Unit{mm}. You\textnote{Hint!} |
| 1496 |
can change this value in your own \File{lco} file if you are using a printer |
| 1497 |
that has a wider unprintable left margin. Whether the fold marks are typeset |
| 1498 |
at all depends on the option \DescRef{\LabelBase.option.foldmarks}% |
| 1499 |
\important{\DescRef{\LabelBase.option.foldmarks}}% |
| 1500 |
\IndexOption{foldmarks~=\PName{setting}} (see |
| 1501 |
\autoref{sec:\LabelBase.firstpage}, \DescPageRef{\LabelBase.option.foldmarks}). |
| 1502 |
% |
| 1503 |
\EndIndexGroup |
| 1504 |
|
| 1505 |
|
| 1506 |
\begin{Declaration} |
| 1507 |
\PLength{lfoldmarkhpos} |
| 1508 |
\end{Declaration} |
| 1509 |
In\ChangedAt{v2.97e}{\Class{scrlttr2}} addition to the horizontal fold marks, |
| 1510 |
there is also a vertical fold mark. Its distance from the left margin is set |
| 1511 |
via the \PLength{lfoldmarkhpos} pseudo-length. This fold mark is used, for |
| 1512 |
example, in Japanese Chou- or You-format envelopes if you want to use them |
| 1513 |
with A4 paper. It can also be useful for envelopes in C6 format.% |
| 1514 |
\EndIndexGroup |
| 1515 |
|
| 1516 |
|
| 1517 |
\begin{Declaration} |
| 1518 |
\PLength{lfoldmarklength} |
| 1519 |
\end{Declaration} |
| 1520 |
The\ChangedAt{v2.97e}{\Class{scrlttr2}} \PLength{lfoldmarklength} |
| 1521 |
pseudo-length determines the length of the vertical fold mark. Once again, a |
| 1522 |
feature worth noting is that if the length is given as zero, a length of |
| 1523 |
4\Unit{mm} is actually used.% |
| 1524 |
\EndIndexGroup |
| 1525 |
|
| 1526 |
|
| 1527 |
\begin{Declaration} |
| 1528 |
\PLength{foldmarkvpos} |
| 1529 |
\end{Declaration} |
| 1530 |
This\ChangedAt{v2.97e}{\Class{scrlttr2}} pseudo-length determines the distance of |
| 1531 |
all vertical fold marks from the upper edge of the paper. Normally this is |
| 1532 |
3.5\Unit{mm}, but\textnote{Hint!} you can change the value in your own |
| 1533 |
\File{lco} file in case your printer has a wider unprintable |
| 1534 |
top margin. Whether or not the foldmarks are actually typeset depends on the |
| 1535 |
\DescRef{\LabelBase.option.foldmarks}% |
| 1536 |
\important{\DescRef{\LabelBase.option.foldmarks}}% |
| 1537 |
\IndexOption{foldmarks~=\PName{setting}} option (see |
| 1538 |
\autoref{sec:\LabelBase.firstpage}, \DescPageRef{\LabelBase.option.foldmarks}). |
| 1539 |
\iffree{At present there is only one vertical fold mark, called the left |
| 1540 |
vertical fold mark.}{}% |
| 1541 |
\EndIndexGroup |
| 1542 |
|
| 1543 |
|
| 1544 |
\begin{Declaration} |
| 1545 |
\PLength{foldmarkthickness} |
| 1546 |
\end{Declaration} |
| 1547 |
This\ChangedAt{v2.97c}{\Class{scrlttr2}} pseudo-length determines the |
| 1548 |
thickness of all fold marks. The default is 0.2\Unit{pt}, in other words a |
| 1549 |
very thin hairline. In\textnote{Hint!} particular, if the colour of the fold |
| 1550 |
marks is changed, this may not be enough.% |
| 1551 |
\EndIndexGroup |
| 1552 |
% |
| 1553 |
\EndIndexGroup |
| 1554 |
|
| 1555 |
|
| 1556 |
\subsection{Letterhead} |
| 1557 |
\seclabel{firstHead} |
| 1558 |
\BeginIndexGroup |
| 1559 |
\BeginIndex{}{letterhead}% |
| 1560 |
|
| 1561 |
The term letterhead refers here to all of the information concerning the |
| 1562 |
sender that appears above the recipient's address. Normally you would expect |
| 1563 |
that this information would be set through the page-style settings. In fact, |
| 1564 |
this was the case with the old letter class, \Class{scrlettr}. |
| 1565 |
But\textnote{Attention!} \Class{scrlttr2} and \Package{scrletter} output the |
| 1566 |
letterhead independently of the page style by means of the |
| 1567 |
\DescRef{\LabelBase.cmd.opening}\IndexCmd{opening} command. |
| 1568 |
% Fuellmaterial |
| 1569 |
\iftrue% |
| 1570 |
The letterhead is positioned absolutely, so that it is independent of the |
| 1571 |
type area. In fact, the first page of a letter, the page that holds the |
| 1572 |
letterhead, is set using the page style |
| 1573 |
\DescRef{\LabelBase.pagestyle.empty}\IndexPagestyle{empty}.% |
| 1574 |
\fi |
| 1575 |
% Ende des Fuellmaterials |
| 1576 |
|
| 1577 |
|
| 1578 |
\begin{Declaration} |
| 1579 |
\OptionVName{firsthead}{simple switch} |
| 1580 |
\end{Declaration} |
| 1581 |
\BeginIndex{}{letterhead}% |
| 1582 |
\BeginIndex{}{letter>header}% |
| 1583 |
The\ChangedAt{v2.97e}{\Class{scrlttr2}} letterhead is usually the topmost |
| 1584 |
element of the letterhead page. With the \Option{firsthead} option, you can |
| 1585 |
choose whether the letterhead will be typeset at all. The option accepts the |
| 1586 |
standard values for simple switches given in \autoref{tab:truefalseswitch} on |
| 1587 |
\autopageref{tab:truefalseswitch}. The default is to typeset the letterhead.% |
| 1588 |
% |
| 1589 |
\EndIndexGroup |
| 1590 |
|
| 1591 |
|
| 1592 |
\begin{Declaration} |
| 1593 |
\PLength{firstheadvpos} |
| 1594 |
\end{Declaration} |
| 1595 |
The \PLength{firstheadvpos} pseudo-length gives the distance between the top |
| 1596 |
edge of the paper and the start of the letterhead. This value is set |
| 1597 |
differently in the various predefined |
| 1598 |
\File{lco} files\textnote{\File{lco} file}\Index{lco file=\File{lco} file}. A |
| 1599 |
typical value is 8\Unit{mm}.% |
| 1600 |
\EndIndexGroup |
| 1601 |
|
| 1602 |
|
| 1603 |
\begin{Declaration} |
| 1604 |
\PLength{firstheadhpos} |
| 1605 |
\end{Declaration} |
| 1606 |
A positive value of the |
| 1607 |
\PLength{firstheadhpos}\ChangedAt{v3.05}{\Class{scrlttr2}} pseudo-length gives |
| 1608 |
the distance between the left edge of the paper and the start of the |
| 1609 |
letterhead. If\textnote{Attention!} the value is actually greater than or |
| 1610 |
equal to the paper width, |
| 1611 |
\Length{paperwidth}\important{\Length{paperwidth}}\IndexLength{paperwidth}, |
| 1612 |
the letterhead will be centred horizontally on the letterhead paper. A |
| 1613 |
negative value gives the distance between the right edge of the paper and the |
| 1614 |
right edge of the letterhead. If the value actually less than or equal to the |
| 1615 |
negative value of the width of the paper, the letterhead is placed flush with |
| 1616 |
the left edge of the type area. |
| 1617 |
|
| 1618 |
The default\textnote{Attention!} value is typically |
| 1619 |
\Length{maxdimen}\IndexLength{maxdimen}, which is the maximum allowed value of |
| 1620 |
a length. This results in horizontal centring.% |
| 1621 |
\EndIndexGroup |
| 1622 |
|
| 1623 |
|
| 1624 |
\begin{Declaration} |
| 1625 |
\PLength{firstheadwidth} |
| 1626 |
\end{Declaration} |
| 1627 |
The \PLength{firstheadwidth} pseudo-length gives the width of the letterhead. |
| 1628 |
This value is set differently in the various predefined \File{lco} |
| 1629 |
files\textnote{\File{lco} file}\Index{lco file=\File{lco} file}. While this |
| 1630 |
value usually depends on the paper width and the distance between the left |
| 1631 |
edge of the paper and the recipient's address field, it was the width of the |
| 1632 |
type area in \Option{KOMAold} and has a fixed value of 170\Unit{mm} in |
| 1633 |
\Option{NF}.% |
| 1634 |
\EndIndexGroup |
| 1635 |
|
| 1636 |
|
| 1637 |
\begin{Declaration} |
| 1638 |
\OptionVName{fromalign}{method} |
| 1639 |
\end{Declaration} |
| 1640 |
\BeginIndex{}{letterhead}% |
| 1641 |
\BeginIndex{}{letter>head}% |
| 1642 |
The\important{\Option{fromalign}} \Option{fromalign} option determines where |
| 1643 |
the sender information should be placed on the first page. In addition to the |
| 1644 |
various placement options in the letterhead, you also have the |
| 1645 |
ability\ChangedAt{v2.97e}{\Class{scrlttr2}} to accommodate extra sender |
| 1646 |
information\Index{extra sender information}. At the same |
| 1647 |
time\textnote{Attention!}, this option serves as a central switch to activate |
| 1648 |
or deactivate letterhead extensions. If these extensions are deactivated, some |
| 1649 |
other options will have no effect. This will be noted in the explanations of |
| 1650 |
the respective options. Available values for \Option{fromalign} are shown in |
| 1651 |
\autoref{tab:\LabelBase.fromalign}. The default value is \PValue{left}.% |
| 1652 |
% |
| 1653 |
\begin{table} |
| 1654 |
\caption[{Available values for the \Option{fromalign} option with |
| 1655 |
\Class{scrlttr2}}]{Available values for the \Option{fromalign} option to |
| 1656 |
define the position of the from address in the letterhead with |
| 1657 |
\Class{scrlttr2}} |
| 1658 |
\label{tab:\LabelBase.fromalign} |
| 1659 |
\begin{desctabular} |
| 1660 |
\entry{\PValue{center}, \PValue{centered}, \PValue{middle}}{% |
| 1661 |
Sender information is centred inside the letterhead; a logo is |
| 1662 |
placed at the beginning of the extra sender information, if |
| 1663 |
applicable; letterhead extensions are activated.}% |
| 1664 |
\entry{\PValue{false}, \PValue{no}, \PValue{off}}{% |
| 1665 |
The default design will be used for the sender information; the |
| 1666 |
letterhead extensions are deactivated.}% |
| 1667 |
\entry{\PValue{left}}{% |
| 1668 |
Sender information is left-aligned in the letterhead; a logo is |
| 1669 |
placed right-aligned, if applicable; letterhead extensions are |
| 1670 |
activated.}% |
| 1671 |
\entry{\PValue{locationleft}, \PValue{leftlocation}}{% |
| 1672 |
Sender information is left-justified and uses the extra sender |
| 1673 |
information; a logo is placed at the top of it, if applicable; the |
| 1674 |
letterhead is automatically deactivated but can be reactivated using the |
| 1675 |
\DescRef{\LabelBase.option.firsthead} option.}% |
| 1676 |
\entry{\PValue{locationright}, \PValue{rightlocation}, |
| 1677 |
\PValue{location}}{% |
| 1678 |
Sender information is right-justified and uses the extra sender |
| 1679 |
information; a logo is placed at the top of it, if applicable; the |
| 1680 |
letterhead is automatically deactivated but can be reactivated using the |
| 1681 |
\DescRef{\LabelBase.option.firsthead} option.}% |
| 1682 |
\entry{\PValue{right}}{% |
| 1683 |
Sender information is right-justified; a logo is placed left-justified, |
| 1684 |
if applicable; letterhead extensions are activated}% |
| 1685 |
\end{desctabular} |
| 1686 |
\end{table} |
| 1687 |
% |
| 1688 |
\EndIndexGroup |
| 1689 |
|
| 1690 |
|
| 1691 |
\begin{Declaration} |
| 1692 |
\OptionVName{fromrule}{position}% |
| 1693 |
\Variable{fromname}% |
| 1694 |
\Variable{fromaddress}% |
| 1695 |
\end{Declaration} |
| 1696 |
\BeginIndex{}{letterhead}% |
| 1697 |
\BeginIndex{}{letter>head}% |
| 1698 |
The\important{\Variable{fromname}} sender's name is determined by the |
| 1699 |
\Variable{fromname} variable. Its \PName{description} (see also |
| 1700 |
\autoref{tab:\LabelBase.fromTerm}, \autopageref{tab:\LabelBase.fromTerm}) is |
| 1701 |
not used in the default letterheads. |
| 1702 |
|
| 1703 |
In\important{\OptionValue{fromrule}{aftername}} the extended letterhead, you |
| 1704 |
can create a horizontal rule below the sender's name with |
| 1705 |
\OptionValue{fromrule}{aftername}. |
| 1706 |
Alternatively\important{\OptionValue{fromrule}{afteraddress}} you can place |
| 1707 |
this rule below the complete sender information with |
| 1708 |
\OptionValue{fromrule}{afteraddress}. A summary of all available settings for |
| 1709 |
the rule position is shown in \autoref{tab:\LabelBase.fromrule}. The length of |
| 1710 |
this rule is determined by the |
| 1711 |
\PLength{fromrulewidth}\IndexPLength[indexmain]{fromrulewidth} pseudo-length. |
| 1712 |
|
| 1713 |
\begin{table} |
| 1714 |
\caption[{Available values for the \Option{fromrule} option with |
| 1715 |
\Class{scrlttr2}}]{Available values for the \Option{fromrule} option for the |
| 1716 |
position of the rule in the sender information with |
| 1717 |
\Class{scrlttr2}} |
| 1718 |
\label{tab:\LabelBase.fromrule} |
| 1719 |
\begin{desctabular} |
| 1720 |
\entry{\PValue{afteraddress}, \PValue{below}, \PValue{on}, \PValue{true}, |
| 1721 |
\PValue{yes}}{% |
| 1722 |
rule below the sender's address}% |
| 1723 |
\entry{\PValue{aftername}}{% |
| 1724 |
rule directly below the sender's name}% |
| 1725 |
\entry{\PValue{false}, \PValue{no}, \PValue{off}}{% |
| 1726 |
no rule}% |
| 1727 |
\end{desctabular} |
| 1728 |
\end{table} |
| 1729 |
|
| 1730 |
The default\textnote{default} for the rule with the extended letterhead is |
| 1731 |
\PValue{false}. But in the standard letterhead, the rule will always be placed |
| 1732 |
below the sender's name. |
| 1733 |
|
| 1734 |
The\important{\Variable{fromaddress}} sender's address follows below the name. |
| 1735 |
The \PName{content} of variable \Variable{fromaddress} determines this |
| 1736 |
address. The address \PName{description} (see also |
| 1737 |
\autoref{tab:\LabelBase.fromTerm}) is not used in the default letterheads |
| 1738 |
|
| 1739 |
\BeginIndexGroup |
| 1740 |
\BeginIndex{FontElement}{fromaddress}\LabelFontElement{fromaddress}% |
| 1741 |
\BeginIndex{FontElement}{fromname}\LabelFontElement{fromname}% |
| 1742 |
\BeginIndex{FontElement}{fromrule}\LabelFontElement{fromrule}% |
| 1743 |
You can set the font used for the complete sender information with the |
| 1744 |
\FontElement{fromaddress}\IndexFontElement{fromaddress}% |
| 1745 |
\important{\FontElement{fromaddress}} element. You can define modifications to |
| 1746 |
this with the \FontElement{fromname}\IndexFontElement{fromname}% |
| 1747 |
\important{\FontElement{fromname}} element for the sender's name, and with the |
| 1748 |
\FontElement{fromrule}\IndexFontElement{fromrule}% |
| 1749 |
\important{\FontElement{fromrule}} element for the rule created with the |
| 1750 |
\Option{fromrule} option. The default setting does not change the font. For |
| 1751 |
the rule, font switching is mainly intended to change the colour of the rule, |
| 1752 |
for example to use grey instead of black. See \cite{package:xcolor} for |
| 1753 |
information about colours.% |
| 1754 |
% |
| 1755 |
\EndIndexGroup |
| 1756 |
|
| 1757 |
\begin{Example} |
| 1758 |
Now let's give the sender of our sample letter a name: |
| 1759 |
\lstinputcode[xleftmargin=1em]{letter-example-08-en.tex} |
| 1760 |
\begin{figure} |
| 1761 |
\centering |
| 1762 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-08-en}}\quad |
| 1763 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-09-en}} |
| 1764 |
\caption[{Example: letter with sender, recipient, opening, text, closing, |
| 1765 |
postscript, distribution list, and enclosure}] |
| 1766 |
{result of a short letter with sender, recipient, opening, text, closing, |
| 1767 |
postscript, distribution list, and enclosure (the date is set by |
| 1768 |
default): on the left, the standard letterhead using |
| 1769 |
\OptionValueRef{\LabelBase}{fromalign}{false}; on the right, the |
| 1770 |
extended letterhead using \OptionValueRef{\LabelBase}{fromalign}{center}} |
| 1771 |
\label{fig:\LabelBase.letter-08-09} |
| 1772 |
\end{figure} |
| 1773 |
Initially, the standard rather than the extended letterhead is used. The |
| 1774 |
result can be seen in \autoref{fig:\LabelBase.letter-08-09} on the left. For |
| 1775 |
comparison, the same example is shown on the right with |
| 1776 |
\OptionValueRef{\LabelBase}{fromalign}{center} (that is, with the extended |
| 1777 |
letterhead). You can see that this variation initially has no rule. |
| 1778 |
|
| 1779 |
For the first time, \autoref{fig:\LabelBase.letter-08-09} also shows a |
| 1780 |
signature below the closing phrase. This is generated automatically from the |
| 1781 |
sender's name. You can find more information about how to configure the |
| 1782 |
signature in \autoref{sec:\LabelBase.closing}, starting on |
| 1783 |
\autopageref{sec:\LabelBase.closing}. |
| 1784 |
|
| 1785 |
Next, the letter with the extended letterhead should use the |
| 1786 |
\Option{fromrule} option to print a rule below the sender's name:% |
| 1787 |
\lstinputcode[xleftmargin=1em]{letter-example-11-en.tex}% |
| 1788 |
You can see the result on the right in |
| 1789 |
\autoref{fig:\LabelBase.letter-10-11}. By comparison, the same example on |
| 1790 |
the left uses the standard letterhead, which ignores the additional options. |
| 1791 |
% |
| 1792 |
\begin{figure} |
| 1793 |
\centering |
| 1794 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-10-en}}\quad |
| 1795 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-11-en}} |
| 1796 |
\caption[{Example: letter with sender, rule, recipient, |
| 1797 |
opening, text, closing, signature, postscript, distribution list, |
| 1798 |
enclosure, and hole-punch mark}] |
| 1799 |
{result of a short letter with sender, rule, recipient, |
| 1800 |
opening, text, closing, signature, postscript, distribution list, |
| 1801 |
enclosure and hole-punch mark (the date is set by default): |
| 1802 |
at left one the standard letterhead using |
| 1803 |
\OptionValueRef{\LabelBase}{fromalign}{false}, at right one the extended letterhead |
| 1804 |
using \OptionValueRef{\LabelBase}{fromalign}{center}} |
| 1805 |
\label{fig:\LabelBase.letter-10-11} |
| 1806 |
\end{figure} |
| 1807 |
\end{Example} |
| 1808 |
|
| 1809 |
An\textnote{Attention!} important note concerns the sender's address: within |
| 1810 |
the sender's address, individual parts such as house number and street, city |
| 1811 |
and postal code, etc., are separated with a double backslash. This double |
| 1812 |
backslash is interpreted differently depending on how the sender's address is |
| 1813 |
used and therefore is not necessarily a line break. Paragraphs, vertical |
| 1814 |
spacing, and the like are usually not allowed within the sender's information. |
| 1815 |
You have to know \KOMAScript{} very well to put such things into the sender |
| 1816 |
information, if necessary. In addition, note that if you do so, you should |
| 1817 |
definitely set the variables for return address (see |
| 1818 |
\DescRef{\LabelBase.variable.backaddress}, |
| 1819 |
\DescPageRef{\LabelBase.variable.backaddress}) and signature (see |
| 1820 |
\DescRef{\LabelBase.variable.signature}, |
| 1821 |
\DescPageRef{\LabelBase.variable.signature}) yourself.% |
| 1822 |
% |
| 1823 |
\EndIndexGroup |
| 1824 |
|
| 1825 |
|
| 1826 |
\begin{Declaration} |
| 1827 |
\PLength{fromrulethickness}% |
| 1828 |
\PLength{fromrulewidth} |
| 1829 |
\end{Declaration} |
| 1830 |
As mentioned in the explanation of the |
| 1831 |
\DescRef{\LabelBase.option.fromrule}\IndexOption{fromrule} option in |
| 1832 |
\autoref{sec:\LabelBase.firstpage}, \DescPageRef{\LabelBase.option.fromrule}, you |
| 1833 |
can put a horizontal rule within or below the sender's address in the |
| 1834 |
predefined letterheads. If\textnote{Attention!} the \PLength{fromrulewidth} |
| 1835 |
pseudo-length has a value of 0\Unit{pt}, which is the default in the |
| 1836 |
predefined \File{lco} files, the length of this rule is calculated |
| 1837 |
automatically taking into account, for example, letterhead width or an |
| 1838 |
optional logo. You can adjust rule length manually in your own \File{lco} |
| 1839 |
files by setting this pseudo-length to positive values using |
| 1840 |
\Macro{setplength} (see \DescPageRef{\LabelBase.cmd.setplength}). The |
| 1841 |
default thickness of the line\ChangedAt{v2.97c}{\Class{scrlttr2}}, |
| 1842 |
\PLength{fromrulethickness}, is 0.4\Unit{pt}.% |
| 1843 |
\EndIndexGroup |
| 1844 |
|
| 1845 |
|
| 1846 |
\begin{Declaration} |
| 1847 |
\OptionVName{symbolicnames}{value}% |
| 1848 |
\OptionVName{fromphone}{simple switch}% |
| 1849 |
\OptionVName{frommobilephone}{simple switch}% |
| 1850 |
\OptionVName{fromfax}{simple switch}% |
| 1851 |
\OptionVName{fromemail}{simple switch}% |
| 1852 |
\OptionVName{fromurl}{simple switch}% |
| 1853 |
\Variable{fromphone}% |
| 1854 |
\Variable{frommobilephone}% |
| 1855 |
\Variable{fromfax}% |
| 1856 |
\Variable{fromemail}% |
| 1857 |
\Variable{fromurl}% |
| 1858 |
\Variable{phoneseparator}% |
| 1859 |
\Variable{mobilephoneseparator}% |
| 1860 |
\Variable{faxseparator}% |
| 1861 |
\Variable{emailseparator}% |
| 1862 |
\Variable{urlseparator}% |
| 1863 |
\end{Declaration} |
| 1864 |
\BeginIndex{}{letterhead}% |
| 1865 |
\BeginIndex{}{letter>header}% |
| 1866 |
You can use the five options \Option{fromphone}, |
| 1867 |
\Option{frommobilephone}\ChangedAt{v3.12}{\Class{scrlttr2}}, \Option{fromfax}, |
| 1868 |
\Option{fromemail}, and \Option{fromurl} to specify whether to include the |
| 1869 |
phone number\Index{telephone}\Index{phone}, |
| 1870 |
mobile\ChangedAt{v3.12}{\Class{scrlttr2}} phone number\Index{mobile |
| 1871 |
phone}\Index{cell phone}\Index{cellphone}, fax number\Index{fax}, e-mail |
| 1872 |
address\Index{e-mail}, or URL should be as part of the sender's |
| 1873 |
information. You can assign any standard value for simple switches from |
| 1874 |
\autoref{tab:truefalseswitch}, \autopageref{tab:truefalseswitch} to these |
| 1875 |
options. The default for all of them is \PValue{false}. The \PName{contents} |
| 1876 |
themselves are determined by the variables of the same name. You can find the |
| 1877 |
defaults for the \PName{description} or title of each variable in |
| 1878 |
\autoref{tab:\LabelBase.fromTerm}. You can find the separators that will be |
| 1879 |
inserted between the \PName{description} and the \PName{content} in |
| 1880 |
\autoref{tab:\LabelBase.fromSeparator}. |
| 1881 |
|
| 1882 |
You can\ChangedAt{v3.12}{\Class{scrlttr2}}\important{\Option{symbolicnames}} |
| 1883 |
change the defaults for describing the variables all at once with the |
| 1884 |
\Option{symbolicnames} option. This option understands the values for simple |
| 1885 |
switches found in \autoref{tab:truefalseswitch}, |
| 1886 |
\autopageref{tab:truefalseswitch}. |
| 1887 |
Activating\ChangedAt{v3.27}{\Class{scrlttr2}\and \Package{scrletter}} the |
| 1888 |
option corresponds to \PName{value} \PValue{marvosym} and replaces the |
| 1889 |
descriptions from the language-dependent labels of |
| 1890 |
\DescRef{scrlttr2-experts.cmd.emailname}, |
| 1891 |
\DescRef{scrlttr2-experts.cmd.faxname}, |
| 1892 |
\DescRef{scrlttr2-experts.cmd.mobilephonename}, and |
| 1893 |
\DescRef{scrlttr2-experts.cmd.phonename} with symbols from the |
| 1894 |
\Package{marvosym}\IndexPackage{marvosym} package. At the same time, the colon |
| 1895 |
is omitted when defining the separators. In this case, both the description |
| 1896 |
and the content of the URL separator will be empty. With |
| 1897 |
\OptionValue{symbolicnames}{fontawesome} or |
| 1898 |
\OptionValue{symbolicnames}{awesome}, symbols of package |
| 1899 |
\Package{fontawesome}\IndexPackage{fontawesome} are used. In this case there |
| 1900 |
is also a symbol for the URL. Note\textnote{Attention!} that you may need to |
| 1901 |
load the \Package{marvosym} or \Package{fontawesome} package in your document |
| 1902 |
preamble if you activate the option for the corresponding package for the |
| 1903 |
first time after \Macro{begin}\PParameter{document}. |
| 1904 |
|
| 1905 |
\begin{table} |
| 1906 |
\centering |
| 1907 |
\caption[{Default descriptions of the letterhead variables}]{Default |
| 1908 |
descriptions of the letterhead variables (you can find the description and |
| 1909 |
contents of the separator variables in |
| 1910 |
\autoref{tab:\LabelBase.fromSeparator}} |
| 1911 |
\begin{desctabular}[1.8em] |
| 1912 |
\ventry{fromemail}{\DescRef{\LabelBase.cmd.usekomavar*}\PParameter{emailseparator}% |
| 1913 |
\DescRef{\LabelBase.cmd.usekomavar}\PParameter{emailseparator}}% |
| 1914 |
\ventry{fromfax}{\DescRef{\LabelBase.cmd.usekomavar*}\PParameter{faxseparator}% |
| 1915 |
\DescRef{\LabelBase.cmd.usekomavar}\PParameter{faxseparator}}% |
| 1916 |
\ventry{frommobilephone}{% |
| 1917 |
\ChangedAt{v3.12}{\Class{scrlttr2}}% |
| 1918 |
\DescRef{\LabelBase.cmd.usekomavar*}\PParameter{mobilephoneseparator}% |
| 1919 |
\DescRef{\LabelBase.cmd.usekomavar}\PParameter{mobilephoneseparator}}% |
| 1920 |
\ventry{fromname}{\DescRef{scrlttr2-experts.cmd.headfromname}}% |
| 1921 |
\ventry{fromphone}{\DescRef{\LabelBase.cmd.usekomavar*}\PParameter{phoneseparator}% |
| 1922 |
\DescRef{\LabelBase.cmd.usekomavar}\PParameter{phoneseparator}}% |
| 1923 |
\ventry{fromurl}{\DescRef{\LabelBase.cmd.usekomavar*}\PParameter{urlseparator}% |
| 1924 |
\DescRef{\LabelBase.cmd.usekomavar}\PParameter{urlseparator}}% |
| 1925 |
\end{desctabular} |
| 1926 |
\label{tab:\LabelBase.fromTerm} |
| 1927 |
\end{table} |
| 1928 |
|
| 1929 |
\begin{table}[tp] |
| 1930 |
\centering |
| 1931 |
% \KOMAoptions{captions=topbeside}% |
| 1932 |
% \setcapindent{0pt}% |
| 1933 |
\caption{Default descriptions and contents of the letterhead |
| 1934 |
separators without the \Option{symbolicnames} option} |
| 1935 |
% [l] |
| 1936 |
\begin{tabular}[t]{lll} |
| 1937 |
\toprule |
| 1938 |
variable name & description & content \\ |
| 1939 |
\midrule |
| 1940 |
\Variable{emailseparator} & \DescRef{scrlttr2-experts.cmd.emailname} & \texttt{:\~} \\ |
| 1941 |
\Variable{faxseparator} & \DescRef{scrlttr2-experts.cmd.faxname} & \texttt{:\~} \\ |
| 1942 |
\Variable{mobilephoneseparator} & \DescRef{scrlttr2-experts.cmd.mobilephonename} & \Macro{usekomavaer}\PParameter{phoneseparator} \\ |
| 1943 |
\Variable{phoneseparator} & \DescRef{scrlttr2-experts.cmd.phonename} & \texttt{:\~} \\ |
| 1944 |
\Variable{urlseparator} & \DescRef{scrlttr2-experts.cmd.wwwname} & \texttt{:\~} \\ |
| 1945 |
\bottomrule |
| 1946 |
\end{tabular} |
| 1947 |
% \end{captionbeside} |
| 1948 |
\label{tab:\LabelBase.fromSeparator} |
| 1949 |
\end{table} |
| 1950 |
|
| 1951 |
\begin{Example} |
| 1952 |
Mr Public from our sample letter has a telephone and an e-mail address. He |
| 1953 |
also wants to show these in the letterhead. At the same time, the separation |
| 1954 |
rule should now be placed after the letterhead. So he uses the appropriate |
| 1955 |
options and also sets the required variables:% |
| 1956 |
\lstinputcode[xleftmargin=1em]{letter-example-12-en.tex}% |
| 1957 |
The results on the left side of \autoref{fig:\LabelBase.letter-12-13}, |
| 1958 |
however, are confounding: the options are ignored. That's because the |
| 1959 |
additional variables and options are only used in the extended letterhead. |
| 1960 |
So the \DescRef{\LabelBase.option.fromalign} option must be used, as it is |
| 1961 |
in the right side of |
| 1962 |
\autoref{fig:\LabelBase.letter-12-13}. |
| 1963 |
\begin{figure} |
| 1964 |
\centering |
| 1965 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-12-en}}\quad |
| 1966 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-13-en}} |
| 1967 |
\caption[{Example: letter with extra sender information, rule, |
| 1968 |
recipient, opening, text, closing, signature, postscript, distribution |
| 1969 |
list, enclosure, and hole-punch mark; standard vs. extended letterhead}] |
| 1970 |
{result of a short letter with sender, rule, recipient, opening, text, |
| 1971 |
closing, signature, postscript, distribution list, enclosure and |
| 1972 |
hole-punch mark (the date is set by default): the left one uses the |
| 1973 |
standard letterhead with |
| 1974 |
\OptionValueRef{\LabelBase}{fromalign}{false}; the right one uses the |
| 1975 |
extended letterhead with \OptionValueRef{\LabelBase}{fromalign}{center}} |
| 1976 |
\label{fig:\LabelBase.letter-12-13} |
| 1977 |
\end{figure} |
| 1978 |
\lstinputcode[xleftmargin=1em]{letter-example-13-en.tex} |
| 1979 |
|
| 1980 |
You can compare two other alternatives with left-aligned sender information using |
| 1981 |
\OptionValueRef{\LabelBase}{fromalign}{left} and right-aligned sender information |
| 1982 |
using \OptionValueRef{\LabelBase}{fromalign}{right} in |
| 1983 |
\autoref{fig:\LabelBase.letter-14-15}. |
| 1984 |
\begin{figure} |
| 1985 |
\centering |
| 1986 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-14-en}}\quad |
| 1987 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-15-en}} |
| 1988 |
\caption[{Example: letter with extra sender information, rule, |
| 1989 |
recipient, opening, text, closing, signature, postscript, distribution |
| 1990 |
list, enclosure, and hole-punch mark; left- vs. right-aligned |
| 1991 |
letterhead}] |
| 1992 |
{result of a short letter with extra sender information, rule, |
| 1993 |
recipient, opening, text, closing, signature, postscript, distribution |
| 1994 |
list, enclosure and hole-punch mark (the date is set by default): |
| 1995 |
the left one uses a left-aligned letterhead with |
| 1996 |
\OptionValueRef{\LabelBase}{fromalign}{left}; the right one uses a |
| 1997 |
right-aligned letterhead using |
| 1998 |
\OptionValueRef{\LabelBase}{fromalign}{right}} |
| 1999 |
\label{fig:\LabelBase.letter-14-15} |
| 2000 |
\end{figure} |
| 2001 |
\end{Example} |
| 2002 |
% |
| 2003 |
\EndIndexGroup |
| 2004 |
|
| 2005 |
|
| 2006 |
\begin{Declaration} |
| 2007 |
\OptionVName{fromlogo}{simple switch}% |
| 2008 |
\Variable{fromlogo}% |
| 2009 |
\end{Declaration} |
| 2010 |
\BeginIndex{}{letterhead}% |
| 2011 |
\BeginIndex{}{letter>head}% |
| 2012 |
You can use the \Option{fromlogo} to configure whether to put a |
| 2013 |
logo\Index{Logo} in the letterhead. You can use any of the default values from |
| 2014 |
\autoref{tab:truefalseswitch}, \autopageref{tab:truefalseswitch} for the |
| 2015 |
\PName{simple switch}. The default is \PValue{false}, which means no logo. The |
| 2016 |
logo itself is defined by the \PName{content} of the \Variable{fromlogo} |
| 2017 |
variable. The \PName{description} of the logo is empty by default and |
| 2018 |
\KOMAScript{} does not use it in the default letterhead pages.% |
| 2019 |
\begin{Example} |
| 2020 |
Mr Public finds it particularly stylish when he provides his letterhead with |
| 2021 |
a logo. He has saved his logo as a graphics file, which he would like to |
| 2022 |
load using \Macro{includegraphics}. To do this, he loads the |
| 2023 |
\Package{graphics}\IndexPackage{graphics} package (see |
| 2024 |
\cite{package:graphics}).% |
| 2025 |
\lstinputcode[xleftmargin=1em]{letter-example-16-en.tex}% |
| 2026 |
You can see the result in the top left of |
| 2027 |
\autoref{fig:\LabelBase.letter-16-18}. The other two images in this figure |
| 2028 |
show the results with right-aligned and centred sender information. |
| 2029 |
\begin{figure} |
| 2030 |
\setcapindent{0pt}% |
| 2031 |
{\hfill |
| 2032 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-16-en}}\quad |
| 2033 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-17-en}}\par\bigskip} |
| 2034 |
\begin{captionbeside}[{Example: letter with extra sender information, |
| 2035 |
logo, rule, recipient, opening, text, closing, signature, postscript, |
| 2036 |
distribution list, enclosure, and hole-punch mark; left-aligned vs. |
| 2037 |
right-aligned vs. centred sender information}] |
| 2038 |
{result of a short letter with extra sender information, logo, rule, |
| 2039 |
recipient, opening, text, closing, signature, postscript, distribution |
| 2040 |
list, enclosure and hole-punch mark (the date is set by default): |
| 2041 |
at top left the sender is left-aligned, at top right the sender is |
| 2042 |
centred, and at bottom right the sender is right-aligned |
| 2043 |
sender}[l] |
| 2044 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-18-en}}\quad |
| 2045 |
\end{captionbeside} |
| 2046 |
\label{fig:\LabelBase.letter-16-18} |
| 2047 |
\end{figure} |
| 2048 |
\end{Example}% |
| 2049 |
% |
| 2050 |
\EndIndexGroup |
| 2051 |
|
| 2052 |
|
| 2053 |
\begin{Declaration} |
| 2054 |
\Variable{firsthead}% |
| 2055 |
\end{Declaration} |
| 2056 |
In many cases, the capabilities that \Class{scrlttr2} offers with the |
| 2057 |
foregoing options and variables will be sufficient to design a letterhead. In |
| 2058 |
some cases, however, you may want even more flexibility. In those situations, |
| 2059 |
you will have to do without the possibilities offered by the predefined |
| 2060 |
letterhead, which you can select via the options described above. Instead, you |
| 2061 |
must create your own letterhead from scratch. To do so, you must specify the |
| 2062 |
desired structure as the \PName{contents} of the \Variable{firsthead} |
| 2063 |
variable. For example, you can set several boxes side by side or one beneath |
| 2064 |
the other using the \Macro{parbox} command (see \cite{latex:usrguide}). |
| 2065 |
Experienced users should thus be able to create their own a letterheads. Of |
| 2066 |
course you can and should use other variables with |
| 2067 |
\DescRef{\LabelBase.cmd.usekomavar}. \KOMAScript{} does not use the |
| 2068 |
\PName{description} of variable \Variable{firsthead}. \iffree{}{You can find |
| 2069 |
a detailed example of a letterhead definition in |
| 2070 |
\autoref{cha:modernletters}.}% |
| 2071 |
\EndIndexGroup |
| 2072 |
% |
| 2073 |
\EndIndexGroup |
| 2074 |
|
| 2075 |
|
| 2076 |
\subsection{Addressee} |
| 2077 |
\seclabel{addressee}% |
| 2078 |
\BeginIndexGroup |
| 2079 |
\BeginIndex{}{addressee} |
| 2080 |
\index{recipient|seealso{addressee}} |
| 2081 |
|
| 2082 |
The term \emph{addressee} normally refers only to the recipient's name and |
| 2083 |
address, which are output in an address field. Additional information, |
| 2084 |
however, can be placed within this address field, including the delivery |
| 2085 |
method, for example registered mail or special delivery. For window envelopes, |
| 2086 |
the return address also counts as part of the address field, as it will be |
| 2087 |
displayed in the address window. The address field directly follows the |
| 2088 |
letterhead. |
| 2089 |
|
| 2090 |
\begin{Declaration} |
| 2091 |
\OptionVName{addrfield}{format}% |
| 2092 |
\OptionVName{backaddress}{value}% |
| 2093 |
\OptionVName{priority}{priority}% |
| 2094 |
\Variable{toname}% |
| 2095 |
\Variable{toaddress}% |
| 2096 |
\Variable{backaddress}% |
| 2097 |
\Variable{backaddressseparator}% |
| 2098 |
\Variable{specialmail}% |
| 2099 |
\Variable{fromzipcode}% |
| 2100 |
\Variable{zipcodeseparator}% |
| 2101 |
\Variable{place}% |
| 2102 |
\Variable{PPcode}% |
| 2103 |
\Variable{PPdatamatrix}% |
| 2104 |
\Variable{addresseeimage}% |
| 2105 |
\end{Declaration}% |
| 2106 |
\BeginIndex{}{address}% |
| 2107 |
The \Option{addrfield} option determines whether or not to print an address |
| 2108 |
field. The default\textnote{default} is to include an address field. The |
| 2109 |
option recognizes the formats described in |
| 2110 |
\autoref{tab:\LabelBase.addrfield}\ChangedAt{v3.03}{\Class{scrlttr2}}. With |
| 2111 |
the values \PValue{true}, |
| 2112 |
\PValue{topaligned}\ChangedAt{v3.17}{\Class{scrlttr2}\and |
| 2113 |
\Package{scrletter}}, \PValue{PP}, and \PValue{backgroundimage}, the name and |
| 2114 |
address of the recipient are determined by the mandatory argument of the |
| 2115 |
\DescRef{\LabelBase.env.letter} environment (see |
| 2116 |
\autoref{sec:\LabelBase.document}, \DescPageRef{\LabelBase.env.letter}). This |
| 2117 |
information is also copied into the variables \Variable{toname} and |
| 2118 |
\Variable{toaddress}. |
| 2119 |
|
| 2120 |
\BeginIndexGroup |
| 2121 |
\BeginIndex{FontElement}{addressee}\LabelFontElement{addressee}% |
| 2122 |
\BeginIndex{FontElement}{toname}\LabelFontElement{toname}% |
| 2123 |
\BeginIndex{FontElement}{toaddress}\LabelFontElement{toaddress}% |
| 2124 |
You can change the default font styles\ChangedAt{v2.97c}{\Class{scrlttr2}} |
| 2125 |
with the \DescRef{\LabelBase.cmd.setkomafont} or |
| 2126 |
\DescRef{\LabelBase.cmd.addtokomafont} commands (see |
| 2127 |
\autoref{sec:\LabelBase.textmarkup}, |
| 2128 |
\DescPageRef{\LabelBase.cmd.setkomafont}). There are three elements. First, |
| 2129 |
the \FontElement{addressee}\important{\FontElement{addressee}} element is |
| 2130 |
responsible for the overall style of the recipient's name and address. The |
| 2131 |
elements \FontElement{toname}\important{\FontElement{toname}} and |
| 2132 |
\FontElement{toaddress}\important{\FontElement{toaddress}} are responsible |
| 2133 |
only for the name and the address of the recipient, respectively. You can use |
| 2134 |
\FontElement{toname} and \FontElement{toaddress} to define modifications from |
| 2135 |
the basic \FontElement{addressee} configuration.% |
| 2136 |
\EndIndexGroup |
| 2137 |
% |
| 2138 |
\begin{table} |
| 2139 |
\caption[{Available values for the \Option{addrfield} option with |
| 2140 |
\Class{scrlttr2}}]{Available values for the \Option{addrfield} option to |
| 2141 |
change the recipient format of \Class{scrlttr2}}% |
| 2142 |
\label{tab:\LabelBase.addrfield}% |
| 2143 |
\begin{desctabular} |
| 2144 |
\entry{\PValue{backgroundimage}, \PValue{PPbackgroundimage}, |
| 2145 |
\PValue{PPBackgroundImage}, \PValue{PPBackGroundImage}, |
| 2146 |
\PValue{ppbackgroundimage}, \PValue{ppBackgroundImage}, |
| 2147 |
\PValue{ppBackGroundImage}}{% |
| 2148 |
Prints an address with a background image stored in the |
| 2149 |
\Variable{addresseimage} variable as the postpaid postmark, but without |
| 2150 |
a return address or delivery type.}% |
| 2151 |
\entry{\PValue{false}, \PValue{off}, \PValue{no}}{% |
| 2152 |
Does not print an address.}% |
| 2153 |
\entry{\PValue{image}, \PValue{Image}, \PValue{PPimage}, \PValue{PPImage}, |
| 2154 |
\PValue{ppimage}, \PValue{ppImage}}{% |
| 2155 |
Prints an image stored in the \Variable{addresseeimage} variable as an |
| 2156 |
address with a postpaid postmark. Recipient information, return address, |
| 2157 |
and delivery type or priority are ignored.}% |
| 2158 |
\entry{\PValue{PP}, \PValue{pp}, \PValue{PPexplicite}, |
| 2159 |
\PValue{PPExplicite}, \PValue{ppexplicite}, \PValue{ppExplicite}}{% |
| 2160 |
Prints an address with a postage print impression (pospaid) header |
| 2161 |
filled in with the variables \Variable{fromzipcode}, \Variable{place}, |
| 2162 |
and \Variable{PPcode}, and when applicable with a priority and a data |
| 2163 |
array defined by \Variable{PPdatamatrix}, but without a return address |
| 2164 |
or delivery type.}% |
| 2165 |
\entry{\PValue{topaligned}, \PValue{alignedtop}% |
| 2166 |
\ChangedAt{v3.17}{\Class{scrlttr2}\and \Package{scrletter}}}{% |
| 2167 |
Prints an address including a return address and a delivery type |
| 2168 |
or priority. The address is not centred vertically beneath the delivery |
| 2169 |
type.}% |
| 2170 |
\entry{\PValue{true}, \PValue{on}, \PValue{yes}}{% |
| 2171 |
Prints an address field including a return address and delivery type |
| 2172 |
or priority.}% |
| 2173 |
\end{desctabular} |
| 2174 |
\end{table}% |
| 2175 |
|
| 2176 |
The default \OptionValue{addrfield}{true} also prints an underlined return |
| 2177 |
address in the address field. The \Option{backaddress} option defines if and |
| 2178 |
in what form a return address will be printed for window envelopes. On the one |
| 2179 |
hand, this option\important{\OptionValue{backaddress}{false}} accepts the |
| 2180 |
standard values for simple switches listed in \autoref{tab:truefalseswitch}, |
| 2181 |
\autopageref{tab:truefalseswitch}. These values do not change style of the |
| 2182 |
return address. On the other hand, when\ChangedAt{v2.96}{\Class{scrlttr2}} the |
| 2183 |
return address is enabled, you can select its format at the same time. For |
| 2184 |
example, the \PValue{underlined} option value enables an underlined return |
| 2185 |
address, while \PValue{plain}\important{\OptionValue{backaddress}{plain}} |
| 2186 |
selects a style without underlining. The default is \PValue{underlined} and |
| 2187 |
thus prints an underlined return address. |
| 2188 |
|
| 2189 |
The return address itself is defined by the \PName{content} of the |
| 2190 |
\Variable{backaddress} variable. The default is the name specified in |
| 2191 |
\DescRef{\LabelBase.variable.fromname} and the address specified in |
| 2192 |
\DescRef{\LabelBase.variable.fromaddress}. The double backslash is also |
| 2193 |
replaced with the \PName{content} of the \Variable{backaddressseparator} |
| 2194 |
variable. The default separator is a comma followed by a non-breaking space. |
| 2195 |
\KOMAScript{} does not use the \PName{description} of the |
| 2196 |
\Variable{backaddress} variable. |
| 2197 |
\BeginIndexGroup\BeginIndex{FontElement}{backaddress}% |
| 2198 |
\LabelFontElement{backaddress}% |
| 2199 |
You can configure the font style of the return address via the |
| 2200 |
\FontElement{backaddress}\important{\FontElement{backaddress}} element. The |
| 2201 |
default is \ChangedAt{v3.39}{\Class{scrlttr2}}% |
| 2202 |
\DescRef{\LabelBase.cmd.maybesffamily}\IndexCmd{maybesffamily} (see |
| 2203 |
\autoref{tab:\LabelBase.AddresseeElements}). Before applying the element's |
| 2204 |
font style \KOMAScript{} switches to \Macro{scriptsize}.% |
| 2205 |
\EndIndexGroup |
| 2206 |
|
| 2207 |
The default \OptionValue{addrfield}{true}, centres the address vertically |
| 2208 |
within the space available for the address. |
| 2209 |
In\ChangedAt{v3.17}{\Class{scrlttr2}\and \Package{scrletter}} contrast, |
| 2210 |
\OptionValue{addrfield}{topaligned}% |
| 2211 |
\important{\OptionValue{addrfield}{topaligned}} will not centre the address |
| 2212 |
but place it flush with the top of the available space.% |
| 2213 |
|
| 2214 |
\begin{table} |
| 2215 |
% \centering |
| 2216 |
\KOMAoptions{captions=topbeside}% |
| 2217 |
\setcapindent{0pt}% |
| 2218 |
% \caption |
| 2219 |
\begin{captionbeside}{% |
| 2220 |
Default font styles for the elements of the address field.% |
| 2221 |
}% |
| 2222 |
[l] |
| 2223 |
\begin{tabular}[t]{ll} |
| 2224 |
\toprule |
| 2225 |
element & font style \\ |
| 2226 |
\midrule |
| 2227 |
\DescRef{\LabelBase.fontelement.addressee}\IndexFontElement{addressee} & |
| 2228 |
\\ |
| 2229 |
\ChangedAt{v3.39}{\Class{scrlttr2}}% |
| 2230 |
\DescRef{\LabelBase.fontelement.backaddress}\IndexFontElement{backaddress} & |
| 2231 |
\DescRef{\LabelBase.cmd.maybesffamily}\IndexCmd{maybesffamily}% |
| 2232 |
\\ |
| 2233 |
\DescRef{\LabelBase.fontelement.PPdata}\IndexFontElement{PPdata} & |
| 2234 |
\Macro{sffamily}% |
| 2235 |
\\ |
| 2236 |
\DescRef{\LabelBase.fontelement.PPlogo}\IndexFontElement{PPlogo} & |
| 2237 |
\Macro{sffamily}\Macro{bfseries}% |
| 2238 |
\\ |
| 2239 |
\DescRef{\LabelBase.fontelement.priority}\IndexFontElement{priority} & |
| 2240 |
\Macro{fontsize}\PParameter{10pt}\PParameter{10pt}% |
| 2241 |
\Macro{sffamily}\Macro{bfseries}% |
| 2242 |
\\ |
| 2243 |
\DescRef{\LabelBase.fontelement.prioritykey}\IndexFontElement{prioritykey} & |
| 2244 |
\Macro{fontsize}\PParameter{24.88pt}\PParameter{24.88pt}% |
| 2245 |
\Macro{selectfont}% |
| 2246 |
\\ |
| 2247 |
\DescRef{\LabelBase.fontelement.specialmail}\IndexFontElement{specialmail} & |
| 2248 |
\\ |
| 2249 |
\DescRef{\LabelBase.fontelement.toaddress}\IndexFontElement{toaddress} & |
| 2250 |
\\ |
| 2251 |
\DescRef{\LabelBase.fontelement.toname}\IndexFontElement{toname} & |
| 2252 |
\\ |
| 2253 |
\bottomrule |
| 2254 |
\end{tabular} |
| 2255 |
\end{captionbeside} |
| 2256 |
\label{tab:\LabelBase.AddresseeElements}% |
| 2257 |
\end{table} |
| 2258 |
|
| 2259 |
\BeginIndexGroup |
| 2260 |
\BeginIndex{FontElement}{specialmail}\LabelFontElement{specialmail} |
| 2261 |
With the default \OptionValue{addrfield}{true} setting, you can output an |
| 2262 |
optional delivery type\Index{delivery type} between the return address and the |
| 2263 |
recipient address. This will be output only if the \Variable{specialmail} |
| 2264 |
variable has non-empty content and |
| 2265 |
\OptionValue{priority}{manual}\ChangedAt{v3.03}{\Class{scrlttr2}} has been |
| 2266 |
selected, which is the default. The \Class{scrlttr2} class itself does not use |
| 2267 |
the \PName{description} of the \Variable{specialmail} variable. The alignment |
| 2268 |
is defined by the \PLength{specialmailindent} and |
| 2269 |
\PLength{specialmailrightindent} pseudo-lengths (see |
| 2270 |
\DescPageRef{\LabelBase.plength.specialmailindent}). You can change the |
| 2271 |
default font style of the\ChangedAt{v2.97c}{\Class{scrlttr2}} |
| 2272 |
\FontElement{specialmail}\important{\FontElement{specialmail}} element, which |
| 2273 |
is listed in \autoref{tab:\LabelBase.AddresseeElements}, with the |
| 2274 |
\DescRef{\LabelBase.cmd.setkomafont} and |
| 2275 |
\DescRef{\LabelBase.cmd.addtokomafont} commands (see |
| 2276 |
\autoref{sec:\LabelBase.textmarkup}, |
| 2277 |
\DescPageRef{\LabelBase.cmd.setkomafont}).% |
| 2278 |
\EndIndexGroup |
| 2279 |
|
| 2280 |
\BeginIndexGroup |
| 2281 |
\BeginIndex{FontElement}{priority}\LabelFontElement{priority}% |
| 2282 |
\BeginIndex{FontElement}{prioritykey}\LabelFontElement{prioritykey}% |
| 2283 |
However\ChangedAt{v3.03}{\Class{scrlttr2}}\important{\normalcolor |
| 2284 |
\OptionValue{priority}{A}\\ |
| 2285 |
\normalcolor\OptionValue{priority}{B}}, selecting an international priority |
| 2286 |
with \OptionValue{priority}{A} or \OptionValue{priority}{B} (see |
| 2287 |
\autoref{tab:\LabelBase.priority}) together with |
| 2288 |
\OptionValue{addrfield}{true}, prints the priority as the delivery type. Using |
| 2289 |
it together with |
| 2290 |
\OptionValue{addrfield}{PP}\important{\OptionValue{addrfield}{PP}} prints the |
| 2291 |
priority at the corresponding position in the postpaid postmark (also known as |
| 2292 |
the postage print impression or \emph{port pay\'e}). The \FontElement{priority} |
| 2293 |
element defines the basic font style, and \FontElement{prioritykey} defines |
| 2294 |
the modification of the basic font style for the priority keys ``A'' or ``B''. |
| 2295 |
You can find the default font styles listed in |
| 2296 |
\autoref{tab:\LabelBase.AddresseeElements} and can change then using the |
| 2297 |
\DescRef{\LabelBase.cmd.setkomafont} and |
| 2298 |
\DescRef{\LabelBase.cmd.addtokomafont} commands (see |
| 2299 |
\autoref{sec:\LabelBase.textmarkup}, |
| 2300 |
\DescPageRef{\LabelBase.cmd.setkomafont}).% |
| 2301 |
\EndIndexGroup |
| 2302 |
|
| 2303 |
\begin{table} |
| 2304 |
\caption[{Available values for the \Option{priority} option in |
| 2305 |
\Class{scrlttr2}}]{Available values for the \Option{priority} option to |
| 2306 |
select the international priority in the address field of\Class{scrlttr2}} |
| 2307 |
\label{tab:\LabelBase.priority} |
| 2308 |
\begin{desctabular} |
| 2309 |
\entry{\PValue{false}, \PValue{off}, \PValue{no}, \PValue{manual}}{% |
| 2310 |
Priority will not be printed.}% |
| 2311 |
\entry{\PValue{B}, \PValue{b}, \PValue{economy}, \PValue{Economy}, |
| 2312 |
\PValue{ECONOMY}, \PValue{B-ECONOMY}, \PValue{B-Economy}, |
| 2313 |
\PValue{b-economy}}{% |
| 2314 |
Use international priority B-Economy. With |
| 2315 |
\OptionValue{addrfield}{true}, this is printed instead of the delivery |
| 2316 |
type.}% |
| 2317 |
\entry{\PValue{A}, \PValue{a}, \PValue{priority}, \PValue{Priority}, |
| 2318 |
\PValue{PRIORITY}, \PValue{A-PRIORITY}, \PValue{A-Priority}, |
| 2319 |
\PValue{a-priority}}{% |
| 2320 |
Use international priority A-Priority. With |
| 2321 |
\OptionValue{addrfield}{true}, this is printed instead of the delivery |
| 2322 |
type.}% |
| 2323 |
\end{desctabular} |
| 2324 |
\end{table} |
| 2325 |
|
| 2326 |
With\ChangedAt{v3.03}{\Class{scrlttr2}}\important{\OptionValue{addrfield}{PP}} |
| 2327 |
\OptionValue{addrfield}{PP}, the postal code in the \Variable{fromzipcode} |
| 2328 |
variable and the location from the \Variable{place} pariable will be output in |
| 2329 |
the postpaid postmark. The postal code (that is, the \PName{content} of |
| 2330 |
\Variable{fromzipcode}) is preceded by the \PName{description} of the |
| 2331 |
\Variable{fromzipcode} variable and the \PName{content} of |
| 2332 |
\Variable{zipcodeseparator}. The default for the \PName{description} depends |
| 2333 |
on the \File{lco} file used (see \autoref{sec:\LabelBase.lcoFile} starting on |
| 2334 |
\autopageref{sec:\LabelBase.lcoFile}). On the other hand, the default |
| 2335 |
\PName{content} of the \Variable{zipcodeseparator} variable is a thin space |
| 2336 |
followed by an en rule followed by another thin space |
| 2337 |
(\Macro{,}\texttt{-{}-}\Macro{,}). |
| 2338 |
|
| 2339 |
With\ChangedAt{v3.03}{\Class{scrlttr2}} |
| 2340 |
\OptionValue{addrfield}{PP}\important{\OptionValue{addrfield}{PP}}, a code is |
| 2341 |
placed in the postpaid postmark that uniquely identifies the sender. This is |
| 2342 |
stored in the \Variable{PPcode} variable. You can also print an additional |
| 2343 |
data array to the right of the address, which is stored in the |
| 2344 |
\Variable{PPdatamatrix} variable. |
| 2345 |
|
| 2346 |
\BeginIndexGroup |
| 2347 |
\BeginIndex{FontElement}{PPdata}\LabelFontElement{PPdata} |
| 2348 |
The ZIP code\ChangedAt{v3.03}{\Class{scrlttr2}} (postal code), place, and |
| 2349 |
sender code will be printed by default in an 8\Unit{pt} font. The the font |
| 2350 |
style of the \FontElement{PPdata}\important{\FontElement{PPdata}} is used to |
| 2351 |
do so. The default is listed in \autoref{tab:\LabelBase.AddresseeElements} and |
| 2352 |
can be changed with the \DescRef{\LabelBase.cmd.setkomafont} and |
| 2353 |
\DescRef{\LabelBase.cmd.addtokomafont} commands (see |
| 2354 |
\autoref{sec:\LabelBase.textmarkup}, |
| 2355 |
\DescPageRef{\LabelBase.cmd.setkomafont}).% |
| 2356 |
\EndIndexGroup |
| 2357 |
|
| 2358 |
\BeginIndexGroup |
| 2359 |
\BeginIndex{FontElement}{PPlogo}\LabelFontElement{PPlogo} For the postpaid |
| 2360 |
logo ``P.P.'', however, the font style of the |
| 2361 |
\FontElement{PPlogo}\important{\FontElement{PPlogo}} element is used. Its |
| 2362 |
default can also be found in \autoref{tab:\LabelBase.AddresseeElements}.% |
| 2363 |
\EndIndexGroup |
| 2364 |
|
| 2365 |
With\important{\OptionValue{addrfield}{backgroundimage}\\ |
| 2366 |
\OptionValue{addrfield}{image}} the two settings |
| 2367 |
\OptionValue{addrfield}{backgroundimage}\ChangedAt{v3.03}{\Class{scrlttr2}} |
| 2368 |
and \OptionValue{addrfield}{image}, an image is print inside the address |
| 2369 |
window. This image is stored in the \PName{content} of variable |
| 2370 |
\Variable{addresseeimage}. \KOMAScript{} does not use the \PName{description} |
| 2371 |
of this variable. Although only the image is printed with the |
| 2372 |
\OptionValue{addrfield}{image} option, the recipient's name and address from |
| 2373 |
the mandatory argument of the \DescRef{\LabelBase.env.letter} environment will |
| 2374 |
be printed with the \OptionValue{addrfield}{backgroundimage} option. |
| 2375 |
|
| 2376 |
The position of the postpaid postmark and that of the |
| 2377 |
postpaid address is defined by the \PLength{toaddrindent} pseudo-length (see |
| 2378 |
\DescPageRef{\LabelBase.plength.toaddrindent}) as well as |
| 2379 |
\PLength{PPheadwidth} and \PLength{PPheadheight} (see |
| 2380 |
\DescPageRef{\LabelBase.plength.PPheadheight}). The position of |
| 2381 |
the data array is defined by the \PLength{PPdatamatrixvskip} pseudo-length |
| 2382 |
(see \DescPageRef{\LabelBase.plength.PPdatamatrixvskip}). |
| 2383 |
|
| 2384 |
Note\textnote{Attention!} that \KOMAScript{} cannot print any external |
| 2385 |
graphics or pictures by itself. So if you want to put external picture files |
| 2386 |
into variables like \Variable{addresseeimage} or \Variable{PPdatamatrix}, you |
| 2387 |
must load an additional graphics package like |
| 2388 |
\Package{graphics}\IndexPackage{graphics} or |
| 2389 |
\Package{graphicx}\IndexPackage{graphicx} and use, for instance, the |
| 2390 |
\Macro{includegraphics} command in the \PName{content} of the variables.% |
| 2391 |
% |
| 2392 |
\EndIndexGroup |
| 2393 |
|
| 2394 |
|
| 2395 |
\begin{Declaration} |
| 2396 |
\PLength{toaddrvpos}% |
| 2397 |
\PLength{toaddrhpos} |
| 2398 |
\end{Declaration} |
| 2399 |
These pseudo-lengths define the vertical and horizontal distance of the |
| 2400 |
address field from the top-left corner of the paper. Values are set |
| 2401 |
differently in the various predefined \File{lco} files\textnote{\File{lco} |
| 2402 |
file}\Index{lco file=\File{lco} file}, according to standard envelope window |
| 2403 |
measures. For \PLength{toaddrhpos}, one property worth noting is that with |
| 2404 |
negative values, the offset is the distance from the right edge of the address |
| 2405 |
field to the right edge of the paper. You will find this, for instance, in |
| 2406 |
\Option{SN} or \Option{NF}. The smallest value of \PLength{toaddrvpos} is |
| 2407 |
found with \Option{DINmtext}. With this setting, the letterhead can easily |
| 2408 |
protrude into the address window. Whether the address field is output or not |
| 2409 |
depends on the \Option{addrfield} option (see |
| 2410 |
\autoref{sec:\LabelBase.firstpage}, \DescPageRef{\LabelBase.option.addrfield}).% |
| 2411 |
\EndIndexGroup |
| 2412 |
|
| 2413 |
|
| 2414 |
\begin{Declaration} |
| 2415 |
\PLength{toaddrheight} |
| 2416 |
\end{Declaration} |
| 2417 |
This pseudo-length defines the height of the address field, including the |
| 2418 |
delivery method. Whether the name and address of the recipient are vertically |
| 2419 |
centred in the address field, taking into account the presence or absence of |
| 2420 |
the delivery method, depends on the \DescRef{\LabelBase.option.addrfield} |
| 2421 |
option.% |
| 2422 |
\EndIndexGroup |
| 2423 |
|
| 2424 |
|
| 2425 |
\begin{Declaration} |
| 2426 |
\PLength{toaddrwidth} |
| 2427 |
\end{Declaration} |
| 2428 |
This pseudo-length defines the width of the address field. The various |
| 2429 |
predefined \File{lco} files\textnote{\File{lco} files}\Index{lco |
| 2430 |
file=\File{lco} files} use different settings according to the different |
| 2431 |
standards for window envelopes. Typical values are between 70\Unit{mm} and |
| 2432 |
100\Unit{mm}. |
| 2433 |
\begin{Example} |
| 2434 |
Suppose your printer has very wide, non-printable left and right margins of 15\Unit{mm}. |
| 2435 |
This means that the letterhead, the additional sender information, and the address field cannot |
| 2436 |
be completely printed if you use the \Option{SN} option. You therefore |
| 2437 |
create a new \File{lco} file with the following content: |
| 2438 |
\begin{lstcode} |
| 2439 |
\ProvidesFile{SNmmarg.lco} |
| 2440 |
[2002/06/04 v0.1 my lco] |
| 2441 |
\LoadLetterOption{SN} |
| 2442 |
\addtoplength{toaddrwidth}{% |
| 2443 |
-\useplength{toaddrhpos}} |
| 2444 |
\setplength{toaddrhpos}{-15mm} |
| 2445 |
\addtoplength{toaddrwidth}{% |
| 2446 |
\useplength{toaddrhpos}} |
| 2447 |
\endinput |
| 2448 |
\end{lstcode} |
| 2449 |
Then, until you can obtain a printer with smaller page margins, you |
| 2450 |
simply use the option \Option{SNmmarg} instead of \Option{SN}.% |
| 2451 |
\end{Example}% |
| 2452 |
% |
| 2453 |
\EndIndexGroup |
| 2454 |
|
| 2455 |
|
| 2456 |
\begin{Declaration} |
| 2457 |
\PLength{toaddrindent} |
| 2458 |
\end{Declaration} |
| 2459 |
Sometimes you do not want the address field to extend the full width of the |
| 2460 |
address window but to be indented a bit. You can set the amount of this |
| 2461 |
indentation with the \PLength{toaddrindent} pseudo-length. Typically, the |
| 2462 |
default value is 0\Unit{pt}. |
| 2463 |
|
| 2464 |
For\textnote{Attention!} the\ChangedAt{v3.03}{\Class{scrlttr2}} |
| 2465 |
\OptionValueRef{scrlttr2}{addrfield}{PP}\important{% |
| 2466 |
\OptionValueRef{scrlttr2}{addrfield}{PP}\\ |
| 2467 |
\OptionValueRef{scrlttr2}{addrfield}{image}\\ |
| 2468 |
\OptionValueRef{scrlttr2}{addrfield}{backgroundimage} |
| 2469 |
}\IndexOption{addrfield~=\textKValue{PP}}, |
| 2470 |
\OptionValueRef{scrlttr2}{addrfield}{image}% |
| 2471 |
\IndexOption{addrfield~=\textKValue{image}}, and |
| 2472 |
\OptionValueRef{scrlttr2}{addrfield}{backgroundimage}% |
| 2473 |
\IndexOption{addrfield~=\textKValue{backgroundimage}} settings (see |
| 2474 |
\autoref{sec:\LabelBase.firstpage}, \DescPageRef{\LabelBase.option.addrfield}) a |
| 2475 |
value of 0\Unit{pt} will be replaced by a value of 8\Unit{mm}. If you really |
| 2476 |
do not want any indentation, you can use a value of 1\Unit{sp} to set a |
| 2477 |
negligibly small indentation. Furthermore, \PLength{toaddrindent} is also used |
| 2478 |
for the distance to the right edge of the address window with the these |
| 2479 |
\Option{addrfield} settings.% |
| 2480 |
\EndIndexGroup |
| 2481 |
|
| 2482 |
|
| 2483 |
\begin{Declaration} |
| 2484 |
\PLength{backaddrheight} |
| 2485 |
\end{Declaration} |
| 2486 |
For window envelopes, the sender is often printed in a small font on one line |
| 2487 |
above the addressee. This sender information is called the return |
| 2488 |
address\textnote{return address}\Index{return address}, because it is visible |
| 2489 |
in the address window and will be used by the post office to return an |
| 2490 |
undeliverable letter to the sender. This return address, therefore, requires |
| 2491 |
only the information necessary for that purpose. |
| 2492 |
|
| 2493 |
The height reserved for the return address within the address window is given |
| 2494 |
by the \PLength{backaddrheight} pseudo-length. This value is typically |
| 2495 |
5\Unit{mm} in the predefined \File{lco} files\textnote{\File{lco} |
| 2496 |
file}\Index{}{lco file=\File{lco} file}. Whether to print the return address |
| 2497 |
at all depends on the \Option{addrfield} (see |
| 2498 |
\autoref{sec:\LabelBase.firstpage}, \DescPageRef{\LabelBase.option.addrfield}) and |
| 2499 |
\DescRef{\LabelBase.option.backaddress} options (see |
| 2500 |
\autoref{sec:\LabelBase.firstpage}, \DescPageRef{\LabelBase.option.backaddress}).% |
| 2501 |
\EndIndexGroup |
| 2502 |
|
| 2503 |
|
| 2504 |
\begin{Declaration} |
| 2505 |
\PLength{specialmailindent}% |
| 2506 |
\PLength{specialmailrightindent} |
| 2507 |
\end{Declaration} |
| 2508 |
You can print an optional delivery method between the return address and the |
| 2509 |
recipient's address. This field is printed only if the |
| 2510 |
\DescRef{\LabelBase.variable.specialmail} variable has non-empty contents. Its |
| 2511 |
alignment is determined by the \PLength{specialmailindent} and |
| 2512 |
\PLength{specialmailrightindent} pseudo-lengths, which specify the left and |
| 2513 |
right indentation, respectively. In the predefined \File{lco} |
| 2514 |
files\textnote{\File{lco} file}\Index{lco file=\File{lco} file}, |
| 2515 |
\PLength{specialmailindent} is set to rubber length \Macro{fill}, while |
| 2516 |
\PLength{specialmailrightindent} is set to 1\Unit{em}. Thus the delivery |
| 2517 |
method is set 1\Unit{em} from the address field's right margin.% |
| 2518 |
\EndIndexGroup |
| 2519 |
|
| 2520 |
|
| 2521 |
\begin{Declaration} |
| 2522 |
\PLength{PPheadheight}% |
| 2523 |
\PLength{PPheadwidth} |
| 2524 |
\end{Declaration} |
| 2525 |
The \PLength{PPheadheight}\ChangedAt{v3.03}{\Class{scrlttr2}} pseudo-length |
| 2526 |
specifies the height reserved for the postpaid header at the start of the |
| 2527 |
address field for the two options |
| 2528 |
\OptionValueRef{scrlttr2}{addrfield}{PP}\important{% |
| 2529 |
\OptionValueRef{scrlttr2}{addrfield}{PP}\\ |
| 2530 |
\OptionValueRef{scrlttr2}{addrfield}{backgroundimage}}% |
| 2531 |
\IndexOption{addrfield~=\textKValue{PP}} and |
| 2532 |
\OptionValueRef{scrlttr2}{addrfield}{backgroundimage}% |
| 2533 |
\IndexOption{addrfield~=\textKValue{backgroundimage}}. The |
| 2534 |
\PLength{PPheadwidth} pseudo-length is used only with |
| 2535 |
\OptionValueRef{scrlttr2}{addrfield}{PP} (see |
| 2536 |
\autoref{sec:\LabelBase.firstpage}, \DescPageRef{\LabelBase.option.addrfield}) and |
| 2537 |
gives the width of the left-hand field within the postpaid header, which |
| 2538 |
contains the postpaid logo, the postal code, and the location. The width of |
| 2539 |
the right-hand field containing the sender's code and the priority is the |
| 2540 |
remaining width. |
| 2541 |
|
| 2542 |
\KOMAScript{}\textnote{Attention!} automatically changes the default value of |
| 2543 |
0\Unit{mm} for the \PLength{PPheadheight} pseudo-length to 20.74\Unit{pt}, and |
| 2544 |
\PLength{PPheadwidth}'s default from 0\Unit{mm} to 42\Unit{mm}.% |
| 2545 |
% |
| 2546 |
\EndIndexGroup |
| 2547 |
|
| 2548 |
|
| 2549 |
\begin{Declaration} |
| 2550 |
\PLength{PPdatamatrixvskip} |
| 2551 |
\end{Declaration} |
| 2552 |
This\ChangedAt{v3.03}{\Class{scrlttr2}} pseudo-length specifies the vertical |
| 2553 |
distance between the postpaid header and the data array used with |
| 2554 |
\OptionValueRef{scrlttr2}{addrfield}{PP}% |
| 2555 |
\important{\OptionValueRef{scrlttr2}{addrfield}{PP}}% |
| 2556 |
\IndexOption{addrfield~=\PValue{PP}} (see \autoref{sec:\LabelBase.firstpage}, |
| 2557 |
\DescPageRef{\LabelBase.option.addrfield}). \KOMAScript{}\textnote{Attention!} |
| 2558 |
automatically changes the default value of 0\Unit{mm} to 9\Unit{mm}. The data |
| 2559 |
matrix is flush right within the postpaid header.% |
| 2560 |
\EndIndexGroup |
| 2561 |
% |
| 2562 |
\EndIndexGroup |
| 2563 |
|
| 2564 |
|
| 2565 |
\subsection{Extra Sender Information} |
| 2566 |
\seclabel{locationField} |
| 2567 |
\BeginIndexGroup |
| 2568 |
\BeginIndex{}{extra sender information} |
| 2569 |
\index{sender>extra information|see{extra sender information}} |
| 2570 |
|
| 2571 |
Often, especially with business letters, there is not enough space in the |
| 2572 |
letterhead and footer to accommodate all the information about the sender that |
| 2573 |
you want to include. For such additional information, you can use the space |
| 2574 |
next to the addressee. In this manual, this field is called the |
| 2575 |
\emph{extra sender information}. In earlier versions of this manual, it |
| 2576 |
was called the \emph{sender's extension} or the \emph{location field}. |
| 2577 |
|
| 2578 |
|
| 2579 |
\begin{Declaration} |
| 2580 |
\OptionVName{locfield}{setting} |
| 2581 |
\end{Declaration} |
| 2582 |
\BeginIndex{}{extra sender information}% |
| 2583 |
The content ot the field with extra sender attributes next to the address |
| 2584 |
field can be anything you want, for example a location, a bank-account number, |
| 2585 |
or other information. Depending\important{% |
| 2586 |
\OptionValueRef{\LabelBase}{fromalign}{locationleft}\\ |
| 2587 |
\OptionValueRef{\LabelBase}{fromalign}{center}\\ |
| 2588 |
\OptionValueRef{\LabelBase}{fromalign}{locationright}} on the |
| 2589 |
\DescRef{\LabelBase.option.fromalign} option, it will also be used for the |
| 2590 |
sender's logo. The width of this field can be specified in an \File{lco} file |
| 2591 |
(see \autoref{sec:\LabelBase.lcoFile}). If the width is set to zero there, the |
| 2592 |
\Option{locfield} option can toggle between two defaults for the field width. |
| 2593 |
This is the case for most of the \File{lco} files that come with |
| 2594 |
\KOMAScript{}. See also the explanation on the \PLength{locwidth} |
| 2595 |
pseudo-length in \autoref{sec:\LabelBase.locationField}, |
| 2596 |
\DescPageRef{\LabelBase.plength.locwidth}. Available values for this |
| 2597 |
option are shown in \autoref{tab:\LabelBase.locfield}. The default is |
| 2598 |
\PValue{narrow}.% |
| 2599 |
% |
| 2600 |
\begin{table} |
| 2601 |
% \centering |
| 2602 |
\KOMAoptions{captions=topbeside}% |
| 2603 |
\setcapindent{0pt}% |
| 2604 |
% \caption |
| 2605 |
\begin{captionbeside} |
| 2606 |
[{Available values for the \Option{locfield} option with |
| 2607 |
\Class{scrlttr2}}]{Available values for the \Option{locfield} option to |
| 2608 |
set the width of the field for extra sender information with |
| 2609 |
\Class{scrlttr2}% |
| 2610 |
\label{tab:\LabelBase.locfield}}% |
| 2611 |
[l] |
| 2612 |
\begin{minipage}[t]{.45\linewidth} |
| 2613 |
\begin{desctabular}[t] |
| 2614 |
\pventry{narrow}{narrow extra sender information field}% |
| 2615 |
\pventry{wide}{wide extra sender information field}% |
| 2616 |
\end{desctabular} |
| 2617 |
\end{minipage} |
| 2618 |
\end{captionbeside} |
| 2619 |
\end{table} |
| 2620 |
|
| 2621 |
\begin{Declaration} |
| 2622 |
\Variable{location}% |
| 2623 |
\end{Declaration} |
| 2624 |
The contents of the extra sender information field, unless it contains |
| 2625 |
the logo or the basic sender information itself, are specified by the |
| 2626 |
\Variable{location} variable. You can use formatting commands like |
| 2627 |
\Macro{raggedright} within this variable's \PName{content}. \KOMAScript{} does |
| 2628 |
not use the \PName{description} of this variable. |
| 2629 |
|
| 2630 |
\begin{Example} |
| 2631 |
Mr Public would like to provide some additional information about his |
| 2632 |
membership. Therefore he uses the \Variable{location} variable:% |
| 2633 |
\lstinputcode[xleftmargin=1em]{letter-example-19-en.tex}% |
| 2634 |
This will place the corresponding field beside the recipient's address, as |
| 2635 |
shown in \autoref{fig:\LabelBase.letter-19}. |
| 2636 |
\begin{figure} |
| 2637 |
\setcapindent{0pt}% |
| 2638 |
\begin{captionbeside}[{Example: letter with extended sender, logo, |
| 2639 |
recipient, extra sender information, opening, text, closing, |
| 2640 |
signature, postscript, distribution list, enclosure, and hole-punch |
| 2641 |
mark}] |
| 2642 |
{result of a short letter with extended sender, logo, recipient, |
| 2643 |
extra sender information, opening, text, closing, signature, |
| 2644 |
postscript, distribution list, enclosure, and hole-punch mark (the |
| 2645 |
date is set by default)}[l] |
| 2646 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-19-en}} |
| 2647 |
\end{captionbeside} |
| 2648 |
\label{fig:\LabelBase.letter-19} |
| 2649 |
\end{figure} |
| 2650 |
\end{Example} |
| 2651 |
\EndIndexGroup |
| 2652 |
\EndIndexGroup |
| 2653 |
|
| 2654 |
|
| 2655 |
\begin{Declaration} |
| 2656 |
\PLength{locheight}% |
| 2657 |
\PLength{lochpos}% |
| 2658 |
\PLength{locvpos}% |
| 2659 |
\PLength{locwidth} |
| 2660 |
\end{Declaration} |
| 2661 |
The \PLength{locwidth} and |
| 2662 |
\PLength{locheight}\ChangedAt{v2.97d}{\Class{scrlttr2}} pseudo-lengths set the |
| 2663 |
width and height of the extra-sender-information field. The \PLength{lochpos} |
| 2664 |
and \PLength{locvpos} pseudo-lengths determine the distances from the |
| 2665 |
top-right edge of the paper. These values are typically set to 0\Unit{pt} in |
| 2666 |
the predefined \File{lco} files. These\textnote{Attention!} zero-length values |
| 2667 |
have a special meaning. They result in the actual values being set within |
| 2668 |
\DescRef{\LabelBase.cmd.opening} based on the paper width, the address-window |
| 2669 |
width, the address window's distance from the top-left edge of the paper, and |
| 2670 |
the \DescRef{\LabelBase.option.locfield} option (see |
| 2671 |
\autoref{sec:\LabelBase.firstpage}, \DescPageRef{\LabelBase.option.locfield}). As |
| 2672 |
is the case for \PLength{toaddrhpos}, negative values of \PLength{lochpos} |
| 2673 |
also take on a special meaning. Instead of referring to the distance from the |
| 2674 |
right edge of the paper, \PLength{lochpos} then refers to the distance from |
| 2675 |
the left edge of the paper. The meaning is thus the opposite of that of |
| 2676 |
\PLength{toaddrhpos} (see \autoref{sec:\LabelBase.addressee}, |
| 2677 |
\DescPageRef{\LabelBase.plength.toaddrhpos}).% |
| 2678 |
\EndIndexGroup |
| 2679 |
% |
| 2680 |
\EndIndexGroup |
| 2681 |
|
| 2682 |
|
| 2683 |
\subsection{Reference Line} |
| 2684 |
\seclabel{refLine}% |
| 2685 |
\BeginIndexGroup |
| 2686 |
\BeginIndex{}{reference line} |
| 2687 |
\index{business line|see{reference line}} |
| 2688 |
|
| 2689 |
The reference line can actually be longer than just one line. It is printed |
| 2690 |
only if at least one of variables for the reference line is not empty. Only |
| 2691 |
non-empty fields will be printed. To\textnote{Hint!} set a seemingly empty |
| 2692 |
field, you can provide content for the variable that appears empty, such as |
| 2693 |
\Macro{mbox}\Parameter{}. If the reference line is omitted, the description |
| 2694 |
and contents of the \DescRef{\LabelBase.variable.date} variable are printed in |
| 2695 |
its place. You can find information about adding variables to or removing them |
| 2696 |
from the reference line in \autoref{sec:scrlttr2-experts.variables}, |
| 2697 |
\DescPageRef{scrlttr2-experts.cmd.removereffields}. |
| 2698 |
|
| 2699 |
|
| 2700 |
\begin{Declaration} |
| 2701 |
\OptionVName{numericaldate}{simple switch} |
| 2702 |
\end{Declaration} |
| 2703 |
This option toggles between the standard, language-dependent |
| 2704 |
date\Index{date}\Index{reference line} presentation, and a short, numerical |
| 2705 |
one. \KOMAScript{} does not provide the standard date format. It should be |
| 2706 |
defined by a package such as \Package{ngerman}\IndexPackage{ngerman}, |
| 2707 |
\Package{babel}\IndexPackage{babel}, or |
| 2708 |
\Package{isodate}\IndexPackage{isodate}. |
| 2709 |
The\important{\OptionValue{numericaldate}{true}} short, numerical |
| 2710 |
representation, however, is produced by \Class{scrlttr2} itself. The option |
| 2711 |
recognizes the standard values for simple switches as listed in |
| 2712 |
\autoref{tab:truefalseswitch}, \autopageref{tab:truefalseswitch}. The default |
| 2713 |
is \PValue{false}, which results in standard date format. |
| 2714 |
|
| 2715 |
\begin{Declaration} |
| 2716 |
\Variable{date}% |
| 2717 |
\end{Declaration} |
| 2718 |
The date in the selected format is stored as \PName{content} of the |
| 2719 |
\Variable{date} variable. Setting the |
| 2720 |
\DescRef{\LabelBase.option.numericaldate} option has no effect if this |
| 2721 |
variable is overridden. The date is usually output as part of the reference |
| 2722 |
line. If all other elements of the reference line are empty, a date line |
| 2723 |
consisting of the location and the date is printed instead. However in this |
| 2724 |
case, the settings of the \DescRef{\LabelBase.option.refline} option described |
| 2725 |
below also affect the date line. See the description of variable |
| 2726 |
\DescRef{\LabelBase.variable.place} on |
| 2727 |
\DescPageRef{\LabelBase.variable.placeseparator} for more information about |
| 2728 |
the location. |
| 2729 |
% |
| 2730 |
\EndIndexGroup |
| 2731 |
\EndIndexGroup |
| 2732 |
|
| 2733 |
|
| 2734 |
\begin{Declaration} |
| 2735 |
\OptionVName{refline}{selection} |
| 2736 |
\end{Declaration} |
| 2737 |
\BeginIndex{}{reference line}% |
| 2738 |
\index{business line|see{reference line}}% |
| 2739 |
Business letters in particular often contain an area with information such as |
| 2740 |
an identification code\Index{identification code}, phone |
| 2741 |
extension\Index{phone>extension}, customer number\Index{customer number}, |
| 2742 |
invoice number\Index{invoice number}, or references to previous letters. This |
| 2743 |
guide calls this area the \emph{reference-field line}\textnote{reference-field |
| 2744 |
line}, or simply the \emph{reference line}. |
| 2745 |
|
| 2746 |
With \Class{scrlttr2} and \Package{scrletter}, the header, footer, address, |
| 2747 |
and extra sender information can extend left and right beyond the normal |
| 2748 |
type area. The |
| 2749 |
\OptionValue{refline}{wide}\important{\OptionValue{refline}{wide}} option |
| 2750 |
specifies that this should also apply to the reference-field line. Normally, |
| 2751 |
the reference-field line contains at least the date, but it can hold |
| 2752 |
additional data. Available values for this option are shown in |
| 2753 |
\autoref{tab:\LabelBase.refline}. The default is \PValue{narrow} and |
| 2754 |
\PValue{dateright}\ChangedAt{v3.09}{\Class{scrlttr2}}.% |
| 2755 |
% |
| 2756 |
\begin{table} |
| 2757 |
\caption[{Available values for the \Option{refline} option with |
| 2758 |
\Class{scrlttr2}}]{Available values for the \Option{refline} option to set |
| 2759 |
the width of the reference line with \Class{scrlttr2}} |
| 2760 |
\label{tab:\LabelBase.refline} |
| 2761 |
\begin{desctabular} |
| 2762 |
\pventry{dateleft}{\ChangedAt{v3.09}{\Class{scrlttr2}}% |
| 2763 |
The date is placed leftmost in the reference line.}% |
| 2764 |
\pventry{dateright}{\ChangedAt{v3.09}{\Class{scrlttr2}}% |
| 2765 |
The date is placed rightmost in the reference line.}% |
| 2766 |
\pventry{narrow}{The reference line is restricted to the type area.}% |
| 2767 |
\pventry{nodate}{\ChangedAt{v3.09}{\Class{scrlttr2}}% |
| 2768 |
The date is not placed automatically into the reference line.}% |
| 2769 |
\pventry{wide}{The width of the reference line depends on the positions of |
| 2770 |
the address and extra sender information.}% |
| 2771 |
\end{desctabular} |
| 2772 |
\end{table} |
| 2773 |
|
| 2774 |
\begin{Declaration} |
| 2775 |
\Variable{yourref}% |
| 2776 |
\Variable{yourmail}% |
| 2777 |
\Variable{myref}% |
| 2778 |
\Variable{customer}% |
| 2779 |
\Variable{invoice}% |
| 2780 |
\end{Declaration} |
| 2781 |
You can manage the typical contents of the reference-field line with five |
| 2782 |
variables: \Variable{yourref}, \Variable{yourmail}, \Variable{myref}, |
| 2783 |
\Variable{customer} and \Variable{invoice}. Their meanings are listed in |
| 2784 |
\autoref{tab:\LabelBase.variables} on \autopageref{tab:\LabelBase.variables}. |
| 2785 |
Each variable has also a predefined \PName{description}, shown in |
| 2786 |
\autoref{tab:\LabelBase.reflineTerm}. How to add more variables to the |
| 2787 |
reference-field line is explained in \autoref{sec:scrlttr2-experts.variables} |
| 2788 |
starting on \DescPageRef{scrlttr2-experts.cmd.newkomavar}.% |
| 2789 |
% |
| 2790 |
\begin{table} |
| 2791 |
% \centering |
| 2792 |
\KOMAoptions{captions=topbeside}% |
| 2793 |
\setcapindent{0pt}% |
| 2794 |
% \caption |
| 2795 |
\begin{captionbeside}[{Default descriptions of variables in the |
| 2796 |
reference line}]{Default descriptions of typical variables in the |
| 2797 |
reference line using language-dependent commands}% |
| 2798 |
[l] |
| 2799 |
\begin{tabular}[t]{lll} |
| 2800 |
\toprule |
| 2801 |
name & description & English default text\\ |
| 2802 |
\midrule |
| 2803 |
\Variable{yourref} & \DescRef{scrlttr2-experts.cmd.yourrefname} & Your reference \\ |
| 2804 |
\Variable{yourmail} & \DescRef{scrlttr2-experts.cmd.yourmailname} & Your letter from \\ |
| 2805 |
\Variable{myref} & \DescRef{scrlttr2-experts.cmd.myrefname} & Our reference \\ |
| 2806 |
\Variable{customer} & \DescRef{scrlttr2-experts.cmd.customername} & Customer No.: \\ |
| 2807 |
\Variable{invoice} & \DescRef{scrlttr2-experts.cmd.invoicename} & Invoice No.: \\ |
| 2808 |
\DescRef{\LabelBase.variable.date} & \DescRef{scrlttr2-experts.cmd.datename} & date \\ |
| 2809 |
\bottomrule |
| 2810 |
\end{tabular} |
| 2811 |
\end{captionbeside} |
| 2812 |
\label{tab:\LabelBase.reflineTerm} |
| 2813 |
\end{table} |
| 2814 |
|
| 2815 |
\BeginIndexGroup |
| 2816 |
\BeginIndex{FontElement}{refname}\LabelFontElement{refname}% |
| 2817 |
\BeginIndex{FontElement}{refvalue}\LabelFontElement{refvalue}% |
| 2818 |
You\ChangedAt{v2.97c}{\Class{scrlttr2}} can change the font style and colour |
| 2819 |
of the \PName{description} and \PName{content} of the fields in the reference |
| 2820 |
line with the \FontElement{refname}% |
| 2821 |
\important[i]{\FontElement{refname}\\\FontElement{refvalue}} and |
| 2822 |
\FontElement{refvalue} elements using the \DescRef{\LabelBase.cmd.setkomafont} |
| 2823 |
and \DescRef{\LabelBase.cmd.addtokomafont} commands (see |
| 2824 |
\autoref{sec:\LabelBase.textmarkup}, |
| 2825 |
\DescPageRef{\LabelBase.cmd.setkomafont}). The defaults for both elements are |
| 2826 |
listed in \autoref{tab:\LabelBase.refnamerefvalue}.% |
| 2827 |
\begin{table}[tp] |
| 2828 |
% \centering |
| 2829 |
\KOMAoptions{captions=topbeside}% |
| 2830 |
\setcapindent{0pt}% |
| 2831 |
% \caption |
| 2832 |
\begin{captionbeside} |
| 2833 |
[{Default font styles for elements in the reference line}]{Default font |
| 2834 |
style settings for the elements in the reference line% |
| 2835 |
\label{tab:\LabelBase.refnamerefvalue}} |
| 2836 |
[l] |
| 2837 |
\begin{tabular}[t]{ll} |
| 2838 |
\toprule |
| 2839 |
element & default configuration \\ |
| 2840 |
\midrule |
| 2841 |
\ChangedAt{v3.39}{\Class{scrlttr2}}% |
| 2842 |
\DescRef{\LabelBase.fontelement.refname} |
| 2843 |
& \DescRef{\LabelBase.cmd.maybesffamily}\IndexCmd{maybesffamily}% |
| 2844 |
\Macro{scriptsize} \\ |
| 2845 |
\DescRef{\LabelBase.fontelement.refvalue} & \\ |
| 2846 |
\bottomrule |
| 2847 |
\end{tabular} |
| 2848 |
\end{captionbeside} |
| 2849 |
\end{table}% |
| 2850 |
% |
| 2851 |
\EndIndexGroup |
| 2852 |
|
| 2853 |
|
| 2854 |
\begin{Declaration} |
| 2855 |
\Variable{placeseparator}% |
| 2856 |
\end{Declaration}% |
| 2857 |
\BeginIndex{Variable}{place}% |
| 2858 |
If all variables in the reference-field line, with the exception of |
| 2859 |
\DescRef{\LabelBase.variable.date}% |
| 2860 |
\important{\DescRef{\LabelBase.variable.date}}\IndexVariable{date}, are empty, |
| 2861 |
no actual reference line is output. Instead, a date line consisting only of a |
| 2862 |
location\Index{location} and a date\Index{date} is output. The \PName{content} |
| 2863 |
of the \DescRef{\LabelBase.variable.place} variable contains the location. The |
| 2864 |
delimiter, which in this case is placed after the location, is specified by |
| 2865 |
the \PName{content} of the \Variable{placeseparator} variable. The |
| 2866 |
default\textnote{default} \PName{content} of the delimiter is a comma followed |
| 2867 |
by a non-breaking space. If the location is empty, the delimiter is not |
| 2868 |
output. The default \PName{content} of \DescRef{\LabelBase.variable.date} is |
| 2869 |
\Macro{today}\IndexCmd{today} and depends on the setting of the |
| 2870 |
\DescRef{\LabelBase.option.numericaldate} option (see |
| 2871 |
\DescPageRef{\LabelBase.option.numericaldate}). |
| 2872 |
|
| 2873 |
Starting with version~3.09\ChangedAt{v3.09}{\Class{scrlttr2}}, the location |
| 2874 |
and date are no longer required to be right-aligned. Instead, when a date |
| 2875 |
line is used, its alignment is specified by the date setting of the |
| 2876 |
\DescRef{\LabelBase.option.refline} option, as listed in |
| 2877 |
\autoref{tab:\LabelBase.refline}. |
| 2878 |
|
| 2879 |
\BeginIndexGroup |
| 2880 |
\BeginIndex{FontElement}{placeanddate}\LabelFontElement{placeanddate}% |
| 2881 |
If\ChangedAt{v3.12}{\Class{scrlttr2}} such a date line is output with a |
| 2882 |
location rather than a reference-field line, the font setting of the |
| 2883 |
\DescRef{\LabelBase.fontelement.refvalue} element does not apply. In this |
| 2884 |
case, the \FontElement{placeanddate}\important{\FontElement{placeanddate}} |
| 2885 |
element is used. You can change the empty default of this font element as |
| 2886 |
usual with the \DescRef{\LabelBase.cmd.setkomafont} and |
| 2887 |
\DescRef{\LabelBase.cmd.addtokomafont} commands (see |
| 2888 |
\autoref{sec:\LabelBase.textmarkup}, |
| 2889 |
\DescPageRef{\LabelBase.cmd.setkomafont}).% |
| 2890 |
\EndIndexGroup |
| 2891 |
|
| 2892 |
\begin{Example} |
| 2893 |
Now Mr Public also sets the variable for the location:% |
| 2894 |
\lstinputcode[xleftmargin=1em]{letter-example-20-en.tex}% |
| 2895 |
As seen in \autoref{fig:\LabelBase.letter-20}, the location appears |
| 2896 |
in front of the date, followed by the automatic delimiter. This date has |
| 2897 |
been defined explicitly so that the original date is maintained in any later |
| 2898 |
\LaTeX{} run rather than using the date of the \LaTeX{} run. |
| 2899 |
\begin{figure} |
| 2900 |
\setcapindent{0pt}% |
| 2901 |
\begin{captionbeside}[{Example: letter with extended sender, logo, |
| 2902 |
recipient, extra sender information, location, date, opening, |
| 2903 |
text, closing, signature, postscript, distribution list, enclosure, |
| 2904 |
and hole-punch mark}] |
| 2905 |
{result of a short letter with extended sender, logo, recipient, |
| 2906 |
extra sender information, location, date, opening, text, closing, |
| 2907 |
signature, postscript, distribution list, enclosure and hole-punch |
| 2908 |
mark}[l] |
| 2909 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-20-en}} |
| 2910 |
\end{captionbeside} |
| 2911 |
\label{fig:\LabelBase.letter-20} |
| 2912 |
\end{figure} |
| 2913 |
\end{Example} |
| 2914 |
% |
| 2915 |
\EndIndexGroup |
| 2916 |
\EndIndexGroup |
| 2917 |
\EndIndexGroup |
| 2918 |
|
| 2919 |
|
| 2920 |
\begin{Declaration} |
| 2921 |
\PLength{refvpos} |
| 2922 |
\end{Declaration} |
| 2923 |
This pseudo-length specifies the distance from the upper edge of the paper to |
| 2924 |
the reference line. Its value is set differently in the various predefined |
| 2925 |
\File{lco} files\textnote{\File{lco} file}\Index{lco file=\File{lco} file}. |
| 2926 |
Typical values are between 80.5\Unit{mm} and 98.5\Unit{mm}.% |
| 2927 |
\EndIndexGroup |
| 2928 |
|
| 2929 |
|
| 2930 |
\begin{Declaration} |
| 2931 |
\PLength{refwidth}% |
| 2932 |
\PLength{refhpos} |
| 2933 |
\end{Declaration} |
| 2934 |
The \PLength{refwidth} pseudo-length specifies the width available for the |
| 2935 |
reference line. Its value is typically set to 0\Unit{pt} in the predefined |
| 2936 |
\File{lco} files\textnote{\File{lco} file}\Index{lco file=\File{lco} file}. |
| 2937 |
This\textnote{Attention!} value has a special meaning. In no way does it |
| 2938 |
indicate that there is no available width for the reference line. Instead, it |
| 2939 |
indicates that the width will be calculated within the |
| 2940 |
\DescRef{\LabelBase.cmd.opening}\IndexCmd{opening} command. This calculated |
| 2941 |
width then depends on the value of the \DescRef{\LabelBase.option.refline}% |
| 2942 |
\important{\DescRef{\LabelBase.option.refline}}% |
| 2943 |
\IndexOption{refline~=\PName{setting}} options (see |
| 2944 |
\autoref{sec:\LabelBase.firstpage}, \DescPageRef{\LabelBase.option.refline}). At |
| 2945 |
the same time, \PLength{refhpos} will also be set according to this option. |
| 2946 |
With \OptionValueRef{scrlttr2}{refline}{wide}% |
| 2947 |
\IndexOption{refline~=\textKValue{wide}}, the reference fields line is |
| 2948 |
centred, while with \OptionValueRef{scrlttr2}{refline}{narrow}% |
| 2949 |
\IndexOption{refline~=\textKValue{narrow}} it is aligned flush left with the |
| 2950 |
type area. |
| 2951 |
|
| 2952 |
If \PLength{refwidth} is not zero, the width of the reference line is not |
| 2953 |
determined by the \DescRef{\LabelBase.option.refline} option, and so |
| 2954 |
\PLength{refhpos} specifies the distance of the reference line from the left |
| 2955 |
edge of the paper. If\textnote{Attention!} this distance is zero, the the |
| 2956 |
reference line is placed so that the ratio between its distances from the left |
| 2957 |
and right edges of the paper corresponds to the ratio of distance of the type |
| 2958 |
area from the left and right edges of the paper. Thus, for a type area |
| 2959 |
horizontally centred on the paper, the reference line will also be centred. |
| 2960 |
|
| 2961 |
As a rule, these special cases are likely of little interest to the normal |
| 2962 |
user. The\textnote{Attention!} simplest rule is as follows: either |
| 2963 |
\PLength{refhpos} remains zero, and so the width and alignment of the |
| 2964 |
reference line are determined with the \DescRef{\LabelBase.option.refline} |
| 2965 |
option, or the user sets both \PLength{refwidth} and \PLength{refhpos}.% |
| 2966 |
\EndIndexGroup |
| 2967 |
|
| 2968 |
|
| 2969 |
\begin{Declaration} |
| 2970 |
\PLength{refaftervskip} |
| 2971 |
\end{Declaration} |
| 2972 |
This pseudo-length specifies the vertical skip to be inserted beneath the |
| 2973 |
reference line. The value is set in the predefined \File{lco} |
| 2974 |
files\textnote{\File{lco} file}\Index{lco file=\File{lco} file}. It directly |
| 2975 |
affects the height of the text area on the first page. A typical value is |
| 2976 |
between one and two lines.% |
| 2977 |
\EndIndexGroup |
| 2978 |
% |
| 2979 |
\EndIndexGroup |
| 2980 |
|
| 2981 |
|
| 2982 |
\subsection{Subject} |
| 2983 |
\seclabel{subject}% |
| 2984 |
\BeginIndexGroup |
| 2985 |
\BeginIndex{}{subject} |
| 2986 |
|
| 2987 |
Different countries have different conventions for placing the subject line of |
| 2988 |
a letter. Some place it before the opening phrase; others place it after. Some |
| 2989 |
professional groups even want it before the reference line. |
| 2990 |
|
| 2991 |
|
| 2992 |
\begin{Declaration} |
| 2993 |
\Variable{title}% |
| 2994 |
\end{Declaration} |
| 2995 |
With \KOMAScript{}, you can also give a letter a title\Index{title}. The title |
| 2996 |
is centred, using the \Macro{LARGE} font size, and placed directly beneath the |
| 2997 |
reference-field line. |
| 2998 |
|
| 2999 |
\BeginIndex{FontElement}{lettertitle}\LabelFontElement{lettertitle}% |
| 3000 |
\BeginIndex{FontElement}{title}\LabelFontElement{title}% |
| 3001 |
You can change the font style for the |
| 3002 |
\FontElement{lettertitle}\important{\FontElement{lettertitle}} element with |
| 3003 |
the \DescRef{\LabelBase.cmd.setkomafont} and |
| 3004 |
\DescRef{\LabelBase.cmd.addtokomafont} commands (see |
| 3005 |
\autoref{sec:\LabelBase.textmarkup}, |
| 3006 |
\DescPageRef{\LabelBase.cmd.setkomafont}). Font size declarations are |
| 3007 |
allowed. The \Macro{LARGE} font size always precedes the font selection in |
| 3008 |
\KOMAScript{}, and is therefore not part of the default setting |
| 3009 |
\ChangedAt{v3.39}{\Class{scrlttr2}}\Macro{normalcolor}\linebreak[2]% |
| 3010 |
\DescRef{\LabelBase.cmd.maybesffamily}\IndexCmd{maybesffamily}\linebreak[2]% |
| 3011 |
\Macro{bfseries}. With \Class{scrlttr2}, |
| 3012 |
you can also use \FontElement{title}\important{\FontElement{title}} as an |
| 3013 |
alias for \FontElement{lettertitle}. This is not possible when using |
| 3014 |
\Package{scrletter} with a \KOMAScript{} class because these classes already |
| 3015 |
define a \FontElement{title} element for the document title with different |
| 3016 |
setting.% |
| 3017 |
\EndIndex{FontElement}{title}% |
| 3018 |
\EndIndex{FontElement}{lettertitle}% |
| 3019 |
\begin{Example} |
| 3020 |
Suppose you are writing a reminder letter. You set a corresponding title: |
| 3021 |
\begin{lstlisting} |
| 3022 |
\setkomavar{title}{Reminder} |
| 3023 |
\end{lstlisting} |
| 3024 |
This way the recipient should recognize the reminder as such. |
| 3025 |
\end{Example} |
| 3026 |
As shown in the example, the \PName{content} of the variable defines the |
| 3027 |
title. \KOMAScript{} does not use the \PName{description}.% |
| 3028 |
% |
| 3029 |
\EndIndexGroup |
| 3030 |
|
| 3031 |
|
| 3032 |
\begin{Declaration} |
| 3033 |
\OptionVName{subject}{selection}% |
| 3034 |
\Variable{subject}% |
| 3035 |
\Variable{subjectseparator}% |
| 3036 |
\end{Declaration} |
| 3037 |
\BeginIndex{}{subject}% |
| 3038 |
To include a subject, define the \PName{content} of the \Variable{subject} |
| 3039 |
variable accordingly. First of all, you can use the |
| 3040 |
\OptionValue{subject}{true}\important{\OptionValue{subject}{titled}} option, |
| 3041 |
to choose whether the subject should be preceded with a \PName{description} or |
| 3042 |
not. If you use the \PName{description} the \PName{content} of the |
| 3043 |
\Variable{subjectseparator}\Index{separator} variable is output between the |
| 3044 |
\PName{description} and the \PName{content} of the \Variable{subject} |
| 3045 |
variable. The default \PName{content} of \PName{subjectseparator} consists of |
| 3046 |
a colon followed by a space. |
| 3047 |
|
| 3048 |
\begin{table} |
| 3049 |
% \centering |
| 3050 |
\KOMAoptions{captions=topbeside}% |
| 3051 |
\setcapindent{0pt}% |
| 3052 |
% \caption |
| 3053 |
\begin{captionbeside}{Default descriptions of variables for the subject} |
| 3054 |
[l] |
| 3055 |
\begin{tabular}[t]{lll} |
| 3056 |
\toprule |
| 3057 |
variable name & description \\ |
| 3058 |
\midrule |
| 3059 |
\Variable{subject} & \DescRef{\LabelBase.cmd.usekomavar*}\PParameter{subjectseparator}% |
| 3060 |
\texttt{\%} \\ |
| 3061 |
& \texttt{\quad}% |
| 3062 |
\DescRef{\LabelBase.cmd.usekomavar}\PParameter{subjectseparator} \\ |
| 3063 |
\Variable{subjectseparator} & \DescRef{scrlttr2-experts.cmd.subjectname} \\ |
| 3064 |
\bottomrule |
| 3065 |
\end{tabular} |
| 3066 |
\end{captionbeside} |
| 3067 |
\label{tab:\LabelBase.subjectTerm} |
| 3068 |
\end{table} |
| 3069 |
|
| 3070 |
Additionally, you can use \OptionValue{subject}{afteropening}% |
| 3071 |
\important{\OptionValue{subject}{afteropening}\\ |
| 3072 |
\OptionValue{subject}{beforeopening}} to place the subject after the letter |
| 3073 |
opening instead of the default \OptionValue{subject}{beforeopening}. You can |
| 3074 |
also specify other formatting\important{\OptionValue{subject}{underlined}\\ |
| 3075 |
\OptionValue{subject}{centered}\\ |
| 3076 |
\OptionValue{subject}{right}} for the subject with |
| 3077 |
\OptionValue{subject}{underlined}, \OptionValue{subject}{centered}, or |
| 3078 |
\OptionValue{subject}{right}\ChangedAt{v2.97c}{\Class{scrlttr2}}. The |
| 3079 |
available values are listed in \autoref{tab:\LabelBase.subject}. |
| 3080 |
Note\textnote{Attention!} that with the \OptionValue{subject}{underlined} |
| 3081 |
option, the whole subject must fit onto one line. The defaults are |
| 3082 |
\OptionValue{subject}{left}, \OptionValue{subject}{beforeopening}, and |
| 3083 |
\OptionValue{subject}{untitled}.% |
| 3084 |
% |
| 3085 |
\begin{table} |
| 3086 |
% \centering |
| 3087 |
\KOMAoptions{captions=topbeside}% |
| 3088 |
\setcapindent{0pt}% |
| 3089 |
% \caption |
| 3090 |
\begin{captionbeside} |
| 3091 |
[{Available values for the \Option{subject} option with \Class{scrlttr2}}] |
| 3092 |
{Available values for the \Option{subject} option for the position and |
| 3093 |
formatting of the subject with |
| 3094 |
\Class{scrlttr2}\label{tab:\LabelBase.subject}}% |
| 3095 |
[l] |
| 3096 |
\begin{minipage}[t]{.6\linewidth} |
| 3097 |
\begin{desctabular}[t] |
| 3098 |
\pventry{afteropening}{subject after opening}% |
| 3099 |
\pventry{beforeopening}{subject before opening}% |
| 3100 |
\pventry{centered}{subject centred}% |
| 3101 |
\pventry{left}{subject left-justified}% |
| 3102 |
\pventry{right}{subject right-justified}% |
| 3103 |
\pventry{titled}{add title/description to subject}% |
| 3104 |
\pventry{underlined}{set subject underlined (see note in text)}% |
| 3105 |
\pventry{untitled}{do not add title/description to subject}% |
| 3106 |
\end{desctabular} |
| 3107 |
\end{minipage} |
| 3108 |
\end{captionbeside} |
| 3109 |
\end{table} |
| 3110 |
|
| 3111 |
\BeginIndexGroup |
| 3112 |
\BeginIndex{FontElement}{lettersubject}\LabelFontElement{lettersubject}% |
| 3113 |
\BeginIndex{FontElement}{subject}\LabelFontElement{subject}% |
| 3114 |
The subject line is set in a separate font\Index{font>style}. To change this, |
| 3115 |
use the \DescRef{\LabelBase.cmd.setkomafont} and |
| 3116 |
\DescRef{\LabelBase.cmd.addtokomafont} commands (see |
| 3117 |
\autoref{sec:\LabelBase.textmarkup}, |
| 3118 |
\DescPageRef{\LabelBase.cmd.setkomafont}). For the |
| 3119 |
\FontElement{lettersubject}\important{\FontElement{lettersubject}} element, |
| 3120 |
the default font is \Macro{normalcolor}\Macro{bfseries}. With the |
| 3121 |
\Class{scrlttr2} class, you can also use |
| 3122 |
\FontElement{subject}\important{\FontElement{subject}} as an alias of |
| 3123 |
\FontElement{lettersubject}. This is not possible with the \Package{scrletter} |
| 3124 |
package when using a \KOMAScript{} class, because these classes already define |
| 3125 |
a \FontElement{subject} element for the document title with different |
| 3126 |
settings.% |
| 3127 |
\EndIndexGroup |
| 3128 |
|
| 3129 |
\begin{Example} |
| 3130 |
Mr Public now includes a subject. As a traditionalist, he also wants the |
| 3131 |
subject to be labelled accordingly and therefore sets the corresponding |
| 3132 |
option:% |
| 3133 |
\lstinputcode[xleftmargin=1em]{letter-example-21-en.tex}% |
| 3134 |
The result is shown in \autoref{fig:\LabelBase.letter-21}. |
| 3135 |
\begin{figure} |
| 3136 |
\setcapindent{0pt}% |
| 3137 |
\begin{captionbeside}[{Example: letter with extended sender, logo, |
| 3138 |
recipient, extra sender information, place, date, subject, |
| 3139 |
opening, text, closing, signature, postscript, distribution list, |
| 3140 |
enclosure, and hole-punch mark}] |
| 3141 |
{result of a short letter with extended sender, logo, recipient, |
| 3142 |
extra sender information, place, date, subject, opening, text, |
| 3143 |
closing, signature, postscript, distribution list, enclosure and |
| 3144 |
hole-punch mark}[l] |
| 3145 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-21-en}} |
| 3146 |
\end{captionbeside} |
| 3147 |
\label{fig:\LabelBase.letter-21} |
| 3148 |
\end{figure} |
| 3149 |
\end{Example} |
| 3150 |
% |
| 3151 |
\EndIndexGroup |
| 3152 |
|
| 3153 |
|
| 3154 |
\begin{Declaration} |
| 3155 |
\PLength{subjectvpos} |
| 3156 |
\end{Declaration} |
| 3157 |
\ChangedAt{v3.01}{\Class{scrlttr2}}% |
| 3158 |
If\textnote{Attention!} the value of this pseudo-length is 0\Unit{pt}, the |
| 3159 |
\DescRef{\LabelBase.option.subject}\important{\DescRef{\LabelBase.option.subject}}% |
| 3160 |
\IndexOption{subject~=\PName{Einstellung}} option (see |
| 3161 |
\autoref{sec:\LabelBase.firstpage}, \DescPageRef{\LabelBase.option.subject}) |
| 3162 |
determines the position of the subject. Any other value defines the distance |
| 3163 |
between the top edge of the paper and the subject. In this |
| 3164 |
case\textnote{Hint!}, you should ensure that there is enough space available |
| 3165 |
that overlapping with other elements is unlikely. |
| 3166 |
\begin{Example} |
| 3167 |
A few professionals prefer to have the subject above the reference line. For |
| 3168 |
this, you can specify the position as follows, which also changes the |
| 3169 |
position of the reference line itself: |
| 3170 |
\begin{lstcode} |
| 3171 |
\ProvidesFile{lawsubj.lco} |
| 3172 |
[2008/11/03 lawyers lco file] |
| 3173 |
\setplength{subjectvpos}{\useplength{refvpos}} |
| 3174 |
\addtoplength{refvpos}{3\baselineskip} |
| 3175 |
\endinput |
| 3176 |
\end{lstcode} |
| 3177 |
If you want to leave at least one empty line between the subject and the |
| 3178 |
reference, you have space for a maximum of two lines. |
| 3179 |
\end{Example} |
| 3180 |
\EndIndexGroup |
| 3181 |
|
| 3182 |
|
| 3183 |
\begin{Declaration} |
| 3184 |
\PLength{subjectbeforevskip}% |
| 3185 |
\PLength{subjectaftervskip} |
| 3186 |
\end{Declaration} |
| 3187 |
\ChangedAt{v3.01}{\Class{scrlttr2}}% |
| 3188 |
If the subject is placed not absolutely but before or after the salutation, |
| 3189 |
you can insert additional vertical space before and after the subject. The |
| 3190 |
space before the subject may interfere with other distances, such as the |
| 3191 |
automatic distance of one line after the title. Therefore the default is to |
| 3192 |
use no additional space here. The default of the class and the package for the |
| 3193 |
space after the subject is two lines.% |
| 3194 |
\EndIndexGroup |
| 3195 |
% |
| 3196 |
\EndIndexGroup |
| 3197 |
|
| 3198 |
|
| 3199 |
\subsection{Closing} |
| 3200 |
\seclabel{closing} |
| 3201 |
\BeginIndexGroup |
| 3202 |
\BeginIndex{}{closing} |
| 3203 |
|
| 3204 |
\BeginIndex{}{letter>closing}% |
| 3205 |
\BeginIndex{}{signature}% |
| 3206 |
\BeginIndex{}{letter>signature}% |
| 3207 |
|
| 3208 |
It has already been mentioned in \autoref{sec:\LabelBase.document}, |
| 3209 |
\DescPageRef{\LabelBase.cmd.closing} that the letter's closing text is |
| 3210 |
provided by \DescRef{\LabelBase.cmd.closing}\IndexCmd{closing}. Beneath the |
| 3211 |
closing text, there is often a space for a handwritten signature, beneath |
| 3212 |
which there can be a printed name, which serves as a kind of annotation to the |
| 3213 |
actual signature. |
| 3214 |
|
| 3215 |
|
| 3216 |
\begin{Declaration} |
| 3217 |
\Variable{signature} |
| 3218 |
\Macro{sigspace} |
| 3219 |
\end{Declaration} |
| 3220 |
The \Variable{signature} variable contains the printed name or annotation for |
| 3221 |
the handwritten signature. Its default \PName{content} is the |
| 3222 |
\DescRef{\LabelBase.cmd.usekomavar}\PParameter{fromname}. This annotation can |
| 3223 |
consist of multiple lines. In that case, you should separate the individual |
| 3224 |
lines with double backslashes. Paragraph\textnote{Attention!} breaks in the |
| 3225 |
signature annotation, however, are not permitted. |
| 3226 |
|
| 3227 |
For\ChangedAt{v3.44}{\Class{scrlttr2}\and \Package{scrletter}} letters with |
| 3228 |
multiple signatories, the individual signatures can be separated within the |
| 3229 |
\Variable{signature} variable by \Macro{and}. They are then placed as |
| 3230 |
blocks next to each others. Between the individual signatures, |
| 3231 |
\Macro{sigspace} is inserted. This is defined with \Macro{quad}, which is a |
| 3232 |
horizontal distance of 1\,em.% |
| 3233 |
\EndIndexGroup |
| 3234 |
|
| 3235 |
|
| 3236 |
\begin{Declaration} |
| 3237 |
\Macro{raggedsignature} |
| 3238 |
\Macro{sigalign} |
| 3239 |
\end{Declaration} |
| 3240 |
The closing phrase and the signature will be typeset in a box. The width of |
| 3241 |
the box is determined by the length of the longest line in the closing |
| 3242 |
phrase or signature. |
| 3243 |
|
| 3244 |
The \PLength{sigindent}\IndexPLength{sigindent} and |
| 3245 |
\PLength{sigbeforevskip}\IndexPLength{sigbeforevskip} pseudo-lengths determine |
| 3246 |
exactly where this box is placed (see \autoref{sec:\LabelBase.closing}, |
| 3247 |
\DescPageRef{\LabelBase.plength.sigindent}). The \Macro{raggedsignature} |
| 3248 |
command defines the alignment inside the box. In the default \File{lco} files, |
| 3249 |
the command is either defined as \Macro{centering} (all besides |
| 3250 |
\Option{KOMAold}) or \Macro{raggedright} (\Option{KOMAold}). In order to |
| 3251 |
obtain flush-right, centered or flush-left alignment inside the box, you can |
| 3252 |
redefine the command using \Macro{renewcommand}. Experienced users are also |
| 3253 |
permitted to use \Macro{let}. Valid definitions are \Macro{raggedleft}, |
| 3254 |
\Macro{centering} or |
| 3255 |
\Macro{raggedright}. Other\ChangedAt{v3.44}{\Class{scrlttr2}\and |
| 3256 |
\Package{scrletter}} definitions are only permitted if \Macro{sigalign} is |
| 3257 |
defined at the same time. In this case, \Macro{sigalign} must expand to a |
| 3258 |
valid table column definition, for example \texttt{l}, \texttt{c}, \texttt{r} |
| 3259 |
or \texttt{p\{.5\Length{textwidth}\}}. \Macro{sigalign} is decisive for the |
| 3260 |
alignment within a signature if it is multi-line. |
| 3261 |
|
| 3262 |
\begin{Example} |
| 3263 |
Now Mr Public wants to make himself seem really important, and therefore he uses the |
| 3264 |
signature to show once again that he was formerly a chairman himself. So |
| 3265 |
he changes \PName{contents} of the |
| 3266 |
\DescRef{\LabelBase.variable.signature} variable. He also wants the signature |
| 3267 |
be aligned flush-left and so he also redefines \Macro{raggedsignature}:% |
| 3268 |
\lstinputcode[xleftmargin=1em]{letter-example-22-en.tex}% |
| 3269 |
See \autoref{fig:\LabelBase.letter-22} for the result. |
| 3270 |
\begin{figure} |
| 3271 |
\setcapindent{0pt}% |
| 3272 |
\begin{captionbeside}[{Example: letter with extended sender, logo, |
| 3273 |
recipient, extra sender information, place, date, subject, |
| 3274 |
opening, text, closing, modified signature, postscript, distribution |
| 3275 |
list, enclosure, and hole-punch mark}] |
| 3276 |
{result of a short letter with extended sender, logo, recipient, |
| 3277 |
extra sender information, place, date, subject opening, text, |
| 3278 |
closing, modified signature, postscript, distribution list, enclosure |
| 3279 |
and hole-punch mark}[l] |
| 3280 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-22-en}} |
| 3281 |
\end{captionbeside} |
| 3282 |
\label{fig:\LabelBase.letter-22} |
| 3283 |
\end{figure} |
| 3284 |
\end{Example} |
| 3285 |
\iftrue% Umbruchkorrekturtext |
| 3286 |
The preceding example shows the most important, although not all possible, |
| 3287 |
elements of a letter. It can, however, serve quite well as a general |
| 3288 |
template.% |
| 3289 |
\else |
| 3290 |
\vskip -1\ht\strutbox plus .75\ht\strutbox% example at end of description |
| 3291 |
\fi |
| 3292 |
% |
| 3293 |
\EndIndexGroup |
| 3294 |
|
| 3295 |
|
| 3296 |
\begin{Declaration} |
| 3297 |
\PLength{sigindent}% |
| 3298 |
\PLength{sigbeforevskip} |
| 3299 |
\end{Declaration} |
| 3300 |
The closing phrase\Index{closing>phrase}\Index{signature} and signature |
| 3301 |
explanation are typeset in a box whose width is determined by the length of |
| 3302 |
the longest line of the closing phrase or explanation. |
| 3303 |
|
| 3304 |
The box will be indented by the distance specified in the \PLength{sigindent} |
| 3305 |
pseudo-length. In the predefined \File{lco} files\textnote{\File{lco} |
| 3306 |
file}\Index{lco file=\File{lco} file}, this length is set to 0\Unit{mm}. |
| 3307 |
|
| 3308 |
Between the closing phrase and the signature explanation, a vertical skip is |
| 3309 |
inserted whose height is defined in the \PLength{sigbeforevskip} |
| 3310 |
pseudo-length. In the predefined \File{lco} files\textnote{\File{lco} |
| 3311 |
file}\Index{lco file=\File{lco} file} this value is set to two lines. In this |
| 3312 |
space you can then write your signature.% |
| 3313 |
\iffalse% Umbruchkorrekturtext |
| 3314 |
\ If you decide to include a facsimile of your signature in the |
| 3315 |
\DescRef{\LabelBase.variable.signature}\IndexVariable{signature}% |
| 3316 |
\important{\DescRef{\LabelBase.variable.signature}} with the |
| 3317 |
\Package{graphicx}\IndexPackage{graphicx} package, it would be useful |
| 3318 |
to reduce the value of \PLength{sigbeforevskip} and thus the gap between |
| 3319 |
the closing phrase and the signature.% |
| 3320 |
\fi% |
| 3321 |
\EndIndexGroup |
| 3322 |
% |
| 3323 |
\EndIndexGroup |
| 3324 |
|
| 3325 |
|
| 3326 |
\subsection{Letterhead Page Footer} |
| 3327 |
\seclabel{firstFoot}% |
| 3328 |
\BeginIndexGroup |
| 3329 |
\BeginIndex{}{letterhead page>footer}% |
| 3330 |
|
| 3331 |
The first page of a letter, the letterhead page, contains not just its own |
| 3332 |
header, the letterhead, but also its own footer\Index{footer>letterhead |
| 3333 |
page}\Index{footer}. Just like the letterhead, it will be set not by the page |
| 3334 |
style but directly within \DescRef{\LabelBase.cmd.opening}\IndexCmd{opening}% |
| 3335 |
\important{\DescRef{\LabelBase.cmd.opening}}. |
| 3336 |
|
| 3337 |
|
| 3338 |
\begin{Declaration} |
| 3339 |
\OptionVName{shrinkfirstpage}{simple switch} |
| 3340 |
\OptionVName{enlargefirstpage}{simple switch} |
| 3341 |
\end{Declaration} |
| 3342 |
\begin{Explain} |
| 3343 |
The first page of a letter always uses a different page layout because of |
| 3344 |
the many predefined elements such as the letterhead or the address. The |
| 3345 |
\Class{scrlttr2} class provides a mechanism to calculate height and vertical |
| 3346 |
alignment of header and footer of the first page independently of the |
| 3347 |
subsequent pages. If, as a result, the footer of the first page would |
| 3348 |
protrude into the text area, this text area of the first page is |
| 3349 |
automatically reduced using |
| 3350 |
\Macro{enlargethispage}\IndexCmd{enlargethispage}. |
| 3351 |
\end{Explain} |
| 3352 |
If\ChangedAt{v3.48}{\Class{scrlttr2}\and \Package{scrletter}} the text area |
| 3353 |
should not automatically become smaller to avoid collision of the text and the |
| 3354 |
footer, you can use option \OptionValue{shrinkfirstpage}{false}% |
| 3355 |
\important{\OptionValue{shrinkfirstpage}{false}}. If the text area should |
| 3356 |
become larger, assuming the footer on the first page permits this, you can use |
| 3357 |
\OptionValue{enlargefirstpage}{true}% |
| 3358 |
\important{\OptionValue{enlargefirstpage}{true}}. At best, a little more text |
| 3359 |
will then fit on the first page. See also the description of the |
| 3360 |
\PLength{firstfootvpos} pseudo-length on |
| 3361 |
\DescPageRef{\LabelBase.plength.firstfootvpos}. This options take the |
| 3362 |
standard values for simple switches, as listed in |
| 3363 |
\autoref{tab:truefalseswitch}, \autopageref{tab:truefalseswitch}. |
| 3364 |
|
| 3365 |
Since\ChangedAt{v3.48}{\Class{scrlttr2}\and \Package{scrletter}} version 3.48, |
| 3366 |
\KOMAScript{} has also been somewhat tolerant in collision detection. If the |
| 3367 |
reduction or enlargement is less than \Length{maxdepth}, it is automatically |
| 3368 |
omitted. \Length{maxdepth} is normally set by the \Package{typearea} package |
| 3369 |
to half of \Length{topskip}. \Length{topskip}, in turn, usually corresponds to |
| 3370 |
the base font size and is therefore dependent on the option |
| 3371 |
\DescRef{\LabelBase.option.fontsize}. For \Class{scrlttr2}, this only applies |
| 3372 |
if compatibility with an earlier version is not enforced by the option |
| 3373 |
\DescRef{\LabelBase.option.version}.% |
| 3374 |
\EndIndexGroup |
| 3375 |
|
| 3376 |
|
| 3377 |
\begin{Declaration} |
| 3378 |
\OptionVName{firstfoot}{simple switch} |
| 3379 |
\end{Declaration} |
| 3380 |
\BeginIndex{}{letterhead page>footer}% |
| 3381 |
This\ChangedAt{v2.97e}{\Class{scrlttr2}} option determines whether the footer |
| 3382 |
for the letterhead page is output. Switching off the letterhead page footer |
| 3383 |
with \OptionValue{firstfoot}{false}\important{\OptionValue{firstfoot}{false}}, |
| 3384 |
has an effect when the \DescRef{\LabelBase.option.enlargefirstpage} option |
| 3385 |
(see \DescPageRef{\LabelBase.option.enlargefirstpage}) is used at the same |
| 3386 |
time, as this will logically extend the page downwards. In this case, the |
| 3387 |
distance that is ordinarily between type area and the footer becomes the |
| 3388 |
distance between the end of the type area and the bottom of the page. |
| 3389 |
|
| 3390 |
The option recognizes the standard values for simple switches listed in |
| 3391 |
\autoref{tab:truefalseswitch}, \autopageref{tab:truefalseswitch}. The default |
| 3392 |
is to include the letterhead page footer. |
| 3393 |
\EndIndexGroup |
| 3394 |
|
| 3395 |
|
| 3396 |
\begin{Declaration} |
| 3397 |
\Variable{firstfoot}% |
| 3398 |
\end{Declaration}% |
| 3399 |
\BeginIndex{}{letterhead page>footer}% |
| 3400 |
The footer of the first page is empty by default. |
| 3401 |
However\ChangedAt{v3.08}{\Class{scrlttr2}}, you can specify a new footer |
| 3402 |
in the \PName{content} of the \Variable{firstfoot} variable. \KOMAScript{} |
| 3403 |
does not use the \PName{description} of the variable. |
| 3404 |
|
| 3405 |
\BeginIndex{Variable}{frombank}% |
| 3406 |
\begin{Example} |
| 3407 |
You want to put the \PName{content} of the \Variable{frombank} variable |
| 3408 |
(i.\,e. the bank account details) in the footer of the first page. The |
| 3409 |
double backslash should be replaced with a comma: |
| 3410 |
\begin{lstcode} |
| 3411 |
\setkomavar{firstfoot}{% |
| 3412 |
\parbox[b]{\linewidth}{% |
| 3413 |
\centering\def\\{, }\usekomavar{frombank}% |
| 3414 |
}% |
| 3415 |
} |
| 3416 |
\end{lstcode} |
| 3417 |
You can also define your own variable for the separator. I leave |
| 3418 |
this as an exercise for the reader. |
| 3419 |
|
| 3420 |
If you want to create a footer in order to counterbalance the letterhead, you |
| 3421 |
can do so, for example, as follows: |
| 3422 |
\begin{lstcode} |
| 3423 |
\setkomavar{firstfoot}{% |
| 3424 |
\parbox[t]{\textwidth}{\footnotesize |
| 3425 |
\begin{tabular}[t]{l@{}}% |
| 3426 |
\multicolumn{1}{@{}l@{}}{Partners:}\\ |
| 3427 |
Jim Smith\\ |
| 3428 |
Russ Mayer |
| 3429 |
\end{tabular}% |
| 3430 |
\hfill |
| 3431 |
\begin{tabular}[t]{l@{}}% |
| 3432 |
\multicolumn{1}{@{}l@{}}{Managing Director:}\\ |
| 3433 |
Lisa Mayer\\[1ex] |
| 3434 |
\multicolumn{1}{@{}l@{}}{Court Jurisdiction:}\\ |
| 3435 |
Great Plains |
| 3436 |
\end{tabular}% |
| 3437 |
\Ifkomavarempty{frombank}{}{% |
| 3438 |
\hfill |
| 3439 |
\begin{tabular}[t]{l@{}}% |
| 3440 |
\multicolumn{1}{@{}l@{}}{\usekomavar*{frombank}:}\\ |
| 3441 |
\usekomavar{frombank} |
| 3442 |
\end{tabular}% |
| 3443 |
}% |
| 3444 |
}% |
| 3445 |
} |
| 3446 |
\end{lstcode} |
| 3447 |
This example originally came from Torsten Kr\"uger. You should |
| 3448 |
consider placing a definition intended for multiple use in different |
| 3449 |
documents in a separate \File{lco} file\Index{lco file=\File{lco} file}. |
| 3450 |
\begin{lstcode} |
| 3451 |
\setkomavar{frombank}{Account No. 12345678\\ |
| 3452 |
Buffoon Bank\\ |
| 3453 |
Bank Code: 65-43-21} |
| 3454 |
\end{lstcode} |
| 3455 |
can then be used to set the bank details in the document. |
| 3456 |
% However depending on your settings, there may not be sufficient space |
| 3457 |
% for such a large footer, and it may therefore be placed too low on the |
| 3458 |
% page. In such a case, you can adjust its vertical position with the |
| 3459 |
% pseudo-length \PLength{firstfootvpos}\IndexPLength{firstfootvpos}. |
| 3460 |
\end{Example} |
| 3461 |
|
| 3462 |
The previous example uses a multi-line footer. With a compatibility setting |
| 3463 |
of version 2.9u (see \DescRef{\LabelBase.option.version} in |
| 3464 |
\autoref{sec:\LabelBase.compatibilityOptions}, |
| 3465 |
\DescPageRef{\LabelBase.option.version}) the space is generally insufficient. |
| 3466 |
In this case, you should reduce \PLength{firstfootvpos} (see |
| 3467 |
\DescPageRef{\LabelBase.plength.firstfootvpos}) appropriately.% |
| 3468 |
\EndIndexGroup |
| 3469 |
|
| 3470 |
\begin{Declaration} |
| 3471 |
\Variable{frombank} |
| 3472 |
\end{Declaration}% |
| 3473 |
\BeginIndex{}{letterhead page>footer}% |
| 3474 |
The \Variable{frombank} variable used in the previous example |
| 3475 |
occupies a special position. It is not currently used internally. However, you |
| 3476 |
can use it to put the bank information\Index{bank information} in the |
| 3477 |
extra sender information field or in the footer, as in the example (see |
| 3478 |
the variable \DescRef{\LabelBase.variable.location}, |
| 3479 |
\DescPageRef{\LabelBase.variable.location}).% |
| 3480 |
% |
| 3481 |
\EndIndexGroup |
| 3482 |
|
| 3483 |
|
| 3484 |
\begin{Declaration} |
| 3485 |
\PLength{firstfootvpos} |
| 3486 |
\end{Declaration} |
| 3487 |
This pseudo-length gives the distance from the top of the paper to the footer |
| 3488 |
of the letterhead page. It also ensures that the text area does not protrude |
| 3489 |
into the footer. To do so, the height of the text area on the first page will |
| 3490 |
be decreased, if necessary, using |
| 3491 |
\Macro{enlargethispage}\IndexCmd{enlargethispage}% |
| 3492 |
\important{\Macro{enlargethispage}}. The |
| 3493 |
\DescRef{\LabelBase.option.enlargefirstpage}% |
| 3494 |
\important{\DescRef{\LabelBase.option.enlargefirstpage}} option (see |
| 3495 |
\autoref{sec:\LabelBase.firstpage}, |
| 3496 |
\DescPageRef{\LabelBase.option.enlargefirstpage}) can also ensure that the |
| 3497 |
height of the text area is increased, if necessary. Thus, the distance between |
| 3498 |
text area and the letterhead page footer can be reduced to the value of the |
| 3499 |
\Length{footskip}\IndexLength{footskip}\important{\Length{footskip}} length. |
| 3500 |
|
| 3501 |
With\textnote{Attention!} the compatibility option |
| 3502 |
set\ChangedAt{v2.9t}{\Class{scrlttr2}} to versions up to |
| 3503 |
2.9t\IndexOption{version~=\PValue{2.9t}} (see |
| 3504 |
\DescRef{\LabelBase.option.version} in |
| 3505 |
\autoref{sec:\LabelBase.compatibilityOptions}, |
| 3506 |
\DescPageRef{\LabelBase.option.version}) the footer is set independently of the |
| 3507 |
type area in all predefined \File{lco} files\textnote{\File{lco} |
| 3508 |
file}\Index{lco file=\File{lco} file} (see \autoref{sec:\LabelBase.lcoFile}) |
| 3509 |
except for \Option{KOMAold} and \Option{NF}. Thus the |
| 3510 |
\DescRef{\LabelBase.option.enlargefirstpage}% |
| 3511 |
\important{\DescRef{\LabelBase.option.enlargefirstpage}} option has no effect. |
| 3512 |
From version 2.9u on, the footer is placed at the bottom edge of the paper. |
| 3513 |
Thus, the height of the letterhead page's type area may also depend on the |
| 3514 |
\DescRef{\LabelBase.option.enlargefirstpage} option. |
| 3515 |
|
| 3516 |
If the letter footer is deactivated with the |
| 3517 |
\OptionValueRef{scrlttr2}{firstfoot}{false}% |
| 3518 |
\important{\OptionValueRef{scrlttr2}{firstfoot}{false}}% |
| 3519 |
\IndexOption{firstfoot~=\PValue{false}}\ChangedAt{v2.97e}{\Class{scrlttr2}} |
| 3520 |
option (see \autoref{sec:\LabelBase.firstpage}, |
| 3521 |
\DescPageRef{\LabelBase.option.firstfoot}), the setting of |
| 3522 |
\PLength{firstfootvpos} is ignored, and instead |
| 3523 |
\Length{paperheight}\IndexLength{paperheight} is applied. There remains then a |
| 3524 |
minimum bottom margin of length \Length{footskip}\IndexLength{footskip}.% |
| 3525 |
\EndIndexGroup |
| 3526 |
|
| 3527 |
|
| 3528 |
\begin{Declaration} |
| 3529 |
\PLength{firstfoothpos} |
| 3530 |
\end{Declaration} |
| 3531 |
\ChangedAt{v3.05}{\Class{scrlttr2}}% |
| 3532 |
A\textnote{Attention!} positive value of the \PLength{firstfoothpos} |
| 3533 |
pseudo-length specifies the distance from the left edge of the paper to the |
| 3534 |
letterhead page footer. If the value is greater than or equal to the paper |
| 3535 |
width, \Length{paperwidth}\IndexLength{paperwidth}, the footer is centred |
| 3536 |
horizontally on the letterhead page. But if the value is less than or equal to |
| 3537 |
the negative width of the paper, the footer is placed flush with the left edge |
| 3538 |
of the typing area. |
| 3539 |
|
| 3540 |
The typical default for this value is \Length{maxdimen}\IndexLength{maxdimen}, |
| 3541 |
which is the maximum possible value for a length. This results in horizontal |
| 3542 |
centring.% |
| 3543 |
\EndIndexGroup |
| 3544 |
|
| 3545 |
|
| 3546 |
\begin{Declaration} |
| 3547 |
\PLength{firstfootwidth} |
| 3548 |
\end{Declaration} |
| 3549 |
This pseudo-length specifies the width of the footer of the first page of the |
| 3550 |
letter, that is the letterhead page. The value in the predefined \File{lco} |
| 3551 |
files\textnote{\File{lco} file}\Index{lco file=\File{lco} file} matches |
| 3552 |
\PLength{firstheadwidth}\important{\PLength{firstheadwidth}}% |
| 3553 |
\IndexPLength{firstheadwidth}.% |
| 3554 |
% |
| 3555 |
\EndIndexGroup |
| 3556 |
% |
| 3557 |
\EndIndexGroup |
| 3558 |
% |
| 3559 |
\EndIndexGroup |
| 3560 |
|
| 3561 |
\LoadCommonFile{parmarkup} % \section{Paragraph Markup} |
| 3562 |
|
| 3563 |
\LoadCommonFile{oddorevenpage} % \section{Detection of Odd and Even Pages} |
| 3564 |
|
| 3565 |
|
| 3566 |
\section{Headers and Footers with the Default Page Style} |
| 3567 |
\seclabel{pagestyle} |
| 3568 |
\BeginIndexGroup |
| 3569 |
\BeginIndex{}{page>style}% |
| 3570 |
\BeginIndex{}{page>header}% |
| 3571 |
\BeginIndex{}{page>footer}% |
| 3572 |
|
| 3573 |
One of the general properties of a document is its page style. In \LaTeX{} |
| 3574 |
this mostly consists of the contents of headers and footers. |
| 3575 |
As\textnote{Attention!} already mentioned in |
| 3576 |
\autoref{sec:\LabelBase.firstpage}, the header and footer of the letterhead |
| 3577 |
page are treated as elements of the letterhead page. Therefore they do not |
| 3578 |
depend on the settings of the page style. So this section describes the page |
| 3579 |
styles of the subsequent pages of a letter after the letterhead page. For |
| 3580 |
one-sided letters, this is the page style of the second sheet. For two-sided |
| 3581 |
letters, this is also the page style of all verso pages. |
| 3582 |
|
| 3583 |
|
| 3584 |
\begin{Declaration} |
| 3585 |
\Macro{letterpagestyle} |
| 3586 |
\end{Declaration} |
| 3587 |
The\ChangedAt{v3.19}{\Class{scrlttr2}\and \Package{scrletter}} default page |
| 3588 |
style for letters is specified by the contents of the \Macro{letterpagestyle} |
| 3589 |
command. By default\textnote{default}, |
| 3590 |
\Class{scrlttr2}\OnlyAt{\Class{scrlttr2}} leaves this command empty. This |
| 3591 |
means that the page style of letters is the same as in the rest of the |
| 3592 |
document. This is useful because \Class{scrlttr2} is intended for letter-only |
| 3593 |
documents, and it is easier to define the page style for all letters globally, |
| 3594 |
using \DescRef{\LabelBase.cmd.pagestyle} as usual. |
| 3595 |
|
| 3596 |
Since both the \DescRef{\LabelBase.pagestyle.plain} and the |
| 3597 |
\DescRef{\LabelBase.pagestyle.headings} page styles of other classes differs |
| 3598 |
from the page style necessary for letters, the |
| 3599 |
\Package{scrletter}\OnlyAt{\Package{scrletter}}\textnote{default} package |
| 3600 |
defines \Macro{letterpagestyle} with to be |
| 3601 |
\DescRef{\LabelBase.pagestyle.plain.letter}\IndexPagestyle{plain.letter}% |
| 3602 |
\important{\DescRef{\LabelBase.pagestyle.plain.letter}}. This causes all |
| 3603 |
letters to use the |
| 3604 |
\hyperref[desc:\LabelBase.pagestyle.plain.letter]{\PageStyle{plain}} style of |
| 3605 |
the \DescRef{\LabelBase.pagestyle.letter}\IndexPagestyle{letter} page style |
| 3606 |
pair, regardless of the page style of the rest of the document. See |
| 3607 |
\autoref{sec:scrlttr2-experts.pagestyleatscrletter} for more information about |
| 3608 |
the characteristics of the page style of the \Package{scrletter} package. |
| 3609 |
\begin{Example} |
| 3610 |
You are using the \Package{scrletter} package and want letters to use the |
| 3611 |
same page style that was set for the rest of the document with |
| 3612 |
\DescRef{\LabelBase.cmd.pagestyle}. To do this, put the command |
| 3613 |
\begin{lstcode} |
| 3614 |
\renewcommand*{\letterpagestyle}{} |
| 3615 |
\end{lstcode} |
| 3616 |
in your document preamble. Notice the star in \Macro{renewcommand*}. |
| 3617 |
\end{Example} |
| 3618 |
Of course, if you use \DescRef{\LabelBase.cmd.pagestyle} or |
| 3619 |
\DescRef{\LabelBase.cmd.thispagestyle} inside a letter, this will take |
| 3620 |
precedence over the page style set in \Macro{begin}\PParameter{letter} with |
| 3621 |
\Macro{letterpagestyle}.% |
| 3622 |
\EndIndexGroup |
| 3623 |
|
| 3624 |
|
| 3625 |
\begin{Declaration} |
| 3626 |
\OptionVName{headsepline}{simple switch}% |
| 3627 |
\OptionVName{footsepline}{simple switch} |
| 3628 |
\end{Declaration} |
| 3629 |
With these options \Class{scrlttr2}\OnlyAt{scrlttr2} can select whether to put |
| 3630 |
a separator rule\Index{line>separator}\Index{rule>separator} below the header |
| 3631 |
or above the footer, respectively, on subsequent pages. This option acccepts |
| 3632 |
the standard values for simple switches listed in |
| 3633 |
\autoref{tab:truefalseswitch}, \autopageref{tab:truefalseswitch}. |
| 3634 |
Activating\important{\OptionValue{headsepline}{true}} the \Option{headsepline} |
| 3635 |
option enables a rule below the header. |
| 3636 |
Activating\important{\OptionValue{footsepline}{true}} the \Option{footsepline} |
| 3637 |
option enables a rule above the footer. Deactivating the options disables the |
| 3638 |
corresponding rules. |
| 3639 |
|
| 3640 |
Of course, the \Option{headsepline} and \Option{footsepline} options have no |
| 3641 |
effect on the \DescRef{\LabelBase.pagestyle.empty}% |
| 3642 |
\important{\DescRef{\LabelBase.pagestyle.empty}} page style (see later in this |
| 3643 |
section). This page style explicitly does not use headers or footers. |
| 3644 |
|
| 3645 |
Typographically\important{\DescRef{\LabelBase.pagestyle.headings}\\ |
| 3646 |
\DescRef{\LabelBase.pagestyle.myheadings}\\ |
| 3647 |
\DescRef{\LabelBase.pagestyle.plain}} speaking, such a rule creates an |
| 3648 |
optical effect of making the header or footer appear to be closer to the text |
| 3649 |
area. This does not mean that the distance between the header or footer and |
| 3650 |
the text should be increased. Instead, they should be seen as part of the text |
| 3651 |
body\Index{text>body} when calculating the type area. To achieve this |
| 3652 |
\Class{scrlttr2} uses the \Option{headsepline} class option to automatically |
| 3653 |
pass the \DescRef{typearea.option.headinclude}% |
| 3654 |
\important{\DescRef{typearea.option.headinclude}} package option to the |
| 3655 |
\hyperref[cha:typearea]{\Package{typearea}} package. The same applies to |
| 3656 |
\DescRef{\LabelBase.option.footsepline} for |
| 3657 |
\DescRef{typearea.option.footinclude}% |
| 3658 |
\important{\DescRef{typearea.option.footinclude}}. |
| 3659 |
|
| 3660 |
The options themselves do not automatically recalculate the type area. To |
| 3661 |
recalculate the type area, see the \DescRef{typearea.option.DIV} option with |
| 3662 |
the \PValue{last} or \PValue{current} values (see |
| 3663 |
\DescPageRef{typearea.option.DIV.last}), or the |
| 3664 |
\DescRef{typearea.cmd.recalctypearea} command (see |
| 3665 |
\DescPageRef{typearea.cmd.recalctypearea}) in \autoref{cha:typearea}. |
| 3666 |
|
| 3667 |
The \hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}}% |
| 3668 |
\IndexPackage{scrlayer-scrpage}% |
| 3669 |
\important{\hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}}} |
| 3670 |
package (see \autoref{cha:scrlayer-scrpage}) provides further control over |
| 3671 |
header and footer rules and you can also combine it with \Class{scrlttr2}. The |
| 3672 |
\Package{scrletter} package automatically uses |
| 3673 |
\important{\hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}}} to |
| 3674 |
define the \DescRef{\LabelBase.pagestyle.letter} and |
| 3675 |
\DescRef{\LabelBase.pagestyle.plain.letter} page styles. |
| 3676 |
|
| 3677 |
The\OnlyAt{\Package{scrletter}} \DescRef{\LabelBase.pagestyle.letter} and |
| 3678 |
\DescRef{\LabelBase.pagestyle.plain.letter} page styles defined by |
| 3679 |
\Package{scrletter} follow the rules of |
| 3680 |
\hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}}. This particularly |
| 3681 |
applies to setting the header and footer rules of the \PageStyle{plain} page |
| 3682 |
style \DescRef{\LabelBase.pagestyle.plain.letter}. See in |
| 3683 |
\autoref{sec:scrlayer-scrpage.pagestyle.content}, |
| 3684 |
\DescPageRef{scrlayer-scrpage.option.headsepline} and |
| 3685 |
\DescPageRef{scrlayer-scrpage.option.plainheadsepline} the options |
| 3686 |
\DescRef{scrlayer-scrpage.option.headsepline} and |
| 3687 |
\DescRef{scrlayer-scrpage.option.plainheadsepline}. Also, settings like |
| 3688 |
\DescRef{scrlayer-scrpage.option.automark} are of some importance for the |
| 3689 |
\DescRef{\LabelBase.pagestyle.letter} page style.% |
| 3690 |
% |
| 3691 |
\EndIndexGroup |
| 3692 |
|
| 3693 |
|
| 3694 |
\begin{Declaration} |
| 3695 |
\OptionVName{pagenumber}{position} |
| 3696 |
\end{Declaration} |
| 3697 |
With this option you can select if and where a page number should be placed on |
| 3698 |
subsequent pages. In \Class{scrlttr2}\OnlyAt{\Class{scrlttr2}} this option |
| 3699 |
affects the page styles\important{\DescRef{\LabelBase.pagestyle.headings}\\ |
| 3700 |
\DescRef{\LabelBase.pagestyle.myheadings}\\ |
| 3701 |
\DescRef{\LabelBase.pagestyle.plain}} |
| 3702 |
\DescRef{\LabelBase.pagestyle.headings}, |
| 3703 |
\DescRef{\LabelBase.pagestyle.myheadings} and |
| 3704 |
\DescRef{\LabelBase.pagestyle.plain}; in |
| 3705 |
\Package{scrletter}\OnlyAt{\Package{scrletter}}, it affects the |
| 3706 |
\DescRef{\LabelBase.pagestyle.letter} and |
| 3707 |
\DescRef{\LabelBase.pagestyle.plain.letter} page styles. It also affects the |
| 3708 |
default page styles of the |
| 3709 |
\hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}}% |
| 3710 |
\important{\hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}}}% |
| 3711 |
\IndexPackage{scrlayer-scrpage} package, as long as it is set before that |
| 3712 |
package is loaded (see \autoref{cha:scrlayer-scrpage}). It accepts values that |
| 3713 |
influence only the horizontal position, only the vertical position, or both |
| 3714 |
positions simultaneously. Available values are listed in |
| 3715 |
\autoref{tab:\LabelBase.pagenumber}. The default is \PValue{botcenter}. |
| 3716 |
|
| 3717 |
\begin{table} |
| 3718 |
\caption[{Available values for the \Option{pagenumber} option with |
| 3719 |
\Class{scrlttr2}}]{Available values for the \Option{pagenumber} option to |
| 3720 |
position the page number in the \PageStyle{headings}, |
| 3721 |
\PageStyle{myheadings}, and \PValue{plain} page styles with |
| 3722 |
\Class{scrlttr2}} |
| 3723 |
\label{tab:\LabelBase.pagenumber} |
| 3724 |
\begin{desctabular} |
| 3725 |
\entry{\PValue{bot}, \PValue{foot}}{% |
| 3726 |
page number in footer, horizontal position unchanged}% |
| 3727 |
\entry{\PValue{botcenter}, \PValue{botcentered}, \PValue{botmittle}, |
| 3728 |
\PValue{footcenter}, \PValue{footcentered}, \PValue{footmiddle}}{% |
| 3729 |
page number in footer, centred}% |
| 3730 |
\entry{\PValue{botleft}, \PValue{footleft}}{% |
| 3731 |
page number in footer, left-justified}% |
| 3732 |
\entry{\PValue{botright}, \PValue{footright}}{% |
| 3733 |
page number in footer, right-justified}% |
| 3734 |
\entry{\PValue{center}, \PValue{centered}, \PValue{middle}}{% |
| 3735 |
page number centred horizontally, vertical position unchanged}% |
| 3736 |
\entry{\PValue{false}, \PValue{no}, \PValue{off}}{% |
| 3737 |
no page number}% |
| 3738 |
\entry{\PValue{head}, \PValue{top}}{% |
| 3739 |
page number in header, horizontal position unchanged}% |
| 3740 |
\entry{\PValue{headcenter}, \PValue{headcentered}, \PValue{headmiddle}, |
| 3741 |
\PValue{topcenter}, \PValue{topcentered}, \PValue{topmiddle}}{% |
| 3742 |
page number in header, centred}% |
| 3743 |
\entry{\PValue{headleft}, \PValue{topleft}}{% |
| 3744 |
page number in header, left-justified}% |
| 3745 |
\entry{\PValue{headright}, \PValue{topright}}{% |
| 3746 |
page number in header, right-justified}% |
| 3747 |
\entry{\PValue{left}}{% |
| 3748 |
page number left, vertical position unchanged}% |
| 3749 |
\entry{\PValue{right}}{% |
| 3750 |
page number right, vertical position unchanged}% |
| 3751 |
\end{desctabular} |
| 3752 |
\end{table} |
| 3753 |
% |
| 3754 |
\EndIndexGroup |
| 3755 |
|
| 3756 |
|
| 3757 |
\begin{Declaration} |
| 3758 |
\Macro{pagestyle}\Parameter{page style}% |
| 3759 |
\Macro{thispagestyle}\Parameter{local page style} |
| 3760 |
\end{Declaration}% |
| 3761 |
\BeginIndex{Pagestyle}{empty}% |
| 3762 |
\BeginIndex{Pagestyle}{plain}% |
| 3763 |
\BeginIndex{Pagestyle}{headings}% |
| 3764 |
\BeginIndex{Pagestyle}{myheadings}% |
| 3765 |
Letters written with \Class{scrlttr2}\OnlyAt{\Class{scrlttr2}} have four |
| 3766 |
different page styles available. In contrast, |
| 3767 |
\Package{scrletter}\OnlyAt{\Package{scrletter}} defines only two of its own |
| 3768 |
page styles. |
| 3769 |
\begin{description}\setkomafont{descriptionlabel}{} |
| 3770 |
\item[{\PageStyle{empty}}] |
| 3771 |
\LabelPageStyle{empty} is the page style where the headers and footers of |
| 3772 |
subsequent pages are completely empty. This page style is also automatically |
| 3773 |
used for the first page of the letter because the header and footer of this |
| 3774 |
page are set by other means, using |
| 3775 |
\DescRef{\LabelBase.cmd.opening}\IndexCmd{opening} (see |
| 3776 |
\autoref{sec:\LabelBase.firstpage}, \DescPageRef{\LabelBase.cmd.opening}). |
| 3777 |
\item[{\PageStyle{headings}}] |
| 3778 |
\LabelPageStyle{headings} is, for \Class{scrlttr2}\OnlyAt{\Class{scrlttr2}}, |
| 3779 |
the page style for automatic running heads on subsequent pages. The sender's |
| 3780 |
name from the \DescRef{\LabelBase.variable.fromname}\IndexVariable{fromname} |
| 3781 |
variable and the subject from the |
| 3782 |
\DescRef{\LabelBase.variable.subject}\IndexVariable{subject} variable are |
| 3783 |
used to set the marks (see \autoref{sec:\LabelBase.firstpage}, |
| 3784 |
\DescPageRef{\LabelBase.variable.fromname} and |
| 3785 |
\DescPageRef{\LabelBase.variable.subject}). Where exactly these marks and |
| 3786 |
page numbers are placed depends on the |
| 3787 |
\DescRef{\LabelBase.option.pagenumber} described above and the |
| 3788 |
\PName{content} of the |
| 3789 |
\DescRef{\LabelBase.variable.nexthead}\IndexVariable{nexthead} and |
| 3790 |
\DescRef{\LabelBase.variable.nextfoot}\IndexVariable{nextfoot} variables. An |
| 3791 |
author can also change these marks manually after the |
| 3792 |
\DescRef{\LabelBase.cmd.opening} command. As usual, the |
| 3793 |
\DescRef{\LabelBase.cmd.markboth} and \DescRef{\LabelBase.cmd.markright} |
| 3794 |
commands are available, as is \DescRef{scrlayer-scrpage.cmd.markleft} if you |
| 3795 |
use \hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}}% |
| 3796 |
\IndexPackage{scrlayer-scrpage}% |
| 3797 |
\important{\hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}}} |
| 3798 |
(see \autoref{sec:scrlayer-scrpage.pagestyle.content}, |
| 3799 |
\DescPageRef{scrlayer-scrpage.cmd.automark}). |
| 3800 |
|
| 3801 |
Since \Package{scrletter}\OnlyAt{scrletter} uses |
| 3802 |
\hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}} internally, any |
| 3803 |
page style \DescRef{maincls.pagestyle.headings} provided by the class are |
| 3804 |
redefined as an alias of \DescRef{scrlayer-scrpage.pagestyle.scrheadings}. |
| 3805 |
You can find more about this page style in \autoref{cha:scrlayer-scrpage} on |
| 3806 |
\DescPageRef{scrlayer-scrpage.pagestyle.scrheadings}. |
| 3807 |
\item[{\PageStyle{letter}}] |
| 3808 |
\LabelPageStyle{letter}% |
| 3809 |
Since the \PageStyle{headings} page style is generally already in use by |
| 3810 |
the classes, the \Package{scrletter}\OnlyAt{scrletter} package instead |
| 3811 |
defines the \PageStyle{letter} page style. This is accomplished with the |
| 3812 |
help of \hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}} in |
| 3813 |
\autoref{cha:scrlayer-scrpage}, \autopageref{cha:scrlayer-scrpage}. With the |
| 3814 |
\OptionValueRef{scrlayer-scrpage}{automark}{true}% |
| 3815 |
\important{\OptionValueRef{scrlayer-scrpage}{automark}{true}}% |
| 3816 |
\IndexOption{automark} setting enabled, \PageStyle{letter} then assumes the |
| 3817 |
role played by \PageStyle{headings} in \Class{scrlttr2}. With |
| 3818 |
\OptionValueRef{scrlayer-scrpage}{automark}{false}% |
| 3819 |
\important{\OptionValueRef{scrlayer-scrpage}{automark}{false}}% |
| 3820 |
\IndexOption{automark} set, \PageStyle{letter} assumes the role of |
| 3821 |
\PageStyle{myheadings}. |
| 3822 |
|
| 3823 |
When\textnote{Attention!} you use |
| 3824 |
\hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}} with |
| 3825 |
\Package{scrletter}, you cannot use the obsolete |
| 3826 |
\Package{scrpage2}\IndexPackage{scrpage2} package or the |
| 3827 |
\Package{fancyhdr}\IndexPackage{fancyhdr} package, which is incompatible |
| 3828 |
with \KOMAScript{}. |
| 3829 |
\item[{\PageStyle{myheadings}}] |
| 3830 |
\LabelPageStyle{myheadings}% |
| 3831 |
in \Class{scrlttr2}\OnlyAt{\Class{scrlttr2}} is the page style for manual |
| 3832 |
running heads on subsequent pages. Unlike \PValue{headings}, you must set |
| 3833 |
the marks yourself with the |
| 3834 |
\DescRef{\LabelBase.cmd.markboth}\IndexCmd{markboth} and |
| 3835 |
\DescRef{\LabelBase.cmd.markright}\IndexCmd{markright} commands. When you |
| 3836 |
use \hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}}, |
| 3837 |
\DescRef{scrlayer-scrpage.cmd.markleft}\IndexCmd{markleft} is also |
| 3838 |
available. |
| 3839 |
|
| 3840 |
With the \Package{scrletter}\OnlyAt{\Package{scrletter}} package, the |
| 3841 |
\PageStyle{letter} page style also assumes the role of |
| 3842 |
\PageStyle{myheadings}. |
| 3843 |
\item[{\PageStyle{plain}}] |
| 3844 |
\LabelPageStyle{plain}% |
| 3845 |
is the default page style for \Class{scrlttr2}\OnlyAt{\Class{scrlttr2}}, |
| 3846 |
which does not use any headers on subsequent pages and only outputs |
| 3847 |
a single page number. Where this is placed depends on the |
| 3848 |
\DescRef{\LabelBase.option.pagenumber} option explained above. |
| 3849 |
|
| 3850 |
Since \Package{scrletter}\OnlyAt{scrletter} uses |
| 3851 |
\hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}} internally, the |
| 3852 |
\DescRef{maincls.pagestyle.plain} page style is redefined as an alias of |
| 3853 |
\DescRef{scrlayer-scrpage.pagestyle.plain.scrheadings}. You can find more |
| 3854 |
about this page style in \autoref{cha:scrlayer-scrpage} on |
| 3855 |
\DescPageRef{scrlayer-scrpage.pagestyle.scrheadings}. |
| 3856 |
\item[{\PageStyle{plain.letter}}] |
| 3857 |
\LabelPageStyle{plain.letter}% |
| 3858 |
Since the \PageStyle{plain} page style is generally already in use by the |
| 3859 |
classes, the \Package{scrletter}\OnlyAt{scrletter} defines a |
| 3860 |
\PageStyle{plain.letter} page style instead. This is accomplished with the |
| 3861 |
help of \hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}}. |
| 3862 |
When\textnote{Attention!} you use |
| 3863 |
\hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}} with |
| 3864 |
\Package{scrletter}, you cannot use the obsolete |
| 3865 |
\Package{scrpage2}\IndexPackage{scrpage2} package or the |
| 3866 |
\Package{fancyhdr}\IndexPackage{fancyhdr} package, which is incompatible |
| 3867 |
with \KOMAScript{}. |
| 3868 |
\end{description} |
| 3869 |
|
| 3870 |
The appearance of the page styles is also influenced by |
| 3871 |
the\important{\DescRef{\LabelBase.option.headsepline}\\ |
| 3872 |
\DescRef{\LabelBase.option.footsepline}} |
| 3873 |
\DescRef{\LabelBase.option.headsepline}\IndexOption{headsepline} and |
| 3874 |
\DescRef{\LabelBase.option.footsepline}\IndexOption{footsepline} options |
| 3875 |
described above. The page style beginning with the current page is changed |
| 3876 |
using \Macro{pagestyle}. In contrast, \Macro{thispagestyle} changes only the |
| 3877 |
page style of the current page. The\textnote{Attention!} letter class itself |
| 3878 |
uses \Macro{thispagestyle}\PParameter{empty} within |
| 3879 |
\DescRef{\LabelBase.cmd.opening}\IndexCmd{opening} for the first page of the |
| 3880 |
letter. |
| 3881 |
|
| 3882 |
\BeginIndexGroup% |
| 3883 |
\BeginIndex[indexother]{}{font>style}% |
| 3884 |
\BeginIndex{FontElement}{pageheadfoot}\LabelFontElement{pageheadfoot}% |
| 3885 |
\BeginIndex{FontElement}{pagehead}\LabelFontElement{pagehead}% |
| 3886 |
\BeginIndex{FontElement}{pagefoot}\LabelFontElement{pagefoot}% |
| 3887 |
\BeginIndex{FontElement}{pagenumber}\LabelFontElement{pagenumber}% |
| 3888 |
To changing the font style of headers or footers, you should use the user |
| 3889 |
interface described in \autoref{sec:maincls.textmarkup}. The header and footer |
| 3890 |
use the same element |
| 3891 |
\FontElement{pageheadfoot}\important{\FontElement{pageheadfoot}}. |
| 3892 |
% TODO: Fix new translation |
| 3893 |
With package \hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}}% |
| 3894 |
\IndexPackage{scrlayer-scrpage} and therefore with \Package{scrletter} the |
| 3895 |
\FontElement{pagehead}\important{\FontElement{pagehead}} element is |
| 3896 |
additionally responsible for the header. In \Class{scrlttr2} and without |
| 3897 |
package \Package{scrlayer-scrpage} the element is an alias of |
| 3898 |
\FontElement{pageheadfoot} only. |
| 3899 |
% :ODOT |
| 3900 |
The\ChangedAt{v3.00}{\Class{scrlttr2}} |
| 3901 |
\FontElement{pagefoot}\important{\FontElement{pagefoot}} element additionally |
| 3902 |
controls the formatting of the footer. This element is applied after |
| 3903 |
\FontElement{pageheadfoot} in the |
| 3904 |
\DescRef{\LabelBase.variable.nextfoot}\IndexVariable{nextfoot} variable or |
| 3905 |
when \Package{scrlayer-scrpage}\IndexPackage{scrlayer-scrpage} page styles are |
| 3906 |
used (see \autoref{cha:scrlayer-scrpage}, |
| 3907 |
\DescPageRef{scrlayer-scrpage.fontelement.pagefoot}). The element for the page |
| 3908 |
number within the header or footer is called |
| 3909 |
\FontElement{pagenumber}\important{\FontElement{pagenumber}}. The default |
| 3910 |
settings are listed in \autoref{tab:maincls.defaultFontsHeadFoot}, |
| 3911 |
\autopageref{tab:maincls.defaultFontsHeadFoot}. Please also note the example |
| 3912 |
from \autoref{sec:maincls.pagestyle}, \PageRefxmpl{maincls.cmd.pagestyle}. |
| 3913 |
% |
| 3914 |
\EndIndexGroup |
| 3915 |
% |
| 3916 |
\EndIndexGroup |
| 3917 |
|
| 3918 |
|
| 3919 |
\begin{Declaration} |
| 3920 |
\Macro{markboth}\Parameter{left mark}\Parameter{right mark}% |
| 3921 |
\Macro{markright}\Parameter{right mark} |
| 3922 |
\end{Declaration} |
| 3923 |
In most cases, \KOMAScript{}'s options and variables should be quite adequate |
| 3924 |
for creating headers\Index{header} and footers\Index{footer} for the |
| 3925 |
subsequent pages, all the more so because, in addition to \Macro{markboth} and |
| 3926 |
\Macro{markright}, you can change the sender information that \Class{scrlttr2} |
| 3927 |
or \Package{scrletter} puts in the header. You can, in particular, use the |
| 3928 |
\Macro{markboth}\IndexCmd{markboth} and \Macro{markright}\IndexCmd{markright} |
| 3929 |
commands with the \PageStyle{myheadings}\IndexPagestyle{myheadings}% |
| 3930 |
\important{\PageStyle{myheadings}} pagestyle. Of course, if you use the |
| 3931 |
\hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}}% |
| 3932 |
\IndexPackage{scrlayer-scrpage}% |
| 3933 |
\important{\hyperref[cha:scrlayer-scrpage]{\Package{scrlayer-scrpage}}} |
| 3934 |
package, this is also valid for the |
| 3935 |
\PValue{scrheadings}\IndexPagestyle{scrheadings} page style. In that case, the |
| 3936 |
\DescRef{scrlayer-scrpage.cmd.markleft}\IndexCmd{markleft} command is also |
| 3937 |
available. |
| 3938 |
|
| 3939 |
\begin{Declaration} |
| 3940 |
\Variable{nexthead}% |
| 3941 |
\Variable{nextfoot}% |
| 3942 |
\end{Declaration} |
| 3943 |
At times, however, you may want to the header or the footer of subsequent |
| 3944 |
pages to more closely resemble the letterhead page. In these cases, you must |
| 3945 |
dispense with the predefined options that can be selected with the |
| 3946 |
\DescRef{\LabelBase.option.pagenumber}\IndexOption{pagenumber} option |
| 3947 |
described above. Instead, you can customise the header and footer of |
| 3948 |
subsequent pages using the |
| 3949 |
\DescRef{\LabelBase.pagestyle.headings}\IndexPagestyle{headings}% |
| 3950 |
\important{\DescRef{\LabelBase.pagestyle.headings}, |
| 3951 |
\DescRef{\LabelBase.pagestyle.myheadings}} or |
| 3952 |
\DescRef{\LabelBase.pagestyle.myheadings}\IndexPagestyle{myheadings} page |
| 3953 |
styles with \Class{scrlttr2}\OnlyAt{\Class{scrlttr2}}, and the |
| 3954 |
\DescRef{\LabelBase.pagestyle.letter}% |
| 3955 |
\IndexPagestyle{letter}\important{\DescRef{\LabelBase.pagestyle.letter}} page |
| 3956 |
style with \Package{scrletter}\OnlyAt{\Package{scrletter}}. To do so, you |
| 3957 |
create the structure you want in the \PName{content} of |
| 3958 |
the\ChangedAt{v3.08}{\Class{scrlttr2}} \Variable{nexthead} or |
| 3959 |
\Variable{nextfoot} variables. |
| 3960 |
|
| 3961 |
Since the page styles of \Class{scrlttr2}\important{\Class{scrlttr2}} are not |
| 3962 |
designed for multi-line heads and feet the output of both variables is done in |
| 3963 |
a horizontal box. With this initially neither paragraphs nor line breaks or |
| 3964 |
similar are possible. But within the \PName{content} of \Variable{nexthead} |
| 3965 |
and \Variable{nextfoot} you can, for example, use the \Macro{parbox} command |
| 3966 |
to place several boxes next to or beneath each other (see |
| 3967 |
\cite{latex:usrguide}). More advanced users should be able to create their own |
| 3968 |
headers and footers. Of course, you can and should also make use of additional |
| 3969 |
variables using \DescRef{\LabelBase.cmd.usekomavar}. |
| 3970 |
|
| 3971 |
An alternative for multi-line headers and footers it to use the |
| 3972 |
\Package{scrlayer-scrpage}\IndexPackage{scrlayer-scrpage}% |
| 3973 |
\important{\Package{scrlayer-scrpage}} package described in |
| 3974 |
\autoref{cha:scrlayer-scrpage}. The |
| 3975 |
\Package{scrletter}\important{\Package{scrletter}} package uses for definition |
| 3976 |
of page style \DescRef{\LabelBase.pagestyle.letter}% |
| 3977 |
\IndexPagestyle{letter}\important{\DescRef{\LabelBase.pagestyle.letter}} |
| 3978 |
already \Package{scrlayer-scrpage} anyway and is therefore not affected by the |
| 3979 |
above restriction. |
| 3980 |
|
| 3981 |
\KOMAScript{} does not use the \PName{description} for either variable.% |
| 3982 |
% |
| 3983 |
%Only\textnote{Attention!} for compatibility reason the deprecated commands |
| 3984 |
%\Macro{nexthead}\IndexCmd[indexmain]{nexthead} and |
| 3985 |
%\Macro{nextfoot}\IndexCmd[indexmain]{nextfoot} of former \Class{scrlttr2} |
| 3986 |
%releases before 3.08 are also implemented. Nevertheless, you should not use |
| 3987 |
%those.% |
| 3988 |
% |
| 3989 |
\EndIndexGroup% |
| 3990 |
\EndIndexGroup% |
| 3991 |
\EndIndexGroup |
| 3992 |
|
| 3993 |
|
| 3994 |
\LoadCommonFile{interleafpage}% \section{Interleaf Pages} |
| 3995 |
|
| 3996 |
\LoadCommonFile{footnotes}% \section{Footnotes} |
| 3997 |
|
| 3998 |
\LoadCommonFile{lists}% \section{Lists} |
| 3999 |
|
| 4000 |
|
| 4001 |
\section{Mathematics} |
| 4002 |
\seclabel{math}% |
| 4003 |
\BeginIndexGroup |
| 4004 |
\BeginIndex{}{equations}% |
| 4005 |
\BeginIndex{}{formulas}% |
| 4006 |
\BeginIndex{}{mathematics}% |
| 4007 |
|
| 4008 |
The \KOMAScript{} classes do not provide their own maths environments. |
| 4009 |
Instead, \KOMAScript{} relies completely on the maths features of the \LaTeX{} |
| 4010 |
kernel. However\textnote{Attention!}, since numbered equations and formulas |
| 4011 |
are very unusual in letters, \KOMAScript{} does not actively support them. |
| 4012 |
Therefore, the \DescRef{maincls.option.leqno} and |
| 4013 |
\DescRef{maincls.option.fleqn} options for \Class{scrbook}, \Class{scrreprt}, |
| 4014 |
and \Class{scrartcl}, documented in \autoref{sec:maincls.math}, are not |
| 4015 |
available with \Class{scrlttr2}. |
| 4016 |
|
| 4017 |
You will not find a description here of the maths environments of the \LaTeX{} |
| 4018 |
kernel, that is \Environment{displaymath}\IndexEnv{displaymath}, |
| 4019 |
\Environment{equation}\IndexEnv{equation}, and |
| 4020 |
\Environment{eqnarray}\IndexEnv{eqnarray}. If you want to use them, consult an |
| 4021 |
introduction to \LaTeX{} like \cite{lshort}. But\textnote{Hint!} if you want |
| 4022 |
more than very simple mathematics, you should use the \Package{amsmath} |
| 4023 |
package (see \cite{package:amsmath}).% |
| 4024 |
% |
| 4025 |
\EndIndexGroup |
| 4026 |
|
| 4027 |
|
| 4028 |
\section{Floating Environments for Tables and Figures} |
| 4029 |
\seclabel{floats} |
| 4030 |
|
| 4031 |
Floating environments for tables or figures are very unusual in letters. |
| 4032 |
Therefore\textnote{Attention!} \Class{scrlttr2} does not provide them. If you |
| 4033 |
still believe you need them, this often indicates a misuse of the letter |
| 4034 |
class. In such cases, it is advisable to combine one of the \KOMAScript{} |
| 4035 |
classes from \autoref{cha:maincls} with the |
| 4036 |
\Package{scrletter}\important{\Package{scrletter}} package instead. In this |
| 4037 |
case you, the floating environments documented for the class can also be used |
| 4038 |
in letters. You could also define your own floating environments with help of |
| 4039 |
\Package{tocbasic}\important{\Package{tocbasic}} (see \autoref{cha:tocbasic}). |
| 4040 |
|
| 4041 |
\LoadCommonFile{marginpar} % \section{Margin Notes} |
| 4042 |
|
| 4043 |
|
| 4044 |
\section{Letter Class Option Files} |
| 4045 |
\seclabel{lcoFile}% |
| 4046 |
\BeginIndexGroup |
| 4047 |
\BeginIndex{}{lco file=\File{lco} file}% |
| 4048 |
\BeginIndex{}{letter class option}% |
| 4049 |
|
| 4050 |
Normally, you would not redefine selections like the sender's information |
| 4051 |
every time you write a letter. Instead, you would reuse a whole set of |
| 4052 |
parameters for certain occasions. The same applies to the letterhead |
| 4053 |
and footer used on the first page. Therefore it makes sense to save these |
| 4054 |
settings in a separate file. For this purpose, \KOMAScript{} offers |
| 4055 |
\File{lco} files. The \File{lco} suffix is an abbreviation for |
| 4056 |
\emph{\emph{l}etter \emph{c}lass \emph{o}ption}. |
| 4057 |
|
| 4058 |
In an \File{lco} file, you can use all commands available to the document at |
| 4059 |
the time the \File{lco} file is loaded. You can also use internal commands |
| 4060 |
available to package writers. For \Class{scrlttr2} and \Package{scrletter}, |
| 4061 |
these are, in particular, the commands |
| 4062 |
\DescRef{\LabelBase.cmd.newplength}\IndexCmd{newplength}, |
| 4063 |
\DescRef{\LabelBase.cmd.setplength}\IndexCmd{setplength}, and |
| 4064 |
\DescRef{\LabelBase.cmd.addtoplength}\IndexCmd{addtoplength} (see |
| 4065 |
\autoref{sec:\LabelBase.pseudoLength}). |
| 4066 |
|
| 4067 |
\KOMAScript{} comes provided with some \File{lco} files. The \File{DIN.lco}, |
| 4068 |
\File{DINmtext.lco}, |
| 4069 |
\File{DIN5008A.lco}\ChangedAt{v3.26}{\File{DIN5008A.lco}}, |
| 4070 |
\File{DIN5008B.lco}\ChangedAt{v3.26}{\File{DIN5008B.clo}}, \File{SNleft.lco}, |
| 4071 |
\File{SN.lco}, \File{UScommercial9}, \File{UScommercial9DW}, and |
| 4072 |
\File{NF.lco}\ChangedAt{v3.04}{\Class{scrlttr2}} files serve to adapt |
| 4073 |
\Class{scrlttr2} and \Package{scrletter} to different standards. They are well |
| 4074 |
suited as templates for your own parameter sets as you become a \KOMAScript{} |
| 4075 |
expert. The \File{KOMAold.lco} file, on the other hand, serves to improve |
| 4076 |
compatibility with the old letter class \Class{scrlettr}. This class was |
| 4077 |
removed from \KOMAScript{} over fifteen years ago. It is therefore not |
| 4078 |
discussed in any detail. Since this file also contains internal commands that |
| 4079 |
are not released for package writers, you should not use this as a template |
| 4080 |
for your own \File{lco} files. You can find a list of predefined \File{lco} |
| 4081 |
files in \autoref{tab:lcoFiles}, \autopageref{tab:lcoFiles}. |
| 4082 |
|
| 4083 |
If you have defined a parameter set for a letter standard that is not yet |
| 4084 |
supported by \KOMAScript{}, you are explicitly requested to send this |
| 4085 |
parameter set to the \KOMAScript{} support address. Please also provide |
| 4086 |
permission for distribution under the \KOMAScript{} license (see the |
| 4087 |
\File{lppl.txt} file). If you have the necessary measurements for an |
| 4088 |
unsupported letter standard but are unable to write a corresponding \File{lco} |
| 4089 |
file yourself, you can also contact the \KOMAScript{} author, Markus Kohm, |
| 4090 |
directly. you can find further examples of \File{lco} files, some very |
| 4091 |
complex, at \cite{homepage} or in \cite{DANTE:TK0203:MJK}. Both sites are |
| 4092 |
mainly in German. |
| 4093 |
|
| 4094 |
|
| 4095 |
\begin{Declaration} |
| 4096 |
\Macro{LoadLetterOption}\Parameter{name}% |
| 4097 |
\Macro{LoadLetterOptions}\Parameter{list of names} |
| 4098 |
\end{Declaration} |
| 4099 |
With \Class{scrlttr2}\OnlyAt{\Class{scrlttr2}} you can load \File{lco} files |
| 4100 |
with the \Macro{documentclass} command. To do so, give the name of the |
| 4101 |
\File{lco} file without the extension as an option\Index{option}. The |
| 4102 |
\File{lco} file is then loaded directly after the class. The |
| 4103 |
\Package{scrletter}\textnote{Attention!} package does not offer this option. |
| 4104 |
To load \File{lco} files, you must use \Macro{LoadLetterOption} or |
| 4105 |
\Macro{LoadLetterOptions}\ChangedAt{v3.14}{\Class{scrlttr2}}. |
| 4106 |
This\textnote{Recommendation!} is also recommended for \Class{scrlttr2}. |
| 4107 |
|
| 4108 |
You can also use \Macro{LoadLetterOption} and \Macro{LoadLetterOptions} after |
| 4109 |
\Macro{begin}\PParameter{document}, or even from within another \File{lco} |
| 4110 |
file. Both commands take the \PName{name} of the \File{lco} file without the |
| 4111 |
extension. While the argument of \Macro{LoadLetterOption} should be exactly |
| 4112 |
one \File{lco} file, \Macro{LoadLetterOptions} accepts a comma-separated |
| 4113 |
\PName{list of names}. The corresponding \File{lco} files with those names are |
| 4114 |
loaded in the order given by the list. |
| 4115 |
\begin{Example} |
| 4116 |
Joe Public also writes a document containing several letters. For most of |
| 4117 |
them, the default format, which follows the format of the German Institute |
| 4118 |
for Standardisation, or \emph{Deutsches Institut f\"{u}r Normung} (DIN), is |
| 4119 |
sufficient. So he starts with: |
| 4120 |
\begin{lstcode} |
| 4121 |
\documentclass{scrlttr2} |
| 4122 |
\end{lstcode} |
| 4123 |
However, he wants to send one letter in a C6/5 envelope, and so he |
| 4124 |
uses the \File{DINmtext} variant, in which the |
| 4125 |
address field appears higher on the page, so that more text |
| 4126 |
fits on the first page. The fold marks are adjusted so that the |
| 4127 |
address field still fits the address window in a C6/5 envelope. |
| 4128 |
He achieves this as follows: |
| 4129 |
\begin{lstcode} |
| 4130 |
\begin{letter}{% |
| 4131 |
Joanna Public\\ |
| 4132 |
1 Hillside\\ |
| 4133 |
SAMPLESTEAD\\ |
| 4134 |
WX12 3YZ} |
| 4135 |
\LoadLetterOption{DINmtext} |
| 4136 |
\opening{Hello,} |
| 4137 |
\end{lstcode} |
| 4138 |
Since construction of the first page only really begins with the |
| 4139 |
\DescRef{\LabelBase.cmd.opening}\IndexCmd{opening} command, you only need to |
| 4140 |
load the \File{lco} file before this point. In particular, you do not need |
| 4141 |
to load it before \Macro{begin}\PParameter{letter}. That way the changes |
| 4142 |
made by loading the \File{lco} file are local to the corresponding letter. |
| 4143 |
\end{Example} |
| 4144 |
|
| 4145 |
If\ChangedAt{v2.97}{\Class{scrlttr2}} an \File{lco} file is loaded via |
| 4146 |
\Macro{documentclass}, then it must not have the same name as an option. |
| 4147 |
|
| 4148 |
\begin{Example} |
| 4149 |
Since Mr Public often writes letters with the same options and parameters, |
| 4150 |
he finds it quite annoying to copy this information to each new letter. To |
| 4151 |
simplify the effort of writing a new letter, he therefore creates an |
| 4152 |
\File{lco} file:% |
| 4153 |
\lstinputcode[xleftmargin=1em]{me.lco}% |
| 4154 |
With this, the size of his letter from the previous example shrinks |
| 4155 |
considerably: \lstinputcode[xleftmargin=1em]{letter-example-23-en.tex}% |
| 4156 |
Nevertheless, the result does not change, as shown in |
| 4157 |
\autoref{fig:\LabelBase.letter-23}. |
| 4158 |
\begin{figure} |
| 4159 |
\setcapindent{0pt}% |
| 4160 |
\begin{captionbeside}[{Example: letter with extended sender, logo, |
| 4161 |
recipient, extra sender information, place, date, subject, |
| 4162 |
opening, text, closing, modified signature, postscript, distribution |
| 4163 |
list, enclosure, and hole-punch mark using an \File{lco} file}] |
| 4164 |
{result of a short letter with extended sender, logo, recipient, |
| 4165 |
extra sender information, place, date, subject opening, text, |
| 4166 |
closing, modified signature, postscript, distribution list, enclosure |
| 4167 |
and hole-punch mark using an \File{lco} file}[l] |
| 4168 |
\frame{\includegraphics[width=.4\textwidth]{letter-example-23-en}} |
| 4169 |
\end{captionbeside} |
| 4170 |
\label{fig:\LabelBase.letter-23} |
| 4171 |
\end{figure} |
| 4172 |
\end{Example} |
| 4173 |
|
| 4174 |
Note\textnote{Attention!} that immediately after loading the document class, |
| 4175 |
normally neither a package for the input encoding nor a language package has |
| 4176 |
been loaded. Because of this, you should use \TeX's 7-bit encoding for all |
| 4177 |
non-ASCII characters. For example, use ``\Macro{ss}'' to produce a German |
| 4178 |
``\ss''. |
| 4179 |
|
| 4180 |
In \autoref{tab:lcoFiles}, \autopageref{tab:lcoFiles} you can find a list of |
| 4181 |
all predefined \File{lco} files. If\textnote{Attention!} you use a printer |
| 4182 |
that has large unprintable areas on the left or right side, you might have |
| 4183 |
problems with the \Option{SN}\IndexOption{SN} option. Since the Swiss standard |
| 4184 |
SN~101\,130 stipulates that the address field should be placed 8\Unit{mm} from |
| 4185 |
the right edge of the paper, the headline and the sender attributes are also |
| 4186 |
placed at a correspondingly small distance from the paper edge. This also |
| 4187 |
applies to the reference line when using the |
| 4188 |
\DescRef{\LabelBase.option.refline}\PValue{=wide} option (see |
| 4189 |
\autoref{sec:\LabelBase.firstpage}, \DescPageRef{\LabelBase.option.refline}). |
| 4190 |
If\textnote{Hint!} you have this kind of problem, create your own \File{lco} |
| 4191 |
file that loads \Option{SN} first and then changes |
| 4192 |
\PLength{toaddrhpos}\IndexPLength{toaddrhpos} (see |
| 4193 |
\autoref{sec:\LabelBase.addressee}, |
| 4194 |
\DescPageRef{\LabelBase.plength.toaddrvpos}) to a smaller value. In |
| 4195 |
addition, you should also reduce \PLength{toaddrwidth} accordingly.% |
| 4196 |
|
| 4197 |
By\textnote{Hint!} the way, the \File{DIN} \File{lco} file is always loaded |
| 4198 |
automatically as the first \File{lco} file. This ensures that all |
| 4199 |
pseudo-lengths will have more or less reasonable default values. Therefore you |
| 4200 |
do not need to load this default file on your own. |
| 4201 |
|
| 4202 |
With regard to the \File{lco} files \File{DIN5008A} and \File{DIN5008B}, it |
| 4203 |
should be noted that the corresponding regulations have certain leeway and, as |
| 4204 |
can be seen from various inquiries to the author, many users only wish to make |
| 4205 |
full use of these leeway, but also prefer one or the other deviation from the |
| 4206 |
standard. However, the two files implement only one interpretation of the |
| 4207 |
standard. The reader should therefore be reminded that these files are to be |
| 4208 |
understood only as templates, in order to facilitate the creation of own |
| 4209 |
adapted \File{lco} files.% |
| 4210 |
% |
| 4211 |
\begin{desclist} |
| 4212 |
\renewcommand*{\abovecaptionskipcorrection}{-\normalbaselineskip}% |
| 4213 |
\desccaption{% |
| 4214 |
Predefined \File{lco} files\label{tab:lcoFiles}% |
| 4215 |
}{% |
| 4216 |
Predefined \File{lco} files (\emph{continued})% |
| 4217 |
}% |
| 4218 |
\oentry{DIN}{% |
| 4219 |
\leavevmode% |
| 4220 |
\IndexOption[indexmain]{DIN}\IndexFile[indexmain]{DIN.lco}% |
| 4221 |
parameters for letters on A4 paper, complying with German standard |
| 4222 |
DIN~676; suitable for window envelopes in the sizes C4, C5, C6, and C6/5 |
| 4223 |
(C6 long).}% |
| 4224 |
\oentry{DINmtext}{% |
| 4225 |
\leavevmode% |
| 4226 |
\IndexOption[indexmain]{DINmtext}\IndexFile[indexmain]{DINmtext.lco}% |
| 4227 |
parameters for letters on A4 paper, complying with DIN~676 but using an |
| 4228 |
alternate layout with more text on the first page; only suitable for |
| 4229 |
window envelopes in the sizes C6 and C6/5 (C6 long).}% |
| 4230 |
\oentry{KakuLL}{% |
| 4231 |
\leavevmode% |
| 4232 |
\IndexOption[indexmain]{KakuLL}\IndexFile[indexmain]{KakuLL.lco}% |
| 4233 |
parameters for Japanese letters on A4 paper; suitable for Japanese |
| 4234 |
window envelopes of type Kaku A4, in which the window is approximately |
| 4235 |
90\Unit{mm} wide by 45\Unit{mm} high, and positioned 25\Unit{mm} from the |
| 4236 |
left and 24\Unit{mm} from the top edge (see \autoref{cha:japanlco}).}% |
| 4237 |
\oentry{KOMAold}{% |
| 4238 |
\leavevmode% |
| 4239 |
\IndexOption[indexmain]{KOMAold}\IndexFile[indexmain]{KOMAold.lco}% |
| 4240 |
parameters for letters on A4 paper using a layout close to that of the |
| 4241 |
obsolete \Class{scrlettr} letter class; suitable for window envelopes in |
| 4242 |
the sizes C4, C5, C6, and C6/5 (C6 long); some additional commands to |
| 4243 |
improve compatibility with obsolete \Class{scrlettr} commands are defined; |
| 4244 |
\Class{scrlttr2} may behave slightly differently with this \File{lco} file |
| 4245 |
than with the other \File{lco} files.}% |
| 4246 |
\oentry{NF}{% |
| 4247 |
\leavevmode% |
| 4248 |
\IndexOption[indexmain]{NF}\IndexFile[indexmain]{NF.lco}% |
| 4249 |
parameters for French letters, complying with NF~Z~11-001; suitable for |
| 4250 |
window envelopes of type DL (110\Unit{mm} by 220\Unit{mm}) with a window |
| 4251 |
45\Unit{mm} wide by 100\Unit{mm} high placed about 20\Unit{mm} from the |
| 4252 |
lower right edge; this file was originally developed by Jean-Marie |
| 4253 |
Pacquet, who also provides LyX integration in addition to extensions at |
| 4254 |
\cite{www:NF.lco}.}% |
| 4255 |
\oentry{NipponEH}{% |
| 4256 |
\leavevmode% |
| 4257 |
\IndexOption[indexmain]{NipponEH}\IndexFile[indexmain]{NipponEH.lco}% |
| 4258 |
parameters for Japanese letters on A4 paper; suitable for Japanese |
| 4259 |
window envelopes of types Chou or You 3 or 4, in which the window is |
| 4260 |
approximately 90\Unit{mm} wide by 55\Unit{mm} high, and positioned |
| 4261 |
22\Unit{mm} from the left and 12\Unit{mm} from the top edge (see |
| 4262 |
\autoref{cha:japanlco}).}% |
| 4263 |
\oentry{NipponEL}{% |
| 4264 |
\leavevmode% |
| 4265 |
\IndexOption[indexmain]{NipponEL}\IndexFile[indexmain]{NipponEL.lco}% |
| 4266 |
parameters for Japanese letters on A4 paper; suitable for Japanese |
| 4267 |
window envelopes of types Chou or You 3 or 4, in which the window is |
| 4268 |
approximately 90\Unit{mm} wide by 45\Unit{mm} high, and positioned |
| 4269 |
22\Unit{mm} from the left and 12\Unit{mm} from the top edge (see |
| 4270 |
\autoref{cha:japanlco}).}% |
| 4271 |
\oentry{NipponLH}{% |
| 4272 |
\leavevmode% |
| 4273 |
\IndexOption[indexmain]{NipponLH}\IndexFile[indexmain]{NipponLH.lco}% |
| 4274 |
parameters for Japanese letters on A4 paper; suitable for Japanese |
| 4275 |
window envelopes of types Chou or You 3 or 4, in which the window is |
| 4276 |
approximately 90\Unit{mm} wide by 55\Unit{mm} high, and positioned |
| 4277 |
25\Unit{mm} from the left and 12\Unit{mm} from the top edge (see |
| 4278 |
\autoref{cha:japanlco}).}% |
| 4279 |
\oentry{NipponLL}{% |
| 4280 |
\leavevmode% |
| 4281 |
\IndexOption[indexmain]{NipponLL}\IndexFile[indexmain]{NipponLL.lco}% |
| 4282 |
parameters for Japanese letters on A4 paper; suitable for Japanese |
| 4283 |
window envelopes of types Chou or You 3 or 4, in which the window is |
| 4284 |
approximately 90\Unit{mm} wide by 45\Unit{mm} high, and positioned |
| 4285 |
25\Unit{mm} from the left and 12\Unit{mm} from the top edge (see |
| 4286 |
\autoref{cha:japanlco}).}% |
| 4287 |
\oentry{NipponRL}{% |
| 4288 |
\leavevmode% |
| 4289 |
\IndexOption[indexmain]{NipponRL}\IndexFile[indexmain]{NipponRL.lco}% |
| 4290 |
parameters for Japanese letters on A4 paper; suitable for Japanese |
| 4291 |
window envelopes of types Chou or You 3 or 4, in which the window is |
| 4292 |
approximately 90\Unit{mm} wide by 45\Unit{mm} high, and positioned |
| 4293 |
25\Unit{mm} from the left and 24\Unit{mm} from the top edge (see |
| 4294 |
\autoref{cha:japanlco}).}% |
| 4295 |
\oentry{SN}{% |
| 4296 |
\leavevmode% |
| 4297 |
\IndexOption[indexmain]{SN}\IndexFile[indexmain]{SN.lco}% |
| 4298 |
parameters for Swiss letters with the address field on the right side, |
| 4299 |
according to SN~010\,130; suitable for Swiss window envelopes in the sizes |
| 4300 |
C4, C5, C6, and C6/5 (C6 long).}% |
| 4301 |
\oentry{SNleft}{% |
| 4302 |
\leavevmode% |
| 4303 |
\IndexOption[indexmain]{SNleft}\IndexFile[indexmain]{SNleft.lco}% |
| 4304 |
parameters for Swiss letters with the address field on the left side; |
| 4305 |
suitable for Swiss window envelopes with the window on the left side in |
| 4306 |
the sizes C4, C5, C6, and C6/5 (C6 long).}% |
| 4307 |
\oentry{UScommercial9}{% |
| 4308 |
\leavevmode% |
| 4309 |
\IndexOption[indexmain]{UScommercial9}% |
| 4310 |
\IndexFile[indexmain]{UScommercial9.lco}% |
| 4311 |
parameters for US letters on American letter paper; suitable for |
| 4312 |
\emph{commercial~No.\,9} US window envelopes with a window 4\,1/2\Unit{in} |
| 4313 |
wide by 1\,1/8\Unit{in} high, positioned 7/8\Unit{in} from the left and |
| 4314 |
1/2\Unit{in} from the bottom, without the return address inside the |
| 4315 |
window; when folded first at the middle mark then at the top fold mark, |
| 4316 |
legal paper can also be used but results in a paper-size warning}% |
| 4317 |
\oentry{UScommercial9DW}{% |
| 4318 |
\leavevmode% |
| 4319 |
\IndexOption[indexmain]{UScommercial9DW}% |
| 4320 |
\IndexFile[indexmain]{UScommercial9DW.lco}% |
| 4321 |
parameters for US letters on American letter paper; suitable for |
| 4322 |
\emph{commercial~No.\,9} US window envelopes with an recipient-address |
| 4323 |
window 3\,5/8\Unit{in} wide by 1\,1/8\Unit{in} high, positioned |
| 4324 |
3/4\Unit{in} from the left and 1/2\Unit{in} from the bottom, and with a |
| 4325 |
return-address window 3\,1/2\Unit{in} wide by 7/8\Unit{in} high, |
| 4326 |
positioned 5/16\Unit{in} from the left and 2\,1/2\Unit{in} from the |
| 4327 |
bottom; when folded first at the middle mark and then at the top fold |
| 4328 |
mark, legal paper can also be used but results in a paper-size warning}% |
| 4329 |
\end{desclist} |
| 4330 |
% |
| 4331 |
\EndIndexGroup |
| 4332 |
% |
| 4333 |
\EndIndexGroup |
| 4334 |
|
| 4335 |
|
| 4336 |
\section{Address Files and Form Letters} |
| 4337 |
\seclabel{addressFile}% |
| 4338 |
\BeginIndexGroup |
| 4339 |
\BeginIndex{}{address>file}% |
| 4340 |
\BeginIndex{}{form letters}% |
| 4341 |
\index{serial letters|see form letters}% |
| 4342 |
\index{circular letters|see form letters}% |
| 4343 |
|
| 4344 |
One of the most annoying things about creating form letters is typing up |
| 4345 |
the different addresses. \KOMAScript{} provides basic support for this task% |
| 4346 |
\iffalse% Umbruchkorrekturtext |
| 4347 |
, as did its predecessor \Class{scrlettr}% |
| 4348 |
\fi% |
| 4349 |
.% |
| 4350 |
\iffalse% Umbruchkorrekturtext |
| 4351 |
\ Currently there are plans for greatly enhanced support.% |
| 4352 |
\fi |
| 4353 |
|
| 4354 |
\begin{Declaration} |
| 4355 |
\Macro{adrentry}\Parameter{last~name}\Parameter{first~name}% |
| 4356 |
\Parameter{address}\Parameter{phone}\Parameter{F1}\Parameter{F2}% |
| 4357 |
\Parameter{comment}\Parameter{key} |
| 4358 |
\end{Declaration}% |
| 4359 |
\Class{scrlttr2} and \Package{scrletter} can evaluate address files. |
| 4360 |
This can be very useful for form letters. An address file must have the |
| 4361 |
extension \File{.adr} and consists of a number \Macro{adrentry} entries. |
| 4362 |
An individual entry consists of eight parameters and may look, for example, |
| 4363 |
like this: |
| 4364 |
\begin{lstcode} |
| 4365 |
\adrentry{McEnvy} |
| 4366 |
{Flann} |
| 4367 |
{1 High Street\\ Glasgow} |
| 4368 |
{0141 123 4567} |
| 4369 |
{builder} |
| 4370 |
{} |
| 4371 |
{buys everything} |
| 4372 |
{FLANN} |
| 4373 |
\end{lstcode} |
| 4374 |
You can use the fifth and sixth elements, \PValue{F1} and \PValue{F2}, for |
| 4375 |
anything you want. Gender, academic grade, birth date, or the date the person |
| 4376 |
joined a society are all possibilities. The last parameter, \PName{key}, |
| 4377 |
should consist of more than one letter and be upper-case only so as not to |
| 4378 |
interfere with existing \TeX{} or \LaTeX{} commands. |
| 4379 |
|
| 4380 |
\begin{Example} |
| 4381 |
Mr McEnvy is one of your most important business partners. Since you |
| 4382 |
maintain a frequent correspondence with him, it is too tedious to |
| 4383 |
enter all his data again and again. \KOMAScript{} will do this work for you. |
| 4384 |
For example, if you have saved your customer contacts in the |
| 4385 |
\File{partners.adr} address file and you would like to write a letter to |
| 4386 |
Mr~McEnvy, you can save a great deal of effort by typing: |
| 4387 |
\begin{lstcode} |
| 4388 |
\input{partners.adr} |
| 4389 |
\begin{letter}{\FLANN} |
| 4390 |
Your correspondence of today \dots |
| 4391 |
\end{letter} |
| 4392 |
\end{lstcode} |
| 4393 |
Please make sure that your {\TeX} system can access your address file. |
| 4394 |
Otherwise the \Macro{input} command results in an error message. You can |
| 4395 |
either put your address file in the same directory as your letter or |
| 4396 |
configure your \TeX{} system to look for a dedicated address directory. |
| 4397 |
\end{Example} |
| 4398 |
% |
| 4399 |
\EndIndexGroup |
| 4400 |
|
| 4401 |
|
| 4402 |
\begin{Declaration} |
| 4403 |
\Macro{addrentry}\Parameter{last-name}\Parameter{first-name}% |
| 4404 |
\Parameter{address}\Parameter{phone}\Parameter{F1}\Parameter{F2}% |
| 4405 |
\Parameter{F3}\Parameter{F4}\Parameter{key} |
| 4406 |
\end{Declaration}% |
| 4407 |
Before you object that a total of two free parameters is too few, |
| 4408 |
\KOMAScript{} alternatively offers the \Macro{addrentry} command\,---\,note |
| 4409 |
the additional ``d''\,---\,which adds two more freely definable parameters but |
| 4410 |
omits the comment parameter. Otherwise, you can use this command in exactly |
| 4411 |
the same way as \DescRef{\LabelBase.cmd.adrentry}. |
| 4412 |
|
| 4413 |
Both \DescRef{\LabelBase.cmd.adrentry} and \Macro{addrentry} commands can be |
| 4414 |
freely mixed in the \File{adr} files. I should note, however, that other |
| 4415 |
packages may not be designed to use \Macro{addrentry}. If necessary, you have |
| 4416 |
to create the appropriate extensions yourself.% |
| 4417 |
% |
| 4418 |
\EndIndexGroup |
| 4419 |
|
| 4420 |
In addition to simplifying access to addresses, you can also use the |
| 4421 |
\File{adr} files to create circulars or form letters. Thus you can create such |
| 4422 |
mass mailings without a complicated connection to a database system. |
| 4423 |
% |
| 4424 |
\begin{Example} |
| 4425 |
You want to sent a form letter to all members of your fishing club to invite |
| 4426 |
them to the next general meeting. |
| 4427 |
\begin{lstcode} |
| 4428 |
\documentclass{scrlttr2} |
| 4429 |
\begin{document} |
| 4430 |
\renewcommand*{\adrentry}[8]{% |
| 4431 |
\begin{letter}{#2 #1\\#3} |
| 4432 |
\opening{Dear members,} |
| 4433 |
Our next general meeting will be on |
| 4434 |
Monday, 12 August 2002. |
| 4435 |
|
| 4436 |
The following topics are \dots |
| 4437 |
\closing{Regards,} |
| 4438 |
\end{letter} |
| 4439 |
} |
| 4440 |
\input{members.adr} |
| 4441 |
\end{document} |
| 4442 |
\end{lstcode} |
| 4443 |
If the address file also contains \DescRef{\LabelBase.cmd.addrentry} |
| 4444 |
commands, you must add a corresponding definition before loading the address |
| 4445 |
file: |
| 4446 |
\begin{lstcode} |
| 4447 |
\renewcommand*{\addrentry}[9]{% |
| 4448 |
\adrentry{#1}{#2}{#3}{#4}{#5}{#6}{#7}{#9}% |
| 4449 |
} |
| 4450 |
\end{lstcode} |
| 4451 |
In this example, the extra freely-definable parameter is not used, and |
| 4452 |
therefore \DescRef{\LabelBase.cmd.addrentry} is defined using |
| 4453 |
\DescRef{\LabelBase.cmd.adrentry}. |
| 4454 |
\end{Example} |
| 4455 |
|
| 4456 |
Of course, the letter's contents can also be adapted to the characteristics of |
| 4457 |
the address data. You can use the free parameters of the |
| 4458 |
\DescRef{\LabelBase.cmd.adrentry} and \DescRef{\LabelBase.cmd.addrentry} |
| 4459 |
commands for this. |
| 4460 |
\begin{Example} |
| 4461 |
Suppose you use the fifth parameter of the \DescRef{\LabelBase.cmd.adrentry} |
| 4462 |
command to indicate the gender of a club member (\PValue{m/f}), and the |
| 4463 |
sixth parameter to indicate the amount of membership dues that is unpaid. |
| 4464 |
If you would like to write a reminder to each such member and address them |
| 4465 |
personally, the next example will help you: |
| 4466 |
\begin{lstcode} |
| 4467 |
\renewcommand*{\adrentry}[8]{ |
| 4468 |
\ifdim #6pt>0pt\relax |
| 4469 |
% #6 is an amount (floating-point number) greater than 0. |
| 4470 |
% Thus, this selects all members owing dues. |
| 4471 |
\begin{letter}{#2 #1\\#3} |
| 4472 |
\if #5m \opening{Dear Mr #2,} \fi |
| 4473 |
\if #5f \opening{Dear Ms #2,} \fi |
| 4474 |
|
| 4475 |
Unfortunately, we have noticed that you are in arrears |
| 4476 |
with the payment of your membership fees. |
| 4477 |
|
| 4478 |
Please remit the outstanding balance of \pounds #6 to the club |
| 4479 |
account. |
| 4480 |
\closing{Regards,} |
| 4481 |
\end{letter} |
| 4482 |
\fi |
| 4483 |
} |
| 4484 |
\end{lstcode} |
| 4485 |
\end{Example} |
| 4486 |
It is therefore possible to tailor the text of the letter to the specific |
| 4487 |
characteristics of the recipient and create the impression of a personal |
| 4488 |
letter. The extent of the customisation is only limited by the maximum number |
| 4489 |
of two free \DescRef{\LabelBase.cmd.adrentry} parameters and four free |
| 4490 |
\DescRef{\LabelBase.cmd.addrentry} parameters. |
| 4491 |
|
| 4492 |
|
| 4493 |
\begin{Declaration} |
| 4494 |
\Macro{adrchar}\Parameter{initial letter}% |
| 4495 |
\Macro{addrchar}\Parameter{initial letter} |
| 4496 |
\end{Declaration} |
| 4497 |
\Index[indexmain]{address>list}\Index[indexmain]{telephone directory}% |
| 4498 |
It is possible to create address lists and telephone directories using |
| 4499 |
\File{adr} files. You also need the \Package{adrconv}\IndexPackage{adrconv} |
| 4500 |
package by Axel Kielhorn (see \cite{package:adrconv}). This package contains |
| 4501 |
interactive \LaTeX{} documents which make it easy to create such lists. |
| 4502 |
|
| 4503 |
The address files have to be sorted already in order to obtain sorted lists. |
| 4504 |
It is advisable to insert an \Macro{adrchar} or \Macro{addrchar} command |
| 4505 |
containing the initial letter of the \PName{last name} before the point in the |
| 4506 |
list where this letter changes. \Class{scrlettr2} and \Package{scrletter} will |
| 4507 |
ignore these commands. |
| 4508 |
% |
| 4509 |
\begin{Example} |
| 4510 |
Suppose you have the following, rather tiny address file from which you |
| 4511 |
want to create an address book: |
| 4512 |
\begin{lstlisting} |
| 4513 |
\adrchar{A} |
| 4514 |
\adrentry{Angel}{Gabriel} |
| 4515 |
{Cloud 3\\12345 Heaven's Realm} |
| 4516 |
{000\,01\,02\,03}{}{}{archangel}{GABRIEL} |
| 4517 |
\adrentry{Angel}{Michael} |
| 4518 |
{Cloud 3a\\12345 Heaven's Realm} |
| 4519 |
{000\,01\,02\,04}{}{}{archangel}{MICHAEL} |
| 4520 |
\adrchar{K} |
| 4521 |
\adrentry{Kohm}{Markus} |
| 4522 |
{Freiherr-von-Drais-Stra\ss e 66\\68535 Edingen-Neckarhausen} |
| 4523 |
{+49~62\,03~1\,??\,??}{}{}{no angel at all} |
| 4524 |
{KOMA} |
| 4525 |
\end{lstlisting} |
| 4526 |
You can now process these entries using the \File{adrdir.tex} document from |
| 4527 |
\cite{package:adrconv}. The result looks something like this: |
| 4528 |
\begin{center} |
| 4529 |
\setlength{\unitlength}{1mm} |
| 4530 |
\begin{picture}(80,57) |
| 4531 |
\put(0,57){\line(1,0){80}} |
| 4532 |
\put(0,3){\line(0,1){54}} |
| 4533 |
\put(80,3){\line(0,1){54}} |
| 4534 |
\thicklines |
| 4535 |
\put(10,42){\line(1,0){60}} |
| 4536 |
\put(70,45){\makebox(0,0)[r]{\textsf{\textbf{A}}}} |
| 4537 |
\put(10,23){\makebox(0,20)[l]{\parbox{5cm}{\raggedright |
| 4538 |
\textsc{Angel}, Gabriel\\\quad\small Cloud 3\\ |
| 4539 |
\quad 12345 Heaven's Realm\\ |
| 4540 |
\quad (archangel)}}} |
| 4541 |
\put(70,23){\makebox(0,20)[r]{\parbox{2cm}{\raggedright~\\ |
| 4542 |
\small~\\\textsc{gabriel}\\000\,01\,02\,03}}} |
| 4543 |
\put(10,4){\makebox(0,20)[l]{\parbox{5cm}{\raggedright |
| 4544 |
\textsc{Angel}, Michael\\\quad\small Cloud 3a\\ |
| 4545 |
\quad 12345 Heaven's Realm\\ |
| 4546 |
\quad (archangel)}}} |
| 4547 |
\put(70,4){\makebox(0,20)[r]{\parbox{2cm}{\raggedright~\\ |
| 4548 |
\small~\\\textsc{michael}\\000\,01\,02\,04}}} |
| 4549 |
\qbezier(0,3)(10,6)(40,3)\qbezier(40,3)(60,0)(80,3) |
| 4550 |
\end{picture} |
| 4551 |
\end{center} |
| 4552 |
The letter in the header is generated by answering ``no'' to the |
| 4553 |
question ``Names in the header?'' See explanation in \File{adrdir.tex}. |
| 4554 |
\end{Example} |
| 4555 |
|
| 4556 |
Package \Package{adrconv}\IndexPackage{adrconv} can also be used to create |
| 4557 |
address files compatible with the \KOMAScript{} letter class or package or |
| 4558 |
with the \Package{scraddr} package from an address database in \BibTeX{} |
| 4559 |
format containing entries like: |
| 4560 |
\begin{lstlisting}[morekeywords={@address}] |
| 4561 |
@address{HMUS, |
| 4562 |
name = {Carl McExample}, |
| 4563 |
title = {Dr.}, |
| 4564 |
city = {Anywhere}, |
| 4565 |
zip = 01234, |
| 4566 |
country = {Great Britain}, |
| 4567 |
street = {A long Road}, |
| 4568 |
phone = {01234 / 5 67 89}, |
| 4569 |
note = {always forget his birthday}, |
| 4570 |
key = {HMUS}, |
| 4571 |
} |
| 4572 |
\end{lstlisting} |
| 4573 |
You can find more about the \Package{adrconv}\IndexPackage{adrconv} package in |
| 4574 |
its documentation.% |
| 4575 |
% |
| 4576 |
\EndIndexGroup |
| 4577 |
% |
| 4578 |
\EndIndexGroup |
| 4579 |
% |
| 4580 |
\EndIndexGroup |
| 4581 |
|
| 4582 |
\endinput |
| 4583 |
|
| 4584 |
%%% Local Variables: |
| 4585 |
%%% mode: latex |
| 4586 |
%%% TeX-master: "scrguide-en.tex" |
| 4587 |
%%% coding: utf-8 |
| 4588 |
%%% ispell-local-dictionary: "en_GB" |
| 4589 |
%%% eval: (flyspell-mode 1) |
| 4590 |
%%% End: |
| 4591 |
|