Debian Codegraph @

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

raw
1 %% missaali.tex
2 %% Copyright 2021 Tommi Syrjänen
3 %
4 % This work may be distributed and/or modified under the
5 % conditions of the LaTeX Project Public License, either version 1.3
6 % of this license or (at your option) any later version.
7 % The latest version of this license is in
8 % http://www.latex-project.org/lppl.txt
9 % and version 1.3 or later is part of all distributions of LaTeX
10 % version 2005/12/01 or later.
11 %
12 % This work has the LPPL maintenance status `maintained'.
13 %
14 % The Current Maintainer of this work is Tommi Syrjänen
15 %
16 % See file MANIFEST-Foliono.txt to a list of files that make up this
17 % work.
18 \documentclass[a4paper, 12pt]{article}
19 %% Author: Tommi Syrjänen ([email protected])
20 %%
21 %% This software is distributed under the LPPL license
22
23 %% This is the documentation file for the foliono LaTeX package.
24 \usepackage{fontspec}
25 \usepackage{graphicx}
26
27 \newcommand{\feature}[1]{\texttt{#1}}
28 \newcommand{\command}[1]{\texttt{\textbackslash{}#1}}
29 \newcommand{\commandone}[2]{\texttt{\textbackslash{}#1\{#2\}}}
30 \newcommand{\commandtwo}[3]{\texttt{\textbackslash{}#1\{#2\}\{#3\}}}
31 \newcommand{\argument}[1]{\texttt{#1}}
32
33 \makeatletter
34
35 \newcommand{\foliodemo}[2]{%
36 \setfoliono{#1}{#2}%
37 \currentfoliowithstyles%
38 }
39
40 \makeatother
41
42
43
44 \title{The \texttt{foliono} package \\
45 Folio numbering for old books}
46
47 \author{Tommi Syrjänen\\ \texttt{[email protected]}}
48 \date{Version 1.0, 25 March, 2021}
49
50 \usepackage{foliono}
51
52
53 % Define the folionumber font. This font is available in the package
54 % 'missaali'
55 \folionofont{Missaali}
56 \folionofontsize{14}
57
58 \begin{document}
59
60 \maketitle
61
62 \begin{abstract}
63 The \texttt{foliono} package implements medieval and early modern
64 folio numbering with a few customizable options. In folio numbering
65 only every other page gets a number and the number has two parts
66 that identify both the quire and the folio inside of the quire. The
67 package works best in conjunction with the \texttt{fancyhdr} package
68 but it can be used also without it.
69 \end{abstract}
70
71 \section{Introduction}
72
73 Before modern page numbering was introduced, the pages of a book were
74 numbered using \emph{folio numbering}. In this context \emph{folio}
75 means a single leaf of a page, an odd page and the even page that is
76 on the other side of.
77
78 A medieval book was composed of \emph{quires}. A quire is a collection
79 of sheets of paper or parchment that are folded together to form
80 pages. As the name suggests, most quires had four sheets that were
81 folded to form eight folios and 16 pages, but there were also three,
82 five, and even six sheet quires. With printed books the modern term
83 \emph{gathering} is usually used in place of \emph{quire}, but I have
84 used \emph{quire} throughout because it is shorter.
85
86 A medieval scribe would write the text on quires and then a bookbinder
87 would sew the completed quires together and attach the book covers.
88 Most texts needed more than one quire. Scribes started to number the
89 quires to help bookbinders to keep the quires in order. They were
90 usually marked by writing letters in alphabetical order at the bottom
91 or top right corner of the first page of the quire.
92
93 \begin{figure}
94 \centering
95 \begin{verbatim}
96 \usepackage{foliono}
97 \usepackage{fancyhdr}
98 \pagestyle{fancy}
99 \cfoot{}
100 \renewcommand{\headrulewidth}{0pt}
101 \fancyfoot[R]{\folionumber}
102 \end{verbatim}
103 \caption{Quick-start minimal code skeleton with \feature{fancyhdr}.}
104 \label{fig:quick_start}
105 \end{figure}
106
107
108 Later scribes started to add numbers for the individual folios of a
109 quire. This was usually done for books that needed a table of contents
110 or an index. Folio numbering became more prevalent with the advent of
111 printing as including them helped the bookbinder to ensure that the
112 sheets were folded right and put in the correct order.
113
114 For printed books the quires are formed using two basic principles.
115 The largest book format is called \emph{folio} and there the sheet is
116 folded once so that the result has two folios and four pages. These
117 sheets are collected in quires the same ways as manuscript sheets
118 were. In late medieval and early modern times the number of sheets put
119 in a quire varied also for printed books. I have seen examples ranging
120 from three sheets (6 folios) to six sheets (12 folios), with five
121 sheets (10 folios) being very common.
122
123 In smaller format books one printed sheet usually makes up a quire by
124 itself. In \emph{quarto} size the sheet is folded twice, so a quire
125 will have only four folios, in \emph{octavo} it is folded three times
126 so there are eight folios per quire, and in \emph{duodecimo} sheets
127 are folded four times to produce 12 folios.
128
129 \begin{table}[b]
130 \centering
131 \begin{tabular}{lcc}
132 Format & Folios per quire & Pages per quire \\
133 \hline
134 Folio (2:o) & 6-12 & 12-24 \\
135 Quarto (4:o) & 4 & 8 \\
136 Octavo (8:o) & 8 & 16 \\
137 Duodecimo (12:o) & 12 & 24 \\
138 \end{tabular}
139 \caption{Common old printed book formats}
140 \label{fig:formats}
141 \end{table}
142
143 A medieval or early modern folio number generally consists of two
144 parts, the quire number (A, B) and the folio number within quire in
145 Roman numerals (i, ii). There are some examples where the folios are
146 numbered sequentially from the start with no respect to the quire
147 structure. In many of these cases the folio numbers were added after
148 the book had already been bound.
149
150 In modern reference convention the
151 two pages of a folio are called \emph{recto} (r) and \emph{verso} (v).
152 The recto is the first page of the folio that is shown on the right
153 hand side of the spread and the verso is the second page on the left
154 hand side.
155
156 Bookprinters often did not include the folio number for each folio of
157 the quire. For example, with the \emph{folio} and \emph{octavo}
158 formats it was common that only the folios of the first half of a
159 quire had numbers. Similarly, with \emph{quarto} the last folio number
160 of a quire was often left out.
161
162 The \feature{foliono} package supports several different folio
163 numbering conventions and it also provides very rudimentary support
164 for creating tables of content and indices for folio-numbered
165 documents. However, a lot of manual work is necessary for creating
166 them.
167
168 \begin{figure}
169 \centering
170 \begin{tabular}{cc}
171 \includegraphics[width=5cm]{pics/standard.png} &
172 \includegraphics[width=5cm]{pics/skip-first.png} \\
173 (a) Default & (b) \feature{SkipFirst} \\
174 \includegraphics[width=5cm]{pics/only-quire.png} &
175 \includegraphics[width=5cm]{pics/only-folio} \\
176 (c) \feature{OnlyQuire} & (d) \feature{NoQuires} \\
177 \end{tabular}
178 \caption{Mode of operation samples}
179 \label{fig:modes}
180 \end{figure}
181
182 In the examples I will be using the font \emph{Missaali} to typeset
183 the folio numbers as they would appear on the page. \emph{Missaali} is
184 a free opentype font that comes with the package \feature{missaali}
185 that is based on late 15th century book Northern German book textura.
186
187 \section{Modes of operation}
188
189 The \feature{foliono} package can operate in several different modes
190 that are controlled using the package options. A folio number consists
191 of two parts, the quire number and the folio number, and the different
192 modes show them using different principles. Figure \ref{fig:modes}
193 shows four of the basic modes in schematics.
194
195 \begin{description}
196 \item [Default] \mbox{} \\
197 The default behavior of \emph{foliono} is that each folio is
198 numbered with both the quire number and the folio number inside a
199 quire. Thus, the folio numbers advance like:
200 \begin{center}
201 A 1, A 2, \textellipsis, A 8, B 1, B 2, \textellipsis, B 8, C 1, \textellipsis
202 \end{center}
203
204 \item [Skip first folio number (\feature{SkipFirst})] \mbox{} \\
205 The first folio number skipping mode is otherwise the same as the
206 default mode, but the first folio of a quire contains only the quire
207 number and not the folio counter. The numbers advance like:
208 \begin{center}
209 A, A 2, A 3, \textellipsis, A 8, B, B 2, \textellipsis, C , C 2 \textellipsis
210 \end{center}
211
212
213
214 \item [Only quire numbers (\feature{OnlyQuire})] \mbox{}\\
215 In the only quire numbers mode the folio numbers are not included
216 at all and only the first pages of a quire have the mark:
217 \begin{center}
218 A, \{\}, \{\}, \{\}, \{\}, \{\}, \{\}, \{\}, B, \{\}, \textellipsis
219 \end{center}
220
221 \item [No quires (\feature{NoQuires})]\mbox{} \\
222 In this mode the folios are numbered sequentially from the start of
223 the book paying no regards to the quire structure. Here the numbers
224 are simply:
225 \begin{center}
226 1, 2, 3, 4, 5, \textellipsis
227 \end{center}
228
229 \item [Sheet numbering (\feature{SheetNumbering})] \mbox{}\\
230 In sheet numbering mode there is only one folio number per a two
231 page sheet. In practice, this means that the first half folios of a
232 quire are numbered using the default style and the latter half are
233 left unnumbered:
234 \begin{center}
235 A 1, A 2, A 3, A 4, \{\}, \{\}, \{\}, \{\}, B 1, B 2, \textellipsis
236 \end{center}
237 This mode can be combined with skipping the first folio number.
238
239
240 \item [Skip end half (\feature{SkipEnd})] \mbox{} \\
241 In this mode the folio numbers are printed to the first half + 1
242 folios of a quire and the rest are left empty. In practice the
243 effect is otherwise same as with sheet numbering except that one
244 more folio has a number.
245
246 For quarto format the numbers go:
247 \begin{center}
248 A 1, A 2, A 3, \{\}, B 1, B 2, \textellipsis
249 \end{center}
250 For octavo format the numbers are:
251 \begin{center}
252 A 1, A 2, \textellipsis, A 5, \{\}, \{\}, \{\}, B 1, B 2, \textellipsis
253 \end{center}
254 For duodecimo they go:
255 \begin{center}
256 A 1, A 2, \textellipsis, A 7, \{\}, \{\}, \{\}, \{\}, \{\}, B 1, B 2, \textellipsis
257 \end{center}
258 This mode can be combined with skipping the first folio number.
259
260 \end{description}
261
262 \section{General usage}
263
264 The basic command in the package is \command{folionumber}. This should
265 be put either in the header or footer of the page and it should be run
266 exactly once on each page since it keeps track of the folio number
267 counters and also whether we are on recto or verso side of the folio.
268 Manipulating headers and footers is simplest with the
269 \feature{fancyhdr} package. For the basic functionality you can add
270 the following to the preamble of the document:
271
272 \begin{verbatim}
273 \usepackage{fancyhdr}
274 \usepackage{foliono}
275 \cfoot{}
276 \renewcommand{\headrulewidth}{0pt}
277 \fancyfoot[R]{\folionumber}
278 \pagestyle{fancy}
279 \end{verbatim}
280
281 Here the \command{cfoot} removes the modern page number,
282 \command{fancyfoot} adds the folio number to the right footer,
283 overriding the \command{headrulewidth} removes the horizontal line
284 from top that \feature{fancyhdr} wants to add there, and
285 \command{pagestyle} enables the fancy header style.
286
287 You need to decide how big your quires are. The package defaults to
288 eight folio quires, meaning that when printed there are four sheets in
289 the quire. Historically that was the most common quire size for
290 manuscripts, but other sizes were also used. You can set the quire
291 size with the \command{folionoquirefolios} command. For example:
292 \begin{verbatim}
293 \folionoquirefolios{10}
294 \end{verbatim}
295 sets the quires to have 10 folios and 20 pages each. It is possible to
296 change the value in the middle of the document to get quires of
297 different sizes.
298
299 In case you need to set the folio number manually, there are two ways
300 to do it:
301
302 \begin{enumerate}
303 \item \command{stepfolio}: this moves the counters to the next folio.
304 \item \commandtwo{setfoliono}{quireNo}{folioNo}: sets the quire
305 counter to \argument{quireNo} and the folio counter to
306 \argument{folioNo}.
307 \end{enumerate}
308
309 There are three commands that you can use to access the current folio
310 number from text. All of these commands set the folio number even if
311 \command{folionumber} does not print it on the page.
312 \begin{enumerate}
313 \item \command{currentfolio} this sets the current folio number as
314 unformatted string.
315
316 \item \command{currentfoliowithsides} this sets the current folio
317 number as unformatted string that is followed by the side reference
318 \feature{r} or \feature{v}.
319
320 \item \command{currentfoliowithstyles} this sets the current folio
321 number formatted and styled the exact same way as it is
322
323 \end{enumerate}
324
325 Here is an example for their use:
326
327 \begin{center}
328 \begin{tabular}{lc}
329 \begin{minipage}{0.5\linewidth}
330 \begin{verbatim}
331 \setfoliono{2}{4}
332 1: \currentfolio \\
333 2: \currentfoliowithsides \\
334 3: \currentfoliowithstyles \\
335 \end{verbatim}
336 \end{minipage}
337 &
338 \begin{minipage}{0.4\linewidth}
339 \setfoliono{3}{4}\strut\mbox{}\\
340 \strut\mbox{}\\
341 1: \currentfolio \\
342 2: \currentfoliowithsides \\
343 3: \currentfoliowithstyles \\
344 \end{minipage}
345 \end{tabular}
346 \end{center}
347
348 \subsection{Font selection and properties}
349
350 By default the folio numbers are set using the default document font
351 and size. There are commands that allow you to select the font when
352 using the \feature{fontspec} package. If you are using some other
353 environment, you can redefine the \command{folionostyle} command that
354 adds style to the folio numbers.
355
356 The font selection commands are:
357 \begin{enumerate}
358 \item \commandone{folionofont}{FontName}: set the \feature{fontspec}
359 font that is used to set the folio number. You need to set this for
360 the other two font setting commands having effect.
361
362 \item \commandone{folionofontsize}{size}: set the size of the folio
363 number. The font must have been set eariler.
364
365 \item \commandone{folionofontcolor}{color}: set the color for the
366 folio number. The font must have been set eariler.
367
368 \end{enumerate}
369
370 \begin{center}
371 \begin{tabular}{lc}
372 \begin{minipage}{0.6\linewidth}
373 \begin{verbatim}
374 Before: \currentfoliowithstyles \\
375 \folionofont{Missaali}
376 \folionofontsize{18}
377 \folionofontcolor{c55e47}
378 After: \currentfoliowithstyles
379 \end{verbatim}
380 \end{minipage}
381 &
382 \begin{minipage}{0.3\linewidth}
383 \begingroup
384 Before: \currentfoliowithstyles \\
385 \folionofont{Missaali}
386 \folionofontsize{18}
387 \folionofontcolor{c55e47}
388 After: \currentfoliowithstyles
389 \folionofontsize{14}
390 \folionofontcolor{000000}
391 \endgroup
392 \end{minipage}
393 \end{tabular}
394 \end{center}
395
396 \subsection{Controlling the formatting}
397
398 By default the folio number is typeset with a space between the quire
399 and folio numbers. There are commands to add content or commands
400 before and after the both commands as well as to override the default
401 separator.
402
403 \begin{enumerate}
404 \item \commandone{quirenoprefix}{text}: the \emph{text} is added
405 before the quire number.
406 \item \commandone{quirenosuffix}{text}: the \emph{text} is added
407 after the quire number.
408 \item \commandone{folionoprefix}{text}: the \emph{text} is added
409 before the folio number.
410 \item \commandone{folionosuffix}{text}: the \emph{text} is added
411 after the folio number.
412 \item \commandone{folionoseparator}{text}: the \emph{text} is added
413 between the quire and folio numbers.
414 \end{enumerate}
415
416 \begin{figure}
417 \centering
418 \begin{verbatim}
419 \quirenostyle{%
420 \quirenoprefix%
421 QUIRE COUNTER%
422 \quirenosuffix%
423 \folionoseparator}%
424 \folionostyle{%
425 \folionoprefix%
426 FOLIO COUNTER%
427 \folionosuffix%
428 }
429 \end{verbatim}
430 \caption{A pseudocode explanation on how the quire number is
431 formatted. The separator is formatted using the quire number
432 style.}
433 \label{fig:foliono}
434 \end{figure}
435 For example, you can add periods before, after, and in the middle of
436 the folio number with:
437 \begin{center}
438 \begin{tabular}{lc}
439 \begin{minipage}{0.6\linewidth}
440 \begin{verbatim}
441 \quirenoprefix{.}
442 \folionoseparator{.}
443 \folionosuffix{.}
444 \currentfoliowithstyles
445 \end{verbatim}
446 \end{minipage}
447 &
448 \begin{minipage}{0.3\linewidth}
449 \quirenoprefix{.}
450 \folionoseparator{.}
451 \folionosuffix{.}
452 \currentfoliowithstyles
453 \quirenoprefix{}
454 \folionosuffix{}
455 \folionoseparator{\hbox{ }}
456 \end{minipage}
457 \end{tabular}
458 \end{center}
459
460 You can also add formatting commands to the prefixes. For example, you
461 can achieve two-colored folio numbers with:
462 \begin{verbatim}
463 \quirenoprefix{\addfontfeature{Color=455f9b}}
464 \folionoprefix{\addfontfeature{Color=c55e47}}
465 \currentfoliowithstyles
466 \end{verbatim}
467 This produces the result:
468 \begin{center}
469 \begin{minipage}{0.3\linewidth}
470 \quirenoprefix{\addfontfeature{Color=455f9b}}
471 \folionoprefix{\addfontfeature{Color=c55e47}}
472 \currentfoliowithstyles
473 \quirenoprefix{}
474 \folionoprefix{}
475 \end{minipage}
476 \end{center}
477
478 \subsection{Labels and indices}
479
480 There are two commands for creating labels that have folio numbers for
481 the reference and two commands for creating index entries. The basic
482 forms of the commands typeset the folio numbers without formatting or
483 prefixes and suffixes, and the two others typeset the numbers as they
484 appear on page. All of these commands produce the folio number string
485 even if it is not printed on the current page. Note that commands that
486 are read in from auxiliary and index files break easily and often
487 cause weird error messages.
488
489 If you want to create a medieval-styled table of contents, the best
490 way to proceed is probably to use the indexing commands, copy the
491 index file as a base for a new LaTeX document, and then manipulate
492 them by hand to get the desired outcome. You can then combine the
493 original document and the index using the \feature{pdfpages} package.
494 There are two main reasons to do it this way: as far as I know there
495 are no existing index formats that would produce results that are even
496 remotely close to medieval tables of contents or indices, and the main
497 text should start on the folio A 1 of the document. If the table of
498 contents is at the beginning, it should be on a separate unnumbered
499 sheet.
500
501 \begin{enumerate}
502 \item \commandone{folionolabel}{label}: defines a label whose
503 reference string is unformatted version of the current folio number.
504
505 \item \commandone{folionolabelwithstyles}{label}: defines a label
506 whose reference string is the formatted version of the current folio
507 number.
508
509 \item \commandone{folionoindex}{text}: adds \feature{text} as an index
510 entry in the index file.\footnote{Remember to use
511 \command{makeindex} command in the preamble if you use index
512 commands.}
513
514 \item \commandone{folionoindexwithstyles}{text}: adds \feature{text}
515 as an index entry in the index file with complete styling.
516
517 \end{enumerate}
518
519
520
521
522
523
524
525
526 \section{Package options}
527
528 The \feature{foliono} package defines the following options:
529
530 \begin{description}
531 \item [\feature{AllQuires}] \mbox{} \\
532 Before the 17th century the letters \emph{i} and \emph{j} were not
533 yet separated and they were considered to be two variant forms of
534 the same letter that could be used almost interchangeably.
535 Similarly, \emph{u} and \emph{v} were still the same. Because of
536 this \feature{foliono} does not use \emph{i} and \emph{u} as quire
537 numbers by default. The package option \feature{AllQuires} takes the
538 two missing letters in use as quire numbers.
539
540 \item [\feature{ArabicNumbers}] \mbox{} \\
541 This option changes the folio numbers into Arabic numerals instead
542 of the Roman numberals. This is most useful together with the
543 \feature{NoQuires} option. However, some later printed books used
544 Arabic numerals in folio numbers.
545
546 \item [\feature{LowerCase}] \mbox{} \\
547 This changes the quire numbers to be in lower case instead of the
548 default upper case letters.
549
550 \item [\feature{NoQuires}] \mbox{} \\
551 This turns on the no quires mode where folio numbers are numbered
552 sequentially from one upwards with no regard to quire structure.
553
554 \item [\feature{OnlyQuire}] \mbox{} \\
555 This turns on the only quires mode where folio numbers are left out
556 and the quires have a quire number on their first page.
557
558 \item [\feature{SheetNumbers}] \mbox{} \\
559 This turns on sheet numbering mode where there is only one folio
560 number on a two-folio sheet of paper. In practice the first half
561 of folios on a quire will have a number and the rest are empty.
562 This does not work together with \feature{NoQuires}.
563
564 \item [\feature{ShowSides}] \mbox{} \\
565 If enabled, it will add the indicator \emph{r} or \emph{v} to
566 labels and index entries to show if they land on recto or verso
567 side of the folio. This is not added to the folio numbers printed
568 on pages, only on the references.
569
570 \item [\feature{SkipFirst}] \mbox{} \\
571 When enabled the first folio of a quire will have only the quire
572 number and not the folio number.
573
574
575 \item [\feature{SkipEnd}] \mbox{} \\
576 When enabled the folio numbers are printed on first half + 1
577 folios of a quire. The effect is otherwise the same as with
578 \feature{SheetNumbers} except that one more folio has the number.
579 \end{description}
580
581 \section{Command Reference}
582
583
584 \begin{description}
585 \item [\command{folionumber}] \mbox{} \\
586 Sets both the formatted and styled folio number to the page and it
587 also keeps track of the quire and folio counters as well as the
588 recto and verso sides on the document. It should be run exactly once
589 per page of output.
590
591 \item [\commandone{folionoquirefolios}{folioNo}] \mbox{} \\
592 Sets the size of quires to \argument{folioNo} folios.
593 The value should be even. This can be run multiple times inside a
594 document to get quires of different sizes.
595
596 \item [\commandone{folionofont}{fontId}] \mbox{} \\
597 Sets the font that is used to folio numbers to the
598 \feature{fontspec} font \argument{fontId}. If you are using some
599 other font system, you need to redefine \command{folionostyle} and
600 \command{quirenostyle} instead.
601
602 \item [\commandone{folionofontsize}{points}] \mbox{} \\
603 Sets the size of the folio number font to \argument{points}. This
604 has an effect only if the font has been selected with
605 \command{folionofont}. Default size is 10 points.
606
607 \item [\commandone{folionofontcolor}{color}] \mbox{} \\
608 Sets the folio number font color to \argument{color}. This has an
609 effect only if the font has been selected with
610 \command{folionofont}. Default color is black.
611
612 \item [\commandone{quirenostyle}{commands}] \mbox{} \\
613 A styling command for non-\feature{fontspec} users. Redefine this
614 command to apply styling to the quire counter. This defaults to
615 using the font, size, and color set using the previous font
616 selection commands.
617
618 \item [\commandone{folionostyle}{commands}] \mbox{} \\
619 A styling command for non-\feature{fontspec} users. Redefine this to
620 apply styling to the folio counter. This defaults to using the font,
621 size, and color set using the previous font selection commands.
622
623 \item [\commandone{folionolabel}{label}] \mbox{} \\
624 Adds a \argument{label} that can be accessed with the \command{ref}
625 command. The label text will be an unformatted folio number string.
626 This creates a reference using the folio number of that particular
627 page even if the number is not printed on the page. This has the
628 most obvious effect when the \feature{SheetNumbers} option is turned
629 on.
630
631 \item [\commandone{folionolabelwithstyles}{label}] \mbox{} \\
632 Adds a \argument{label} whose reference text contains all the styles
633 and formatting of the current folio number. Otherwise this works the
634 same as \command{folionolabel}. \emph{Note! It is very easy to get
635 weird TeX error messages if there is anything complex or fragile
636 in the commands read from .aux files}.
637
638 \item [\commandone{folionoindex}{text}] \mbox{} \\
639 This adds \argument{text} as an index entry where the page number is
640 replaced with unformatted current folio number. Using this command
641 and some manual manipulation is the easiest way to create medieval
642 tables of context.
643
644 \item [\commandone{folionoindexwithstyles}{text}] \mbox{} \\
645 This adds \argument{text} as an index entry where the page number is
646 replaced with styled current folio number.
647
648 \item [\commandtwo{setfoliono}{quireNo}{folioNo}] \mbox{} \\
649 Sets the quire counter to \argument{quireNo} and the folio counter
650 to \argument{folioNo}.
651
652 \item [\command{stepfolio}] \mbox{} \\
653 Moves the folio number to the next folio. This is most useful in
654 cases you want to remove the folio number from a single page as
655 setting the page style to \argument{empty} also prevents
656 \command{folionumber} from moving to the next number.
657
658 \item [\commandone{quirenoprefix}{text}] \mbox{} \\
659 Sets a prefix of the quire number to be \argument{text}. The prefix
660 can contain formatting commands, but the more complex the commands
661 are, the more likely is that \command{folionolabelwithstyles} and
662 \command{folionoindexwithstyles} commands break.
663
664 \item [\commandone{quirenosuffix}{text}] \mbox{} \\
665 Sets the quire number suffix to \argument{text}. The suffix may
666 contain both text and commands.
667
668 \item [\commandone{folionoprefix}{text}] \mbox{} \\
669 Sets the folio counter prefix to \argument{text}.
670
671 \item [\commandone{folionosuffix}{text}] \mbox{} \\
672 Sets the folio number suffix to \argument{text}.
673
674 \item [\commandone{folionoseparator}{text}] \mbox{} \\
675 Sets the separator that is placed between quire and folio numbers to
676 \argument{text}. The separator is formatted according to the quire
677 number style.
678
679 \item [\command{currentfolio}] \mbox{} \\
680 Gives the unformatted and non-styled version of the current folio
681 number. In particular, the prefixes, suffixes, and the separator are
682 left out of it.
683
684 \item [\command{currentfoliowithsides}] \mbox{} \\
685 Gives the unformatted and non-styled version of the current folio
686 number with the side indicator (\emph{r} or \emph{v}) added to its
687 end.
688
689 \item [\command{currentfoliowithstyles}] \mbox{} \\
690 Gives the current folio number formatted the same way as it is added
691 to the page by \command{folionumber}. This gives the real folio
692 number even if \command{folionumber} will skip it, for example, if
693 we are in the second half of a quire and \feature{SheetNumbers} is
694 turned on.
695
696
697 \end{description}
698
699 \section{Examples}
700
701 \begin{description}
702
703 \item [Codex Montpellier, c.1300] \mbox{} \\
704 \begin{tabular}{lp{7cm}}
705 Author: & unknown \\
706 Format: & manuscript \\
707 Folio numbers: & continuously running folio numbers, roman numbers
708 surrounded by centered dots. \\
709 Sample: &
710 \begin{minipage}{7cm}
711 \makeatletter
712 \FolioNo@noQuirestrue
713 \folionoprefix{·}
714 \folionosuffix{·}
715 \folionoseparator{}
716 \foliono@createFormattedFolioLabel
717 \folionoprefix{}
718 \folionosuffix{}
719 \folionoseparator{\hbox{ }}
720 \makeatother
721 \end{minipage} \\
722 \end{tabular}
723
724 Code:
725
726 \begin{minipage}{5cm}
727 \verb!\usepackage[NoQuires]{foliono}!\\
728 \verb!\folionoprefix{·}! \\
729 \verb!\folionosuffix{·}! \\
730 \end{minipage}
731
732
733 \item [Glogauer Liederbuch, c. 1480] \mbox{} \\
734 \begin{tabular}{lp{7cm}}
735 Author: & unknown \\
736 Format: & manuscript \\
737 Folios: & 12 per quire \\
738 Folio numbers: & on top right of every folio, most quires have
739 lower case quire numbers but some use upper case \\
740 Sample: &
741 \begin{minipage}{6cm}
742 \makeatletter
743 \Foliono@capitalizeQuireNumberfalse
744 \foliono@createFormattedFolioLabel
745 \makeatother
746 \end{minipage} \\
747 \end{tabular}
748
749 Code:
750
751 \begin{minipage}{5cm}
752 \verb!\usepackage[LowerCase]{foliono}!\\
753 \verb!\folionoquirefolios{12}!\\
754 \end{minipage}
755
756 \item [Missale Aboense, 1488] \mbox{} \\
757 \begin{tabular}{lp{7cm}}
758 Bookprinter: & Barthomolew Ghotan \\
759 Format: & folio \\
760 Folios: & 12 per quire \\
761 Folio numbers: & on every folio, capital quire number, centered dots surround folio number \\
762 Sample: &
763 \begin{minipage}{6cm}
764 \folionoprefix{·}
765 \folionosuffix{·}
766 \folionoseparator{}
767 \currentfoliowithstyles
768 \folionoprefix{}
769 \folionosuffix{·}
770 \folionoseparator{\hbox{ }}
771 \end{minipage} \\
772 \end{tabular}
773
774 Code:
775
776 \begin{minipage}{5cm}
777 \verb!\usepackage{foliono}!\\
778 \verb!\folionoquirefolios{12}!\\
779 \verb!\folionoprefix{·}! \\
780 \verb!\folionosuffix{·}! \\
781 \verb!\folionoseparator{}!
782 \end{minipage}
783
784
785 \item [Revelationes Sancti Birgitte, 1492] \mbox{} \\
786 \begin{tabular}{lp{7cm}}
787 Bookprinter: & Barthomolew Ghotan \\
788 Format: & folio \\
789 Folios: & 10 per quire \\
790 Folio numbers: & on first half of a quire, lower case quire number, periods surround folio number \\
791 Sample: &
792 \begin{minipage}{6cm}
793 \makeatletter
794 \Foliono@capitalizeQuireNumberfalse
795 \makeatother
796 \folionoprefix{.}
797 \folionosuffix{.}
798 \folionoseparator{}
799 \currentfoliowithstyles
800 \folionoprefix{}
801 \folionosuffix{}
802 \folionoseparator{\hbox{ }}
803 \end{minipage}
804 \end{tabular}
805
806 Code:
807
808 \begin{minipage}{5cm}
809 \verb!\usepackage[LowerCase,SheetNumbers]{foliono}!\\
810 \verb!\folionoquirefolios{10}!\\
811 \verb!\folionoprefix{.}! \\
812 \verb!\folionosuffix{.}! \\
813 \verb!\folionoseparator{}!
814 \end{minipage}
815
816 \item[Messu eli Herran Echtolinen, 1549] \mbox{} \\
817 \begin{tabular}{lp{7cm}}
818 Author: & Mikael Agricola \\
819 Format: & quarto \\
820 Folios: & 8 per quire \\
821 Folio numbers: & first folio of a quire has only quire number,
822 quire numbers are capitalized. \\
823 Sample: &
824 \begin{minipage}{6cm}
825 \currentfoliowithstyles
826 \end{minipage}
827 \end{tabular}
828
829 Code:
830
831 \begin{minipage}{5cm}
832 \verb!\usepackage[SkipFirst]{foliono}!\\
833 \verb!\folionoquirefolios{8}!\\
834 \end{minipage}
835
836 \item[Historiae animalum, 1551] \mbox{} \\
837 \begin{tabular}{lp{7cm}}
838 Author: & Conrad Gessner \\
839 Format: & folio \\
840 Folios: & 6 or 8 per quire \\
841 Folio numbers: & quire numbers are set in Roman typeface, most are
842 upper case but preface uses lower case, folio
843 numbers with arabic numbers, only one folio number per sheet.
844 \\
845 Sample: &
846 \begin{minipage}{6cm}
847 \makeatletter
848 \def\quirenostyle{}
849 \def\folionostyle{}
850 \FolioNo@useSheetNumberingtrue
851 \FolioNo@UseArabicNumberstrue
852 \setfoliono{3}{2}
853 \makeatother
854 \currentfoliowithstyles
855 \end{minipage}
856 \end{tabular}
857
858 Code:
859
860 \begin{minipage}{5cm}
861 \verb!\usepackage[SheetNumbers,ArabicNumbers]{foliono}!\\
862 \verb!\folionoquirefolios{6}!\\
863 \end{minipage}
864
865
866
867 \item[Wanhain Suomen maan Pijspain Latinan kielised laulud, 1616] \mbox{} \\
868 \begin{tabular}{lp{7cm}}
869 Author: & Hemminki Maskulainen \\
870 Format: & octavo \\
871 Folios: & 8 per quire \\
872 Folio numbers: & folio numbers on first five folios of a quire,
873 the first folio has just the quire number, quire number in upper
874 case. \\
875 Sample: &
876 \begin{minipage}{6cm}
877 \makeatletter
878 \setfoliono{3}{4}
879 \FolioNo@skipFirstFolioNumbertrue
880 \FolioNo@onlyFirstHalftrue
881 \makeatother
882 \currentfoliowithstyles
883 \end{minipage}
884 \end{tabular}
885
886 Code:
887
888 \begin{minipage}{5cm}
889 \verb!\usepackage[SkipFirst,SkipEnd]{foliono}!\\
890 \verb!\folionoquirefolios{8}!\\
891 \end{minipage}
892
893
894 \item[Somen Kielinen Catechismus, 1628] \mbox{} \\
895 \begin{tabular}{lp{7cm}}
896 Author: & Martin Luther \\
897 Translator: & Knut Carelius \\
898 Format: & quarto \\
899 Folios: & 4 per quire \\
900 Folio numbers: & first folio of a quire has only quire number,
901 last folio of a quire is without number,
902 quire numbers are capitalized. \\
903 Sample: &
904 \begin{minipage}{6cm}
905 \currentfoliowithstyles
906 \end{minipage}
907 \end{tabular}
908
909 Code:
910
911 \begin{minipage}{5cm}
912 \verb!\usepackage[SkipFirst,SkipEnd]{foliono}!\\
913 \verb!\folionoquirefolios{4}!\\
914 \end{minipage}
915
916
917 \end{description}
918
919
920
921
922
923 \end{document}