| 1 |
% ====================================================================== |
| 2 |
% common-interleafpage-en.tex |
| 3 |
% Copyright (c) Markus Kohm, 2001-2022 |
| 4 |
% |
| 5 |
% This file is part of the LaTeX2e KOMA-Script bundle. |
| 6 |
% |
| 7 |
% This work may be distributed and/or modified under the conditions of |
| 8 |
% the LaTeX Project Public License, version 1.3c of the license. |
| 9 |
% The latest version of this license is in |
| 10 |
% http://www.latex-project.org/lppl.txt |
| 11 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 12 |
% version 2005/12/01 or later and of this work. |
| 13 |
% |
| 14 |
% This work has the LPPL maintenance status "author-maintained". |
| 15 |
% |
| 16 |
% The Current Maintainer and author of this work is Markus Kohm. |
| 17 |
% |
| 18 |
% This work consists of all files listed in MANIFEST.md. |
| 19 |
% ====================================================================== |
| 20 |
% |
| 21 |
% Paragraphs that are common for several chapters of the KOMA-Script guide |
| 22 |
% Maintained by Markus Kohm |
| 23 |
% |
| 24 |
% ====================================================================== |
| 25 |
|
| 26 |
\KOMAProvidesFile{common-interleafpage-en.tex}% |
| 27 |
[$Date: 2022-06-05 12:40:11 +0200 (So, 05. Jun 2022) $ |
| 28 |
KOMA-Script guide (common paragraphs: Interleaf Pages)] |
| 29 |
\translator{Markus Kohm\and Gernot Hassenpflug\and Krickette Murabayashi\and |
| 30 |
Karl Hagen} |
| 31 |
|
| 32 |
\section{Interleaf Pages} |
| 33 |
\seclabel{emptypage}% |
| 34 |
\BeginIndexGroup |
| 35 |
\BeginIndex{}{interleaf page}%% |
| 36 |
\BeginIndex{}{page>style}% |
| 37 |
|
| 38 |
\IfThisCommonFirstRun{}{% |
| 39 |
The information in \autoref{sec:\ThisCommonFirstLabelBase.emptypage} applies |
| 40 |
equally to this chapter. So if you have already read and understood |
| 41 |
\autoref{sec:\ThisCommonFirstLabelBase.emptypage}, you can skip ahead to |
| 42 |
\autoref{sec:\ThisCommonLabelBase.emptypage.next}, |
| 43 |
\autopageref{sec:\ThisCommonLabelBase.emptypage.next}.% |
| 44 |
} |
| 45 |
|
| 46 |
\IfThisCommonLabelBase{scrextend}{}{% |
| 47 |
Interleaf pages are pages that are inserted between parts of a document. |
| 48 |
Traditionally, these pages are completely blank. \LaTeX{}, however, sets |
| 49 |
them by default with the current page style. \KOMAScript{} provides several |
| 50 |
extensions to this functionality. |
| 51 |
|
| 52 |
Interleaf pages are mostly found in books. Because book chapters commonly |
| 53 |
start on the right (recto) page of a two-page spread, an empty left (verso) |
| 54 |
page must be inserted if the previous chapter ends on a recto page. For this |
| 55 |
reason, interleaf pages really only exist for two-sided printing. |
| 56 |
% |
| 57 |
\iffalse % Umbruchkorrektur |
| 58 |
The blank versos in one-sided printing are not true interleaf pages, |
| 59 |
although they may appear as such in counting the printed sheets.% |
| 60 |
\fi% |
| 61 |
|
| 62 |
\IfThisCommonLabelBase{scrlttr2}{% |
| 63 |
Interleaf pages are unusual in letters. This is not least because |
| 64 |
two-sided letters are rare, as letters are usually not |
| 65 |
bound. Nevertheless, \KOMAScript{} also supports interleaf pages for |
| 66 |
two-sided letters. However, since the commands described here are seldom |
| 67 |
used in letters, you will not find any examples here. If necessary, please |
| 68 |
refer to the examples in \autoref{sec:maincls.emptypage}, starting on |
| 69 |
\autopageref{sec:maincls.emptypage}.% |
| 70 |
}{}% |
| 71 |
}% |
| 72 |
|
| 73 |
\begin{Declaration} |
| 74 |
\OptionVName{cleardoublepage}{page style} |
| 75 |
\OptionValue{cleardoublepage}{current} |
| 76 |
\end{Declaration}% |
| 77 |
With this option,\IfThisCommonLabelBase{maincls}{% |
| 78 |
\ChangedAt{v3.00}{\Class{scrbook}\and \Class{scrreprt}\and |
| 79 |
\Class{scrartcl}}% |
| 80 |
}{% |
| 81 |
\IfThisCommonLabelBase{scrlttr2}{% |
| 82 |
\ChangedAt{v3.00}{\Class{scrlttr2}}% |
| 83 |
}{}% |
| 84 |
} you can define the page style of the interleaf pages created by the commands |
| 85 |
\DescRef{\LabelBase.cmd.cleardoublepage}, |
| 86 |
\DescRef{\LabelBase.cmd.cleardoubleoddpage}, or |
| 87 |
\DescRef{\LabelBase.cmd.cleardoubleevenpage} to advance to the desired page. |
| 88 |
You can use any previously defined \PName{page style} (see |
| 89 |
\autoref{sec:\ThisCommonLabelBase.pagestyle} from |
| 90 |
\autopageref{sec:\ThisCommonLabelBase.pagestyle} and |
| 91 |
\autoref{cha:scrlayer-scrpage} from \autopageref{cha:scrlayer-scrpage}). |
| 92 |
In addition, \OptionValue{cleardoublepage}{current} is also possible. |
| 93 |
This case corresponds to the default prior to \KOMAScript~2.98c and creates an |
| 94 |
interleaf page without changing the page style. Starting with |
| 95 |
\KOMAScript~3.00\IfThisCommonLabelBase{maincls}{% |
| 96 |
\ChangedAt{v3.00}{\Class{scrbook}\and \Class{scrreprt}\and |
| 97 |
\Class{scrartcl}}% |
| 98 |
}{% |
| 99 |
\IfThisCommonLabelBase{scrlttr2}{% |
| 100 |
\ChangedAt{v3.00}{\Class{scrlttr2}}% |
| 101 |
}{}% |
| 102 |
}, the default\textnote{default} follows the recommendation of most |
| 103 |
typographers and creates interleaf pages with the |
| 104 |
\IfThisCommonLabelBase{scrextend}{% |
| 105 |
\DescRef{maincls.pagestyle.empty}}{% |
| 106 |
\DescRef{\ThisCommonLabelBase.pagestyle.empty}}\IndexPagestyle{empty} |
| 107 |
page style unless you switch compatibility to earlier \KOMAScript{} versions |
| 108 |
(see option \DescRef{\ThisCommonLabelBase.option.version}% |
| 109 |
\important{\OptionValueRef{\LabelBase}{version}{2.98c}}, |
| 110 |
\autoref{sec:\ThisCommonLabelBase.compatibilityOptions}, |
| 111 |
\DescPageRef{\ThisCommonLabelBase.option.version}). |
| 112 |
\IfThisCommonLabelBase{maincls}{\iftrue}{\csname iffalse\endcsname} |
| 113 |
\begin{Example} |
| 114 |
\phantomsection\xmpllabel{option.cleardoublepage}% |
| 115 |
Suppose you want interleaf pages that are empty except for the pagination% |
| 116 |
\iffree{, so they are created with \IfThisCommonLabelBase{scrextend}{% |
| 117 |
\DescRef{maincls.pagestyle.plain}}{% |
| 118 |
\DescRef{\LabelBase.pagestyle.plain}}}{}. You can achieve this, |
| 119 |
for example, with: |
| 120 |
\begin{lstcode} |
| 121 |
\KOMAoptions{cleardoublepage=plain} |
| 122 |
\end{lstcode} |
| 123 |
You can find more information about the |
| 124 |
\IfThisCommonLabelBase{scrextend}{% |
| 125 |
\DescRef{maincls.pagestyle.plain}}{\DescRef{\LabelBase.pagestyle.plain}} |
| 126 |
page style in \IfThisCommonLabelBase{scrextend}{% |
| 127 |
\autoref{sec:maincls.pagestyle}}{% |
| 128 |
\autoref{sec:\LabelBase.pagestyle}}, |
| 129 |
\IfThisCommonLabelBase{scrextend}{% |
| 130 |
\DescPageRef{maincls.pagestyle.plain}}{% |
| 131 |
\DescPageRef{\LabelBase.pagestyle.plain}}. |
| 132 |
\end{Example} |
| 133 |
\else |
| 134 |
\IfThisCommonLabelBase{scrextend}{% |
| 135 |
You can find an example for setting the page style of interleaf pages in |
| 136 |
\autoref{sec:\ThisCommonFirstLabelBase.emptypage}, |
| 137 |
\PageRefxmpl{\ThisCommonFirstLabelBase.option.cleardoublepage}.% |
| 138 |
\iffalse% Umbruchvariante ohne Beispiel |
| 139 |
}{\csname iffalse\endcsname} |
| 140 |
\begin{Example} |
| 141 |
\phantomsection\xmpllabel{option.cleardoublepage}% |
| 142 |
Suppose you want interleaf pages that are empty except for the pagination, |
| 143 |
so they are created with the \IfThisCommonLabelBase{scrextend}{% |
| 144 |
\DescRef{maincls.pagestyle.plain}}{\DescRef{\LabelBase.pagestyle.plain}} |
| 145 |
page style. You can achieve this with |
| 146 |
\begin{lstcode} |
| 147 |
\KOMAoptions{cleardoublepage=plain} |
| 148 |
\end{lstcode} |
| 149 |
You can find more information about the |
| 150 |
\DescRef{maincls.pagestyle.plain} page style in |
| 151 |
\autoref{sec:maincls.pagestyle}, \DescPageRef{maincls.pagestyle.plain}. |
| 152 |
\end{Example}% |
| 153 |
\fi% |
| 154 |
\fi% |
| 155 |
\EndIndexGroup |
| 156 |
|
| 157 |
|
| 158 |
\begin{Declaration} |
| 159 |
\Macro{clearpage}% |
| 160 |
\Macro{cleardoublepage}% |
| 161 |
\Macro{cleardoublepageusingstyle}\Parameter{page style}% |
| 162 |
\Macro{cleardoubleemptypage}% |
| 163 |
\Macro{cleardoubleplainpage}% |
| 164 |
\Macro{cleardoublestandardpage}% |
| 165 |
\Macro{cleardoubleoddpage}% |
| 166 |
\Macro{cleardoubleoddpageusingstyle}\Parameter{page style}% |
| 167 |
\Macro{cleardoubleoddemptypage}% |
| 168 |
\Macro{cleardoubleoddplainpage}% |
| 169 |
\Macro{cleardoubleoddstandardpage}% |
| 170 |
\Macro{cleardoubleevenpage}% |
| 171 |
\Macro{cleardoubleevenpageusingstyle}\Parameter{page style}% |
| 172 |
\Macro{cleardoubleevenemptypage}% |
| 173 |
\Macro{cleardoubleevenplainpage}% |
| 174 |
\Macro{cleardoubleevenstandardpage} |
| 175 |
\end{Declaration}% |
| 176 |
The\textnote{standard classes} {\LaTeX} kernel provides the \Macro{clearpage} |
| 177 |
command, which ensures that all pending floats are output and then starts a |
| 178 |
new page. There is also the \Macro{cleardoublepage} command, which works like |
| 179 |
\Macro{clearpage} but which starts a new right-hand page in two-sided printing |
| 180 |
(see the \Option{twoside} layout option in \autoref{sec:typearea.options}, |
| 181 |
\DescPageRef{typearea.option.twoside}). An empty left-hand page in the current |
| 182 |
page style is output if necessary. |
| 183 |
|
| 184 |
With\IfThisCommonLabelBase{maincls}{% |
| 185 |
\ChangedAt{v3.00}{\Class{scrbook}\and \Class{scrreprt}\and |
| 186 |
\Class{scrartcl}}% |
| 187 |
}{% |
| 188 |
\IfThisCommonLabelBase{scrlttr2}{% |
| 189 |
\ChangedAt{v3.00}{\Class{scrlttr2}}% |
| 190 |
}{}% |
| 191 |
} \Macro{cleardoubleoddstandardpage}, {\KOMAScript}\textnote{\KOMAScript} |
| 192 |
works as exactly in the way just described for the standard classess. The |
| 193 |
\Macro{cleardoubleoddplainpage}% |
| 194 |
\important{\IfThisCommonLabelBase{scrextend}{% |
| 195 |
\DescRef{maincls.pagestyle.plain}}{\DescRef{\LabelBase.pagestyle.plain}}} |
| 196 |
command, on the other hand, additionally changes the page style of the empty |
| 197 |
left page to \IfThisCommonLabelBase{scrextend}{% |
| 198 |
\DescRef{maincls.pagestyle.plain}}{\DescRef{\LabelBase.pagestyle.plain}}% |
| 199 |
\IndexPagestyle{plain} in order to suppress the |
| 200 |
\IfThisCommonLabelBase{scrlttr2}{page header}{running title}. Likewise, the |
| 201 |
\Macro{cleardoubleoddemptypage}\important{% |
| 202 |
\IfThisCommonLabelBase{scrextend}{\DescRef{maincls.pagestyle.empty}}{% |
| 203 |
\DescRef{\LabelBase.pagestyle.empty}}} command uses the |
| 204 |
\IfThisCommonLabelBase{scrextend}{\DescRef{maincls.pagestyle.empty}}{% |
| 205 |
\DescRef{\LabelBase.pagestyle.empty}}\IndexPagestyle{empty} page style to |
| 206 |
suppress both \IfThisCommonLabelBase{scrlttr2}{page header and page footer}% |
| 207 |
{running title and page number} on the empty left-hand side. The page is thus |
| 208 |
completely empty. If you want to specify your own \PName{page style} for the |
| 209 |
interleaf page, this should be given as an argument of |
| 210 |
\Macro{cleardoubleoddusingpagestyle}. You can use any previously defined |
| 211 |
\PName{page style} (see \autoref{cha:scrlayer-scrpage}). |
| 212 |
|
| 213 |
\IfThisCommonLabelBase{scrlttr2}{}{% |
| 214 |
Sometimes\textnote{odd-side interleaf pages} you want chapters to start not |
| 215 |
on the right-hand but on the left-hand page. Although this layout contradicts |
| 216 |
classic typography, it can be appropriate if the double-page spread at the |
| 217 |
beginning of the chapter very specific contents. For this reason, |
| 218 |
\KOMAScript{} provides the \Macro{cleardoubleevenstandardpage} command, |
| 219 |
which is equivalent to the \Macro{cleardoubleoddstandardpage} command |
| 220 |
except that the next page is a left page. The same applies to the |
| 221 |
\Macro{cleardoubleevenplainpage}, \Macro{cleardoubleevenemptypage}, and |
| 222 |
\Macro{cleardoubleevenpageusingstyle} commands% |
| 223 |
\IfThisCommonLabelBase{maincls}{% Umbruchoptimierungsalternative |
| 224 |
, the last of which expects an argument}{}.% |
| 225 |
} |
| 226 |
|
| 227 |
The \Macro{cleardoublestandardpage}, \Macro{cleardoubleemptypage}, and |
| 228 |
\Macro{cleardoubleplainpage} commands, and the single-argument |
| 229 |
\Macro{cleardoublepageusingstyle} command, as well as the standard |
| 230 |
\Macro{cleardoublepage} command, % |
| 231 |
\IfThisCommonLabelBase{maincls}{% |
| 232 |
depend on the \DescRef{maincls.option.open}\IndexOption{open}% |
| 233 |
\important{\DescRef{maincls.option.open}} option explained in |
| 234 |
\autoref{sec:maincls.structure}, \DescPageRef{maincls.option.open} and, |
| 235 |
depending on that setting, correspond to one of the commands explained in |
| 236 |
the preceding paragraphs. }{% |
| 237 |
correspond to the commands previously explained for the |
| 238 |
\IfThisCommonLabelBase{scrlttr2}{\Class{scrlttr2} class}{% |
| 239 |
\IfThisCommonLabelBase{scrextend}{\Package{scrextend} package}{% |
| 240 |
\InternalCommonFileUsageError}% |
| 241 |
}% |
| 242 |
\IfThisCommonLabelBase{scrlttr2}{. % |
| 243 |
The remaining commands are defined in \Class{scrlttr2} for completeness |
| 244 |
only. You can find more information on them in |
| 245 |
\autoref{sec:maincls.emptypage}, \DescPageRef{maincls.cmd.cleardoublepage} |
| 246 |
if necessary% |
| 247 |
}{% |
| 248 |
\ to transition to the next odd page% |
| 249 |
}.% |
| 250 |
}% |
| 251 |
\IfThisCommonLabelBaseOneOf{scrlttr2,scrextend}{\iffalse}{\csname |
| 252 |
iftrue\endcsname} |
| 253 |
\begin{Example} |
| 254 |
\phantomsection\xmpllabel{cmd.cleardoublepage}% |
| 255 |
Suppose you want to insert a double-page spread into your document with a |
| 256 |
picture on the left-hand page and a new chapter starting on the right-hand |
| 257 |
page. If the previous chapter ends with a left-hand page, an interleaf |
| 258 |
page has to be added, which should be completely empty. The picture should |
| 259 |
be the same size as the text area without any header or footer. |
| 260 |
\iffalse% Umbruchkorrekturtext |
| 261 |
First of all, |
| 262 |
\begin{lstcode} |
| 263 |
\KOMAoptions{cleardoublepage=empty} |
| 264 |
\end{lstcode} |
| 265 |
ensures that interleaf pages use the |
| 266 |
\IfThisCommonLabelBase{scrextend}{\DescRef{maincls.pagestyle.empty}}{% |
| 267 |
\DescRef{\LabelBase.pagestyle.empty}} page style. You can put this |
| 268 |
setting in the document preamble, or you can set it as an optional |
| 269 |
argument of \DescRef{\ThisCommonLabelBase.cmd.documentclass}. |
| 270 |
\fi |
| 271 |
|
| 272 |
At the relevant place in your document, write: |
| 273 |
\begin{lstcode} |
| 274 |
\cleardoubleevenemptypage |
| 275 |
\thispagestyle{empty} |
| 276 |
\includegraphics[width=\textwidth,% |
| 277 |
height=\textheight,% |
| 278 |
keepaspectratio]% |
| 279 |
{picture} |
| 280 |
\chapter{Chapter Heading} |
| 281 |
\end{lstcode} |
| 282 |
The first of these lines switches to the next left-hand page. If needed it |
| 283 |
also adds a completely blank right-hand page. The second line makes sure |
| 284 |
that the following left-hand page will also be set using the |
| 285 |
\IfThisCommonLabelBase{scrextend}{\DescRef{maincls.pagestyle.empty}}{% |
| 286 |
\DescRef{\LabelBase.pagestyle.empty}} page style. The third through |
| 287 |
sixth lines load an image file named \File{picture} and scale it to the |
| 288 |
desired size without distorting it. This command requires the |
| 289 |
\Package{graphicx}\IndexPackage{graphicx} package (see |
| 290 |
\cite{package:graphics}). The last line starts |
| 291 |
a new chapter on the next page, which will be a right-hand one. |
| 292 |
\end{Example}% |
| 293 |
\fi% |
| 294 |
|
| 295 |
In two-sided printing, \Macro{cleardoubleoddpage} always moves to the next |
| 296 |
left-hand page and \Macro{cleardoubleevenpage} to the next right-hand |
| 297 |
page. The style of the interleaf page to be inserted if necessary is defined |
| 298 |
with the \DescRef{\LabelBase.option.cleardoublepage} option.% |
| 299 |
\IfThisCommonLabelBase{scrextend}{\par% |
| 300 |
For an example that uses \Macro{cleardoubleevenemptypage}, see |
| 301 |
\autoref{sec:maincls.emptypage}, |
| 302 |
\PageRefxmpl{\ThisCommonFirstLabelBase.cmd.cleardoublepage}.% |
| 303 |
}{}% |
| 304 |
\EndIndexGroup |
| 305 |
% |
| 306 |
\EndIndexGroup |
| 307 |
|
| 308 |
%%% Local Variables: |
| 309 |
%%% mode: latex |
| 310 |
%%% TeX-master: "scrguide-en.tex" |
| 311 |
%%% coding: utf-8 |
| 312 |
%%% ispell-local-dictionary: "en_GB" |
| 313 |
%%% eval: (flyspell-mode 1) |
| 314 |
%%% End: |
| 315 |
|
| 316 |
% LocalWords: mutatis mutandis Interleaf interleaf |