Debian Codegraph @

texmf-dist/doc/latex/leporello/leporello-doc.tex

raw
1 % File: leporello-doc.tex
2 % Copyright 2025 Jasper Habicht (mail(at)jasperhabicht.de).
3 %
4 % This work may be distributed and/or modified under the
5 % conditions of the LaTeX Project Public License version 1.3c,
6 % available at http://www.latex-project.org/lppl/.
7 %
8 % This file is part of the `leporello' package (The Work in LPPL)
9 % and all files in that bundle must be distributed together.
10 %
11 % This work has the LPPL maintenance status `maintained'.
12 %
13 \documentclass[a4paper]{article}
14 \def\leporellofileversion{1.0.3}
15 \def\leporellofiledate{15 September 2025}
16
17 \usepackage[T1]{fontenc}
18 \usepackage{Alegreya}
19 \usepackage{AlegreyaSans}
20 \usepackage{FiraMono}
21
22 \usepackage{geometry, longtable, booktabs, siunitx, tcolorbox, hyperref}
23 \geometry{margin=25mm, left=45mm}
24 \urlstyle{same}
25
26 \usepackage{fancyhdr}
27 \pagestyle{fancy}
28 \fancyhf{}
29 \renewcommand{\headrulewidth}{0pt}
30 \fancyfoot[R]{\thepage}
31
32 \ExplSyntaxOn
33 \NewDocumentCommand{\fnstars}{m}{
34 \int_step_inline:nn { \value{#1} } { * }
35 }
36 \ExplSyntaxOff
37
38 \linespread{1.1}\selectfont
39 \addtolength{\skip\footins}{1em plus 5pt}
40 \makeatletter
41 \renewcommand*{\thefootnote}{\fnstars{footnote}}
42 \renewcommand{\@makefntext}[1]{%
43 \noindent\hbox to 1em{\normalfont\@thefnmark\hss}~#1%
44 }
45 \makeatother
46
47 \tcbuselibrary{skins,listings}
48 \lstdefinestyle{leporellodocmacro}{
49 basicstyle=\small\ttfamily,
50 literate=*{<}{{{\color{black!50}\guilsinglleft}}}1
51 {>}{{{\color{black!50}\guilsinglright}}}1,
52 keywords={},
53 moredelim=[is][\bfseries]{|}{|},
54 moredelim=[is][\bfseries\itshape]{?}{?},
55 moredelim=[is][\color{black!50}]{!}{!},
56 }
57 \lstdefinestyle{leporellodoccodeexample}{
58 basicstyle=\small\ttfamily,
59 keywords={},
60 }
61
62 \hypersetup{colorlinks}
63
64 \ExplSyntaxOn
65 \int_new:N \l_leporello_doc_change_int
66 \NewDocumentCommand{\changes}{ m m m }{
67 \int_incr:N \l_leporello_doc_change_int
68 \prop_new:c { l_leporello_doc_change_
69 \int_to_roman:n { \l_leporello_doc_change_int } _prop }
70 \prop_put:cnn { l_leporello_doc_change_
71 \int_to_roman:n { \l_leporello_doc_change_int } _prop } { version } {#1}
72 \prop_put:cnn { l_leporello_doc_change_
73 \int_to_roman:n { \l_leporello_doc_change_int } _prop } { date } {#2}
74 \prop_put:cnn { l_leporello_doc_change_
75 \int_to_roman:n { \l_leporello_doc_change_int } _prop } { changes } {#3}
76 }
77 \NewDocumentCommand{\printchanges}{ }{
78 \section{Changes}
79 \begin{description}
80 \setlength\itemsep{0pt}
81 \int_step_inline:nn { \l_leporello_doc_change_int } {
82 \item[
83 \prop_item:cn { l_leporello_doc_change_
84 \int_to_roman:n { ##1 } _prop } { version } ~
85 \normalfont{ (
86 \prop_item:cn { l_leporello_doc_change_
87 \int_to_roman:n { ##1 } _prop } { date }
88 ) }
89 ]
90 \prop_item:cn { l_leporello_doc_change_
91 \int_to_roman:n { ##1 } _prop } { changes }
92 }
93 \end{description}
94 }
95
96 \tl_new:N \l_leporello_doc_doctitle_tl
97 \NewExpandableDocumentCommand{\makedoctitle}{ o m o m m o m }{
98 \hypersetup{
99 pdfauthor={#5},
100 pdftitle={\IfValueTF{#1}{#1}{#2}},
101 pdfsubject={\IfValueTF{#3}{#3}{#4}}
102 }
103 \tl_set:Nn \l_leporello_doc_doctitle_tl {
104 \group_begin:
105 \tcbset{
106 title ~ style ~ hook/.style={
107 boxrule=2pt,
108 fontupper=\huge\ttfamily
109 }
110 }
111 \setlength{\parindent}{0pt}\sffamily
112 \Huge{\bfseries #2}\par\bigskip
113 \Large #4\par\bigskip
114 \large #5
115 \IfValueT{#6}{
116 \,\footnote{#6}\par\bigskip
117 }
118 #7\par\bigskip
119 \rule{\textwidth}{.08em}
120 \group_end:
121 }
122 }
123
124 \NewExpandableDocumentCommand{\printdoctitle}{ }{
125 \tl_use:N \l_leporello_doc_doctitle_tl
126 }
127 \ExplSyntaxOff
128
129 \NewDocumentCommand{\expandablestarcode}{ O{0,0} }{
130 \fill[black!50, shift={([xshift={-10pt}, yshift={-10pt-0.5em}]#1)}]
131 (90:3.75pt)
132 \foreach \i in {1,...,4} {
133 -- ({90+360/5*\i*2}:3.75pt)
134 } -- cycle;
135 }
136
137 \NewDocumentCommand{\expandablestar}{}{
138 \tikz{\expandablestarcode}
139 }
140
141 \NewDocumentCommand{\warning}{}{%
142 \begin{tikzpicture}[overlay, baseline={(w.base)}]
143 \node[circle, fill, black!25!red!10, text=black!25!red, outer sep=0pt]
144 (w) at (-3em,0pt) {\bfseries !};
145 \fill[black!25!red!10]
146 (w.east) |- (w.south) -- cycle;
147 \end{tikzpicture}%
148 }
149
150 \tcbset{
151 size=small,
152 arc=2.5pt,
153 outer arc=2.5pt,
154 colframe=black!10,
155 colback=black!10,
156 title style hook/.style={},
157 }
158
159 \NewTCBListing{macrodef}{ s o }{
160 listing only,
161 listing style={leporellodocmacro},
162 grow to left by=2cm,
163 boxrule=0pt,
164 after={\par\smallskip\noindent},
165 enhanced,
166 IfValueT={#2}{
167 hypertarget=#2
168 },
169 IfBooleanT={#1}{
170 overlay={
171 \expandablestarcode[frame.north east]
172 }
173 }
174 }
175
176 \NewTCBListing{codeexample}{ }{
177 listing only,
178 listing style={leporellodoccodeexample},
179 after={\par\smallskip\noindent}
180 }
181
182 \NewTCBListing{codeexamplecolumns}{ }{
183 text side listing,
184 lefthand width=4.5cm,
185 listing style={leporellodoccodeexample},
186 after={\par\smallskip\noindent}
187 }
188
189 \NewTCBListing{macrodeprecated}{ s }{
190 listing only,
191 listing style={leporellodocmacro},
192 boxrule=0pt,
193 width={0.5\linewidth-2.5pt},
194 box align=top,
195 after=\hfill,
196 colframe=black!25!red!10,
197 colback=black!25!red!10,
198 enhanced,
199 IfBooleanT={#1}{
200 overlay={
201 \fill[black!25!red!10]
202 ([yshift={5pt-1.5em}]frame.north east)
203 -- ++(5pt,-5pt) -- ++(-5pt,-5pt)
204 -- cycle;
205 }
206 }
207 }
208
209 \NewTCBListing{macroreplacement}{ }{
210 listing only,
211 listing style={leporellodocmacro},
212 boxrule=0pt,
213 width={0.5\linewidth-2.5pt},
214 box align=top,
215 before={},
216 colframe=black!25!green!10,
217 colback=black!25!green!10
218 }
219
220 \NewTotalTCBox{\macro}{ O{} v }{
221 verbatim,
222 size=tight,
223 arc=1pt,
224 outer arc=1pt,
225 top=0.5pt,
226 bottom=0.5pt,
227 left=2pt,
228 right=2pt,
229 boxrule=0pt,
230 colframe=black!10,
231 colback=black!10,
232 fontupper=\small\ttfamily,
233 #1
234 }{\vphantom{/g}\lstinline^#2^}
235
236 \NewTotalTCBox{\titlemacro}{ s O{} m }{
237 verbatim,
238 size=tight,
239 arc=1pt,
240 outer arc=1pt,
241 top=0.5pt,
242 bottom=0.5pt,
243 left=2pt,
244 right=2pt,
245 boxrule=0pt,
246 colframe=black!10,
247 colback=black!10,
248 fontupper=\small\ttfamily,
249 title style hook,
250 #2
251 }{\vphantom{/g}\IfBooleanT{#1}{\textbackslash}#3}
252
253 \sisetup{detect-all}
254 \NewDocumentCommand{\mmdim}{m}{%
255 \qty{#1}{\milli\metre}%
256 }
257
258 \makedoctitle
259 [The leporello package]
260 {The \titlemacro{leporello} class}
261 {A LaTeX document class to create folded leaflets using columns and boxes}
262 {Jasper Habicht}[E-mail: \href{mailto:[email protected]}{[email protected]}. Title image: \textcopyright{} 2025 Hannah Klöber.]
263 {Version \leporellofileversion, released on \leporellofiledate}
264
265 \changes{v0.7.0}{2025/08/08}{First public beta release.}
266 \changes{v0.8.0}{2025/08/12}{Added box attachment mechanism and option to place arbitrary code to box background.}
267 \changes{v0.9.0}{2025/08/15}{Box attachment mechanism and flow mechanism use box name instead of ID. Enhanced pagination settings. Support for right-to-left and vertical typesetting.}
268 \changes{v0.9.2}{2025/08/18}{Various improvements and bug fixes.}
269 \changes{v0.9.3}{2025/08/22}{Stretch mechanism fixed.}
270 \changes{v0.9.5}{2025/08/25}{Improved alignment mechanism.}
271 \changes{v1.0.0}{2025/08/27}{Improved key management and flow mechanism. Added note mechanism.}
272 \changes{v1.0.1}{2025/08/30}{Fix of a bug that prevented the dimensions set with the keys \titlemacro{store width} and \titlemacro{store height} from having the correct value when used as value to the \titlemacro{offset} key. Fix of a bug in the stretch mechanism. Fix of a bug in right-to-left typesetting.}
273 \changes{v1.0.2}{2025/09/10}{Documented L3 commands. Fundamental revision of the flow mechanism using the shipout mechanism of LaTeX.}
274 \changes{v1.0.3}{2025/09/15}{Fix of a bug that resulted in wrong size of boxes using the flow mechanism. Added example to documentation to explain flow mechanism.}
275
276 \begin{document}
277 \vspace*{-2.5em}
278 \noindent\hspace{-10pt}
279 \includegraphics[width=80mm]{doc/leporello.pdf}
280 \bigskip
281
282 \printdoctitle
283 \bigskip
284
285 \section{Introduction}
286
287 The \macro{leporello} class is a LaTeX document class to create folded leaflets with the following key features:
288
289 \begin{itemize}
290 \item The document layout consists of a specific number of pages that can have varying widths and are placed next to each other. Each page contains one frame to contain typeset material.
291 \item Material is typeset in boxes and boxes are positioned in columns which in turn are placed into the frames on the pages of the document.
292 \item Columns are predefined and then placed into the frame of a page in the document layout. This way, columns can be used on pages with varying widths.
293 \item Boxes can have padding (including bleed) and a background and are positioned inside a column.
294 \end{itemize}
295
296 A folded leaflet is sometimes called leporello in reference to the servant of Don Giovanni (known from the opera by Mozart) who, at one point, unfolds a lengthy zig-zag folded list of his master's love affairs.
297
298 There are some requirements for the creation of print data for high-quality folded leaflets: Especially if the leaflet is folded inward, the inner pages should be a bit less wide, so in general the pages of a leaflet are not of the exact same width (although the widths only differ slightly). Also, borderless printing requires that the print data adds a so-called bleed area added to the layout if the final document into which the typeset material extends. This area is trimmed off eventually to avoid unprinted edges due to natural movement of the paper during guillotining. Crop marks need to be added to the print data showing the layout of the final document. This packages takes into account all these requirements while providing a lot of customization.
299
300 \warning This document class is still in an early development phase which means that bugs cannot be ruled out and some things may not work properly. Also, updates may be published frequently. The author is grateful for reporting any bugs via GitHub at \url{https://github.com/jasperhabicht/leporello/issues}. A site for asking questions about the document class and for suggestions for improvement is available at \url{https://github.com/jasperhabicht/leporello/discussions}.
301
302 \section{Loading the document class}
303
304 Use \macro{\documentclass{leporello}} to load the document class. The document class loads the \macro{graphicx} and the \macro{l3draw} package.
305
306 The document class is based on the \macro{article} class to enable basic typesetting commands. But due to the redefinition of the layout, certain functions of the \macro{article} class, such as placing material into the header, the footer or the margin (which do not exist in the leporello layout) or using floats or footnotes won't work. Instead of floats, the document class provides a sophisticated alignment mechanism for boxes. Instead of footnotes, it provides its own note mechanism.
307
308 \begin{macrodef}
309 |\leporelloset|[<prefix>]{<options>}
310 \end{macrodef}
311 Use \macro{\leporelloset} or use the optional argument of the \macro{\documentclass} command to globally set the document layout. The optional argument can be used to set a common prefix to all options. Options should be used without the \macro{global/} prefix when used as option to the \macro{\documentclass} command. The following options are available:
312
313 \begin{macrodef}
314 global/|columns|={<list of dimensions>}
315 global/|two columns|
316 global/|three columns|
317 global/|four columns|
318 global/|four columns wrap|
319 global/|five columns|
320 global/|six columns|
321 \end{macrodef}
322 Expects a comma-separated list of dimensions that describe the widths of the columns in the layout. If \macro{columns} is not specified, the class assumes the default value of \macro{97mm, 100mm, 100mm}. The width of the document layout is automatically calculated from the dimensions set via \macro{columns}.
323
324 A few column layouts are predefined. These do not expect a value. The layouts will set the following list of dimensions:
325
326 \begin{longtable}{
327 @{}
328 p{\dimexpr0.35\linewidth-\tabcolsep}
329 p{\dimexpr0.65\linewidth-\tabcolsep}
330 @{}
331 }
332 \toprule
333 \textbf{Key} & \textbf{List of dimensions} \\
334 \midrule
335 \macro{two columns} & \mmdim{99}, \mmdim{99} \\
336 \macro{three columns} & \mmdim{97}, \mmdim{100}, \mmdim{100} \\
337 \macro{four columns} & \mmdim{99}, \mmdim{99}, \mmdim{99}, \mmdim{100} \\
338 \macro{four columns wrap} & \mmdim{97}, \mmdim{99}, \mmdim{100}, \mmdim{101} \\
339 \macro{five columns} & \mmdim{97}, \mmdim{97}, \mmdim{97}, \mmdim{99}, \mmdim{100} \\
340 \macro{six columns} & \mmdim{99}, \mmdim{99}, \mmdim{96}, \mmdim{96}, \mmdim{100}, \mmdim{100} \\
341 \bottomrule
342 \end{longtable}
343
344 \begin{macrodef}
345 global/|layout height|={<dimension>}
346 \end{macrodef}
347 Expects a dimension that sets the height of the final layout. If \macro{global/layout height} is not specified, the class assumes the default value of \macro{210mm} (the height of A4 landscape).
348
349 \begin{macrodef}
350 global/|auto typeset|
351 \end{macrodef}
352 If set, the columns are automatically typeset according to the order of the definition of the columns. This means that in a three-column layout for example, the first three defined columns will be placed on the first PDF page followed by the next three defined columns on the next PDF page. This key does not expect a value.
353
354 \begin{macrodef}
355 global/|show frames|
356 \end{macrodef}
357 If set, frames around the single pages (columns) are shown. This key does not expect a value.
358
359 \begin{macrodef}
360 global/|show ids|
361 \end{macrodef}
362 If set, the IDs of the boxes are shown. This key does not expect a value. The IDs of the boxes are integers starting from 1 and increasing in the order of typesetting of the boxes.
363
364 \begin{macrodef}
365 global/|prepress|
366 \end{macrodef}
367 If set, the paper size is increased at all four edges by the width of the info area and crop marks are placed at the corners. This key does not expect a value.
368
369 \begin{macrodef}
370 global/|info area|={<dimension>}
371 \end{macrodef}
372 Expects a dimension for the width of the info area that is shown if \macro{global/prepress} is set. If \macro{global/info area} is not specified, the class assumes the default value of \macro{10mm}.
373
374 \begin{macrodef}
375 global/|bleed|={<dimension>}
376 \end{macrodef}
377 Expects a dimension for the width of the bleed that is added to boxes with background and other material reaching to the edges of the document layout. If \macro{global/bleed} is not specified, the class assumes the default value of \macro{3mm}.
378
379 \begin{macrodef}
380 |\leporellobleed|
381 \end{macrodef}
382 Retrieves the width of the bleed in pt.
383
384 \begin{macrodef}
385 |\leporellolayoutheight|
386 \end{macrodef}
387 Retrieves the height of the layout in pt.
388
389 \begin{macrodef}
390 |\leporelloboxwidth|
391 \end{macrodef}
392 Retrieves the width of the current box including padding, but without bleed, in pt. The width of the box excluding padding can be retrieved with the \macro{\linewidth} command.
393
394 \section{Defining columns}
395
396 Columns are grouped material to be typeset onto a specific page of the folded leaflet. A column can contain anything that can be placed in a TeX box in general, but the typical use of a column is to only serve as a frame to which boxes are attached. While the package provides a flow mechanism across boxes, no such mechanism is provided for columns. Thus, if a column contains more than fits into it, the relevant parts just spill over the frame edges.
397
398 \begin{macrodef}
399 \null\begin{|leporellocolumn|}{<string>}
400 <body>
401 \end{|leporellocolumn|}
402 \end{macrodef}
403 A column is defined by the \macro{leporellocolumn} environment which takes one mandatory argument taking the name of the column. A single dot (\macro{.}) is reserved as name for an empty column.
404
405 \section{Positioning boxes}
406
407 \begin{macrodef}
408 \null\begin{|leporellobox|}[<options>]
409 <body>
410 \end{|leporellobox|}
411 \end{macrodef}
412 Boxes can be positioned inside of columns. They can contain anything that can be placed in a TeX box in general. A box is defined by the \macro{leporellobox} environment which takes one optional argument to set box-specific options. Options should be used without the \macro{box/} prefix when used as option to the \macro{leporellobox} environment. These are the following:
413
414 \begin{macrodef}
415 box/|name|={<string>}
416 \end{macrodef}
417 Expects a (unique) string denoting the name of the box which can be used for attaching boxes to one another or for assigning boxes for the flow mechanism. This key can only be set locally to the \macro{leporellobox} environment.
418
419 \begin{macrodef}
420 box/|parent|={<string>}
421 \end{macrodef}
422 Expects a string denoting the name of the box to which the current box is aligned. If not specified, the current column box is assumed as parent box. The parent box needs to be in the same column as the box that should be aligned to it. This key can only be set locally to the \macro{leporellobox} environment.
423
424 \begin{macrodef}
425 box/|align parent|={<tuple of poles>}
426 \end{macrodef}
427 Expects a comma-separated list of two items (a tuple) which denotes the horizontal and vertical pole of which the intersection defines the coordinate of the parent box (per default this is the current column box) that serves as anchor to align the current box. If not specified, the default value \macro{l, t} is assumed, denoting the top left corner. Available poles are:
428
429 \begin{longtable}{
430 @{}
431 p{3em}
432 p{\dimexpr\linewidth-2\tabcolsep-3em}
433 @{}
434 }
435 \toprule
436 \textbf{Key} & \textbf{Meaning} \\*
437 \midrule
438 \macro{l} & left edge of the box \\
439 \macro{hc} & horizontal center of the box \\
440 \macro{r} & right edge of the box \\
441 \macro{t} & top edge of the box \\
442 \macro{vc} & vertical center of the box \\
443 \macro{b} & bottom edge of the box \\
444 \bottomrule
445 \end{longtable}
446
447 \begin{macrodef}
448 box/|align self|={<tuple of poles>}
449 \end{macrodef}
450 Expects a comma-separated list of two items (a tuple) which denotes the horizontal and vertical pole of which the intersection defines the coordinate of the current box that serves as anchor to align the current box to parent box (per default this is the current column box). If not specified, the default value \macro{l, t} is assumed, denoting the top left corner. Available poles are the same as for \macro{box/align parent}.
451
452 \begin{macrodef}
453 box/|offset|={<tuple of dimensions>}
454 \end{macrodef}
455 Expects a comma-separated list of two dimensions (a tuple) which defines the offset of the anchor set via \macro{box/align parent} and \macro{box/align self}. The first dimension is the offset to the right, the second dimension the offset downwards. If not specified, the default value \macro{0mm, 0mm} is assumed. Internally, the value is parsed as a floating point variable.
456
457 \begin{macrodef}
458 box/|width|={<dimension>}
459 \end{macrodef}
460 Expects a dimension to explicitly set the width of the current box. If not specified, the box is as wide as the parent column.
461
462 \begin{macrodef}
463 box/|height|={<dimension>}
464 \end{macrodef}
465 Expects a dimension to explicitly set the height of the current box. If not specified, the box takes its natural height which means that it is as high as necessary to fit the contents.
466
467 \begin{macrodef}
468 box/|stretch|
469 \end{macrodef}
470 If set, the box is stretched until its relevant edge (the bottom edge if aligned at the top, the top edge if aligned at the bottom, or the left or right edge in vertical typesetting) meets the edge of the parent column. This key does not expect a value.
471
472 This key can also help to align the relevant edges in cases where stretchable glue close to the edge would otherwise make the box overlap the edge of the parent column.
473
474 \warning The \macro{box/stretch} key only affects the outer box. Therefore, if a box is stretched and has an offset, the height (or width in vertical typesetting) needs to be given explicitly as the text will flow out of the box otherwise.
475
476 \begin{macrodef}
477 box/|padding left|={<dimension>}
478 box/|padding right|={<dimension>}
479 box/|padding top|={<dimension>}
480 box/|padding bottom|={<dimension>}
481 box/|padding|={<key-value list>}
482 box/|no padding|
483 \end{macrodef}
484 Each of the four keys \macro{box/padding left}, \macro{box/padding right}, \macro{box/padding top} and \newline \macro{box/padding bottom} expects a dimension to describe the padding of the contents from the relevant edge of the box. If not specified, the default value of \macro{7.5mm} is assumed.
485
486 All four padding settings can also be stated using the \macro{box/padding} key and the subkeys \macro{left}, \macro{right}, \macro{top}, \macro{bottom}. Using this syntax, the default value of the padding setting would be expressed as \macro{box/padding={left=7.5mm, right=7.5mm, top=7.5mm, bottom=7.5mm}}.
487
488 The key \macro{box/no padding} sets all paddings to zero. This key does not expect a value.
489
490 \begin{macrodef}
491 box/|pre|={<code>}
492 \end{macrodef}
493 Expects a token list that is placed before the actual contents of the box. Should not contain typeset material. This can be handy, if multiple boxes should be styled in a similar way.
494
495 \begin{macrodef}
496 box/|background color|={<color name>}
497 box/|background color|={none}
498 \end{macrodef}
499 Expects a color name as defined via \macro{l3color} or \macro{none} which will not fill the background. If not specified, the default value of \macro{none} is assumed.
500
501 \begin{macrodef}
502 box/|background code|={<code>}
503 \end{macrodef}
504 Expects typeset material that will be placed into the background of the box aligned at the upper left corner of the box. THe typeset material is clipped to the size of the box.
505
506 \begin{macrodef}
507 box/|bleed|={<list of values>}
508 \end{macrodef}
509 Expects a comma-separated list consisting of up to four items with the values \macro{l} and \macro{r}, \macro{t} and \macro{b} that describe the edges (left, right, top and bottom) where bleed should be added to the box. Note that bleed is never added to the inner edges where the columns meet.
510
511 \begin{macrodef}
512 box/|store width|={<control sequence>}
513 \end{macrodef}
514 Expects a single control sequence (macro) to store the width of the current box.
515
516 \begin{macrodef}
517 box/|store height|={<control sequence>}
518 \end{macrodef}
519 Expects a single control sequence (macro) to store the height of the current box.
520
521 \begin{macrodef}
522 box/|flow into|={<string>}
523 \end{macrodef}
524 Expects a string denoting the name of the box into which typeset material will flow into if it does not fit into the current box. The box to flow into can be in a following column or on a following page. See section \ref{sec:flow} below. This key can only be set locally to the \macro{leporellobox} environment.
525
526 \section{Typesetting boxes into columns}
527
528 \begin{macrodef}
529 |\leporellotypesetcolumns|[<options>]{<list of strings>}
530 \end{macrodef}
531 The command \macro{\leporellotypesetcolumns} can be used to typeset previously defined columns into the document. The command expects as its single mandatory argument a comma-separated list of names of previously defined columns. These are then placed onto a document page from left to right while the width is taken from the setting via the \macro{global/columns} key and the height is taken from the setting via the \macro{layout height} key. With a \macro{.}, an empty column can be added to the list.
532
533 The command takes one optional argument. Options should be used without the \macro{typeset/} prefix when used as option to the \macro{\leporellotypesetcolumns} command. The command accepts the following options:
534
535 \begin{macrodef}
536 typeset/|reverse layout|
537 \end{macrodef}
538 If set, the widths of the columns are reversed, but the placement of the columns is still from left to right. This option does not take a value. The option should be used to typeset the verso of a folded leaflet that naturally has the widths of the columns reversed. This key does not expect a value.
539
540 \begin{macrodef}
541 typeset/|reverse order|
542 \end{macrodef}
543 If set, the order of the columns is reversed, which means that the columns are typeset from right to left. Pagination is not affected. This key does not expect a value.
544
545 \begin{macrodef}
546 typeset/|reverse pagination|
547 \end{macrodef}
548 If set, the pagination of the columns is reversed. This key does not expect a value.
549
550 \begin{macrodef}
551 typeset/|alternate layout|
552 \end{macrodef}
553 If set, the widths of the columns are reversed in every second page. This key is set to \macro{true} per default. Use \macro{typeset/alternate layout=false} to disable this function.
554
555 \begin{macrodef}
556 typeset/|continuous pagination|
557 \end{macrodef}
558 If set, columns are numbered continuously from left to right. Otherwise, the pagination starts on the last column of every odd shipout page, continues from left to right over the columns on the following shipout page and eventually from left ro right over the remaining columns on the first page. For example, in a document with three columns per shipout page the pagination would be 5, 6, 1 and 2, 3, 4 and then on the next two shipout pages 11, 12, 7 and 8, 9, 10. This key does not expect a value.
559
560 \section{Flow mechanism}\label{sec:flow}
561
562 Typeset material can flow from one box to another box. To this end, the key \macro{box/flow into} can be set to the relevant box and assigned the name of the box to flow into as value. The name of the relevant box can be set via the \macro{box/name} key. If two or more boxes are connected this way, contents of the boxes are always concatenated.
563
564 Prior to shipping out a (PDF) page, all material in boxes that have the \macro{box/flow into} key set (and where another box with the relevant name exists) is collected and shipped out to pages of the size of the boxes the relevant material should flow into. The resulting boxes are saved internally and the shipout of these boxes is discarded. The saved boxes are then placed into the relevant boxes on the (PDF) page which is eventually shipped out.
565
566 \begin{macrodef}
567 |\leporelloboxbreak|
568 \end{macrodef}
569 The flow mechanism works across multiple boxes. But due to the way the typesetting mechanism of TeX works, it needs some manual adjustment if the typeset material flows across boxes of different width. In this case, the command \macro{\leporelloboxbreak} or \macro{\pagebreak} should be inserted at the point where the break should take place. The command \macro{\leporelloboxbreak} is especially suited for justified typesetting as it will keep the last line before the break justified in contrast to the \macro{\pagebreak} command.
570
571 Typeset material can only flow into boxes that are defined later in the code. If typeset material should flow backwards on the same page, this can be achieved using the key \macro{reverse order} on the relevant page.
572
573 \subsection{Right-to-left and vertical typesetting}
574
575 The document class natively supports right-to-left and vertical typesetting using the mechanisms provided by LuaLaTeX. The \macro{babel} package also makes use of the mechanisms for bidirectional typesetting provided by LuaLaTeX, which means that this package will work best with a combination of LuaLaTeX and \macro{babel} for right-to-left or vertical typesetting.
576
577 If right-to-left typesetting is activated, the layout, order and pagination of the layout will be reversed automatically.
578
579 If the \macro{bidi} package is used (which is used by the \macro{polyglossia} package), the following addition to the preamble is needed to enable right-to-left typesetting:
580
581 \begin{codeexample}
582 \AddToHook{leporello/typeset/before}{\setLTR}
583 \AddToHook{leporello/box/begin}{\setRTL}
584 \end{codeexample}
585
586 In general, it has to be made sure that only the inner boxes are affected by the right-to-left or vertical typesetting mechanism and not the overall layout.
587
588 Vertical typesetting will typically affect the measurements of the boxes. The package sets to true the boolean \macro{\l_leporello_layout_vertical_ltr_bool} for vertical typesetting from left to right (for example used to write traditional Mongolian). The package sets to true the boolean \macro{\l_leporello_layout_vertical_rtl_bool} for vertical typesetting from right to left (for example used to write Chinese, Japanese or Korean).
589
590 \section{Other settings}
591
592 \subsection{Inserting images}
593
594 One way to insert images is via the \macro{\includegraphics} command provided by the \macro{graphicx} package. Using the \macro{box/background code} key, images can be added to the background of a box.
595
596 \begin{macrodef}
597 |\leporelloimage|[<options>]{<file name>}
598 \end{macrodef}
599 With the command \macro{\leporelloimage} images that cover full boxes can be inserted. This command can be placed in a \macro{leporellobox} with zero padding and it should only be used inside a \macro{leporellobox} environment. The command has one mandatory argument that takes a relative path and file name to select the image to be inserted. It also has one optional argument to take options to be used without the \macro{image/} prefix. The following options are available:
600
601 \begin{macrodef}
602 image/|clip width|={<dimension>}
603 image/|clip height|={<dimension>}
604 \end{macrodef}
605 Expect a dimension depicting the width and the height of the boxed image.
606
607 \begin{macrodef}
608 image/|scale|={<floating point number>}
609 \end{macrodef}
610 Expects a floating point number depicting the scaling factor of the image. This factor will not affect the size of the box.
611
612 \begin{macrodef}
613 image/|width|={<dimension>}
614 image/|height|={<dimension>}
615 \end{macrodef}
616 Expect a dimension to explicitly set the width and the height of the image. Setting \macro{image/width} will override a \macro{image/scale} value. Setting \macro{image/height} will override a \macro{image/width} or \macro{image/scale} value. The aspect ratio of the original image will always be kept.
617
618 \begin{macrodef}
619 image/|offset|={<tuple of dimensions>}
620 \end{macrodef}
621 Expects a comma-separated list consisting of two values (tuple) that describe the offset of the image that will be positioned per default so that the upper left corner sits at the upper left corner of the box. A positive offset will shift the image in upper left direction. Internally, the value is parsed as a floating point variable.
622
623 \begin{macrodef}
624 image/|ignore padding|={<list of values>}
625 \end{macrodef}
626 Expects a comma-separated list consisting of up to four items with the values \macro{l} and \macro{r}, \macro{t} and \macro{b} that describe the edges (left, right, top and bottom) where the image should ignore the padding of the current box.
627
628 \begin{macrodef}
629 image/|fill bleed|
630 \end{macrodef}
631 If set, the image will spread into the bleed. This will result in a shift of the image by the size of the bleed which may need to be accounted for using \macro{image/offset}. This key does not expect a value.
632
633 \subsection{Defining colors}
634
635 The package uses the color model of the \macro{l3color} module. The \macro{xcolor} package is not supported. To provide a user interface to define and select colors, the commands \macro{\leporellocolordefine} and \macro{\leporellocolorselect} are defined.
636
637 \begin{macrodef}
638 |\leporellocolordefine|{<string>}{<color model>}{<list of values>}
639 \end{macrodef}
640 The command \macro{\leporellocolordefine} takes three arguments, the first being the name of the color to be defined. The second argument takes the color model (for example \macro{rgb} or \macro{cmyk}) and the third argument takes the color values. For more information about which color models are supported, please refer to the documentation of the \macro{l3color} module.
641
642 \begin{macrodef}
643 |\leporellocolorselect|{<string>}
644 \end{macrodef}
645 The command \macro{\leporellocolorselect} takes the name of the previously defined color as argument. All following objects are affected by this color setting. To colorize only a few letters, use curly braces for grouping.
646
647 \subsection{Defining styles}
648
649 \begin{macrodef}
650 |\leporellosetstyle|[<prefix>]{<string>}{<key-value list>}
651 \end{macrodef}
652 In order to simplify the setting of recurring options to the \macro{leporellobox} environment, it is possible to group several of these options as style via the \macro{\leporellosetstyle} command which takes as first argument the name of the newly defined style and as second argument the releevant options (key-value pairs). The style can then be used like an option to any \macro{leporellobox} environment. The optional argument can be used to set a common prefix for the style definition. The following two expressions are equivalent:
653
654 \begin{codeexample}
655 \leporellosetstyle[box]{align bottom}{
656 align parent={l,b},
657 align self={l,b}
658 }
659
660 \leporellosetstyle{box/align bottom}{
661 box/align parent={l,b},
662 box/align self={l,b}
663 }
664 \end{codeexample}
665
666 \subsection{Notes}
667
668 Due to the layout specifications, this document class does not support footnotes. Instead, it provides its own note mechanism that allows to insert marks for notes and printing the notes combined as list.
669
670 \begin{macrodef}
671 |\leporellonote|[<integer>]{<code>}
672 \end{macrodef}
673 The command \macro{\leporellonote} increases the internal note counter and inserts a mark. It stores the actual note provided in the argument in an internal sequence. Using the optional argument, the counter for the mark can be set explicitly.
674
675 \begin{macrodef}
676 |\leporelloprintnotes|
677 \end{macrodef}
678 The command \macro{\leporelloprintnotes} prints all notes as list. Per default, this is an \macro{enumerate} environment. It also empties the internal sequence to store notes.
679
680 Using the command \macro{\leporelloset}, note marks and note lists can be styled. The following options are available:
681
682 \begin{macrodef}
683 notes/|mark cmd|={<control sequence>}
684 \end{macrodef}
685 Expects a control sequence that takes exactly one argument being the value of the counter of the note. The counter has the L3 integer type. To print the marks as Roman numerals in square brackets separated by a space, for example, the following settings could be used:
686
687 \begin{codeexample}
688 \NewDocumentCommand{\squaredroman}{m}{\,[\romannumeral #1]}
689 \leporellonotesset{
690 mark cmd = {\squaredroman}
691 }
692 \end{codeexample}
693
694 \begin{macrodef}
695 notes/|list style|={<string>}
696 \end{macrodef}
697 Expects a name of the list environment such as \macro{enumerate} or \macro{itemize}. Using the \macro{enumitem} package, for example, a custom list can be created and styled individually.
698
699 \subsection{Hooks}
700
701 The package offers three pairs of hooks that are positioned at the start and end of columns and boxes allowing for inserting code.
702
703 The package uses the hook \macro{begindocument/before} to insert layout-related settings as well as the hook \macro{shipout/foreground} to insert code to draw crop marks. It uses the hook \newline \macro{enddocument} to insert code for the automatic typesetting mechanism that is activated via the key \macro{global/auto typeset}. It also uses the hook \macro{label} to change the default code for the \macro{\label} so that it immediately writes to the auxiliary file.
704
705 The flow mechanism makes use of the hook \macro{shipout/before} to insert code to break typeset material into boxes and \macro{build/page/after} to update the current page number. The inserted code is removed after the flow mechanism has finished.
706
707 The hooks \macro{leporello/break-flow/before}, \macro{leporello/typeset/before} and \newline \macro{leporello/box/begin} are used to set and unset right-to-left and vertical typesetting mode.
708
709 Finally, hooks are used to issue warnings if the commands \macro{\footnote}, \macro{\footnotemark} and \macro{\footnotetext} or the environments \macro{figure} or \macro{table} are used as this document class does not support these commands and environments.
710
711 \begin{longtable}{
712 @{}
713 p{15em}
714 p{\dimexpr\linewidth-2\tabcolsep-15em}
715 @{}
716 }
717 \toprule
718 \textbf{Hook} & \textbf{Position} \\*
719 \midrule
720 \macro{leporello/column/begin} & before the code block stored via the \macro{leporellocolumn} environment is typeset to the column box, preceded by a line of code that saves the name of the current column into \macro{\l_leporello_current_column_str} \\
721 \macro{leporello/column/end} & after the code block stored via the \macro{leporellocolumn} environment is typeset to the column box \\
722 \macro{leporello/box/begin} & before the code block stored via the \macro{leporellobox} environment is typeset into the relevant box which is preceded by a line of code that saves the ID of the current column into \macro{\l_leporello_current_box_int} and immediately followed by the code defined via the \macro{box/pre} key \\
723 \macro{leporello/box/end} & after the code block stored via the \macro{leporellobox} environment is typeset to the relevant box \\
724 \macro{leporello/typeset/before} & immediately after the start of the group that contains the typeset column \\
725 \macro{leporello/typeset/after} & immediately before the end of the group that contains the typeset column \\
726 \macro{leporello/break-flow/before} & before the flow mechanism is initiated that breaks material into boxes \\
727 \macro{leporello/break-flow/after} & after the flow mechanism has finished \\
728 \bottomrule
729 \end{longtable}
730
731 \section{Examples}
732
733 The following examples show some of the basic ideas of the package by providing a code example and showing its output.
734
735 \begin{tcolorbox}
736 \setlength{\fboxsep}{0pt}
737 \colorbox{white}{\includegraphics[width=\linewidth]{doc/layout.pdf}}
738 \end{tcolorbox}
739
740 \begin{codeexample}
741 \documentclass[
742 prepress,
743 show frames,
744 show ids
745 ]{leporello}
746
747 \leporellosetstyle[box]{align bottom}{
748 align parent={l,b},
749 align self={l,b}
750 }
751
752 \begin{leporellocolumn}{example-a}
753 \begin{leporellobox}[
754 background color={black!10},
755 height={50mm},
756 bleed={l,t}
757 ]
758 foo
759 \end{leporellobox}
760 \end{leporellocolumn}
761
762 \begin{leporellocolumn}{example-b}
763 \begin{leporellobox}[
764 background color={black!10},
765 offset={0mm,50mm},
766 stretch,
767 bleed={b}
768 ]
769 bar
770 \end{leporellobox}
771 \end{leporellocolumn}
772
773 \begin{leporellocolumn}{example-c}
774 \begin{leporellobox}[
775 background color={black!10},
776 align bottom,
777 bleed={r,b}
778 ]
779 baz
780 \end{leporellobox}
781 \end{leporellocolumn}
782
783 \begin{document}
784
785 \leporellotypesetcolumns{
786 example-a, example-b, example-c
787 }
788
789 \end{document}
790 \end{codeexample}
791
792 This example shows the use of the \macro{global/prepress} key that adds crop marks to the layout. It also shows how the \macro{global/show frames} key adds frames around the columns. Finally, the \macro{global/show id} key adds the box IDs to the boxes.
793
794 The default layout has three pages which are shown here. Three columns named \macro{example-a}, \macro{example-b} and \macro{example-c} are defined and contain one box each. A custom style is defined to combine the two keys needed to bottom-align the third box. A fixed height is set to for the first box and the second box has an offset and its height stretched to the bottom of the column. Bleed is added to the relevant edges of the three columns.
795
796 \begin{tcolorbox}
797 \setlength{\fboxsep}{0pt}
798 \colorbox{white}{\includegraphics[width=\linewidth]{doc/flow.pdf}}
799 \end{tcolorbox}
800
801 \begin{codeexample}
802 \documentclass[
803 prepress,
804 show frames,
805 show ids
806 ]{leporello}
807
808 \usepackage{lipsum}
809
810 \begin{leporellocolumn}{example-a}
811 \begin{leporellobox}[
812 background color={black!10},
813 height={75mm},
814 bleed={t},
815 flow into={box-b}
816 ]
817 \lipsum[1-3]
818
819 This is another paragraph without any particular meaning. The sole
820 reason for its existence is to show how this \leporelloboxbreak
821 document class can be used and to explain some of its core features.
822 \par
823 \end{leporellobox}
824 \end{leporellocolumn}
825
826 \begin{leporellocolumn}{example-b}
827 \begin{leporellobox}[
828 background color={black!10},
829 offset={0mm,75mm},
830 height={\leporellolayoutheight-75mm},
831 bleed={r,b},
832 name={box-b},
833 flow into={box-c}
834 ]
835 Some more text
836 \end{leporellobox}
837 \end{leporellocolumn}
838
839 \begin{leporellocolumn}{example-c}
840 \begin{leporellobox}[
841 background color={black!10},
842 bleed={l,t},
843 name={box-c}
844 ]
845 \end{leporellobox}
846 \end{leporellocolumn}
847
848 \begin{document}
849
850 \leporellotypesetcolumns{
851 example-c, example-a, example-b
852 }
853
854 \end{document}
855 \end{codeexample}
856
857 This example shows some features of the flow mechanism. The text in the second box is moved to the end of the collected contents of all three boxes that are connected via the \macro{box/flow into} and \macro{box/name} keys. Note that the contents are appended without adding anything between, which is why a \macro{\par} was added in this example. This example further shows how the command \newline \macro{\leporelloboxbreak} can be used to ensure that text that flows across boxes with different width is typeset correctly.
858
859 % =====
860
861 \section{L3 commands}
862
863 \begin{macrodef}
864 |\l_leporello_layout_width_dim|
865 |\l_leporello_layout_height_dim|
866 \end{macrodef}
867 These variables hold the width and height of the layout which is the width and the height of the final printed matter without info area.
868
869 \begin{macrodef}
870 |\l_leporello_paper_width_dim|
871 |\l_leporello_paper_height_dim|
872 \end{macrodef}
873 These variables hold the width and height of the paper including info area.
874
875 \begin{macrodef}
876 |\l_leporello_bleed_dim|
877 |\l_leporello_info_area_dim|
878 \end{macrodef}
879 These variables hold the size of the bleed and the info area.
880
881 \begin{macrodef}
882 |\l_leporello_columns_clist|
883 \end{macrodef}
884 This variable holds the list of dimensions that represent the widths of the columns in the layout.
885
886 \begin{macrodef}
887 |\l_leporello_column_count_int|
888 \end{macrodef}
889 This variable holds the number of columns in the layout. It is calculated from the list of dimensions given to the \macro{global/columns} key.
890
891 \begin{macrodef}
892 |\l_leporello_prepress_bool|
893 |\l_leporello_show_frames_bool|
894 |\l_leporello_show_id_bool|
895 |\l_leporello_auto_typeset_bool|
896 \end{macrodef}
897 These variables hold the relevant values of the \macro{global/prepress}, \macro{global/show frames}, \newline \macro{global/show id} and \macro{global/auto typeset} keys.
898
899 \begin{macrodef}
900 |\l_leporello_typeset_reverse_layout_bool|
901 |\l_leporello_typeset_reverse_order_bool|
902 |\l_leporello_typeset_reverse_pagination_bool|
903 |\l_leporello_typeset_alternate_layout_bool|
904 |\l_leporello_typeset_continuous_pagination_bool|
905 \end{macrodef}
906 These variables hold the relevant values of the \macro{typeset/reverse layout}, \newline \macro{typeset/reverse order}, \macro{typeset/reverse pagination}, \newline \macro{typeset/alternate layout} and \macro{typeset/continuous pagination} keys.
907
908 \begin{macrodef}
909 |\l_leporello_layout_vertical_ltr_bool|
910 |\l_leporello_layout_vertical_rtl_bool|
911 \end{macrodef}
912 These variables are set to true if the current layout is set to vertical and left-to-right or to vertical and right-to-left.
913
914 \begin{macrodef}
915 |\g_leporello_current_sheet_int|
916 |\g_leporello_current_page_int|
917 \end{macrodef}
918 These variables hold the IDs of the current sheet (page in the PDF file) and the current page. A page is considered a column in the document. Pagination is not necessarily continuous. These values are always set globally.
919
920 \begin{macrodef}
921 |\l_leporello_current_column_int|
922 |\l_leporello_current_box_int|
923 \end{macrodef}
924 These variables hold the IDs of the current column (column on the sheet) and the current box as integer respectively.
925
926 \begin{macrodef}
927 |\l_leporello_current_column_str|
928 \end{macrodef}
929 This variable holds the name of the current column.
930
931 \begin{macrodef}
932 |\l_leporello_image_width_dim|
933 |\l_leporello_image_height_dim|
934 |\l_leporello_image_clip_width_dim|
935 |\l_leporello_image_clip_height_dim|
936 |\l_leporello_image_scale_fp|
937 |\l_leporello_image_fill_bleed_bool|
938 \end{macrodef}
939 These variables hold the relevant values of the \macro{image/width}, \macro{image/height}, \newline \macro{image/clip width}, \macro{image/clip height}, \macro{image/scale} and \macro{image/fill bleed} keys.
940
941 \begin{macrodef}
942 |\g_leporello_notes_int|
943 \end{macrodef}
944 This variable holds the current counter for notes.
945
946 \begin{macrodef}
947 |\l_leporello_notes_list_style_str|
948 \end{macrodef}
949 This variable holds the name of the environment of the notes list. It can be changed via the key \macro{notes/list style}.
950
951 \begin{macrodef}
952 |\leporello_typeset_image:nn| {<key-value list>} {<file>}
953 \end{macrodef}
954 This command typesets the image from the relevant file using the options set via \macro{image/} keys.
955
956 \begin{macrodef}
957 |\leporello_typeset_columns:nn| {<key-value list>} {<list of strings>}
958 |\leporello_typeset_columns:nV| {<key-value list>} <clist varliable>
959 \end{macrodef}
960 This command is the equivalent of the user-level command \macro{\leporellotypesetcolumns}. It takes as first argument options set via \macro{typeset/} keys and as second argument a list of strings consisting of the names of the columns to be typeset.
961
962 \begin{macrodef}
963 |\leporello_fp_tuple_use_i:n| {<fp tuple>}
964 |\leporello_fp_tuple_use_i:e| {<fp tuple>}
965 |\leporello_fp_tuple_use_ii:n| {<fp tuple>}
966 |\leporello_fp_tuple_use_ii:e| {<fp tuple>}
967 \end{macrodef}
968 These commands extract the first or the second item of a floating point tuple.
969
970 \begin{macrodef}
971 |\leporello_note_mark:n| {<integer>}
972 \end{macrodef}
973 This command expects as argument the value of the current note counter as integer and typesets a corresponding mark. It can be changed via the key \macro{notes/mark cmd}. The default definition is as follows:
974
975 \begin{codeexample}
976 \cs_new:Npn \leporello_note_mark:n #1 {
977 \leporello_text_superscript:n { \int_use:N #1 }
978 }
979 \end{codeexample}
980
981 \noindent The following commands have been defined for consistency of the syntax.
982
983 \begin{macrodef}
984 |\leporello_ltlayout_paperwidth_set:n| {<dimension>}
985 |\leporello_ltlayout_paperheight_set:n| {<dimension>}
986 |\leporello_ltlayout_textwidth_set:n| {<dimension>}
987 |\leporello_ltlayout_textheight_set:n| {<dimension>}
988 |\leporello_ltlayout_topmargin_set:n| {<dimension>}
989 |\leporello_ltlayout_oddsidemargin_set:n| {<dimension>}
990 |\leporello_ltlayout_evensidemargin_set:n| {<dimension>}
991 |\leporello_ltlayout_hoffset_set:n| {<dimension>}
992 |\leporello_ltlayout_voffset_set:n| {<dimension>}
993 |\leporello_ltlayout_headheight_set:n| {<dimension>}
994 |\leporello_ltlayout_headsep_set:n| {<dimension>}
995 |\leporello_ltlayout_footskip_set:n| {<dimension>}
996 |\leporello_ltlayout_marginparwidth_set:n| {<dimension>}
997 |\leporello_ltlayout_marginparsep_set:n| {<dimension>}
998 |\leporello_ltlayout_marginparpush_set:n| {<dimension>}
999 \end{macrodef}
1000 These commands set the relevant LaTeX dimension to the argument given. To give an example, \macro{\leporello_ltlayout_paperwidth_set:n {297mm}} sets \macro{\paperwidth} to 297mm. These commands also have a ...\macro{_gset:n} variant that sets the dimension globally.
1001
1002 \begin{macrodef}
1003 |\leporello_pagestyle_set:n| {<string>}
1004 \end{macrodef}
1005 The command \macro{\leporello_pagestyle_gset:n {#1}} is a wrapper for \macro{\pagestyle{#1}} to set the page style.
1006
1007 \begin{macrodef}
1008 |\leporello_page_gset:n| {<integer>}
1009 \end{macrodef}
1010 The command \macro{\leporello_page_gset:n {#1}} is a wrapper for \macro{\setcounter{page}{#1}} to set the current page number.
1011
1012 \begin{macrodef}
1013 |\leporello_text_superscript:n| {<token list>}
1014 \end{macrodef}
1015 The command \macro{\leporello_text_superscript:n {#1}} is a wrapper for \newline \macro{\textsuperscript{#1}}.
1016
1017 \begin{macrodef}
1018 |\leoprello_graphics_use:nn| {<key-value list>} {<file>}
1019 \end{macrodef}
1020 The command \macro{\leoprello_graphics_use:nn {#1} {#2}} is a wrapper for \newline \macro{\includegraphics[#1]{#2}}.
1021
1022 % =====
1023
1024 \printchanges
1025
1026 \end{document}
1027
1028 %% End of file `leporello-doc.tex`.