| 1 |
%% |
| 2 |
%% This is file `leaflet-manual.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% leaflet.dtx (with options: `manual') |
| 8 |
%% |
| 9 |
%% (c) 1998 Jürgen Schlegelmilch <[email protected]> |
| 10 |
%% (c) 2000 Walter Schmidt <[email protected]> |
| 11 |
%% (c) 2002-2004 Rolf Niepraschk <[email protected]> and |
| 12 |
%% Hubert Gäßlein |
| 13 |
%% (c) 2012-2020 Rolf Niepraschk <[email protected]> |
| 14 |
%% |
| 15 |
%% This file may be distributed and/or modified under the |
| 16 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 17 |
%% of this license or (at your option) any later version. |
| 18 |
%% The latest version of this license is in: |
| 19 |
%% |
| 20 |
%% http://www.latex-project.org/lppl.txt |
| 21 |
%% |
| 22 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 23 |
%% version 2003/12/01 or later. |
| 24 |
%% |
| 25 |
%% This work has the LPPL maintenance status "author-maintained". |
| 26 |
%% |
| 27 |
\def\filename{leaflet-manual.tex} |
| 28 |
\def\fileversion{v2.1c} % change this when leaflet-manual changed, too. |
| 29 |
\def\filedate{2024/03/12} |
| 30 |
\def\docdate {2024/03/12} % change this when leaflet-manual changed, too. |
| 31 |
\listfiles |
| 32 |
\errorcontextlines=99 |
| 33 |
\documentclass[ |
| 34 |
%%notumble, |
| 35 |
%%nofoldmark, |
| 36 |
%%dvipdfm, |
| 37 |
%%portrait, |
| 38 |
%%titlepage, |
| 39 |
%%nocombine, |
| 40 |
%%a3paper, |
| 41 |
%%debug, |
| 42 |
%%nospecialtricks, |
| 43 |
%%draft, |
| 44 |
]{leaflet} |
| 45 |
|
| 46 |
|
| 47 |
\renewcommand*\foldmarkrule{.3mm} |
| 48 |
\renewcommand*\foldmarklength{5mm} |
| 49 |
|
| 50 |
\usepackage[T1]{fontenc} |
| 51 |
\usepackage{textcomp} |
| 52 |
\usepackage{mathptmx} |
| 53 |
\usepackage[scaled=0.9]{helvet} |
| 54 |
\makeatletter |
| 55 |
\def\ptmTeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.075emX\@} |
| 56 |
\DeclareRobustCommand{\ptmLaTeX}{L\kern-.3em |
| 57 |
{\setbox0\hbox{T}% |
| 58 |
%\vb@xt@ % :-) |
| 59 |
\vbox to\ht0{\hbox{% |
| 60 |
\csname S@\f@size\endcsname |
| 61 |
\fontsize\sf@size\z@ |
| 62 |
\math@fontsfalse\selectfont |
| 63 |
A}% |
| 64 |
\vss}% |
| 65 |
}% |
| 66 |
\kern-.12em |
| 67 |
\ptmTeX} |
| 68 |
\makeatother |
| 69 |
\let\TeX=\ptmTeX |
| 70 |
\let\LaTeX=\ptmLaTeX |
| 71 |
\usepackage{shortvrb} |
| 72 |
\MakeShortVerb{\|} |
| 73 |
\usepackage{url} |
| 74 |
\usepackage{graphicx} |
| 75 |
\usepackage[svgnames]{xcolor} |
| 76 |
|
| 77 |
%%%%\renewcommand{\descfont}{\normalfont} |
| 78 |
\newcommand\Lpack[1]{\textsf{#1}} |
| 79 |
\newcommand\Lclass[1]{\textsf{#1}} |
| 80 |
\newcommand\Lopt[1]{\texttt{#1}} |
| 81 |
\newcommand\Lprog[1]{\textit{#1}} |
| 82 |
|
| 83 |
\newcommand*\defaultmarker{\textsuperscript\textasteriskcentered} |
| 84 |
|
| 85 |
\title{The document class \Lclass{leaflet}} |
| 86 |
\author{% |
| 87 |
Rolf Niepraschk\\ |
| 88 |
Walter Schmidt\\ |
| 89 |
Hubert G\"a\ss lein} |
| 90 |
\date{Last updated~\docdate\\printed \today} |
| 91 |
|
| 92 |
\CutLine*{1}% Dotted line without scissors (same as \CutLine*[.]{1}) |
| 93 |
\CutLine[-]{6}% Solid line with scissors |
| 94 |
|
| 95 |
\AddToBackground{5}{% Background of a small page |
| 96 |
\put(0,0){\textcolor{LightSkyBlue}{\rule{\paperwidth}{\paperheight}}}} |
| 97 |
|
| 98 |
\AddToBackground*{2}{% Background of a large page |
| 99 |
\put(.5\paperwidth,.5\paperheight){% |
| 100 |
\makebox(0,0)[c]{% |
| 101 |
\resizebox{.9\paperwidth}{!}{\rotatebox{35.26}{% |
| 102 |
\textsf{\textbf{\textcolor{LightGray}{BACKGROUND}}}}}}}} |
| 103 |
|
| 104 |
\begin{document} |
| 105 |
|
| 106 |
\maketitle |
| 107 |
|
| 108 |
%%\LARGE |
| 109 |
|
| 110 |
%%\tableofcontents |
| 111 |
|
| 112 |
\section{Overview} |
| 113 |
|
| 114 |
The document class \Lclass{leaflet} creates a document of (up to) six |
| 115 |
small pages in portrait orientation, arranged physically on two |
| 116 |
``normal-size'' pages. The target page sizes supported by the standard |
| 117 |
\LaTeX{} \Lclass{article} are available, plus |a3paper|. Printing these |
| 118 |
to both sides of a sheet and folding appropriately will yield a six-page |
| 119 |
leaflet. |
| 120 |
|
| 121 |
%% TEST: These commands are no longer disabled! |
| 122 |
\iffalse |
| 123 |
\reversemarginpar |
| 124 |
\marginpar[XXX]{YYY} |
| 125 |
\fi |
| 126 |
%% TEST: These commands are disabled! |
| 127 |
\onecolumn |
| 128 |
\twocolumn[WWW] |
| 129 |
%% end of TEST |
| 130 |
|
| 131 |
\section{Requirements} |
| 132 |
|
| 133 |
Using the \Lclass{leaflet} class requires that the final |
| 134 |
document is created in PostScript or PDF format, using |
| 135 |
\begin{itemize} |
| 136 |
\item \TeX{} and \Lprog{dvips}, or |
| 137 |
\item pdf\TeX{}, or |
| 138 |
\item V\TeX{} in PS or PDF mode. |
| 139 |
\end{itemize} |
| 140 |
(Some other drivers supported by standard \LaTeX{} work as well.) |
| 141 |
|
| 142 |
\section{Features} |
| 143 |
|
| 144 |
Basically the \Lclass{leaflet} class provides the same features as the |
| 145 |
standard \Lclass{article} class. There are, however, a number of |
| 146 |
differences and restrictions, as well as some additional facilities and |
| 147 |
peculiarities: |
| 148 |
|
| 149 |
\begin{itemize} |
| 150 |
|
| 151 |
\item |
| 152 |
The sectioning level |\part| is not available. |
| 153 |
The other sectioning levels are not numbered by default. |
| 154 |
|
| 155 |
\item |
| 156 |
References to the page where floating objects are located may come out |
| 157 |
wrong (this includes |\pageref| as well as |\listof...| commends). |
| 158 |
|
| 159 |
\item |
| 160 |
Section headers are typeset in a smaller font size than in the |
| 161 |
standard classes. |
| 162 |
|
| 163 |
\item |
| 164 |
You may use list-like environments just as in the standard classes. |
| 165 |
The left margins have been adjusted to work well with the |
| 166 |
\Lopt{a4paper} and \Lopt{letterpaper} class options. |
| 167 |
With other target page sizes, you'll have to adjust them. |
| 168 |
|
| 169 |
Here's a small demo: |
| 170 |
\begin{description} |
| 171 |
\item[Uncle Meat] First entry in a description environment. |
| 172 |
\item[King Kong] Second entry. |
| 173 |
\begin{itemize} |
| 174 |
\item First entry in an itemize environment. |
| 175 |
\begin{enumerate} |
| 176 |
\item First entry in an enumerate environment. |
| 177 |
\item Second entry. |
| 178 |
\begin{enumerate} |
| 179 |
\item First entry in an enumerate environment. |
| 180 |
\begin{enumerate} |
| 181 |
\item First entry in an enumerate environment. |
| 182 |
\item Second entry. |
| 183 |
\end{enumerate} |
| 184 |
\item Second entry. |
| 185 |
\begin{itemize} |
| 186 |
\item First entry in an itemize environment. |
| 187 |
\item Second entry. |
| 188 |
\end{itemize} |
| 189 |
\item Another entry. |
| 190 |
\end{enumerate} |
| 191 |
\item Another entry. |
| 192 |
\end{enumerate} |
| 193 |
\item Second entry. |
| 194 |
\item Another entry. |
| 195 |
\end{itemize} |
| 196 |
\item[Frunobulax] Another entry. |
| 197 |
\end{description} |
| 198 |
|
| 199 |
\item |
| 200 |
Marginal notes are pointless on the given page size and |
| 201 |
are disabled. |
| 202 |
|
| 203 |
\item |
| 204 |
Two-column typesetting is not supported for the same reason. |
| 205 |
|
| 206 |
\item |
| 207 |
By default, there are no page headers, page footers or page numbers, |
| 208 |
nor is there any space reserved for these. |
| 209 |
|
| 210 |
However, you can restore them, if you like. |
| 211 |
To do so, use |\pagestyle| as with the standard classes, |
| 212 |
and |\setlength| to adjust the corresponding parameters (like |
| 213 |
|\headheight|). |
| 214 |
At last, you have to call the new macro \par |
| 215 |
| \setmargins{top}{bottom}{left}{right}|. |
| 216 |
|
| 217 |
\item |
| 218 |
Paragraphs are separated by vertical space; the first line |
| 219 |
of a paragraph is not indented by default. |
| 220 |
|
| 221 |
\item |
| 222 |
By default, all paragraphs are typeset as if you had |
| 223 |
specified |\sloppy| in the document preamble. |
| 224 |
|
| 225 |
\item |
| 226 |
A small folding mark is created between the second and the |
| 227 |
third page. |
| 228 |
|
| 229 |
\item |
| 230 |
The macro |\CutLine| draws a vertical dotted line with |
| 231 |
scissor symbols between the page indicated by its argument and the |
| 232 |
preceding one. The optional parameter |[-]| changes the dotted line to a |
| 233 |
solid one. The starred version omits the scissors symbols. |
| 234 |
|
| 235 |
\item |
| 236 |
In case the text does not fit on six pages, a warning (or error, |
| 237 |
depending on some class option, see below) will be issued. |
| 238 |
|
| 239 |
\item |
| 240 |
To add some background picture to individual pages, you can use |
| 241 |
|\AddToBackground| commands. Its first argument specifies the page, |
| 242 |
the second one the picture commands. |
| 243 |
The starred version puts the picture on the combined pages. |
| 244 |
|
| 245 |
\end{itemize} |
| 246 |
|
| 247 |
\section{Customization} |
| 248 |
|
| 249 |
The typeface to be used for the section headings is given by the macro |
| 250 |
|\sectfont|, and the typeface to be used for the labels of the |
| 251 |
|description| environment is given by |\descfont|. |
| 252 |
Both macros default to |\bfseries| and can be changed using |
| 253 |
|\renewcommand*|. |
| 254 |
|
| 255 |
The horizontal and vertical margins of the (small) pages |
| 256 |
have the standard sizes 8 mm and 11 mm, respectively, and can be changed |
| 257 |
using |\setmargins|, as explained above. |
| 258 |
This may be useful, if the printing engine exhibits larger unprintable |
| 259 |
margins. |
| 260 |
|
| 261 |
The macros |\foldmarkrule| and |\foldmarklength| determine the stroke |
| 262 |
width and the length of the fold mark, which is printed between the |
| 263 |
second and the third page. |
| 264 |
They default to 0.4\,pt and 2\,mm, respectively, and can be changed |
| 265 |
using |\renewcommand*| (\emph{not} |\setlength|!). |
| 266 |
See also the class options \Lopt{foldmark} and \Lopt{nofoldmark}. |
| 267 |
|
| 268 |
\section{Class options} |
| 269 |
|
| 270 |
Default options are marked with an asterisk: |
| 271 |
\begin{description} |
| 272 |
\item[\Lopt{tumble}{\defaultmarker}, \Lopt{notumble}] |
| 273 |
By default, the contents of the back side of the final sheet is |
| 274 |
printed upside down. |
| 275 |
The option \Lopt{notumble} suppresses that. |
| 276 |
Doing so may be necessary to suit the behavior of certain printing |
| 277 |
engines. |
| 278 |
Specifying \Lopt[notumble] may also be useful during the writing of |
| 279 |
a document, to enable proof-reading on the screen. |
| 280 |
\item[\Lopt{frontside}, \Lopt{backside}, \Lopt{bothsides}{\defaultmarker}] |
| 281 |
These options control whether only the front page, the back page or |
| 282 |
both pages of the final sheet are to be be created. |
| 283 |
Thus, you can create separate files for the front an back side of |
| 284 |
the sheet. |
| 285 |
\item[\Lopt{foldmark}{\defaultmarker}, \Lopt{nofoldmark}] |
| 286 |
These options specifiy whether or not a fold mark is to be printed. |
| 287 |
\item[\Lopt{combine}{\defaultmarker}, \Lopt{nocombine}] |
| 288 |
These options specify whether the (small) pages should be output |
| 289 |
combined on a (large) target page (\Lopt{combine}) or as individual |
| 290 |
pages (\Lopt{nocombine}). |
| 291 |
|
| 292 |
At the same time, the determine behaviour in case the text does not |
| 293 |
fit on six (small) pages. |
| 294 |
By default (\Lopt{combine}), an error is raised---and the surplus pages |
| 295 |
will be gobbled. |
| 296 |
Otherwise (\Lopt{nocombine}), just a warning will be issued; |
| 297 |
shortening the text appropriately is left to the user. |
| 298 |
\item[\Lopt{twopart}, \Lopt{notwopart}{\defaultmarker}] |
| 299 |
Allows the typesetting of a four page leaflet (first part) and a two page |
| 300 |
detachable form (second part), for fill-in forms, questionnaires, applications, |
| 301 |
etc. |
| 302 |
\item[\Lopt{foldcorr}, \Lopt{nofoldcorr}{\defaultmarker}] |
| 303 |
Decreases the width of pages 4 and 5 by 2\,\% (A4 paper: 2\,mm) and |
| 304 |
increases the other pages by 1\,\% (A4 paper: 1\,mm) for easier |
| 305 |
folding in combine mode. |
| 306 |
\end{description} |
| 307 |
|
| 308 |
Other options are passed to the \Lclass{article} class. |
| 309 |
|
| 310 |
\section{Changes over version 0.3} |
| 311 |
|
| 312 |
The present release of the \Lclass{leaflet} class differs basically |
| 313 |
from its predecessor, version~0.3, which had been developed originally |
| 314 |
by J\"urgen Schlegelmilch. |
| 315 |
|
| 316 |
The main change is, that no more post-processing is required to |
| 317 |
arrange the pages on the sheet. |
| 318 |
Furthermore, the overall layout has been changed slightly to suit the |
| 319 |
small page size better. |
| 320 |
In general, documents that were written for version~0.3 will exhibit |
| 321 |
different line and page breaks when typeset using the new version of |
| 322 |
this document class. |
| 323 |
|
| 324 |
\begin{thebibliography}{000} |
| 325 |
\bibitem{cit:latex-man} |
| 326 |
\textsc{L.\,Lamport}: \LaTeX. A Document Preparation System. |
| 327 |
\textit{User's Guide And Reference Manual.} Second Edition. 1994. |
| 328 |
\end{thebibliography} |
| 329 |
|
| 330 |
\loggingall |
| 331 |
\end{document} |
| 332 |
\endinput |
| 333 |
%% |
| 334 |
%% End of file `leaflet-manual.tex'. |