Debian Codegraph @

texmf-dist/doc/latex/flowfram/flowfram-manual.tex

raw
1 % arara: lualatex
2 % arara: bib2gls: { group: on, packages: [ mfirstuc-english ], options: [ "--replace-quotes" ] }
3 % arara: lualatex: { shell: yes }
4 % arara: bib2gls: { group: on, packages: [ mfirstuc-english ], options: [ "--replace-quotes" ] } if found ("log", "Glossary entry `sym.")
5 % arara: lualatex
6 % arara: lualatex if found ("log", "Rerun to")
7 %
8 % This manual creates example documents on the fly in the
9 % directory created by the following line:
10 \directlua{os.execute("mkdir -p \jobname-examples")}
11 % If the above doesn't work, you'll have to create the directory
12 % manually.
13
14 % This document requires glossaries-extra v1.49, bib2gls v3.0
15 % and nlctuserguide.sty.
16
17 \documentclass[fontsize=12pt]{scrbook}
18
19 \usepackage[a4paper,landscape,margin=1in,top=1in,bottom=1in]{geometry}
20 \usepackage{xcolor}
21 \usepackage{microtype}
22 \usepackage{fontspec}
23
24 \usepackage{graphicx}
25 \usepackage[
26 %draft,
27 pages=absolute]{flowfram}
28 \usepackage{shapepar}
29 \usepackage{flowframtkutils}
30
31 \usepackage
32 [
33 tikzsymbols,
34 novref,
35 summaryregularloc,
36 deephierarchy,
37 %debug=showwrgloss,
38 %showtargets=innerleft
39 ]
40 {nlctuserguide}
41
42 \tcbuselibrary{hooks}
43
44 \defsemanticcmd[style1]{\frameoptfmt}{\textsf}{}
45 \defsemanticcmd[style2]{\htmloptfmt}{\textsf}{}
46 \defsemanticcmd[style3]{\pagestylefmt}{\textsf}{}
47 \defsemanticcmd[style3]{\hookfmt}{\textsf}{}
48 \defsemanticcmd[style3]{\speciallabelfmt}{\textsf}{}
49
50 \glsxtrnewgls{opt.frame.}{\frameopt}
51 \newcommand{\frameoptval}[2]{\optval{frame.#1}{#2}}
52 \newcommand{\frameoptvalm}[2]{\optval{frame.#1}{\marg{#2}}}
53 \newcommand{\frameoptvalref}[2]{\optvalref{frame.#1}{#2}}
54 \newcommand{\frameopteqvalref}[2]{\opteqvalref{frame.#1}{#2}}
55 \newcommand{\frameoptiondef}[1]{\optiondef{frame.#1}}
56
57 \glsxtrnewgls{opt.frame.html}{\htmlopt}
58 \newcommand{\htmloptval}[2]{\optval{frame.html.#1}{#2}}
59 \newcommand{\htmloptvalm}[2]{\optval{frame.html.#1}{\marg{#2}}}
60 \newcommand{\htmloptvalref}[2]{\optvalref{frame.html.#1}{#2}}
61 \newcommand{\htmlopteqvalref}[2]{\opteqvalref{frame.html.#1}{#2}}
62 \newcommand{\htmloptiondef}[1]{\optiondef{frame.html.#1}}
63
64 \glsxtrnewgls{opt.pagestyle.}{\pstyle}
65 \newcommand{\pagestyledef}[1]{\optiondef{pagestyle.#1}}
66
67 \glsxtrnewgls{opt.hook.}{\hook}
68 \newcommand{\hookdef}[1]{\optiondef*{hook.#1}}
69
70 \glsxtrnewgls{opt.speciallabel.}{\speciallabel}
71 \newcommand{\speciallabelinlinedef}[1]{\inlineglsdef{opt.speciallabel.#1}}
72 \newcommand{\speciallabelmeta}[2]{%
73 \glslink{opt.speciallabel.#1}{\speciallabelfmt{#1#2}}%
74 }
75
76 \glsxtrnewgls{opt.overlayencap.}{\overlayencapopt}
77 \newcommand{\overlayencapoptval}[2]{\optval{overlayencap.#1}{#2}}
78 \newcommand{\overlayencapoptvalm}[2]{\optval{overlayencap.#1}{\marg{#2}}}
79 \newcommand{\overlayencapoptvalref}[2]{\optvalref{overlayencap.#1}{#2}}
80 \newcommand{\overlayencapopteqvalref}[2]{\opteqvalref{overlayencap.#1}{#2}}
81 \newcommand{\overlayencapoptdef}[1]{\optiondef*{overlayencap.#1}}
82 \newcommand{\overlayencapoptvaldef}[2]{\optionvaldef*{overlayencap.#1}{#2}}
83
84 \newcommand{\headerandfooterframe}{%
85 \idxc{header-frame}{header} and \idxc{footer-frame}{footer} frame}
86 \newcommand{\headerandfooterframes}{\headerandfooterframe s}
87
88 \newcommand{\staticordynamicframe}{%
89 \idxc{static-frame}{static} or \idxc{dynamic-frame}{dynamic} frame%
90 }
91 \newcommand{\staticordynamicframes}{\staticordynamicframe s}
92
93 \nlctuserguidegls
94 {
95 \def\gframeopt#1#2{\glsbibwriteentry{option}{opt.frame.#1}%
96 {\field{name}{\frameoptfmt{#1}}\parent{idx.setframeopts}#2}}%
97 \def\ghtmlopt#1#2{\glsbibwriteentry{option}{opt.frame.html.#1}%
98 {\field{name}{\htmloptfmt{#1}}\parent{opt.frame.html}#2}}%
99 \def\gpagestyle#1#2{\glsbibwriteentry{option}{opt.pagestyle.#1}%
100 {\field{name}{\pagestylefmt{#1}}\parent{idx.page-style}#2}}%
101 \def\ghook#1#2{\glsbibwriteentry{option}{opt.hook.#1}%
102 {\field{name}{\hookfmt{#1}}\parent{idx.hook}#2}}%
103 \def\gspeciallabel#1#2{\glsbibwriteentry{option}{opt.speciallabel.#1}%
104 {\field{name}{\speciallabelfmt{#1}}\parent{idx.speciallabel}#2}}%
105 \def\gspeciallabelmeta#1#2#3{\glsbibwriteentry{option}{opt.speciallabel.#1}%
106 {\field{name}{\speciallabelfmt{#1}\meta{#2}}\parent{idx.speciallabel}#3}}%
107 % COUNTERS
108 % absolutepage
109 \gctr{absolute\-page}
110 {
111 \providedby{\sty{flowfram} v1.14+}
112 \desc{incremented every time a page is shipped out. This counter
113 should not be reset}
114 }
115 % displayedframe
116 \gctr{displayed\-frame}
117 {
118 \providedby{\sty{flowfram} v1.11+}
119 \desc{incremented each time the next \idx{flow-frame} is selected
120 by the \idx{output-routine}. It's reset at the start of a new page}
121 \field{seealso}{ctr.thisframe}
122 }
123 % maxflow
124 \gctr{max\-flow}
125 {
126 \providedby{\sty{flowfram}}
127 \desc{incremented each time a new \idx{flow-frame} is defined,
128 this counter's value may be used to identify the most last defined
129 \idx{flow-frame}}
130 }
131 % maxstatic
132 \gctr{max\-static}
133 {
134 \providedby{\sty{flowfram}}
135 \desc{incremented each time a new \idx{static-frame} is defined,
136 this counter's value may be used to identify the most last defined
137 \idx{static-frame}}
138 }
139 % maxdynamic
140 \gctr{max\-dynamic}
141 {
142 \providedby{\sty{flowfram}}
143 \desc{incremented each time a new \idx{dynamic-frame} is defined,
144 this counter's value may be used to identify the most last defined
145 \idx{dynamic-frame}}
146 }
147 % maxthumbtabs
148 \gctr{max\-thumb\-tabs}
149 {
150 \providedby{\sty{flowfram}}
151 \desc{incremented each time a new \idx{thumbtab} set (main and index)
152 is defined. This counter may be used to reference the total number
153 of \idxpl{thumbtab}}
154 }
155 % thisframe
156 \gctr{this\-frame}
157 {
158 \providedby{\sty{flowfram}}
159 \desc{set by the \idx{output-routine} to the \idx{IDN} of the
160 current \idx{flow-frame}}
161 \field{seealso}{ctr.displayedframe}
162 }
163 % ENVIRONMENTS
164 % staticfigure
165 \genv{static\-figure}
166 {
167 \providedby{\sty{flowfram}}
168 \desc{simulate a figure in a \staticordynamicframe}
169 }
170 % statictable
171 \genv{static\-table}
172 {
173 \providedby{\sty{flowfram}}
174 \desc{simulate a table in a \staticordynamicframe}
175 }
176 % staticcontents
177 \genv{static\-contents}
178 {
179 \providedby{\sty{flowfram}}
180 \syntax{\oargm{options}\margm{IDN}}
181 \desc{sets the contents of the \idx{static-frame} identified by
182 its \idx{IDN}}
183 }
184 % staticcontents*
185 \genv{static\-contents*}
186 {
187 \providedby{\sty{flowfram}}
188 \syntax{\oargm{options}\margm{IDL}}
189 \desc{sets the contents of the \idx{static-frame} identified by
190 its \idx{IDL}}
191 }
192 % dynamiccontents
193 \genv{dynamic\-contents}
194 {
195 \providedby{\sty{flowfram} v1.09+}
196 \syntax{\oargm{options}\margm{IDN}}
197 \desc{sets the contents of the \idx{dynamic-frame} identified by
198 its \idx{IDN}. Note that \idx{verbatim} text can't occur within the
199 environment body.}
200 }
201 % dynamiccontents*
202 \genv{dynamic\-contents*}
203 {
204 \providedby{\sty{flowfram}}
205 \syntax{\oargm{options}\margm{IDL}}
206 \desc{sets the contents of the \idx{dynamic-frame} identified by
207 its \idx{IDL}. Note that \idx{verbatim} text can't occur within the
208 environment body.}
209 }
210 % REGISTERS (LENGTHS, BOXES)
211 % \staticframe
212 \gcmd{static\-frame}
213 {
214 \providedby{\sty{flowfram}}
215 \desc{temporary box register used in as an intermediate when
216 setting the contents of a \idx{static-frame}}
217 }
218 % \vcolumnsep
219 \gcmd{vcol\-umn\-sep}
220 {
221 \providedby{\sty{flowfram}}
222 \initvalcs{columnsep}
223 \desc{the vertical distance between the top\slash bottom frame
224 and the column \idxpl{flow-frame} when using commands like
225 \gls{Ncolumntop}}
226 }
227 % \fflabelsep
228 \gcmd{ff\-label\-sep}
229 {
230 \providedby{\sty{flowfram}}
231 \initval{1pt}
232 \desc{when drawing the \idxpl{bbox} in draft mode (but not for
233 the \idx{typeblock}), this is the
234 distance between the \idx{bbox} outline and the label}
235 }
236 % \typeblockoffsety
237 \gcmd{type\-block\-offsety}
238 {
239 \providedby{\sty{flowfram} v2.0+}
240 \desc{a length (dimension) that stores the vertical offset of the \idx{typeblock}
241 (initialised to the sum of \gls{topmargin}, \gls{headheight},
242 \gls{headsep} and \gls{voffset})}
243 }
244 % \typeblockwidth
245 \gcmd{type\-block\-width}
246 {
247 \providedby{\sty{flowfram} v2.0+}
248 \desc{a length (dimension) that stores the width of the \idx{typeblock}
249 (initialised to \gls{textwidth})}
250 }
251 % \typeblockheight
252 \gcmd{type\-block\-height}
253 {
254 \providedby{\sty{flowfram} v2.0+}
255 \desc{a length (dimension) that stores the height of the \idx{typeblock}
256 (initialised to \gls{textheight})}
257 }
258 % \sdfparindent
259 \gcmd{sdfparindent}
260 {
261 \providedby{\sty{flowfram}}
262 \initval{0pt}
263 \desc{the default paragraph indentation within \idx{static} and
264 \idx{dynamic} frames (may be overridden for individual frames
265 through the \frameopt{parindent} option)}
266 }
267 % \flowframesep
268 \gcmd{flow\-frame\-sep}
269 {
270 \providedby{\sty{flowfram}}
271 \desc{the gap between the text and the border of \idxpl{frame},
272 if the standard border is used. This is initialised to
273 \gls+{fboxsep} when \sty{flowfram} loads}
274 }
275 % \flowframerule
276 \gcmd{flow\-frame\-rule}
277 {
278 \providedby{\sty{flowfram}}
279 \desc{the width of the rule for the border of \idxpl{frame},
280 if the standard border is used. This is initialised to
281 \gls{fboxrule} when \sty{flowfram} loads}
282 }
283 % \ffcolumnseprule
284 \gcmd{ff\-col\-umn\-sep\-rule}
285 {
286 \providedby{\sty{flowfram} v1.09+}
287 \initval{2pt}
288 \desc{the width\slash height of the rules created by
289 \gls{insertvrule}\slash \gls{inserthrule}}
290 }
291 % \ffareawidth
292 \gcmd{ff\-area\-width}
293 {
294 \providedby{\sty{flowfram}}
295 \desc{used by commands like \gls{computeflowframearea} to store the calculated width}
296 }
297 % \ffareaheight
298 \gcmd{ff\-area\-height}
299 {
300 \providedby{\sty{flowfram}}
301 \desc{used by commands like \gls{computeflowframearea} to store
302 the calculated height}
303 }
304 % \ffareax
305 \gcmd{ff\-areax}
306 {
307 \providedby{\sty{flowfram}}
308 \desc{used by commands like \gls{computeflowframearea} to store
309 the calculated $x$ position}
310 }
311 % \ffareay
312 \gcmd{ff\-areay}
313 {
314 \providedby{\sty{flowfram}}
315 \desc{used by commands like \gls{computeflowframearea} to store
316 the calculated $y$ position}
317 }
318 % \ffareaevenx
319 \gcmd{ff\-area\-evenx}
320 {
321 \providedby{\sty{flowfram}}
322 \desc{used by commands like \gls{computeflowframearea} to store
323 the calculated $x$ position for even pages}
324 }
325 % \ffareaeveny
326 \gcmd{ff\-area\-eveny}
327 {
328 \providedby{\sty{flowfram}}
329 \desc{used by commands like \gls{computeflowframearea} to store
330 the calculated $y$ position for even pages}
331 }
332 % \fftolerance
333 \gcmd{ff\-tol\-er\-ance}
334 {
335 \providedby{\sty{flowfram} v1.14+}
336 \initval{2pt}
337 \desc{the tolerance used when determining whether or not to warn
338 when moving between \idxpl{flow-frame} of different widths}
339 }
340 % \thumbtabwidth
341 \gcmd{thumb\-tab\-width}
342 {
343 \providedby{\sty{flowfram}}
344 \initval{1cm}
345 \desc{the default width of \idxpl{thumbtab}}
346 }
347 % \beforeminitocskip
348 \gcmd{before\-mini\-toc\-skip}
349 {
350 \providedby{\sty{flowfram}}
351 \initval{0pt}
352 \desc{the vertical space before \idxpl{minitoc}}
353 }
354 % \afterminitocskip
355 \gcmd{after\-mini\-toc\-skip}
356 {
357 \providedby{\sty{flowfram}}
358 \initval{\cmd{baselineskip}}
359 \desc{the vertical space after \idxpl{minitoc}}
360 }
361 % CONDITIONALS
362 % \ifffvadjust
363 \gcond{if\-ff\-vadjust}
364 {
365 \initval{\cmd{iftrue}}
366 \providedby{\sty{flowfram}}
367 \desc{if true, the column commands, such as \gls{onecolumninarea}
368 will adjust the specified height to ensure that it is an integer
369 multiple of \gls{baselineskip}}
370 }
371 % \ffvadjusttrue
372 \gcmd{ff\-vadjust\-true}
373 {
374 \providedby{\sty{flowfram}}
375 \desc{sets the \gls{ifffvadjust} conditional to true}
376 }
377 % \ffvadjustfalse
378 \gcmd{ff\-vadjust\-false}
379 {
380 \providedby{\sty{flowfram}}
381 \desc{sets the \gls{ifffvadjust} conditional to false}
382 }
383 % \ifshowtypeblock
384 \gcond{if\-show\-type\-block}
385 {
386 \initval{\cmd{iffalse}}
387 \providedby{\sty{flowfram}}
388 \desc{if true, the \idx{typeblock} will be drawn in grey on the
389 page}
390 }
391 % \showtypeblocktrue
392 \gcmd{show\-type\-block\-true}
393 {
394 \providedby{\sty{flowfram}}
395 \desc{sets the \gls{ifshowtypeblock} conditional to true}
396 }
397 % \showtypeblockfalse
398 \gcmd{show\-type\-block\-false}
399 {
400 \providedby{\sty{flowfram}}
401 \desc{sets the \gls{ifshowtypeblock} conditional to false}
402 }
403 % \ifshowmargins
404 \gcond{if\-show\-margins}
405 {
406 \initval{\cmd{iffalse}}
407 \providedby{\sty{flowfram}}
408 \desc{if true, the \idx{flow-frame} margins will be drawn in grey
409 on the page}
410 }
411 % \showmarginstrue
412 \gcmd{show\-margins\-true}
413 {
414 \providedby{\sty{flowfram}}
415 \desc{sets the \gls{ifshowmargins} conditional to true}
416 }
417 % \showmarginsfalse
418 \gcmd{show\-margins\-false}
419 {
420 \providedby{\sty{flowfram}}
421 \desc{sets the \gls{ifshowmargins} conditional to false}
422 }
423 % \ifshowframebbox
424 \gcond{if\-show\-frame\-bbox}
425 {
426 \initval{\cmd{iffalse}}
427 \providedby{\sty{flowfram}}
428 \desc{if true, the \idxpl{bbox} of all \idxpl{frame} will be
429 drawn in grey on the page}
430 }
431 % \showframebboxtrue
432 \gcmd{show\-frame\-bbox\-true}
433 {
434 \providedby{\sty{flowfram}}
435 \desc{sets the \gls{ifshowframebbox} conditional to true}
436 }
437 % \showframebboxfalse
438 \gcmd{show\-frame\-bbox\-false}
439 {
440 \providedby{\sty{flowfram}}
441 \desc{sets the \gls{ifshowframebbox} conditional to false}
442 }
443 % \iflefttorightcolumns
444 \gcond{if\-left\-to\-right\-columns}
445 {
446 \initval{\cmd{iftrue}}
447 \providedby{\sty{flowfram} v1.12+}
448 \desc{set to \csfmt{iftrue} by the \opt{LR} package option and to
449 \csfmt{iffalse} by the \opt{RL} option, this conditional determines
450 the order of frames created by the column commands, such as
451 \gls{twocolumn}}
452 }
453 % \lefttorightcolumnstrue
454 \gcmd{left\-to\-right\-columns\-true}
455 {
456 \providedby{\sty{flowfram} v1.12+}
457 \desc{sets the \gls{iflefttorightcolumns} conditional to true}
458 }
459 % \lefttorightcolumnsfalse
460 \gcmd{left\-to\-right\-columns\-false}
461 {
462 \providedby{\sty{flowfram} v1.12+}
463 \desc{sets the \gls{iflefttorightcolumns} conditional to false}
464 }
465 % \ifaligntoc
466 \gcond{if\-align\-toc}
467 {
468 \initval{\cmd{iffalse}}
469 \providedby{\sty{flowfram}}
470 \desc{if true, the \idx{thumbtab} indexes should be aligned in
471 the table of contents. This conditional is changed by the
472 \opt{toc-thumbtab} option}
473 }
474 % \ifusedframebreak
475 \gcond{if\-used\-frame\-break}
476 {
477 \initval{\cmd{iftrue}}
478 \providedby{\sty{flowfram}}
479 \desc{set to true by \gls{framebreak} and is checked by the
480 output routine to determine whether or not to warn when switching
481 between \idxpl{flow-frame} of different widths}
482 }
483 % \ifFLFabove
484 \gcond{if\-FLF\-above}
485 {
486 \initval{\cmd{iffalse}}
487 \providedby{\sty{flowfram}}
488 \desc{set by commands that determine the relative location
489 between \idxpl{frame}}
490 }
491 % \ifFLFbelow
492 \gcond{if\-FLF\-below}
493 {
494 \initval{\cmd{iffalse}}
495 \providedby{\sty{flowfram}}
496 \desc{set by commands that determine the relative location
497 between \idxpl{frame}}
498 }
499 % \ifFLFleft
500 \gcond{if\-FLF\-left}
501 {
502 \initval{\cmd{iffalse}}
503 \providedby{\sty{flowfram}}
504 \desc{set by commands that determine the relative location
505 between \idxpl{frame}}
506 }
507 % \ifFLFright
508 \gcond{if\-FLF\-right}
509 {
510 \initval{\cmd{iffalse}}
511 \providedby{\sty{flowfram}}
512 \desc{set by commands that determine the relative location
513 between \idxpl{frame}}
514 }
515 % COMMANDS (flowframtkutils.sty)
516 % \includeteximage
517 \gcmd{in\-clude\-tex\-image}
518 {
519 \providedby{\sty{flowframtkutils} v2.0+}
520 \syntax{\oarg{\keyvallist}\margm{filename}}
521 \desc{if the optional argument is omitted, this just inputs
522 \meta{filename}, otherwise it applies a transformation according to
523 the options}
524 }
525 % \jdroutline
526 \gcmd{jdr\-out\-line}
527 {
528 \providedby{\sty{flowframtkutils}}
529 \syntax{\margm{pdf-trans code}\margm{pst-char code}\margm{text}}
530 \desc{if enabled by the \opt{outline} option, this will attempt
531 to render \meta{text} as an outline using \meta{pdf-trans code} (if
532 \file{pdf-trans.tex} was loaded) or \meta{pst-char code} (if
533 \sty{pst-char} was loaded). If not enabled, this command will
534 generate a warning and just do \meta{text}}
535 }
536 % \jdrimagebox
537 \gcmd{jdr\-image\-box}
538 {
539 \providedby{\sty{flowframtkutils}}
540 \syntax{\margm{image}}
541 \desc{used for encapsulated images, this is designed to prevent
542 problems if numerical rounding errors cause the image to be larger
543 than the available area}
544 }
545 % \flowframtkNoRagged
546 \gcmd{flow\-fram\-tk\-No\-Ragged}
547 {
548 \providedby{\sty{flowframtkutils} v2.2+}
549 \desc{restores paragraph justification back to the state it was
550 in when \sty{flowframtkutils} was loaded}
551 }
552 % \FlowframTkScopeIfGroup
553 \gcmd{Flow\-fram\-Tk\-Scope\-If\-Group}
554 {
555 \providedby{\sty{flowframtkutils} v2.2+}
556 \syntax{\margm{class name}\margm{object}}
557 \desc{designed for use in the definition of
558 \gls{flowframtkencapobject}, this command will encapsulate
559 \meta{object} within the \env{pgfscope} environment if \meta{class name} is
560 \code{JDRGroup}, otherwise it will just do \meta{object}}
561 }
562 % \FlowframTkBeginScopeIfGroup
563 \gcmd{Flow\-fram\-Tk\-Begin\-Scope\-If\-Group}
564 {
565 \providedby{\sty{flowframtkutils} v2.2+}
566 \syntax{\margm{class name}}
567 \desc{designed for use in the definition of
568 \gls{flowframtkstartobject}, this command will insert
569 \code{\cbeg{pgfscope}} if \meta{class name} is \code{JDRGroup},
570 otherwise it will do nothing}
571 }
572 % \FlowframTkEndScopeIfGroup
573 \gcmd{Flow\-fram\-Tk\-End\-Scope\-If\-Group}
574 {
575 \providedby{\sty{flowframtkutils} v2.2+}
576 \syntax{\margm{class name}}
577 \desc{designed for use in the definition of
578 \gls{flowframtkendobject}, this command will insert
579 \code{\cend{pgfscope}} if \meta{class name} is \code{JDRGroup},
580 otherwise it will do nothing}
581 }
582 % \FlowFramTkUtilsSetOverlayEncap
583 \gcmd{Flow\-Fram\-Tk\-Utils\-Set\-Over\-lay\-Encap}
584 {
585 \providedby{\sty{flowframtkutils} v2.0+}
586 \syntax{\oarg{\keyvallist}}
587 \desc{redefines \gls{flowframtkencapobject} to use a low-level
588 command (\gls+{flowframtkutilsuncoverencap:nnnnnnnn}) that uncovers
589 objects according to the settings given in the
590 optional argument. The settings may be changed later with
591 \gls{FlowFramTkUtilsOverlayEncapSetup}}
592 }
593 % \flowframtkutils_uncover:nn
594 \gcmd{flow\-fram\-tk\-utils\dsb uncover\dcolon nn}
595 {
596 \providedby{\sty{flowframtkutils} v2.0+}
597 \syntax{\ \margm{number} \margm{content}}
598 \desc{used by \gls{flowframtkutilsuncoverencap:nnnnnnnn}
599 to uncover an object on a single overlay}
600 }
601 % \flowframtkutils_uncover_from:nn
602 \gcmd{flow\-fram\-tk\-utils\dsb uncover\dsb from\dcolon nn}
603 {
604 \providedby{\sty{flowframtkutils} v2.0+}
605 \syntax{\ \margm{number} \margm{content}}
606 \desc{used by \gls{flowframtkutilsuncoverencap:nnnnnnnn}
607 to uncover an object from \meta{number}}
608 }
609 % \flowframtkutils_uncover_encap:nnnnnnnn
610 \gcmd{flow\-fram\-tk\-utils\dsb uncover\dsb encap\dcolon nnnnnnnn}
611 {
612 \providedby{\sty{flowframtkutils} v2.0+}
613 \syntax{\ \margm{n} \margm{Java class name} \margm{description} \margm{tag} \margm{pgf point} \margm{width} \margm{height} \margm{object}}
614 \desc{the low-level function used by \gls{flowframtkencapobject}
615 when enabled with \gls{FlowFramTkUtilsSetOverlayEncap}}
616 }
617 % \FlowFramTkUtilsOverlayEncapSetup
618 \gcmd{Flow\-Fram\-Tk\-Utils\-Over\-lay\-En\-cap\-Setup}
619 {
620 \providedby{\sty{flowframtkutils} v2.0+}
621 \syntax{\marg{\keyvallist}}
622 \desc{set the options for \gls{FlowFramTkUtilsSetOverlayEncap}}
623 }
624 % \FlowFramTkUtilsOverlayEncapSetup : uncover
625 \gcsopt{overlayencap.uncover}
626 {
627 \name{\csoptfmt{uncover}}
628 \parent{FlowFramTkUtilsOverlayEncapSetup}
629 \syntax{\meta{value}}
630 \initval{from}
631 \desc{determines whether or not overlays should be used for
632 image objects and, if so, should the object just be shown on a
633 single overlay or from a certain number}
634 }
635 % uncover = single
636 \goptval{overlayencap.uncover}{single}
637 {
638 \desc{uncover for a single slide}
639 }
640 % uncover = from
641 \goptval{overlayencap.uncover}{from}
642 {
643 \desc{uncover from a slide}
644 }
645 % uncover = false
646 \goptval{overlayencap.uncover}{false}
647 {
648 \desc{don't have overlays for image objects (but annotations may
649 still be overlaid)}
650 }
651 % \FlowFramTkUtilsOverlayEncapSetup : annote
652 \gcsopt{overlayencap.annote}
653 {
654 \name{\csoptfmt{annote}}
655 \parent{FlowFramTkUtilsOverlayEncapSetup}
656 \syntax{\meta{value}}
657 \initval{false}
658 \defval{true}
659 \desc{determines whether or not annotations should be added and,
660 if so, what overlays should be used for annotations}
661 }
662 % annote = single
663 \goptval{overlayencap.annote}{single}
664 {
665 \desc{uncover annotation, if applicable, for a single slide}
666 }
667 % annote = from
668 \goptval{overlayencap.annote}{from}
669 {
670 \desc{uncover annotation, if applicable, from a slide}
671 }
672 % annote = match
673 \goptval{overlayencap.annote}{match}
674 {
675 \desc{uncover annotation, if applicable, matching the object's
676 overlay setting}
677 }
678 % annote = true
679 \goptval{overlayencap.annote}{true}
680 {
681 \desc{enable annotations without changing the overlay setting}
682 }
683 % annote = false
684 \goptval{overlayencap.annote}{false}
685 {
686 \desc{disable annotations}
687 }
688 % \FlowFramTkUtilsOverlayEncapSetup : annote-position
689 \gcsopt{overlayencap.annote-position}
690 {
691 \name{\csoptfmt{annote\dhyphen position}}
692 \parent{FlowFramTkUtilsOverlayEncapSetup}
693 \syntax{\meta{value}}
694 \initval{auto}
695 \desc{if annotations should be added, this setting indicates in
696 which direction the annotation should be}
697 }
698 % annote-position = auto
699 \goptval{overlayencap.annote-position}{auto}
700 {
701 \desc{automatically determine the direction based on the object's
702 relative position within the image}
703 }
704 % annote-position = north
705 \goptval{overlayencap.annote-position}{north}
706 {
707 \desc{place the annotation above the object}
708 }
709 % annote-position = northeast
710 \goptval{overlayencap.annote-position}{northeast}
711 {
712 \desc{place the annotation above right of the object}
713 }
714 % annote-position = east
715 \goptval{overlayencap.annote-position}{east}
716 {
717 \desc{place the annotation right of the object}
718 }
719 % annote-position = southeast
720 \goptval{overlayencap.annote-position}{southeast}
721 {
722 \desc{place the annotation below right of the object}
723 }
724 % annote-position = south
725 \goptval{overlayencap.annote-position}{south}
726 {
727 \desc{place the annotation below the object}
728 }
729 % annote-position = southwest
730 \goptval{overlayencap.annote-position}{southwest}
731 {
732 \desc{place the annotation below left of the object}
733 }
734 % annote-position = west
735 \goptval{overlayencap.annote-position}{west}
736 {
737 \desc{place the annotation left of the object}
738 }
739 % annote-position = northwest
740 \goptval{overlayencap.annote-position}{northwest}
741 {
742 \desc{place the annotation above left of the object}
743 }
744 % \FlowFramTkUtilsOverlayEncapSetup : annote-arrow
745 \gcsopt{overlayencap.annote-arrow}
746 {
747 \name{\csoptfmt{annote\dhyphen arrow}}
748 \parent{FlowFramTkUtilsOverlayEncapSetup}
749 \syntax{\marg{\keyvallist}}
750 \defval{show}
751 \desc{if annotations should be added, this setting governs the
752 annotation arrow}
753 }
754 % annote-arrow = { show = boolean }
755 \gopt{overlayencap.annote-arrow.show}
756 {
757 \name{\optfmt{show}}
758 \parent{overlayencap.annote-arrow}
759 \syntax{\meta{boolean}}
760 \initval{true}
761 \defval{true}
762 \desc{if annotations should be added, show an arrow in addition
763 to the text}
764 }
765 % annote-arrow = { hide = boolean }
766 \gopt{overlayencap.annote-arrow.hide}
767 {
768 \name{\optfmt{hide}}
769 \parent{overlayencap.annote-arrow}
770 \syntax{\meta{boolean}}
771 \initval{false}
772 \defval{true}
773 \desc{if annotations should be added, don't show an arrow (only
774 show the text)}
775 }
776 % annote-arrow = { dx = dim }
777 \gopt{overlayencap.annote-arrow.dx}
778 {
779 \name{\optfmt{dx}}
780 \parent{overlayencap.annote-arrow}
781 \syntax{\margm{dim}}
782 \defval{1cm}
783 \desc{if annotations should be added, the horizontal
784 displacement from the start of the arrow. This is also the
785 horizontal displacement for the annotation text, regardless of
786 whether or not the arrow is shown}
787 }
788 % annote-arrow = { dy = dim }
789 \gopt{overlayencap.annote-arrow.dy}
790 {
791 \name{\optfmt{dy}}
792 \parent{overlayencap.annote-arrow}
793 \syntax{\margm{dim}}
794 \defval{1cm}
795 \desc{if annotations should be added, the vertical
796 displacement from the start of the arrow. This is also the
797 vertical displacement for the annotation text, regardless of
798 whether or not the arrow is shown}
799 }
800 % annote-arrow = { color = colour-name }
801 \gopt{overlayencap.annote-arrow.color}
802 {
803 \name{\optfmt{color}}
804 \parent{overlayencap.annote-arrow}
805 \syntax{\margm{colour-name}}
806 \initval{black}
807 \desc{the colour to use for the annotation arrow, if shown. The
808 value may be empty to indicate the current stroke colour should be
809 used}
810 }
811 % annote-arrow = { start = arrow }
812 \gopt{overlayencap.annote-arrow.start}
813 {
814 \name{\optfmt{start}}
815 \parent{overlayencap.annote-arrow}
816 \syntax{\margm{arrow-name}}
817 \initval{<}
818 \desc{the start arrow marker to use for the annotation arrow, if shown. The
819 value may be empty to indicate there should be no start arrow}
820 }
821 % annote-arrow = { end = arrow }
822 \gopt{overlayencap.annote-arrow.end}
823 {
824 \name{\optfmt{end}}
825 \parent{overlayencap.annote-arrow}
826 \syntax{\margm{arrow-name}}
827 \initvalempty
828 \desc{the end arrow marker to use for the annotation arrow, if shown. The
829 value may be empty to indicate there should be no end arrow}
830 }
831 % \FlowFramTkUtilsOverlayEncapSetup : annote-text
832 \gcsopt{overlayencap.annote-text}
833 {
834 \name{\csoptfmt{annote\dhyphen text}}
835 \parent{FlowFramTkUtilsOverlayEncapSetup}
836 \syntax{\margm{value}}
837 \defval{description}
838 \desc{the text to use for the annotation}
839 }
840 % annote-text = hide
841 \goptval{overlayencap.annote-text}{hide}
842 {
843 \desc{no annotation text}
844 }
845 % annote-text = description
846 \goptval{overlayencap.annote-text}{description}
847 {
848 \desc{if the object has a description, use that as the annotation text}
849 }
850 % annote-text = tag
851 \goptval{overlayencap.annote-text}{tag}
852 {
853 \desc{if the object has a tag, use that as the annotation text}
854 }
855 % annote-text = description-or-tag
856 \goptval{overlayencap.annote-text}{description\dhyphen or\dhyphen tag}
857 {
858 \desc{if the object has a description, use that as the annotation
859 text, otherwise if the object has a tag use that}
860 }
861 % annote-text = tag-map
862 \goptval{overlayencap.annote-text}{tag-map}
863 {
864 \desc{if the object has a tag and a mapping has been set with
865 \overlayencapopt{tag-text}, use the mapping as the annotation text}
866 }
867 % \FlowFramTkUtilsOverlayEncapSetup : tag-text
868 \gcsopt{overlayencap.tag-text}
869 {
870 \name{\csoptfmt{tag\dhyphen text}}
871 \parent{FlowFramTkUtilsOverlayEncapSetup}
872 \syntax{\marg{\keyvallist}}
873 \desc{set up mappings for use with
874 \overlayencapoptval{annote-text}{tag-map}, where the key in
875 \keyvallist\ is the tag and the value is the text to use for that
876 tag}
877 }
878 % \FlowFramTkUtilsOverlayEncapSetup : auto-overlay
879 \gcsopt{overlayencap.auto-overlay}
880 {
881 \name{\csoptfmt{auto\dhyphen overlay}}
882 \parent{FlowFramTkUtilsOverlayEncapSetup}
883 \syntax{\margm{boolean}}
884 \initval{false}
885 \defval{true}
886 \desc{if true, auto-increment the overlay for each object that's
887 not a group}
888 }
889 % \FlowFramTkUtilsOverlayEncapSetup : tag-overlay
890 \gcsopt{overlayencap.tag-overlay}
891 {
892 \name{\csoptfmt{tag\dhyphen overlay}}
893 \parent{FlowFramTkUtilsOverlayEncapSetup}
894 \syntax{\marg{\keyvallist}}
895 \desc{if \overlayencapval{overlayencap.auto-overlay}{false},
896 set up the tag overlays, where the key in \keyvallist\ is
897 the tag and the value is the overlay number}
898 }
899 % \FlowFramTkUtilsOverlayEncapSetup : object-overlay
900 \gcsopt{overlayencap.object-overlay}
901 {
902 \name{\csoptfmt{object\dhyphen overlay}}
903 \parent{FlowFramTkUtilsOverlayEncapSetup}
904 \syntax{\marg{\keyvallist}}
905 \desc{if \overlayencapval{overlayencap.auto-overlay}{false},
906 set up the object overlays, where the key in \keyvallist\
907 identifies the object and the value is the overlay number}
908 }
909 % \FlowFramTkUtilsOverlayEncapSetup : fallback-overlay
910 \gcsopt{overlayencap.fallback-overlay}
911 {
912 \name{\csoptfmt{fallback\dhyphen overlay}}
913 \parent{FlowFramTkUtilsOverlayEncapSetup}
914 \syntax{\marg{\keyvallist}}
915 \desc{if \overlayencapval{overlayencap.auto-overlay}{false},
916 and if an object doesn't have an overlay identified by either
917 \overlayencapopt{tag-overlay} or \overlayencapopt{object-overlay},
918 then use this fallback}
919 }
920 % fallback-overlay = { enable = boolean }
921 \gopt{overlayencap.fallback-overlay.enable}
922 {
923 \name{\optfmt{enable}}
924 \parent{overlayencap.fallback-overlay}
925 \syntax{\meta{boolean}}
926 \initval{false}
927 \defval{true}
928 \desc{enabled fallback overlay setting}
929 }
930 % fallback-overlay = { fixed = number }
931 \gopt{overlayencap.fallback-overlay.fixed}
932 {
933 \name{\optfmt{fixed}}
934 \parent{overlayencap.fallback-overlay}
935 \syntax{\margm{number}}
936 \desc{if fallback overlay setting enabled, set the default
937 overlay to \meta{number}}
938 }
939 % fallback-overlay = { increment }
940 \gopt{overlayencap.fallback-overlay.increment}
941 {
942 \name{\optfmt{increment}}
943 \parent{overlayencap.fallback-overlay}
944 \desc{if fallback overlay setting enabled, set the default
945 overlay to a number that's incremented}
946 }
947 % \flowframtkimageinfo
948 \gcmd{flow\-fram\-tk\-image\-info}
949 {
950 \providedby{\sty{flowframtkutils} v2.0+}
951 \syntax{\marg{\keyvallist}}
952 \desc{set the document title and creation date}
953 }
954 % \flowframtkimageinfo : title
955 \gcsopt{image.title}
956 {
957 \name{\csoptfmt{title}}
958 \parent{flowframtkimageinfo}
959 \syntax{\margm{text}}
960 \desc{sets the document title}
961 }
962 % \flowframtkimageinfo : creationdate
963 \gcsopt{image.creationdate}
964 {
965 \name{\csoptfmt{creationdate}}
966 \parent{flowframtkimageinfo}
967 \syntax{\margm{PDF date}}
968 \desc{sets the creation date}
969 }
970 % \flowframtkSetTitle
971 \gcmd{flow\-fram\-tk\-Set\-Title}
972 {
973 \providedby{\sty{flowframtkutils} v2.0+}
974 \syntax{\margm{title}}
975 \desc{set the document title}
976 }
977 % \flowframtkSetCreationDate
978 \gcmd{flow\-fram\-tk\-Set\-Creation\-Date}
979 {
980 \providedby{\sty{flowframtkutils} v2.0+}
981 \syntax{\margm{PDF date}}
982 \desc{set the PDF creation date}
983 }
984 % \flowframtkimgtitlechar
985 \gcmd{flow\-fram\-tk\-img\-title\-char}
986 {
987 \providedby{\sty{flowframtkutils} v2.0+}
988 \syntax{\margm{char}\margm{PDF replacement}}
989 \desc{normally just expands to \meta{char}}
990 }
991 % \flowframtkstartobject
992 \gcmd{flow\-fram\-tk\-start\-object}
993 {
994 \providedby{\sty{flowframtkutils} v2.0+}
995 \syntax{\margm{n}\margm{Java class name}\margm{description}\margm{tag}\margm{pgf point}\margm{width}\margm{height}}
996 \desc{marks the start of an object that forms part of the image.
997 Should always be paired with a matching \gls{flowframtkendobject}}
998 }
999 % \flowframtkendobject
1000 \gcmd{flow\-fram\-tk\-end\-object}
1001 {
1002 \providedby{\sty{flowframtkutils} v2.0+}
1003 \syntax{\margm{n}\margm{Java class name}\margm{description}\margm{tag}\margm{pgf point}\margm{width}\margm{height}}
1004 \desc{marks the end of an object that forms part of the image.
1005 Should always be paired with a matching \gls{flowframtkstartobject}}
1006 }
1007 % \flowframtkencapobject
1008 \gcmd{flow\-fram\-tk\-en\-cap\-object}
1009 {
1010 \providedby{\sty{flowframtkutils} v2.0+}
1011 \syntax{\margm{n}\margm{Java class name}\margm{description}\margm{tag}\margm{pgf point}\margm{width}\margm{height}\margm{object}}
1012 \desc{encapsulates an object that forms part of an image}
1013 }
1014 % COMMANDS (flowfram.sty)
1015 % \framebreak
1016 \gcmd{frame\-break}
1017 {
1018 \providedby{\sty{flowfram}}
1019 \syntax{\oargm{n}}
1020 \desc{forces a break from one frame to another. This creates a
1021 paragraph break in order to ensure the output routine adjusts to the
1022 new frame width but gives the effect of a continuous paragraph
1023 (although this may cause excess spacing)}
1024 }
1025 % \finishthispage
1026 \gcmd{finish\-this\-page}
1027 {
1028 \providedby{\sty{flowfram}}
1029 \desc{similar to the way \gls{clearpage} works for normal
1030 two-column mode, this command issues the correct number of \gls{newpage} needed to finish
1031 the current page to allow a page break even if the current
1032 \idx{flow-frame} isn't the last available for the current page}
1033 }
1034 % \cleartoevenpage
1035 \gcmd{clear\-to\-even\-page}
1036 {
1037 \providedby{\sty{flowfram} v2.0+}
1038 \desc{similar to \gls{cleardoublepage} (which clears to the next
1039 odd page) this clears to the next even page for two-sided documents.
1040 For one-sided documents this just does \gls{clearpage}}
1041 }
1042 % \flowframeshowlayout
1043 \gcmd{flow\-frame\-show\-lay\-out}
1044 {
1045 \providedby{\sty{flowfram}}
1046 \desc{finishes the current page, temporarily sets draft mode, and
1047 prints an empty page}
1048 }
1049 % \chapterfirstpagestyle
1050 \gcmd{chapter\-first\-page\-style}
1051 {
1052 \providedby{\sty{flowfram}}
1053 \initval{plain}
1054 \desc{the page style for the first page of a chapter}
1055 }
1056 % \ffprechapterhook
1057 \gcmd{ff\-pre\-chapter\-hook}
1058 {
1059 \providedby{\sty{flowfram} v1.14+}
1060 \initvalempty
1061 \desc{hook added to the start of \gls{chapter}}
1062 }
1063 % \getflowlabel
1064 \gcmd{get\-flow\-label}
1065 {
1066 \providedby{\sty{flowfram} v1.11+}
1067 \syntax{\margm{IDN}}
1068 \desc{expands to the \idx{IDL} of the \idx{flow-frame} identified
1069 by its \idx{IDN}}
1070 }
1071 % \getflowid
1072 \gcmd{get\-flow\-id}
1073 {
1074 \providedby{\sty{flowfram} v1.11+}
1075 \syntax{\margm{cmd}\margm{IDL}}
1076 \desc{defines the command \meta{cmd} to expand to the \idx{IDN} of the
1077 \idx{flow-frame} identified by its \idx{IDL}}
1078 }
1079 % \newflowframe
1080 \gcmds{new\-flow\-frame}
1081 {
1082 \providedby{\sty{flowfram}}
1083 \syntax{\oargm{page-list}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
1084 \desc{defines a new \idx{flow-frame} with the given dimensions
1085 and location. If \meta{label} is provided, that will be set as the
1086 frame's \idx{IDL} otherwise the \idx{IDL} will be the same as the
1087 \idx{IDN}}
1088 \note{preamble only}
1089 }
1090 % \newframe
1091 \gcmds{new\-frame}
1092 {
1093 \providedby{\sty{flowfram}}
1094 \syntax{\oargm{page-list}\margm{frame-type}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
1095 \desc{defines a new frame of the given \meta{frame-type} with the given dimensions
1096 and location. If \meta{label} is provided, that will be set as the
1097 frame's \idx{IDL} otherwise the \idx{IDL} will be the same as the
1098 \idx{IDN}}
1099 \note{preamble only}
1100 }
1101 % \labelflowidn
1102 \gcmd{label\-flow\-idn}
1103 {
1104 \providedby{\sty{flowfram} v1.11+}
1105 \syntax{\margm{label}}
1106 \desc{labels the current \idx{flow-frame} with \gls{label} so
1107 that its \idx{IDN} can be referenced with \gls{ref}}
1108 }
1109 % \labelflow
1110 \gcmd{label\-flow}
1111 {
1112 \providedby{\sty{flowfram} v1.11+}
1113 \syntax{\margm{label}}
1114 \desc{labels the current \idx{flow-frame} with \gls{label} so
1115 that its displayed index (\ctr{displayedframe}) can be referenced with \gls{ref}}
1116 }
1117 % \getstaticlabel
1118 \gcmd{get\-static\-label}
1119 {
1120 \providedby{\sty{flowfram} v1.11+}
1121 \syntax{\margm{IDN}}
1122 \desc{expands to the \idx{IDL} of the \idx{static-frame} identified
1123 by its \idx{IDN}}
1124 }
1125 % \getstaticid
1126 \gcmd{get\-static\-id}
1127 {
1128 \providedby{\sty{flowfram} v1.11+}
1129 \syntax{\margm{cmd}\margm{IDL}}
1130 \desc{defines the command \meta{cmd} to expand to the \idx{IDN} of the
1131 \idx{static-frame} identified by its \idx{IDL}}
1132 }
1133 % \getdynamiclabel
1134 \gcmd{get\-dynamic\-label}
1135 {
1136 \providedby{\sty{flowfram} v1.11+}
1137 \syntax{\margm{IDN}}
1138 \desc{expands to the \idx{IDL} of the \idx{dynamic-frame} identified
1139 by its \idx{IDN}}
1140 }
1141 % \getdynamicid
1142 \gcmd{get\-dynamic\-id}
1143 {
1144 \providedby{\sty{flowfram} v1.11+}
1145 \syntax{\margm{cmd}\margm{IDL}}
1146 \desc{defines the command \meta{cmd} to expand to the \idx{IDN} of the
1147 \idx{dynamic-frame} identified by its \idx{IDL}}
1148 }
1149 % \continueonframe
1150 \gcmd{con\-tinue\-on\-frame}
1151 {
1152 \providedby{\sty{flowfram}}
1153 \syntax{\oargm{text}\margm{ID}}
1154 \desc{ends the current \env{staticcontents} or
1155 \env{dynamiccontents} and starts a new environment of the same
1156 type for the frame given by \meta{ID}. If the starred version of the
1157 environment was used then \meta{ID} refers to the next
1158 \idx*{frame}['s] \idx{IDL} otherwise it refers to its \idx{IDN}.
1159 If \meta{text} is omitted then \gls{ffdefaultstaticcontinuetext}
1160 or \gls{ffdefaultstaticcontinuetext} will be used (with the
1161 appropriate arguments), as applicable}
1162 }
1163 % \ffdefaultstaticcontinuetext
1164 \gcmd{ff\-default\-static\-con\-tin\-ue\-text}
1165 {
1166 \providedby{\sty{flowfram} v2.0+}
1167 \syntax{\margm{IDN1}\margm{IDN2}}
1168 \initvalcs{ffdefaultcontinuetext}
1169 \desc{default continuation text if the optional argument of
1170 \gls{continueonframe} is omitted in \idxpl{static-frame}. The
1171 arguments are the \idx{IDN} of the current frame and of the
1172 continuation frame (not the \idx{IDL}, regardless of the
1173 encapsulating command or environment)}
1174 }
1175 % \ffdefaultdynamiccontinuetext
1176 \gcmd{ff\-default\-dynamic\-con\-tin\-ue\-text}
1177 {
1178 \providedby{\sty{flowfram} v2.0+}
1179 \syntax{\margm{IDN1}\margm{IDN2}}
1180 \initvalcs{ffdefaultcontinuetext}
1181 \desc{default continuation text if the optional argument of
1182 \gls{continueonframe} is omitted in \idxpl{dynamic-frame}. The
1183 arguments are the \idx{IDN} of the current frame and of the
1184 continuation frame (not the \idx{IDL}, regardless of the
1185 encapsulating command or environment)}
1186 }
1187 % \ffdefaultcontinuetext
1188 \gcmd{ff\-default\-con\-tin\-ue\-text}
1189 {
1190 \providedby{\sty{flowfram} v2.0+}
1191 \initvalempty
1192 \desc{default used by both \gls{ffdefaultstaticcontinuetext}
1193 and \gls{ffdefaultdynamiccontinuetext}}
1194 }
1195 % \ffcontinuedtextlayout
1196 \gcmd{ff\-con\-tin\-ued\-text\-layout}
1197 {
1198 \providedby{\sty{flowfram}}
1199 \syntax{\margm{text}}
1200 \desc{used by \gls{continueonframe} to adjust the current
1201 paragraph so that it ends flushed with the right margin and
1202 adds the continuation text flush right on the next line}
1203 }
1204 % \ffcontinuedtextfont
1205 \gcmd{ff\-con\-tin\-ued\-text\-font}
1206 {
1207 \providedby{\sty{flowfram}}
1208 \syntax{\margm{text}}
1209 \desc{used \gls{ffcontinuedtextlayout} to apply the font for the continuation text}
1210 \field{seealso}{continueonframe}
1211 }
1212 % \ffdefaultpostcontinued
1213 \gcmd{ff\-default\-post\-con\-tin\-ued}
1214 {
1215 \providedby{\sty{flowfram} v2.0+}
1216 \desc{default behaviour of \gls{ffstaticpostcontinued}
1217 and \gls{ffdynamicpostcontinued}}
1218 \field{seealso}{continueonframe}
1219 }
1220 % \ffdynamicpostcontinued
1221 \gcmd{ff\-dynamic\-post\-contin\-ued}
1222 {
1223 \providedby{\sty{flowfram} v2.0+}
1224 \initvalcs{ffdefaultpostcontinued}
1225 \syntax{\margm{IDN1}\margm{IDN2}}
1226 \desc{placed at the start of a \idx{dynamic-frame} with continued content
1227 where \meta{IDN1} is the \idx{IDN} of the previous frame
1228 and \meta{IDN2} is the \idx{IDN} of the continuation frame}
1229 \field{seealso}{continueonframe}
1230 }
1231 % \ffstaticpostcontinued
1232 \gcmd{ff\-static\-post\-con\-tin\-ued}
1233 {
1234 \providedby{\sty{flowfram} v2.0+}
1235 \initvalcs{ffdefaultpostcontinued}
1236 \syntax{\margm{IDN1}\margm{IDN2}}
1237 \desc{placed at the start of a \idx{static-frame} with continued content
1238 where \meta{IDN1} is the \idx{IDN} of the previous frame
1239 and \meta{IDN2} is the \idx{IDN} of the continuation frame}
1240 \field{seealso}{continueonframe}
1241 }
1242 % \ChapterInDynamic
1243 \gcmds{Chapter\-In\-Dynamic}
1244 {
1245 \providedby{\sty{flowfram} v2.0+}
1246 \syntax{\margm{ID}}
1247 \desc{adapts \gls{chapter} to ensure that chapter titles are
1248 placed in the identified \idx{dynamic-frame}}
1249 }
1250 % \dfchapterclearpage
1251 \gcmd{df\-chap\-ter\-clear\-page}
1252 {
1253 \providedby{\sty{flowfram} v2.0+}
1254 \desc{used with \gls{ChapterInDynamic} to start a new page}
1255 }
1256 % \ffchapterpreheadskip
1257 \gcmd{ff\-chap\-ter\-pre\-head\-skip}
1258 {
1259 \providedby{\sty{flowfram} v2.0+}
1260 \desc{vertical space before chapter header}
1261 \note{only if \cls{book} or \cls{report} class}
1262 }
1263 % \ffchapterpostheadskip
1264 \gcmd{ff\-chapter\-post\-head\-skip}
1265 {
1266 \providedby{\sty{flowfram} v2.0+}
1267 \desc{vertical space after chapter header}
1268 \note{only if \cls{book} or \cls{report} class}
1269 }
1270 % \ffchapterheadstyle
1271 \gcmd{ff\-chap\-ter\-head\-style}
1272 {
1273 \providedby{\sty{flowfram} v2.0+}
1274 \desc{the paragraph style for the chapter header}
1275 \note{only if \cls{book} or \cls{report} class}
1276 }
1277 % \ffchapternamenumfont
1278 \gcmd{ff\-chapter\-name\-num\-font}
1279 {
1280 \providedby{\sty{flowfram} v2.0+}
1281 \syntax{\margm{text}}
1282 \desc{the font command for the chapter name and number}
1283 \note{only if \cls{book} or \cls{report} class}
1284 }
1285 % \ffchaptertitlefont
1286 \gcmd{ff\-chap\-ter\-title\-font}
1287 {
1288 \providedby{\sty{flowfram} v2.0+}
1289 \syntax{\margm{text}}
1290 \desc{the font command for the chapter title}
1291 \note{only if \cls{book} or \cls{report} class}
1292 }
1293 % \ffchapterdefaultfont
1294 \gcmd{ff\-chap\-ter\-default\-font}
1295 {
1296 \providedby{\sty{flowfram} v2.0+}
1297 \desc{the default font declarations for the chapter heading}
1298 \note{only if \cls{book} or \cls{report} class}
1299 }
1300 % \ffchapternamenum
1301 \gcmd{ff\-chap\-ter\-name\-num}
1302 {
1303 \providedby{\sty{flowfram} v2.0+}
1304 \syntax{\margm{name}\margm{number}}
1305 \desc{typesets the chapter name (Chapter\slash Appendix) and number}
1306 \note{only if \cls{book} or \cls{report} class}
1307 }
1308 % \ffchapterpostnamenum
1309 \gcmd{ff\-chap\-ter\-post\-name\-num}
1310 {
1311 \providedby{\sty{flowfram} v2.0+}
1312 \desc{separator between the chapter number and title}
1313 \note{only if \cls{book} or \cls{report} class}
1314 }
1315 % \dfchaphead
1316 \gcmds{df\-chap\-head}
1317 {
1318 \deprecated
1319 \providedby{\sty{flowfram}}
1320 \syntax{\margm{ID}}
1321 \desc{old method for putting chapter title in a
1322 \idx{dynamic-frame}}
1323 }
1324 % \newstaticframe
1325 \gcmds{new\-static\-frame}
1326 {
1327 \providedby{\sty{flowfram}}
1328 \syntax{\oargm{page-list}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
1329 \desc{defines a new \idx{static-frame} with the given dimensions
1330 and location. If \meta{label} is provided, that will be set as the
1331 frame's \idx{IDL} otherwise the \idx{IDL} will be the same as the
1332 \idx{IDN}}
1333 \note{preamble only}
1334 }
1335 % \newdynamicframe
1336 \gcmds{new\-dynamic\-frame}
1337 {
1338 \providedby{\sty{flowfram}}
1339 \syntax{\oargm{page-list}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
1340 \desc{defines a new \idx{dynamic-frame} with the given dimensions
1341 and location. If \meta{label} is provided, that will be set as the
1342 frame's \idx{IDL} otherwise the \idx{IDL} will be the same as the
1343 \idx{IDN}}
1344 \note{preamble only}
1345 }
1346 % \makedfheaderfooter
1347 \gcmd{make\-df\-head\-er\-foot\-er}
1348 {
1349 \providedby{\sty{flowfram}}
1350 \desc{creates the header and footer \idxpl{dynamic-frame} to use
1351 for the page header and footer. They can then be moved, resized or
1352 styled as required. This command will set the \pstyle{ffheadings}
1353 package style and, depending on the \opt{dynamic-page-style}
1354 setting, may adjust the standard page styles}
1355 \note{preamble only}
1356 }
1357 % \dfOddFooterStyle
1358 \gcmd{df\-Odd\-Foot\-er\-Style}
1359 {
1360 \providedby{\sty{flowfram} v2.0}
1361 \syntax{\margm{text}}
1362 \desc{used to format the page footer in the \headerandfooterframe\
1363 page styles for odd pages}
1364 }
1365 % \dfEvenFooterStyle
1366 \gcmd{df\-Even\-Foot\-er\-Style}
1367 {
1368 \providedby{\sty{flowfram} v2.0}
1369 \syntax{\margm{text}}
1370 \desc{used to format the page footer in the \headerandfooterframe\
1371 page styles for even pages}
1372 }
1373 % \dfOddHeaderStyle
1374 \gcmd{df\-Odd\-Head\-er\-Style}
1375 {
1376 \providedby{\sty{flowfram} v2.0}
1377 \syntax{\margm{text}}
1378 \desc{used to format the page header in the \headerandfooterframe\
1379 page styles for odd pages}
1380 }
1381 % \dfEvenHeaderStyle
1382 \gcmd{df\-Even\-Head\-er\-Style}
1383 {
1384 \providedby{\sty{flowfram} v2.0}
1385 \syntax{\margm{text}}
1386 \desc{used to format the page header in the \headerandfooterframe\
1387 page styles for even pages}
1388 }
1389 % \flowframchapterheader
1390 \gcmd{flow\-fram\-chap\-ter\-head\-er}
1391 {
1392 \providedby{\sty{flowfram} v2.0}
1393 \syntax{\margm{text}}
1394 \desc{used by the \pstyle{ffheadings} page style to format the chapter mark}
1395 }
1396 % \flowframsectionheader
1397 \gcmd{flow\-fram\-section\-head\-er}
1398 {
1399 \providedby{\sty{flowfram} v2.0}
1400 \syntax{\margm{text}}
1401 \desc{used by the \pstyle{ffheadings} page style to format the section mark}
1402 }
1403 % \flowframsubsectionheader
1404 \gcmd{flow\-fram\-sub\-section\-head\-er}
1405 {
1406 \providedby{\sty{flowfram} v2.0}
1407 \syntax{\margm{text}}
1408 \desc{used by the \pstyle{ffheadings} page style to format the subsection mark}
1409 }
1410 % \flowframheadersep
1411 \gcmd{flow\-fram\-head\-er\-sep}
1412 {
1413 \providedby{\sty{flowfram} v2.0}
1414 \initvalvaries
1415 \desc{separator used between the chapter or section number and
1416 the title (when the number is shown).}
1417 }
1418 % \flowframheaderchapprefix
1419 \gcmd{flowframheaderchapprefix}
1420 {
1421 \providedby{\sty{flowfram} v2.0}
1422 \initvalvaries
1423 \desc{prefix inserted before the chapter number}
1424 }
1425 % \appenddfminitoc
1426 \gcmds{append\-df\-mini\-toc}
1427 {
1428 \providedby{\sty{flowfram}}
1429 \syntax{\margm{ID}}
1430 \desc{appends the \idx{minitoc} to the \idx{dynamic-frame} identified
1431 by \meta{ID} (the \idx{IDN} for the unstarred version or the
1432 \idx{IDL} for the starred version). The \idx{minitoc} support needs
1433 to be enabled with \gls{enableminitoc}}
1434 \note{preamble only}
1435 \field{seealso}{enableminitoc}
1436 }
1437 % \enableminitoc
1438 \gcmd{en\-able\-mini\-toc}
1439 {
1440 \providedby{\sty{flowfram}}
1441 \syntax{\oargm{section-type}}
1442 \desc{enables \idxpl{minitoc} at the start of the given sectional
1443 unit}
1444 \note{preamble only}
1445 }
1446 % \minitocstyle
1447 \gcmd{mini\-toc\-style}
1448 {
1449 \providedby{\sty{flowfram}}
1450 \syntax{\margm{content}}
1451 \desc{the style used to format the \idx{minitoc}}
1452 }
1453 % \flowframex
1454 \gcmd{flow\-framex}
1455 {
1456 \providedby{\sty{flowfram}}
1457 \syntax{\margm{IDN}}
1458 \desc{expands to the $x$-coordinate of the \idx{flow-frame} identified
1459 by its \idx{IDN}}
1460 }
1461 % \staticframex
1462 \gcmd{static\-framex}
1463 {
1464 \providedby{\sty{flowfram}}
1465 \syntax{\margm{IDN}}
1466 \desc{expands to the $x$-coordinate of the \idx{static-frame} identified
1467 by its \idx{IDN}}
1468 }
1469 % \dynamicframex
1470 \gcmd{dynamic\-framex}
1471 {
1472 \providedby{\sty{flowfram}}
1473 \syntax{\margm{IDN}}
1474 \desc{expands to the $x$-coordinate of the \idx{dynamic-frame} identified
1475 by its \idx{IDN}}
1476 }
1477 % \flowframeevenx
1478 \gcmd{flow\-frame\-evenx}
1479 {
1480 \providedby{\sty{flowfram}}
1481 \syntax{\margm{IDN}}
1482 \desc{expands to the even-page $x$-coordinate of the \idx{flow-frame} identified
1483 by its \idx{IDN}}
1484 }
1485 % \staticframeevenx
1486 \gcmd{static\-frame\-evenx}
1487 {
1488 \providedby{\sty{flowfram}}
1489 \syntax{\margm{IDN}}
1490 \desc{expands to the even-page $x$-coordinate of the \idx{static-frame} identified
1491 by its \idx{IDN}}
1492 }
1493 % \dynamicframeevenx
1494 \gcmd{dynamic\-frame\-evenx}
1495 {
1496 \providedby{\sty{flowfram}}
1497 \syntax{\margm{IDN}}
1498 \desc{expands to the even-page $x$-coordinate of the \idx{dynamic-frame} identified
1499 by its \idx{IDN}}
1500 }
1501 % \flowframeeveny
1502 \gcmd{flow\-frame\-eveny}
1503 {
1504 \providedby{\sty{flowfram}}
1505 \syntax{\margm{IDN}}
1506 \desc{expands to the even-page $y$-coordinate of the \idx{flow-frame} identified
1507 by its \idx{IDN}}
1508 }
1509 % \staticframeeveny
1510 \gcmd{static\-frame\-eveny}
1511 {
1512 \providedby{\sty{flowfram}}
1513 \syntax{\margm{IDN}}
1514 \desc{expands to the even-page $y$-coordinate of the \idx{static-frame} identified
1515 by its \idx{IDN}}
1516 }
1517 % \dynamicframeeveny
1518 \gcmd{dynamic\-frame\-eveny}
1519 {
1520 \providedby{\sty{flowfram}}
1521 \syntax{\margm{IDN}}
1522 \desc{expands to the even-page $y$-coordinate of the \idx{dynamic-frame} identified
1523 by its \idx{IDN}}
1524 }
1525 % \flowframey
1526 \gcmd{flow\-framey}
1527 {
1528 \providedby{\sty{flowfram}}
1529 \syntax{\margm{IDN}}
1530 \desc{expands to the $y$-coordinate of the \idx{flow-frame} identified
1531 by its \idx{IDN}}
1532 }
1533 % \staticframey
1534 \gcmd{static\-framey}
1535 {
1536 \providedby{\sty{flowfram}}
1537 \syntax{\margm{IDN}}
1538 \desc{expands to the $y$-coordinate of the \idx{static-frame} identified
1539 by its \idx{IDN}}
1540 }
1541 % \dynamicframey
1542 \gcmd{dynamic\-framey}
1543 {
1544 \providedby{\sty{flowfram}}
1545 \syntax{\margm{IDN}}
1546 \desc{expands to the $y$-coordinate of the \idx{dynamic-frame} identified
1547 by its \idx{IDN}}
1548 }
1549 % \flowframewidth
1550 \gcmd{flow\-frame\-width}
1551 {
1552 \providedby{\sty{flowfram}}
1553 \syntax{\margm{IDN}}
1554 \desc{expands to the width of the \idx{flow-frame} identified
1555 by its \idx{IDN}}
1556 }
1557 % \staticframewidth
1558 \gcmd{static\-frame\-width}
1559 {
1560 \providedby{\sty{flowfram}}
1561 \syntax{\margm{IDN}}
1562 \desc{expands to the width of the \idx{static-frame} identified
1563 by its \idx{IDN}}
1564 }
1565 % \dynamicframewidth
1566 \gcmd{dynamic\-frame\-width}
1567 {
1568 \providedby{\sty{flowfram}}
1569 \syntax{\margm{IDN}}
1570 \desc{expands to the width of the \idx{dynamic-frame} identified
1571 by its \idx{IDN}}
1572 }
1573 % \flowframeheight
1574 \gcmd{flow\-frame\-height}
1575 {
1576 \providedby{\sty{flowfram}}
1577 \syntax{\margm{IDN}}
1578 \desc{expands to the height of the \idx{flow-frame} identified
1579 by its \idx{IDN}}
1580 }
1581 % \staticframeheight
1582 \gcmd{static\-frame\-height}
1583 {
1584 \providedby{\sty{flowfram}}
1585 \syntax{\margm{IDN}}
1586 \desc{expands to the height of the \idx{static-frame} identified
1587 by its \idx{IDN}}
1588 }
1589 % \dynamicframeheight
1590 \gcmd{dynamic\-frame\-height}
1591 {
1592 \providedby{\sty{flowfram}}
1593 \syntax{\margm{IDN}}
1594 \desc{expands to the height of the \idx{dynamic-frame} identified
1595 by its \idx{IDN}}
1596 }
1597 % \ffswapoddeven
1598 \gcmds{ff\-swap\-odd\-even}
1599 {
1600 \providedby{\sty{flowfram}}
1601 \syntax{\margm{ID-list}}
1602 \desc{swap the odd and even co-ordinates for all listed
1603 \idxpl{flow-frame}}
1604 }
1605 % \sfswapoddeven
1606 \gcmds{sf\-swap\-odd\-even}
1607 {
1608 \providedby{\sty{flowfram}}
1609 \syntax{\margm{ID-list}}
1610 \desc{swap the odd and even co-ordinates for all listed
1611 \idxpl{static-frame}}
1612 }
1613 % \dfswapoddeven
1614 \gcmds{df\-swap\-odd\-even}
1615 {
1616 \providedby{\sty{flowfram}}
1617 \syntax{\margm{ID-list}}
1618 \desc{swap the odd and even co-ordinates for all listed
1619 \idxpl{dynamic-frame}}
1620 }
1621 % \getstaticevenbounds
1622 \gcmds{get\-static\-even\-bounds}
1623 {
1624 \providedby{\sty{flowfram} v1.11+}
1625 \syntax{\margm{ID}}
1626 \desc{gets the even-page bounds for the \idx{static-frame} identified by
1627 \meta{ID} (the \idx{IDL} for the starred version or the \idx{IDN}
1628 for the unstarred version)}
1629 }
1630 % \getflowevenbounds
1631 \gcmds{get\-flow\-even\-bounds}
1632 {
1633 \providedby{\sty{flowfram} v1.11+}
1634 \syntax{\margm{ID}}
1635 \desc{gets the even-page bounds for the \idx{flow-frame} identified by
1636 \meta{ID} (the \idx{IDL} for the starred version or the \idx{IDN}
1637 for the unstarred version)}
1638 }
1639 % \getdynamicevenbounds
1640 \gcmds{get\-dynamic\-even\-bounds}
1641 {
1642 \providedby{\sty{flowfram} v1.11+}
1643 \syntax{\margm{ID}}
1644 \desc{gets the even-page bounds for the \idx{dynamic-frame} identified by
1645 \meta{ID} (the \idx{IDL} for the starred version or the \idx{IDN}
1646 for the unstarred version)}
1647 }
1648 % \computeleftedgeodd
1649 \gcmd{compute\-left\-edge\-odd}
1650 {
1651 \providedby{\sty{flowfram}}
1652 \syntax{\margm{dim var}}
1653 \desc{computes the position of the leftmost edge of the page,
1654 relative to the left side of the \idx{typeblock} for odd pages}
1655 }
1656 % \computeleftedgeeven
1657 \gcmd{compute\-left\-edge\-even}
1658 {
1659 \providedby{\sty{flowfram}}
1660 \syntax{\margm{dim var}}
1661 \desc{computes the position of the leftmost edge of the page,
1662 relative to the left side of the \idx{typeblock} for even pages}
1663 }
1664 % \computetopedge
1665 \gcmd{compute\-top\-edge}
1666 {
1667 \providedby{\sty{flowfram}}
1668 \syntax{\margm{dim var}}
1669 \desc{computes the position of the top edge of the page, relative
1670 to the bottom of the \idx{typeblock}}
1671 }
1672 % \computebottomedge
1673 \gcmd{compute\-bottom\-edge}
1674 {
1675 \providedby{\sty{flowfram}}
1676 \syntax{\margm{dim var}}
1677 \desc{computes the position of the bottom edge of the page, relative
1678 to the bottom of the \idx{typeblock}}
1679 }
1680 % \computerightedgeodd
1681 \gcmd{compute\-right\-edge\-odd}
1682 {
1683 \providedby{\sty{flowfram}}
1684 \syntax{\margm{dim var}}
1685 \desc{computes the position of the rightmost edge of the page,
1686 relative to the left side of the \idx{typeblock} for odd pages}
1687 }
1688 % \computerightedgeeven
1689 \gcmd{compute\-right\-edge\-even}
1690 {
1691 \providedby{\sty{flowfram}}
1692 \syntax{\margm{dim var}}
1693 \desc{computes the position of the rightmost edge of the page,
1694 relative to the left side of the \idx{typeblock} for even pages}
1695 }
1696 % \getstaticbounds
1697 \gcmds{getstaticbounds}
1698 {
1699 \providedby{\sty{flowfram}}
1700 \syntax{\margm{ID}}
1701 \desc{gets the bounds for the \idx{static-frame} identified by
1702 \meta{ID} (the \idx{IDL} for the starred version and the \idx{IDN}
1703 for the unstarred version) and stores the results in \gls{ffareax},
1704 \gls{ffareay}, \gls{ffareawidth} and \gls{ffareaheight}}
1705 }
1706 % \getdynamicbounds
1707 \gcmds{get\-dynamic\-bounds}
1708 {
1709 \providedby{\sty{flowfram}}
1710 \syntax{\margm{ID}}
1711 \desc{gets the bounds for the \idx{dynamic-frame} identified by
1712 \meta{ID} (the \idx{IDL} for the starred version and the \idx{IDN}
1713 for the unstarred version) and stores the results in \gls{ffareax},
1714 \gls{ffareay}, \gls{ffareawidth} and \gls{ffareaheight}}
1715 }
1716 % \getflowbounds
1717 \gcmds{get\-flow\-bounds}
1718 {
1719 \providedby{\sty{flowfram}}
1720 \syntax{\margm{ID}}
1721 \desc{gets the bounds for the \idx{flow-frame} identified by
1722 \meta{ID} (the \idx{IDL} for the starred version and the \idx{IDN}
1723 for the unstarred version) and stores the results in \gls{ffareax},
1724 \gls{ffareay}, \gls{ffareawidth} and \gls{ffareaheight}}
1725 }
1726 % \computeflowframearea
1727 \gcmds{compute\-flow\-frame\-area}
1728 {
1729 \providedby{\sty{flowfram}}
1730 \syntax{\margm{ID list}}
1731 \desc{computes the minimum area surrounding the listed
1732 \idxpl{flow-frame} (identified by their \idx{IDL} for the starred
1733 version and their \idx{IDN} for the unstarred version) and stores the results in \gls{ffareax},
1734 \gls{ffareay}, \gls{ffareawidth} and \gls{ffareaheight}}
1735 }
1736 % \relativeframelocation
1737 \gcmds{relative\-frame\-location}
1738 {
1739 \providedby{\sty{flowfram} v1.11+}
1740 \syntax{\margm{type1}\margm{ID1}\margm{type2}\margm{ID2}}
1741 \desc{produces a textual description of the relative location of
1742 the \meta{type1} \gls{frame} identified by \meta{ID1} to the
1743 \meta{type2} \gls{frame} identified by \meta{ID2} (the starred
1744 version references the \idxpl{frame} by their \idx{IDL} and the
1745 unstarred version references them by their \idx{IDN})}
1746 }
1747 % \reldynamicloc
1748 \gcmds{rel\-dynamic\-loc}
1749 {
1750 \providedby{\sty{flowfram} v1.11+}
1751 \syntax{\margm{ID1}\margm{ID2}}
1752 \desc{shortcut for \gls{relativeframelocation} where both frame
1753 types are \idx{dynamic}}
1754 }
1755 % \relstaticloc
1756 \gcmds{rel\-static\-loc}
1757 {
1758 \providedby{\sty{flowfram} v1.11+}
1759 \syntax{\margm{ID1}\margm{ID2}}
1760 \desc{shortcut for \gls{relativeframelocation} where both frame
1761 types are \idx{static}}
1762 }
1763 % \relflowloc
1764 \gcmds{rel\-flow\-loc}
1765 {
1766 \providedby{\sty{flowfram} v1.11+}
1767 \syntax{\margm{ID1}\margm{ID2}}
1768 \desc{shortcut for \gls{relativeframelocation} where both frame
1769 types are \idx{flow}}
1770 }
1771 % \SaveRelativeFrameLocation
1772 \gcmds{Save\-Relative\-Frame\-Location}
1773 {
1774 \providedby{\sty{flowfram} v2.0+}
1775 \syntax{\margm{label}\margm{type1}\margm{ID1}\margm{type2}\margm{ID2}}
1776 \desc{similar to \gls{relativeframelocation} but defers the
1777 calculations for the next \LaTeX\ run. The result may be referenced
1778 with \gls{RefSavedRelativeLocation}}
1779 }
1780 % \RefSavedRelativeLocation
1781 \gcmd{Ref\-Saved\-Relative\-Location}
1782 {
1783 \providedby{\sty{flowfram} v2.0+}
1784 \syntax{\margm{label}}
1785 \desc{fetches the information saved on the previous run with
1786 \gls{SaveRelativeFrameLocation}}
1787 }
1788 % \IfSavedRelativeLocationEq
1789 \gcmd{If\-Saved\-Relative\-Location\-Eq}
1790 {
1791 \providedby{\sty{flowfram} v2.0+}
1792 \syntax{\margm{label}\margm{cmd}\margm{true}\margm{false}}
1793 \desc{tests if the saved result from
1794 \gls{SaveRelativeFrameLocation} matches \meta{cmd}, which should be
1795 one of the relative placeholder commands such as \gls{FFabove}}
1796 }
1797 % \IfSavedRelativeLocationAbove
1798 \gcmd{If\-Saved\-Relative\-Location\-Above}
1799 {
1800 \providedby{\sty{flowfram} v2.0+}
1801 \syntax{\margm{label}\margm{true}\margm{false}}
1802 \desc{tests if the saved result from
1803 \gls{SaveRelativeFrameLocation} indicates that the first frame is
1804 above the second frame, without regard to their horizontal positions}
1805 }
1806 % \IfSavedRelativeLocationBelow
1807 \gcmd{If\-Saved\-Relative\-Location\-Below}
1808 {
1809 \providedby{\sty{flowfram} v2.0+}
1810 \syntax{\margm{label}\margm{true}\margm{false}}
1811 \desc{tests if the saved result from
1812 \gls{SaveRelativeFrameLocation} indicates that the first frame is
1813 below the second frame, without regard to their horizontal positions}
1814 }
1815 % \IfSavedRelativeLocationLeft
1816 \gcmd{If\-Saved\-Relative\-Location\-Left}
1817 {
1818 \providedby{\sty{flowfram} v2.0+}
1819 \syntax{\margm{label}\margm{true}\margm{false}}
1820 \desc{tests if the saved result from
1821 \gls{SaveRelativeFrameLocation} indicates that the first frame is
1822 left of the second frame, without regard to their vertical positions}
1823 }
1824 % \IfSavedRelativeLocationRight
1825 \gcmd{If\-Saved\-Relative\-Location\-Right}
1826 {
1827 \providedby{\sty{flowfram} v2.0+}
1828 \syntax{\margm{label}\margm{true}\margm{false}}
1829 \desc{tests if the saved result from
1830 \gls{SaveRelativeFrameLocation} indicates that the first frame is
1831 right of the second frame, without regard to their vertical positions}
1832 }
1833 % \FFaboveleft
1834 \gcmd{FF\-above\-left}
1835 {
1836 \providedby{\sty{flowfram} v1.11+}
1837 \initval{above left}
1838 \desc{text used to describe one frame above left from another}
1839 }
1840 % \FFaboveright
1841 \gcmd{FF\-above\-right}
1842 {
1843 \providedby{\sty{flowfram} v1.11+}
1844 \initval{above right}
1845 \desc{text used to describe one frame above right from another}
1846 }
1847 % \FFbelowleft
1848 \gcmd{FF\-below\-left}
1849 {
1850 \providedby{\sty{flowfram} v1.11+}
1851 \initval{below left}
1852 \desc{text used to describe one frame below left from another}
1853 }
1854 % \FFbelowright
1855 \gcmd{FF\-below\-right}
1856 {
1857 \providedby{\sty{flowfram} v1.11+}
1858 \initval{below right}
1859 \desc{text used to describe one frame below right from another}
1860 }
1861 % \FFleft
1862 \gcmd{FF\-left}
1863 {
1864 \providedby{\sty{flowfram} v1.11+}
1865 \initval{on the left}
1866 \desc{text used to describe one frame is to the left of another}
1867 }
1868 % \FFright
1869 \gcmd{FF\-right}
1870 {
1871 \providedby{\sty{flowfram} v1.11+}
1872 \initval{on the right}
1873 \desc{text used to describe one frame is to the right of another}
1874 }
1875 % \FFabove
1876 \gcmd{FF\-above}
1877 {
1878 \providedby{\sty{flowfram} v1.11+}
1879 \initval{above}
1880 \desc{text used to describe one frame is above another}
1881 }
1882 % \FFbelow
1883 \gcmd{FF\-below}
1884 {
1885 \providedby{\sty{flowfram} v1.11+}
1886 \initval{below}
1887 \desc{text used to describe one frame is below another}
1888 }
1889 % \FFoverlap
1890 \gcmd{FF\-overlap}
1891 {
1892 \providedby{\sty{flowfram} v1.11+}
1893 \initval{overlap}
1894 \desc{text used to describe overlapping frames}
1895 }
1896 % \flowframsetup
1897 \gcmd{flow\-fram\-set\-up}
1898 {
1899 \providedby{\sty{flowfram} v2.0+}
1900 \syntax{\marg{\keyvallist}}
1901 \desc{set any options that may be adjusted after the package has
1902 loaded}
1903 }
1904 % \FlowFramRestoreOR
1905 \gcmd{Flow\-Fram\-Re\-store\-OR}
1906 {
1907 \providedby{\sty{flowfram} v2.0+}
1908 \desc{restore the original output routine (the current page will
1909 be finished and output first)}
1910 \note{not preamble}
1911 }
1912 % \FlowFramUnrestoreOR
1913 \gcmd{Flow\-Fram\-Un\-re\-store\-OR}
1914 {
1915 \providedby{\sty{flowfram} v2.0+}
1916 \desc{restore \sty{flowfram}['s] modified output routine (the current page will
1917 be finished and output first)}
1918 \note{not preamble}
1919 }
1920 % \makethumbtabs
1921 \gcmd{make\-thumb\-tabs}
1922 {
1923 \providedby{\sty{flowfram}}
1924 \syntax{\oargm{y-offset}\margm{height}\oargm{section-type}}
1925 \desc{create \idxpl{thumbtab} for the given section type with the
1926 given height, where the first \idx{thumbtab} is offset from the top
1927 of the \idx{typeblock} by \meta{y-offset}. This command first inputs
1928 the \ext+{ttb} file to read the information from the previous run
1929 and the opens the file to allow information from this run to be
1930 written to it. Note that the \idx{thumbtab} dynamic frames will have
1931 the \frameopt{hide} attribute switched on. This will be switched off
1932 by \gls{enablethumbtabs}}
1933 \note{preamble only}
1934 }
1935 % \defaultthumbtabtype
1936 \gcmd{default\-thumb\-tab\-type}
1937 {
1938 \providedby{\sty{flowfram}}
1939 \initvalvaries
1940 \desc{expands to the default section type to be used by \gls{makethumbtabs}
1941 if the \meta{section-type} argument is missing. The default
1942 definition is either \glscsname{chapter} or \glscsname{section},
1943 depending on whether or not \gls{chapter} is defined}
1944 }
1945 % \thumbtabindex
1946 \gcmd{thumb\-tab\-index}
1947 {
1948 \providedby{\sty{flowfram}}
1949 \syntax{\oargm{page-list}}
1950 \desc{used internally by \sty{flowfram}['s] modified
1951 \gls{tableofcontents} to show the \idx{thumbtab} index frames.
1952 However, if \opteqvalref{adjust-toc}{off} has been used to
1953 prevent this, the \idx{thumbtab} index frames can be switched on with \gls{thumbtabindex}}
1954 }
1955 % \enablethumbtabs
1956 \gcmd{en\-able\-thumb\-tabs}
1957 {
1958 \providedby{\sty{flowfram}}
1959 \desc{the \idx{thumbtab} frames created by \gls{makethumbtabs}
1960 will have the \frameopt{hide} attribute switched off and
1961 \idx{thumbtab} information can start being written to the \ext+{ttb}
1962 file. Any \idx{thumbtab} sectional units that occur before this
1963 command won't have a corresponding \idx{thumbtab}}
1964 }
1965 % \disablethumbtabs
1966 \gcmd{dis\-able\-thumb\-tabs}
1967 {
1968 \providedby{\sty{flowfram}}
1969 \desc{the \idx{thumbtab} frames created by \gls{makethumbtabs}
1970 will have the \frameopt{hide} attribute switched on and
1971 \idx{thumbtab} information will stop being written to the \ext+{ttb}}
1972 }
1973 % \thumbtabhyperlinkformat
1974 \gcmd{thumb\-tab\-hyper\-link\-format}
1975 {
1976 \providedby{\sty{flowfram} v2.0}
1977 \syntax{\margm{anchor}\margm{text}\margm{height}}
1978 \desc{if \sty{hyperref} is loaded, this command will be redefined
1979 to create a hyperlink for the \idx{thumbtab} frame content}
1980 }
1981 % \thumbtabindexformat
1982 \gcmd{thumb\-tab\-index\-format}
1983 {
1984 \providedby{\sty{flowfram}}
1985 \syntax{\margm{anchor}\margm{text}\margm{height}}
1986 \desc{used to format the content of the \idx{thumbtab} index
1987 frames}
1988 }
1989 % \thumbtabregularformat
1990 \gcmd{thumb\-tab\-regular\-format}
1991 {
1992 \providedby{\sty{flowfram} v2.0+}
1993 \syntax{\margm{anchor}\margm{text}\margm{height}}
1994 \desc{used to format the content of the \idx{thumbtab}
1995 (non-index) frames}
1996 }
1997 % \thumbtabformat
1998 \gcmd{thumb\-tab\-format}
1999 {
2000 \providedby{\sty{flowfram}}
2001 \syntax{\margm{text}\margm{height}}
2002 \desc{used to format the \idx{thumbtab} text}
2003 }
2004 % \setthumbtab
2005 \gcmd{set\-thumb\-tab}
2006 {
2007 \providedby{\sty{flowfram}}
2008 \syntax{\marg{\meta{index}|all}\marg{\keyvallist}}
2009 \desc{sets the given attributes for all of the \idxpl{dynamic-frame}
2010 for the \idx{thumbtab} with the
2011 identified index or for all \idxpl{thumbtab} if the first argument
2012 is the keyword \optfmt{all}}
2013 }
2014 % \setthumbtabindex
2015 \gcmd{set\-thumb\-tab\-index}
2016 {
2017 \providedby{\sty{flowfram}}
2018 \syntax{\marg{\meta{index}|all}\marg{\keyvallist}}
2019 \desc{sets the given attributes for the \idx{thumbtab} index
2020 frame with the
2021 identified index or for all \idxpl{thumbtab} index frames if the first argument
2022 is the keyword \optfmt{all}}
2023 }
2024 % \part
2025 \gcmds{part}
2026 {
2027 \syntax{\oargm{toc}\oargm{thumbtab-title}\margm{title}}
2028 \desc{modified by \sty{flowfram}, this has an additional
2029 optional argument for the \idx{thumbtab} titles (see \opt{sections-extra-option}
2030 if you are using a class that also has a second optional argument).
2031 Note that the starred version also has both optional arguments}
2032 }
2033 % \chapter
2034 \gcmds{chapter}
2035 {
2036 \syntax{\oargm{toc}\oargm{thumbtab-title}\margm{title}}
2037 \desc{modified by \sty{flowfram}, this has an additional
2038 optional argument for the \idx{thumbtab} titles (see \opt{sections-extra-option}
2039 if you are using a class that also has a second optional argument).
2040 Note that the starred version also has both optional arguments}
2041 }
2042 % \section
2043 \gcmds{section}
2044 {
2045 \syntax{\oargm{toc}\oargm{thumbtab-title}\margm{title}}
2046 \desc{modified by \sty{flowfram}, this has an additional
2047 optional argument for the \idx{thumbtab} titles (see \opt{sections-extra-option}
2048 if you are using a class that also has a second optional argument).
2049 Note that the starred version also has both optional arguments}
2050 }
2051 % \subsection
2052 \gcmds{sub\-section}
2053 {
2054 \syntax{\oargm{toc}\oargm{thumbtab-title}\margm{title}}
2055 \desc{modified by \sty{flowfram}, this has an additional
2056 optional argument for the \idx{thumbtab} titles (see \opt{sections-extra-option}
2057 if you are using a class that also has a second optional argument).
2058 Note that the starred version also has both optional arguments}
2059 }
2060 % \subsubsection
2061 \gcmds{sub\-sub\-section}
2062 {
2063 \syntax{\oargm{toc}\oargm{thumbtab-title}\margm{title}}
2064 \desc{modified by \sty{flowfram}, this has an additional
2065 optional argument for the \idx{thumbtab} titles (see \opt{sections-extra-option}
2066 if you are using a class that also has a second optional argument).
2067 Note that the starred version also has both optional arguments}
2068 }
2069 % \paragraph
2070 \gcmds{paragraph}
2071 {
2072 \syntax{\oargm{toc}\oargm{thumbtab-title}\margm{title}}
2073 \desc{modified by \sty{flowfram}, this has an additional
2074 optional argument for the \idx{thumbtab} titles (see \opt{sections-extra-option}
2075 if you are using a class that also has a second optional argument).
2076 Note that the starred version also has both optional arguments}
2077 }
2078 % \subparagraph
2079 \gcmds{sub\-paragraph}
2080 {
2081 \syntax{\oargm{toc}\oargm{thumbtab-title}\margm{title}}
2082 \desc{modified by \sty{flowfram}, this has an additional
2083 optional argument for the \idx{thumbtab} titles (see \opt{sections-extra-option}
2084 if you are using a class that also has a second optional argument).
2085 Note that the starred version also has both optional arguments}
2086 }
2087 % \onecolumn
2088 \gcmd{one\-column}
2089 {
2090 \syntax{\oargm{page-list}\oargm{label}}
2091 \desc{creates a \idx{flow-frame} that spans the \idx{typeblock}, with
2092 the height adjusted if the conditional \gls{ifffvadjust} is true}
2093 \note{redefined by \sty{flowfram}}
2094 \field{seealso}{twocolumn,Ncolumn}
2095 }
2096 % \twocolumn
2097 \gcmd{two\-column}
2098 {
2099 \syntax{\oargm{page-list}\oargm{label}}
2100 \desc{creates two \idxpl{flow-frame} that fit in the \idx{typeblock}
2101 separated by the distance given by \gls{columnsep}, with
2102 the height adjusted if the conditional \gls{ifffvadjust} is true}
2103 \note{redefined by \sty{flowfram}}
2104 \field{seealso}{onecolumn,Ncolumn}
2105 }
2106 % \Ncolumn
2107 \gcmd{N\-column}
2108 {
2109 \syntax{\oargm{page-list}\margm{n}\oargm{label}}
2110 \desc{creates \meta{n} \idxpl{flow-frame} that fit in the \idx{typeblock}
2111 separated by the distance given by \gls{columnsep}, with
2112 the height adjusted if the conditional \gls{ifffvadjust} is true}
2113 \note{preamble only}
2114 }
2115 % \SetOneColumnFrame
2116 \gcmds{Set\-One\-Column\-Frame}
2117 {
2118 \providedby{\sty{flowfram} v2.0+}
2119 \syntax{\margm{ID}}
2120 \desc{for use with \opteqvalref{column-changes}{switch}, this
2121 command identifies the \idx{flow-frame} to use if \gls{onecolumn} is
2122 encountered in the \env{document} environment}
2123 }
2124 % \SetTwoColumnFrames
2125 \gcmds{Set\-Two\-Col\-umn\-Frames}
2126 {
2127 \providedby{\sty{flowfram} v2.0+}
2128 \syntax{\oargm{header-type}\oargm{header-id}\margm{col-1}\oargm{header-col1}\margm{col-2}\oargm{header-col-2}}
2129 \desc{for use with \opteqvalref{column-changes}{switch}, this
2130 command identifies the \idxpl{frame} to use if \gls{twocolumn} is
2131 encountered in the \env{document} environment}
2132 }
2133 % \onecolumninarea
2134 \gcmd{one\-col\-umn\-in\-area}
2135 {
2136 \providedby{\sty{flowfram}}
2137 \syntax{\oargm{page-list}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2138 \desc{creates a \idx{flow-frame} that spans the given area, with
2139 the height adjusted if the conditional \gls{ifffvadjust} is true}
2140 \note{preamble only}
2141 }
2142 % \twocolumninarea
2143 \gcmd{two\-col\-umn\-in\-area}
2144 {
2145 \providedby{\sty{flowfram}}
2146 \syntax{\oargm{page-list}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{labels}}
2147 \desc{creates two \idxpl{flow-frame} that span the given area
2148 separated by the distance given by \gls{columnsep}, with
2149 the height adjusted if the conditional \gls{ifffvadjust} is true}
2150 \field{seealso}{onecolumninarea,Ncolumninarea}
2151 \note{preamble only}
2152 }
2153 % \Ncolumninarea
2154 \gcmd{N\-col\-umn\-in\-area}
2155 {
2156 \providedby{\sty{flowfram}}
2157 \syntax{\oargm{page-list}\margm{n}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{labels}}
2158 \desc{creates \meta{n} \idxpl{flow-frame} that span the given area
2159 separated by the distance given by \gls{columnsep}, with
2160 the height adjusted if the conditional \gls{ifffvadjust} is true}
2161 \note{preamble only}
2162 }
2163 % \onecolumntopinarea
2164 \gcmd{one\-col\-umn\-top\-in\-area}
2165 {
2166 \providedby{\sty{flowfram}}
2167 \syntax{\oargm{page-list}\margm{type}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2168 \desc{creates a frame of the given type (\idx{flow}, \idx{static}
2169 or \idx{dynamic}) and height \meta{top-height} and a
2170 \idx{flow-frame} that fit in the given area so that the first frame
2171 is above the second frame, separated by \gls{vcolumnsep}. The height
2172 of the second frame is adjusted if \gls{ifffvadjust} is true}
2173 \note{preamble only}
2174 }
2175 % \onecolumntop
2176 \gcmd{one\-col\-umn\-top}
2177 {
2178 \providedby{\sty{flowfram}}
2179 \syntax{\oargm{page-list}\margm{type}\margm{top-height}\oargm{label}}
2180 \desc{as \gls{onecolumntopinarea} where the area is given by the
2181 \idx{typeblock}}
2182 \note{preamble only}
2183 }
2184 % \onecolumnStop
2185 \gcmd{one\-col\-umn\-S\-top}
2186 {
2187 \providedby{\sty{flowfram}}
2188 \syntax{\oargm{page-list}\margm{top-height}\oargm{label}}
2189 \desc{as \gls{onecolumntop} with the \meta{type} set to
2190 \optfmt{static}}
2191 \note{preamble only}
2192 }
2193 % \onecolumnDtop
2194 \gcmd{one\-col\-umn\-D\-top}
2195 {
2196 \providedby{\sty{flowfram}}
2197 \syntax{\oargm{page-list}\margm{top-height}\oargm{label}}
2198 \desc{as \gls{onecolumntop} with the \meta{type} set to
2199 \optfmt{dynamic}}
2200 \note{preamble only}
2201 }
2202 % \onecolumnStopinarea
2203 \gcmd{one\-col\-umn\-S\-top\-in\-area}
2204 {
2205 \providedby{\sty{flowfram}}
2206 \syntax{\oargm{page-list}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2207 \desc{as \gls{onecolumntopinarea} with the \meta{type} set to
2208 \optfmt{static}}
2209 \note{preamble only}
2210 }
2211 % \onecolumnDtopinarea
2212 \gcmd{one\-col\-umn\-D\-top\-in\-area}
2213 {
2214 \providedby{\sty{flowfram}}
2215 \syntax{\oargm{page-list}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2216 \desc{as \gls{onecolumntopinarea} with the \meta{type} set to
2217 \optfmt{dynamic}}
2218 \note{preamble only}
2219 }
2220 % \twocolumntopinarea
2221 \gcmd{two\-col\-umn\-top\-in\-area}
2222 {
2223 \providedby{\sty{flowfram}}
2224 \syntax{\oargm{page-list}\margm{type}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2225 \desc{creates a frame of the given type (\idx{flow}, \idx{static}
2226 or \idx{dynamic}) and height \meta{top-height} and two side-by-side
2227 \idxpl{flow-frame} that all fit in the given area such that the first frame
2228 is above the other two frames, separated by \gls{vcolumnsep}. The height
2229 of the two side-by-side \idxpl{flow-frame} is adjusted if
2230 \gls{ifffvadjust} is true. The horizontal gap between them is given
2231 by \gls{columnsep}}
2232 \note{preamble only}
2233 }
2234 % \twocolumntop
2235 \gcmd{two\-col\-umn\-top}
2236 {
2237 \providedby{\sty{flowfram}}
2238 \syntax{\oargm{page-list}\margm{type}\margm{top-height}\oargm{label}}
2239 \desc{as \gls{twocolumntopinarea} where the area is given by the
2240 \idx{typeblock}}
2241 \note{preamble only}
2242 }
2243 % \twocolumnStop
2244 \gcmd{two\-col\-umn\-S\-top}
2245 {
2246 \providedby{\sty{flowfram}}
2247 \syntax{\oargm{page-list}\margm{top-height}\oargm{label}}
2248 \desc{as \gls{twocolumntop} with the \meta{type} set to
2249 \optfmt{static}}
2250 \note{preamble only}
2251 }
2252 % \twocolumnDtop
2253 \gcmd{two\-col\-umn\-D\-top}
2254 {
2255 \providedby{\sty{flowfram}}
2256 \syntax{\oargm{page-list}\margm{top-height}\oargm{label}}
2257 \desc{as \gls{twocolumntop} with the \meta{type} set to
2258 \optfmt{dynamic}}
2259 \note{preamble only}
2260 }
2261 % \twocolumnStopinarea
2262 \gcmd{two\-col\-umn\-S\-top\-in\-area}
2263 {
2264 \providedby{\sty{flowfram}}
2265 \syntax{\oargm{page-list}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2266 \desc{as \gls{twocolumntopinarea} with the \meta{type} set to
2267 \optfmt{static}}
2268 \note{preamble only}
2269 }
2270 % \twocolumnDtopinarea
2271 \gcmd{two\-col\-umn\-D\-top\-in\-area}
2272 {
2273 \providedby{\sty{flowfram}}
2274 \syntax{\oargm{page-list}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2275 \desc{as \gls{twocolumntopinarea} with the \meta{type} set to
2276 \optfmt{dynamic}}
2277 \note{preamble only}
2278 }
2279 % \Ncolumntopinarea
2280 \gcmd{Ncol\-umn\-top\-in\-area}
2281 {
2282 \providedby{\sty{flowfram}}
2283 \syntax{\oargm{page-list}\margm{type}\margm{n}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2284 \desc{creates a frame of the given type (\idx{flow}, \idx{static}
2285 or \idx{dynamic}) and height \meta{top-height} and \meta{n} side-by-side
2286 \idxpl{flow-frame} that all fit in the given area such that the first frame
2287 is above the other \meta{n} frames, separated by \gls{vcolumnsep}. The height
2288 of the \meta{n} side-by-side \idxpl{flow-frame} is adjusted if
2289 \gls{ifffvadjust} is true. The horizontal gap between them is given
2290 by \gls{columnsep}}
2291 \note{preamble only}
2292 }
2293 % \Ncolumntop
2294 \gcmd{Ncol\-umn\-top}
2295 {
2296 \providedby{\sty{flowfram}}
2297 \syntax{\oargm{page-list}\margm{type}\margm{n}\margm{top-height}\oargm{label}}
2298 \desc{as \gls{Ncolumntopinarea} where the area is given by the
2299 \idx{typeblock}}
2300 \note{preamble only}
2301 }
2302 % \NcolumnStop
2303 \gcmd{Ncol\-umn\-S\-top}
2304 {
2305 \providedby{\sty{flowfram}}
2306 \syntax{\oargm{page-list}\margm{n}\margm{top-height}\oargm{label}}
2307 \desc{as \gls{Ncolumntop} with the \meta{type} set to
2308 \optfmt{static}}
2309 \note{preamble only}
2310 }
2311 % \NcolumnDtop
2312 \gcmd{Ncol\-umn\-D\-top}
2313 {
2314 \providedby{\sty{flowfram}}
2315 \syntax{\oargm{page-list}\margm{n}\margm{top-height}\oargm{label}}
2316 \desc{as \gls{Ncolumntop} with the \meta{type} set to
2317 \optfmt{dynamic}}
2318 \note{preamble only}
2319 }
2320 % \NcolumnStopinarea
2321 \gcmd{Ncol\-umn\-S\-top\-in\-area}
2322 {
2323 \providedby{\sty{flowfram}}
2324 \syntax{\oargm{page-list}\margm{n}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2325 \desc{as \gls{Ncolumntopinarea} with the \meta{type} set to
2326 \optfmt{static}}
2327 \note{preamble only}
2328 }
2329 % \NcolumnDtopinarea
2330 \gcmd{Ncol\-umn\-D\-top\-in\-area}
2331 {
2332 \providedby{\sty{flowfram}}
2333 \syntax{\oargm{page-list}\margm{n}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2334 \desc{as \gls{Ncolumntopinarea} with the \meta{type} set to
2335 \optfmt{dynamic}}
2336 \note{preamble only}
2337 }
2338 % \onecolumnbottominarea
2339 \gcmd{one\-col\-umn\-bottom\-in\-area}
2340 {
2341 \providedby{\sty{flowfram}}
2342 \syntax{\oargm{page-list}\margm{type}\margm{bottom-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2343 \desc{creates a frame of the given type (\idx{flow}, \idx{static}
2344 or \idx{dynamic}) and height \meta{bottom-height} and a
2345 \idx{flow-frame} that fit in the given area so that the first frame
2346 is below the second frame, separated by \gls{vcolumnsep}. The height
2347 of the second frame is adjusted if \gls{ifffvadjust} is true}
2348 \note{preamble only}
2349 }
2350 % \onecolumnbottom
2351 \gcmd{one\-col\-umn\-bottom}
2352 {
2353 \providedby{\sty{flowfram}}
2354 \syntax{\oargm{page-list}\margm{type}\margm{bottom-height}\oargm{label}}
2355 \desc{as \gls{onecolumnbottominarea} where the area is given by the
2356 \idx{typeblock}}
2357 \note{preamble only}
2358 }
2359 % \onecolumnSbottom
2360 \gcmd{one\-col\-umn\-S\-bottom}
2361 {
2362 \providedby{\sty{flowfram}}
2363 \syntax{\oargm{page-list}\margm{bottom-height}\oargm{label}}
2364 \desc{as \gls{onecolumnbottom} with the \meta{type} set to
2365 \optfmt{static}}
2366 \note{preamble only}
2367 }
2368 % \onecolumnDbottom
2369 \gcmd{one\-col\-umn\-D\-bottom}
2370 {
2371 \providedby{\sty{flowfram}}
2372 \syntax{\oargm{page-list}\margm{bottom-height}\oargm{label}}
2373 \desc{as \gls{onecolumnbottom} with the \meta{type} set to
2374 \optfmt{dynamic}}
2375 \note{preamble only}
2376 }
2377 % \onecolumnSbottominarea
2378 \gcmd{one\-col\-umn\-S\-bottom\-in\-area}
2379 {
2380 \providedby{\sty{flowfram}}
2381 \syntax{\oargm{page-list}\margm{bottom-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2382 \desc{as \gls{onecolumnbottominarea} with the \meta{type} set to
2383 \optfmt{static}}
2384 \note{preamble only}
2385 }
2386 % \onecolumnDbottominarea
2387 \gcmd{one\-col\-umn\-D\-bottom\-in\-area}
2388 {
2389 \providedby{\sty{flowfram}}
2390 \syntax{\oargm{page-list}\margm{bottom-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2391 \desc{as \gls{onecolumnbottominarea} with the \meta{type} set to
2392 \optfmt{dynamic}}
2393 \note{preamble only}
2394 }
2395 % \twocolumnbottominarea
2396 \gcmd{two\-col\-umn\-bottom\-in\-area}
2397 {
2398 \providedby{\sty{flowfram}}
2399 \syntax{\oargm{page-list}\margm{type}\margm{bottom-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2400 \desc{creates a frame of the given type (\idx{flow}, \idx{static}
2401 or \idx{dynamic}) and height \meta{top-height} and two side-by-side
2402 \idxpl{flow-frame} that all fit in the given area such that the first frame
2403 is below the other two frames, separated by \gls{vcolumnsep}. The height
2404 of the two side-by-side \idxpl{flow-frame} is adjusted if
2405 \gls{ifffvadjust} is true. The horizontal gap between them is given
2406 by \gls{columnsep}}
2407 \note{preamble only}
2408 }
2409 % \twocolumnbottom
2410 \gcmd{two\-col\-umn\-bottom}
2411 {
2412 \providedby{\sty{flowfram}}
2413 \syntax{\oargm{page-list}\margm{type}\margm{bottom-height}\oargm{label}}
2414 \desc{as \gls{twocolumnbottominarea} where the area is given by the
2415 \idx{typeblock}}
2416 \note{preamble only}
2417 }
2418 % \twocolumnSbottom
2419 \gcmd{two\-col\-umn\-S\-bottom}
2420 {
2421 \providedby{\sty{flowfram}}
2422 \syntax{\oargm{page-list}\margm{bottom-height}\oargm{label}}
2423 \desc{as \gls{twocolumnbottom} with the \meta{type} set to
2424 \optfmt{static}}
2425 \note{preamble only}
2426 }
2427 % \twocolumnDbottom
2428 \gcmd{two\-col\-umn\-D\-bottom}
2429 {
2430 \providedby{\sty{flowfram}}
2431 \syntax{\oargm{page-list}\margm{bottom-height}\oargm{label}}
2432 \desc{as \gls{twocolumnbottom} with the \meta{type} set to
2433 \optfmt{dynamic}}
2434 \note{preamble only}
2435 }
2436 % \twocolumnSbottominarea
2437 \gcmd{two\-col\-umn\-S\-bottom\-in\-area}
2438 {
2439 \providedby{\sty{flowfram}}
2440 \syntax{\oargm{page-list}\margm{bottom-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2441 \desc{as \gls{twocolumnbottominarea} with the \meta{type} set to
2442 \optfmt{static}}
2443 \note{preamble only}
2444 }
2445 % \twocolumnDbottominarea
2446 \gcmd{two\-col\-umn\-D\-bottom\-in\-area}
2447 {
2448 \providedby{\sty{flowfram}}
2449 \syntax{\oargm{page-list}\margm{bottom-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2450 \desc{as \gls{twocolumnbottominarea} with the \meta{type} set to
2451 \optfmt{dynamic}}
2452 \note{preamble only}
2453 }
2454 % \Ncolumnbottominarea
2455 \gcmd{Ncol\-umn\-bottom\-in\-area}
2456 {
2457 \providedby{\sty{flowfram}}
2458 \syntax{\oargm{page-list}\margm{type}\margm{n}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2459 \desc{creates a frame of the given type (\idx{flow}, \idx{static}
2460 or \idx{dynamic}) and height \meta{top-height} and \meta{n} side-by-side
2461 \idxpl{flow-frame} that all fit in the given area such that the first frame
2462 is below the other \meta{n} frames, separated by \gls{vcolumnsep}. The height
2463 of the \meta{n} side-by-side \idxpl{flow-frame} is adjusted if
2464 \gls{ifffvadjust} is true. The horizontal gap between them is given
2465 by \gls{columnsep}}
2466 \note{preamble only}
2467 }
2468 % \Ncolumnbottom
2469 \gcmd{Ncol\-umn\-bottom}
2470 {
2471 \providedby{\sty{flowfram}}
2472 \syntax{\oargm{page-list}\margm{type}\margm{n}\margm{top-height}\oargm{label}}
2473 \desc{as \gls{Ncolumnbottominarea} where the area is given by the
2474 \idx{typeblock}}
2475 \note{preamble only}
2476 }
2477 % \NcolumnSbottom
2478 \gcmd{Ncol\-umn\-S\-bottom}
2479 {
2480 \providedby{\sty{flowfram}}
2481 \syntax{\oargm{page-list}\margm{n}\margm{top-height}\oargm{label}}
2482 \desc{as \gls{Ncolumnbottom} with the \meta{type} set to
2483 \optfmt{static}}
2484 \note{preamble only}
2485 }
2486 % \NcolumnDbottom
2487 \gcmd{Ncol\-umn\-D\-bottom}
2488 {
2489 \providedby{\sty{flowfram}}
2490 \syntax{\oargm{page-list}\margm{n}\margm{top-height}\oargm{label}}
2491 \desc{as \gls{Ncolumnbottom} with the \meta{type} set to
2492 \optfmt{dynamic}}
2493 \note{preamble only}
2494 }
2495 % \NcolumnSbottominarea
2496 \gcmd{Ncol\-umn\-S\-bottom\-in\-area}
2497 {
2498 \providedby{\sty{flowfram}}
2499 \syntax{\oargm{page-list}\margm{n}\margm{bottom-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2500 \desc{as \gls{Ncolumnbottominarea} with the \meta{type} set to
2501 \optfmt{static}}
2502 \note{preamble only}
2503 }
2504 % \NcolumnDbottominarea
2505 \gcmd{Ncol\-umn\-D\-bottom\-in\-area}
2506 {
2507 \providedby{\sty{flowfram}}
2508 \syntax{\oargm{page-list}\margm{n}\margm{bottom-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}}
2509 \desc{as \gls{Ncolumnbottominarea} with the \meta{type} set to
2510 \optfmt{dynamic}}
2511 \note{preamble only}
2512 }
2513 % \adjustheight
2514 \gcmd{adjust\-height}
2515 {
2516 \providedby{\sty{flowfram}}
2517 \syntax{\meta{dim-var}}
2518 \desc{adjusts the given dimension variable (length register) so that
2519 it's rounded to a multiple of \gls{baselineskip}}
2520 }
2521 % \adjustcolsep
2522 \gcmd{adjust\-col\-sep}
2523 {
2524 \providedby{\sty{flowfram}}
2525 \desc{adjust the value of \gls+{columnsep} so that it's equal to
2526 twice its original value plus \gls+{marginparwidth}}
2527 }
2528 % \vtwotone
2529 \gcmd{vtwo\-tone}
2530 {
2531 \providedby{\sty{flowfram}}
2532 \syntax{\oargm{page-list}\oargm{x-offset}\margm{W1}\margm{C1}\margm{L1}\margm{W2}\margm{C2}\margm{L2}}
2533 \desc{defines two side-by-side \idxpl{static-frame} where the first frame has
2534 width \meta{W1}, background colour \meta{C1} and label \meta{L1},
2535 and the second frame has width \meta{W2}, background colour
2536 \meta{C1} and label \meta{L2}. Both frames have the height set to
2537 \gls+{paperheight} and are positioned so that their base is at the
2538 bottom of the page, with the first frame offset from the left side of the page by
2539 \meta{x-offset}. Note that the colour specifications \meta{C1} and
2540 \meta{C2} should be enclosed in braces, for example
2541 \code{\marg{\oarg{gray}\marg{0.5}}} not \code{\oarg{gray}\marg{0.5}}}
2542 }
2543 % \vtwotonebottom
2544 \gcmd{vtwo\-tone\-bottom}
2545 {
2546 \providedby{\sty{flowfram}}
2547 \syntax{\oargm{page-list}\oargm{x-offset}\margm{H}\margm{W1}\margm{C1}\margm{L1}\margm{W2}\margm{C2}\margm{L2}}
2548 \desc{as \gls{vtwotone} but instead of being the full height of
2549 the page, the height for both frames is set to \meta{H}}
2550 }
2551 % \vtwotonetop
2552 \gcmd{vtwo\-tone\-top}
2553 {
2554 \providedby{\sty{flowfram}}
2555 \syntax{\oargm{page-list}\oargm{x-offset}\margm{H}\margm{W1}\margm{C1}\margm{L1}\margm{W2}\margm{C2}\margm{L2}}
2556 \desc{as \gls{vtwotonebottom} but vertically offset so that the top of the
2557 frames is at the top of the page}
2558 }
2559 % \vNtone
2560 \gcmd{vN\-tone}
2561 {
2562 \providedby{\sty{flowfram}}
2563 \syntax{\oargm{page-list}\oargm{x-offset}\margm{n}\margm{W1}\margm{C1}\margm{L1}\ldots\margm{Wn}\margm{Cn}\margm{Ln}}
2564 \desc{as \gls{vtwotone} but creates \meta{n} \idxpl{static-frame}}
2565 }
2566 % \vNtonebottom
2567 \gcmd{vN\-tone\-bottom}
2568 {
2569 \providedby{\sty{flowfram}}
2570 \syntax{\oargm{page-list}\oargm{x-offset}\margm{n}\margm{H}\margm{W1}\margm{C1}\margm{L1}\ldots\margm{Wn}\margm{Cn}\margm{Ln}}
2571 \desc{as \gls{vtwotonebottom} but creates \meta{n} \idxpl{static-frame}}
2572 }
2573 % \vNtonetop
2574 \gcmd{vN\-tone\-top}
2575 {
2576 \providedby{\sty{flowfram}}
2577 \syntax{\oargm{page-list}\oargm{x-offset}\margm{n}\margm{H}\margm{W1}\margm{C1}\margm{L1}\ldots\margm{Wn}\margm{Cn}\margm{Ln}}
2578 \desc{as \gls{vtwotonetop} but creates \meta{n} \idxpl{static-frame}}
2579 }
2580 % \htwotone
2581 \gcmd{htwo\-tone}
2582 {
2583 \providedby{\sty{flowfram}}
2584 \syntax{\oargm{page-list}\oargm{y-offset}\margm{H1}\margm{C1}\margm{L1}\margm{H2}\margm{C2}\margm{L2}}
2585 \desc{defines two vertically stacked \idxpl{static-frame} where the first frame has
2586 height \meta{H1}, background colour \meta{C1} and label \meta{L1},
2587 and the second frame has height \meta{H2}, background colour
2588 \meta{C1} and label \meta{L2}. Both frames have the width set to
2589 \gls+{paperwidth} and are positioned so that their left edge is at the
2590 left side of the page, with the first frame offset from the bottom
2591 edge of the page by
2592 \meta{y-offset}. Note that the colour specifications \meta{C1} and
2593 \meta{C2} should be enclosed in braces, for example
2594 \code{\marg{\oarg{gray}\marg{0.5}}} not \code{\oarg{gray}\marg{0.5}}}
2595 }
2596 % \htwotoneleft
2597 \gcmd{htwo\-tone\-left}
2598 {
2599 \providedby{\sty{flowfram}}
2600 \syntax{\oargm{page-list}\oargm{y-offset}\margm{W}\margm{H1}\margm{C1}\margm{L1}\margm{H2}\margm{C2}\margm{L2}}
2601 \desc{as \gls{htwotone} but instead of being the full width of
2602 the page, the width for both frames is set to \meta{W}}
2603 }
2604 % \htwotoneright
2605 \gcmd{htwo\-tone\-right}
2606 {
2607 \providedby{\sty{flowfram}}
2608 \syntax{\oargm{page-list}\oargm{y-offset}\margm{W}\margm{H1}\margm{C1}\margm{L1}\margm{H2}\margm{C2}\margm{L2}}
2609 \desc{as \gls{htwotoneleft} but horizontally offset so that the
2610 right edge of the frames is along the right edge of the page}
2611 }
2612 % \hNtone
2613 \gcmd{hN\-tone}
2614 {
2615 \providedby{\sty{flowfram}}
2616 \syntax{\oargm{page-list}\oargm{y-offset}\margm{n}\margm{H1}\margm{C1}\margm{L1}\ldots\margm{Hn}\margm{Cn}\margm{Ln}}
2617 \desc{as \gls{htwotone} but creates \meta{n} \idxpl{static-frame}}
2618 }
2619 % \hNtoneleft
2620 \gcmd{hN\-tone\-left}
2621 {
2622 \providedby{\sty{flowfram}}
2623 \syntax{\oargm{page-list}\oargm{y-offset}\margm{n}\margm{W}\margm{H1}\margm{C1}\margm{L1}\ldots\margm{Hn}\margm{Cn}\margm{Ln}}
2624 \desc{as \gls{htwotoneleft} but creates \meta{n} \idxpl{static-frame}}
2625 }
2626 % \hNtoneright
2627 \gcmd{hN\-tone\-right}
2628 {
2629 \providedby{\sty{flowfram}}
2630 \syntax{\oargm{page-list}\oargm{y-offset}\margm{n}\margm{W}\margm{H1}\margm{C1}\margm{L1}\ldots\margm{Hn}\margm{Cn}\margm{Ln}}
2631 \desc{as \gls{htwotoneright} but creates \meta{n} \idxpl{static-frame}}
2632 }
2633 % \makebackgroundframe
2634 \gcmd{make\-back\-ground\-frame}
2635 {
2636 \providedby{\sty{flowfram}}
2637 \syntax{\oargm{page-list}\oargm{label}}
2638 \desc{creates a single \idx{static-frame} that covers the entire
2639 page. This command, if required, should come before any other
2640 \idxpl{static-frame} that are shown on any of the pages in
2641 \meta{page-list} otherwise it will obscure them}
2642 }
2643 % \ffruledeclarations
2644 \gcmd{ff\-rule\-declarations}
2645 {
2646 \providedby{\sty{flowfram} v1.11+}
2647 \initvalempty
2648 \desc{used by \gls{insertvrule} and \gls{inserthrule} to apply
2649 any declarations that may alter the way that the rule appears}
2650 }
2651 % \insertvrule
2652 \gcmds{insert\-v\-rule}
2653 {
2654 \providedby{\sty{flowfram}}
2655 \syntax{\oargm{y-top}\oargm{y-bottom}\margm{type-1}\margm{ID1}\margm{type-2}\margm{ID2}}
2656 \desc{creates a vertical rule between two frames. The starred
2657 version references the frames by their \idx{IDL} otherwise
2658 the frames are referenced by their \idx{IDN}. The rule will extend
2659 from the highest point of the two frames plus \meta{y-top} to the
2660 lowest point of the two frames minus \meta{y-bottom}}
2661 }
2662 % \ffvrule
2663 \gcmd{ff\-v\-rule}
2664 {
2665 \providedby{\sty{flowfram} v1.11+}
2666 \syntax{\margm{offset}\margm{width}\margm{height}}
2667 \desc{used to draw the rule for \gls{insertvrule}}
2668 }
2669 % \inserthrule
2670 \gcmds{insert\-h\-rule}
2671 {
2672 \providedby{\sty{flowfram}}
2673 \syntax{\oargm{x-left}\oargm{x-right}\margm{type-1}\margm{ID1}\margm{type-2}\margm{ID2}}
2674 \desc{creates a horizontal rule between two frames. The starred
2675 version references the frames by their \idx{IDL} otherwise
2676 the frames are referenced by their \idx{IDN}. The rule will extend
2677 from the leftmost point of the two frames minus \meta{x-left} to the
2678 rightmost point of the two frames plus \meta{x-right}}
2679 }
2680 % \ffhrule
2681 \gcmd{ff\-h\-rule}
2682 {
2683 \providedby{\sty{flowfram} v1.11+}
2684 \syntax{\margm{offset}\margm{width}\margm{height}}
2685 \desc{used to draw the rule for \gls{inserthrule}}
2686 }
2687 % \setstaticcontents
2688 \gcmds{set\-static\-contents}
2689 {
2690 \providedby{\sty{flowfram}}
2691 \syntax{\oarg{options}\margm{ID}\margm{content}}
2692 \desc{sets the content of the given \idxpl{static-frame}
2693 identified by \meta{ID}, which is the frame's \idx{IDN} (unstarred)
2694 or \idx{IDL} (starred). If \meta{options} is present, they will be
2695 applied to the frame at the same time}
2696 }
2697 % \setdynamiccontents
2698 \gcmds{set\-dynamic\-contents}
2699 {
2700 \providedby{\sty{flowfram}}
2701 \syntax{\oarg{options}\margm{ID}\margm{content}}
2702 \desc{sets the content of the \idxpl{dynamic-frame} identified by
2703 \meta{ID}, which is the frame's \idx{IDN} (unstarred) or \idx{IDL}
2704 (starred). If \meta{options} is present, they will be
2705 applied to the frame at the same time}
2706 }
2707 % \appenddynamiccontents
2708 \gcmds{append\-dynamic\-contents}
2709 {
2710 \providedby{\sty{flowfram}}
2711 \syntax{\oarg{options}\margm{ID}\margm{content}}
2712 \desc{appends the given content to the \idxpl{dynamic-frame}
2713 identified by \meta{ID}, which is the frame's \idx{IDN} (unstarred) or \idx{IDL} (starred). If \meta{options} is present, they will be
2714 applied to the frame at the same time}
2715 }
2716 % \flowsetpagelist
2717 \gcmd{flow\-set\-page\-list}
2718 {
2719 \providedby{\sty{flowfram} v1.14+}
2720 \syntax{\margm{IDN}\marg{\meta{page-list}\textbar\meta{keyword}}}
2721 \desc{sets the \idx{pglist} for the \idx{flow-frame} identified
2722 by its \idx{IDN}}
2723 }
2724 % \staticsetpagelist
2725 \gcmd{static\-set\-page\-list}
2726 {
2727 \providedby{\sty{flowfram} v1.14+}
2728 \syntax{\margm{IDN}\marg{\meta{page-list}\textbar\meta{keyword}}}
2729 \desc{sets the \idx{pglist} for the \idx{static-frame} identified
2730 by its \idx{IDN}}
2731 }
2732 % \dynamicsetpagelist
2733 \gcmd{dynamic\-set\-page\-list}
2734 {
2735 \providedby{\sty{flowfram} v1.14+}
2736 \syntax{\margm{IDN}\marg{\meta{page-list}\textbar\meta{keyword}}}
2737 \desc{sets the \idx{pglist} for the \idx{dynamic-frame} identified
2738 by its \idx{IDN}}
2739 }
2740 % \flowsetexclusion
2741 \gcmd{flow\-set\-ex\-clusion}
2742 {
2743 \providedby{\sty{flowfram} v1.14+}
2744 \syntax{\margm{IDN}\margm{list}}
2745 \desc{sets the exclusion list for the \idx{flow-frame} identified
2746 by its \idx{IDN}}
2747 }
2748 % \staticsetexclusion
2749 \gcmd{static\-set\-ex\-clusion}
2750 {
2751 \providedby{\sty{flowfram} v1.14+}
2752 \syntax{\margm{IDN}\margm{list}}
2753 \desc{sets the exclusion list for the \idx{static-frame} identified
2754 by its \idx{IDN}}
2755 }
2756 % \dynamicsetexclusion
2757 \gcmd{dynamic\-set\-ex\-clusion}
2758 {
2759 \providedby{\sty{flowfram} v1.14+}
2760 \syntax{\margm{IDN}\margm{list}}
2761 \desc{sets the exclusion list for the \idx{dynamic-frame} identified
2762 by its \idx{IDN}}
2763 }
2764 % \flowaddexclusion
2765 \gcmd{flow\-add\-ex\-clusion}
2766 {
2767 \providedby{\sty{flowfram} v1.14+}
2768 \syntax{\margm{IDN}\margm{list}}
2769 \desc{appends \meta{list} to the exclusion list
2770 for the \idx{flow-frame} identified by its \idx{IDN}}
2771 }
2772 % \staticaddexclusion
2773 \gcmd{static\-add\-ex\-clusion}
2774 {
2775 \providedby{\sty{flowfram} v1.14+}
2776 \syntax{\margm{IDN}\margm{list}}
2777 \desc{appends \meta{list} to the exclusion list
2778 for the \idx{static-frame} identified by its \idx{IDN}}
2779 }
2780 % \dynamicaddexclusion
2781 \gcmd{dynamic\-add\-ex\-clusion}
2782 {
2783 \providedby{\sty{flowfram} v1.14+}
2784 \syntax{\margm{IDN}\margm{list}}
2785 \desc{appends \meta{list} to the exclusion list
2786 for the \idx{dynamic-frame} identified by its \idx{IDN}}
2787 }
2788 % \flowswitchonnext
2789 \gcmds{flow\-switch\-on\-next}
2790 {
2791 \providedby{\sty{flowfram} v1.14+}
2792 \syntax{\margm{ID-list}}
2793 \desc{switch on the listed \idxpl{flow-frame} from the next page
2794 onwards}
2795 }
2796 % \flowswitchonnextodd
2797 \gcmds{flow\-switch\-on\-next\-odd}
2798 {
2799 \providedby{\sty{flowfram} v1.14+}
2800 \syntax{\margm{ID-list}}
2801 \desc{switch on the listed \idxpl{flow-frame} from the next odd page
2802 onwards (after that they will show on both even and odd pages)}
2803 }
2804 % \flowswitchoffnext
2805 \gcmds{flow\-switch\-off\-next}
2806 {
2807 \providedby{\sty{flowfram} v1.14+}
2808 \syntax{\margm{ID-list}}
2809 \desc{switch off the listed \idxpl{flow-frame} from the next page
2810 onwards}
2811 }
2812 % \flowswitchoffnextodd
2813 \gcmds{flow\-switch\-off\-next\-odd}
2814 {
2815 \providedby{\sty{flowfram} v1.14+}
2816 \syntax{\margm{ID-list}}
2817 \desc{switch off the listed \idxpl{flow-frame} from the next odd page
2818 onwards (after that they will be off for both even and odd pages)}
2819 }
2820 % \flowswitchonnextonly
2821 \gcmds{flow\-switch\-on\-next\-only}
2822 {
2823 \providedby{\sty{flowfram} v1.14+}
2824 \syntax{\margm{ID-list}}
2825 \desc{switch on the listed \idxpl{flow-frame} for the next page
2826 only}
2827 }
2828 % \flowswitchonnextoddonly
2829 \gcmds{flow\-switch\-on\-next\-odd\-only}
2830 {
2831 \providedby{\sty{flowfram} v1.14+}
2832 \syntax{\margm{ID-list}}
2833 \desc{switch on the listed \idxpl{flow-frame} for the next odd page
2834 only}
2835 }
2836 % \flowswitchoffnextonly
2837 \gcmds{flow\-switch\-off\-next\-only}
2838 {
2839 \providedby{\sty{flowfram} v1.14+}
2840 \syntax{\margm{ID-list}}
2841 \desc{switch off the listed \idxpl{flow-frame} for the next page
2842 only}
2843 }
2844 % \flowswitchoffnextoddonly
2845 \gcmds{flow\-switch\-off\-next\-odd\-only}
2846 {
2847 \providedby{\sty{flowfram} v1.14+}
2848 \syntax{\margm{ID-list}}
2849 \desc{switch off the listed \idxpl{flow-frame} for the next odd page
2850 only}
2851 }
2852 % \dynamicswitchonnext
2853 \gcmds{dynamic\-switch\-on\-next}
2854 {
2855 \providedby{\sty{flowfram} v1.14+}
2856 \syntax{\margm{ID-list}}
2857 \desc{switch on the listed \idxpl{dynamic-frame} from the next page
2858 onwards}
2859 }
2860 % \dynamicswitchonnextodd
2861 \gcmds{dynamic\-switch\-on\-next\-odd}
2862 {
2863 \providedby{\sty{flowfram} v1.14+}
2864 \syntax{\margm{ID-list}}
2865 \desc{switch on the listed \idxpl{dynamic-frame} from the next odd page
2866 onwards (after that they will show on both even and odd pages)}
2867 }
2868 % \dynamicswitchoffnext
2869 \gcmds{dynamic\-switch\-off\-next}
2870 {
2871 \providedby{\sty{flowfram} v1.14+}
2872 \syntax{\margm{ID-list}}
2873 \desc{switch off the listed \idxpl{dynamic-frame} from the next page
2874 onwards}
2875 }
2876 % \dynamicswitchoffnextodd
2877 \gcmds{dynamic\-switch\-off\-next\-odd}
2878 {
2879 \providedby{\sty{flowfram} v1.14+}
2880 \syntax{\margm{ID-list}}
2881 \desc{switch off the listed \idxpl{dynamic-frame} from the next odd page
2882 onwards (after that they will be off for both even and odd pages)}
2883 }
2884 % \dynamicswitchonnextonly
2885 \gcmds{dynamic\-switch\-on\-next\-only}
2886 {
2887 \providedby{\sty{flowfram} v1.14+}
2888 \syntax{\margm{ID-list}}
2889 \desc{switch on the listed \idxpl{dynamic-frame} for the next page
2890 only}
2891 }
2892 % \dynamicswitchonnextoddonly
2893 \gcmds{dynamic\-switch\-on\-next\-odd\-only}
2894 {
2895 \providedby{\sty{flowfram} v1.14+}
2896 \syntax{\margm{ID-list}}
2897 \desc{switch on the listed \idxpl{dynamic-frame} for the next odd page
2898 only}
2899 }
2900 % \dynamicswitchoffnextonly
2901 \gcmds{dynamic\-switch\-off\-next\-only}
2902 {
2903 \providedby{\sty{flowfram} v1.14+}
2904 \syntax{\margm{ID-list}}
2905 \desc{switch off the listed \idxpl{dynamic-frame} for the next page
2906 only}
2907 }
2908 % \dynamicswitchoffnextoddonly
2909 \gcmds{dynamic\-switch\-off\-next\-odd\-only}
2910 {
2911 \providedby{\sty{flowfram} v1.14+}
2912 \syntax{\margm{ID-list}}
2913 \desc{switch off the listed \idxpl{dynamic-frame} for the next odd page
2914 only}
2915 }
2916 % \staticswitchonnext
2917 \gcmds{static\-switch\-on\-next}
2918 {
2919 \providedby{\sty{flowfram} v1.14+}
2920 \syntax{\margm{ID-list}}
2921 \desc{switch on the listed \idxpl{static-frame} from the next page
2922 onwards}
2923 }
2924 % \staticswitchonnextodd
2925 \gcmds{static\-switch\-on\-next\-odd}
2926 {
2927 \providedby{\sty{flowfram} v1.14+}
2928 \syntax{\margm{ID-list}}
2929 \desc{switch on the listed \idxpl{static-frame} from the next odd page
2930 onwards (after that they will show on both even and odd pages)}
2931 }
2932 % \staticswitchoffnext
2933 \gcmds{static\-switch\-off\-next}
2934 {
2935 \providedby{\sty{flowfram} v1.14+}
2936 \syntax{\margm{ID-list}}
2937 \desc{switch off the listed \idxpl{static-frame} from the next page
2938 onwards}
2939 }
2940 % \staticswitchoffnextodd
2941 \gcmds{static\-switch\-off\-next\-odd}
2942 {
2943 \providedby{\sty{flowfram} v1.14+}
2944 \syntax{\margm{ID-list}}
2945 \desc{switch off the listed \idxpl{static-frame} from the next odd page
2946 onwards (after that they will be off for both even and odd pages)}
2947 }
2948 % \staticswitchonnextonly
2949 \gcmds{static\-switch\-on\-next\-only}
2950 {
2951 \providedby{\sty{flowfram} v1.14+}
2952 \syntax{\margm{ID-list}}
2953 \desc{switch on the listed \idxpl{static-frame} for the next page
2954 only}
2955 }
2956 % \staticswitchonnextoddonly
2957 \gcmds{static\-switch\-on\-next\-odd\-only}
2958 {
2959 \providedby{\sty{flowfram} v1.14+}
2960 \syntax{\margm{ID-list}}
2961 \desc{switch on the listed \idxpl{static-frame} for the next odd page
2962 only}
2963 }
2964 % \staticswitchoffnextonly
2965 \gcmds{static\-switch\-off\-next\-only}
2966 {
2967 \providedby{\sty{flowfram} v1.14+}
2968 \syntax{\margm{ID-list}}
2969 \desc{switch off the listed \idxpl{static-frame} for the next page
2970 only}
2971 }
2972 % \staticswitchoffnextoddonly
2973 \gcmds{static\-switch\-off\-next\-odd\-only}
2974 {
2975 \providedby{\sty{flowfram} v1.14+}
2976 \syntax{\margm{ID-list}}
2977 \desc{switch off the listed \idxpl{static-frame} for the next odd page
2978 only}
2979 }
2980 % \ffaddtoadjustframeshook
2981 \gcmd{ff\-add\-to\-adjust\-frames\-hook}
2982 {
2983 \providedby{\sty{flowfram} v1.14+}
2984 \syntax{\margm{code}}
2985 \desc{add \meta{code} to the \idx{flow-frame} adjustment hook,
2986 which is used when the \idx{output-routine} starts searching for the next
2987 \idx{flow-frame}}
2988 }
2989 % \FLFsimpar
2990 \gcmd{FLF\-sim\-par}
2991 {
2992 \providedby{\sty{flowfram} v2.0+}
2993 \desc{simulate a paragraph break inside \gls{shapepar} or
2994 \gls{Shapepar}}
2995 }
2996 % \simpar
2997 \gcmd{sim\-par}
2998 {
2999 \deprecated
3000 \providedby{\sty{flowfram}}
3001 \desc{old name for \gls{FLFsimpar} provided for backward-compatibility}
3002 \field{alias}{FLFsimpar}
3003 }
3004 % \ffpshpar
3005 \gcmd{ff\-psh\-par}
3006 {
3007 \providedby{\sty{flowfram}}
3008 \desc{allow \gls{parshape} to be carried over a paragraph break}
3009 }
3010 % \setffdraftcolor
3011 \gcmd{set\-ff\-draft\-color}
3012 {
3013 \providedby{\sty{flowfram}}
3014 \desc{sets the colour of the \idx{bbox} outlines in draft mode}
3015 }
3016 % \setffdrafttypeblockcolor
3017 \gcmd{set\-ff\-draft\-type\-block\-color}
3018 {
3019 \providedby{\sty{flowfram}}
3020 \desc{sets the colour of the \idx{typeblock} outline in draft mode}
3021 }
3022 % \fflabelfont
3023 \gcmd{ff\-label\-font}
3024 {
3025 \providedby{\sty{flowfram}}
3026 \desc{font declarations used for the annotation labels shown in draft
3027 mode}
3028 }
3029 % \flowfram@preamble@htmlopts
3030 \gcmd{flow\-fram\-@\-pre\-amble\-@\-html\-opts}
3031 {
3032 \providedby{\sty{flowfram} v2.0+}
3033 \syntax{\margm{n}\marg{\keyvallist}\margm{type}\margm{IDN}\margm{page}\margm{absolute-page}}
3034 \desc{does nothing. This command is written to the \ext{aux} file
3035 if the \frameopt{html} option is used in the preamble. It's provided
3036 for the benefit of \LaTeX\ to HTML parsers}
3037 }
3038 % \flowfram@doc@htmlopts
3039 \gcmd{flow\-fram\-@\-doc\-@\-html\-opts}
3040 {
3041 \providedby{\sty{flowfram} v2.0+}
3042 \syntax{\margm{n}\marg{\keyvallist}\margm{type}\margm{IDN}\margm{page}\margm{absolute-page}}
3043 \desc{does nothing. This command is written to the \ext{aux} file
3044 if the \frameopt{html} option is used in the \env{document}
3045 environment. It's provided for the benefit of \LaTeX\ to HTML parsers}
3046 }
3047 % \setflowframe
3048 \gcmds{set\-flow\-frame}
3049 {
3050 \providedby{\sty{flowfram}}
3051 \syntax{\margm{ID-list}\marg{\keyvallist}}
3052 \desc{sets the attributes for the given \idxpl{flow-frame},
3053 identified by the list of IDs, which each identify a frame by
3054 its \idx{IDN} (unstarred) or \idx{IDL} (starred)}
3055 }
3056 % \setallflowframes
3057 \gcmd{set\-all\-flow\-frames}
3058 {
3059 \providedby{\sty{flowfram}}
3060 \syntax{\marg{\keyvallist}}
3061 \desc{sets the attributes in \meta{\keyvallist} for all defined \idxpl{flow-frame}}
3062 }
3063 % \setstaticframe
3064 \gcmds{set\-static\-frame}
3065 {
3066 \providedby{\sty{flowfram}}
3067 \syntax{\margm{ID-list}\marg{\keyvallist}}
3068 \desc{sets the attributes for the given \idxpl{static-frame},
3069 identified by the list of IDs, which each identify a frame by
3070 its \idx{IDN} (unstarred) or \idx{IDL} (starred)}
3071 }
3072 % \setallstaticframes
3073 \gcmd{set\-all\-static\-frames}
3074 {
3075 \providedby{\sty{flowfram}}
3076 \syntax{\marg{\keyvallist}}
3077 \desc{sets the attributes in \meta{\keyvallist} for all defined
3078 \idxpl{static-frame}}
3079 }
3080 % \setdynamicframe
3081 \gcmds{set\-dynamic\-frame}
3082 {
3083 \providedby{\sty{flowfram}}
3084 \syntax{\margm{ID-list}\marg{\keyvallist}}
3085 \desc{sets the attributes for the given \idxpl{dynamic-frame},
3086 identified by the list of IDs, which each identify a frame by
3087 its \idx{IDN} (unstarred) or \idx{IDL} (starred)}
3088 }
3089 % \setalldynamicframes
3090 \gcmd{set\-all\-dynamic\-frames}
3091 {
3092 \providedby{\sty{flowfram}}
3093 \syntax{\marg{\keyvallist}}
3094 \desc{sets the attributes in \meta{\keyvallist} for all defined
3095 \idxpl{dynamic-frame}}
3096 }
3097 % \set<...>frame
3098 \gcmd{set...frame}
3099 {
3100 \name{\csmetafmt{set}{type}{frame}}
3101 \syntax{\margm{ID-list}\margm{options}}
3102 \field{see}{setflowframe,setdynamicframe,setstaticframe}
3103 }
3104 % OPTIONS
3105 % set*frame options
3106 \gidxpl{setframeopts}
3107 {
3108 \field{text}{\NoCaseChange{\glsentrytext{set...frame} option}}
3109 \desc{options that may be used with the \gls+{set...frame}
3110 commands (some only apply to a particular type or types of frame)}
3111 }
3112 % setframe label
3113 \gframeopt{label}
3114 {
3115 \syntax{\meta{IDL}}
3116 \desc{assign a label to the frame}
3117 }
3118 % setframe pages
3119 \gframeopt{pages}
3120 {
3121 \syntax{\meta{page-list}\textbar\meta{keyword}}
3122 \desc{set the frame's \idx{pglist}}
3123 }
3124 % setframe excludepages
3125 \gframeopt{ex\-clude\-pages}
3126 {
3127 \providedby{\sty{flowfram} v1.14+}
3128 \syntax{\meta{list}}
3129 \desc{set the frame's exclusion list (overrides the \idx{pglist}
3130 for the listed pages)}
3131 }
3132 % setframe hide
3133 \gframeopt{hide}
3134 {
3135 \providedby{\sty{flowfram} v1.16+}
3136 \initval{false}
3137 \defval{true}
3138 \syntax{\meta{boolean}}
3139 \desc{if true, hides the frame (overrides the \idx{pglist})}
3140 }
3141 % setframe hidethis
3142 \gframeopt{hide\-this}
3143 {
3144 \providedby{\sty{flowfram} v1.16+}
3145 \initval{false}
3146 \defval{true}
3147 \syntax{\meta{boolean}}
3148 \desc{if true, hides the frame for the current page (overrides the \idx{pglist})}
3149 }
3150 % setframe offset
3151 \gframeopt{offset}
3152 {
3153 \initval{compute}
3154 \syntax{\meta{dimension}\textbar\optfmt{compute}}
3155 \desc{set the frame's offset to take the border into account}
3156 }
3157 % setframe width
3158 \gframeopt{width}
3159 {
3160 \syntax{\meta{dimension}}
3161 \desc{set the frame width}
3162 }
3163 % setframe height
3164 \gframeopt{height}
3165 {
3166 \syntax{\meta{dimension}}
3167 \desc{set the frame height}
3168 }
3169 % setframe x
3170 \gframeopt{x}
3171 {
3172 \syntax{\meta{dimension}}
3173 \desc{set the frame's $x$-coordinate for all pages on which it's
3174 defined}
3175 }
3176 % setframe y
3177 \gframeopt{y}
3178 {
3179 \syntax{\meta{dimension}}
3180 \desc{set the frame's $y$-coordinate for all pages on which it's
3181 defined}
3182 }
3183 % setframe evenx
3184 \gframeopt{evenx}
3185 {
3186 \syntax{\meta{dimension}}
3187 \desc{set the frame's $x$-coordinate for all even pages on which it's
3188 defined (only applicable if the document is two-sided)}
3189 }
3190 % setframe eveny
3191 \gframeopt{eveny}
3192 {
3193 \syntax{\meta{dimension}}
3194 \desc{set the frame's $y$-coordinate for all even pages on which it's
3195 defined (only applicable if the document is two-sided)}
3196 }
3197 % setframe oddx
3198 \gframeopt{oddx}
3199 {
3200 \syntax{\meta{dimension}}
3201 \desc{set the frame's $x$-coordinate for all odd pages on which it's
3202 defined}
3203 }
3204 % setframe oddy
3205 \gframeopt{oddy}
3206 {
3207 \syntax{\meta{dimension}}
3208 \desc{set the frame's $y$-coordinate for all odd pages on which it's
3209 defined}
3210 }
3211 % setframe clear
3212 \gframeopt{clear}
3213 {
3214 \providedby{\sty{flowfram} v1.11+}
3215 \syntax{\meta{boolean}}
3216 \initval{false}
3217 \defval{true}
3218 \desc{clear the \staticordynamicframe\ contents whenever a page is shipped out}
3219 \note{\idx{static} \& \idx{dynamic} only}
3220 }
3221 % setframe angle
3222 \gframeopt{angle}
3223 {
3224 \providedby{\sty{flowfram} v1.02+}
3225 \syntax{\meta{angle}}
3226 \initval{0}
3227 \desc{rotate the frame by \meta{angle} degrees}
3228 }
3229 % setframe border
3230 \gframeopt{border}
3231 {
3232 \syntax{\meta{value}}
3233 \initval{false}
3234 \defval{plain}
3235 \desc{sets the frame's border}
3236 }
3237 % setframe bordercolor
3238 \gframeopt{border\-color}
3239 {
3240 \syntax{\oargm{colour-space}\margm{colour-specs}}
3241 \initval{none}
3242 \desc{sets the frame's border colour}
3243 }
3244 % setframe border-color
3245 \gframeopt{border\dhyphen color}
3246 {
3247 \providedby{\sty{flowfram} v2.0+}
3248 \desc{synonym for \frameopt{bordercolor}}
3249 \field{alias}{opt.frame.bordercolor}
3250 }
3251 % setframe bordercolour
3252 \gframeopt{border\-colour}
3253 {
3254 \providedby{\sty{flowfram} v2.0+}
3255 \desc{synonym for \frameopt{bordercolor}}
3256 \field{alias}{opt.frame.bordercolor}
3257 }
3258 % setframe border-colour
3259 \gframeopt{border\dhyphen colour}
3260 {
3261 \providedby{\sty{flowfram} v2.0+}
3262 \desc{synonym for \frameopt{bordercolor}}
3263 \field{alias}{opt.frame.bordercolor}
3264 }
3265 % setframe backcolor
3266 \gframeopt{back\-color}
3267 {
3268 \syntax{\oargm{colour-space}\margm{colour-specs}}
3269 \initval{none}
3270 \desc{sets the frame's background colour}
3271 }
3272 % setframe back-color
3273 \gframeopt{back\dhyphen color}
3274 {
3275 \providedby{\sty{flowfram} v2.0+}
3276 \desc{synonym for \frameopt{backcolor}}
3277 \field{alias}{opt.frame.backcolor}
3278 }
3279 % setframe backcolour
3280 \gframeopt{back\-colour}
3281 {
3282 \providedby{\sty{flowfram} v2.0+}
3283 \desc{synonym for \frameopt{backcolor}}
3284 \field{alias}{opt.frame.backcolor}
3285 }
3286 % setframe back-colour
3287 \gframeopt{back\dhyphen colour}
3288 {
3289 \providedby{\sty{flowfram} v2.0+}
3290 \desc{synonym for \frameopt{backcolor}}
3291 \field{alias}{opt.frame.backcolor}
3292 }
3293 % setframe textcolor
3294 \gframeopt{text\-color}
3295 {
3296 \syntax{\oargm{colour-space}\margm{colour-specs}}
3297 \initval{none}
3298 \desc{sets the frame's text colour. Note that it's best to just
3299 use the default document colour for all \idxpl{flow-frame}.}
3300 }
3301 % setframe text-color
3302 \gframeopt{text\dhyphen color}
3303 {
3304 \providedby{\sty{flowfram} v2.0+}
3305 \desc{synonym for \frameopt{textcolor}}
3306 \field{alias}{opt.frame.textcolor}
3307 }
3308 % setframe textcolour
3309 \gframeopt{textcolour}
3310 {
3311 \providedby{\sty{flowfram} v2.0+}
3312 \desc{synonym for \frameopt{textcolor}}
3313 \field{alias}{opt.frame.textcolor}
3314 }
3315 % setframe text-colour
3316 \gframeopt{text\dhyphen colour}
3317 {
3318 \providedby{\sty{flowfram} v2.0+}
3319 \desc{synonym for \frameopt{textcolor}}
3320 \field{alias}{opt.frame.textcolor}
3321 }
3322 % setframe margin
3323 \gframeopt{margin}
3324 {
3325 \syntax{\meta{value}}
3326 \initval{right}
3327 \desc{sets the margin position for \idxpl{flow-frame}}
3328 }
3329 % setframe style
3330 \gframeopt{style}
3331 {
3332 \syntax{\meta{value}}
3333 \initval{none}
3334 \desc{sets content style for \idxpl{dynamic-frame}}
3335 }
3336 % setframe shape
3337 \gframeopt{shape}
3338 {
3339 \providedby{\sty{flowfram} v1.03+}
3340 \syntax{\meta{value}}
3341 \initval{\cmd{relax}}
3342 \desc{sets content shape for \idxpl{static-frame} or \idxpl{dynamic-frame}}
3343 }
3344 % setframe parindent
3345 \gframeopt{par\-indent}
3346 {
3347 \providedby{\sty{flowfram} v2.0+}
3348 \syntax{\meta{dim expr}}
3349 \initval{\cmd{sdfparindent}}
3350 \desc{sets the paragraph indentation for \idxpl{static-frame} or \idxpl{dynamic-frame}
3351 (\meta{dim expr} will be evaluated whenever it is required)}
3352 }
3353 % setframe valign
3354 \gframeopt{valign}
3355 {
3356 \providedby{\sty{flowfram} v1.03+}
3357 \syntax{\meta{value}}
3358 \initvalvaries
3359 \desc{sets vertical alignment for \idxpl{static-frame} or \idxpl{dynamic-frame}}
3360 }
3361 % setframe html
3362 \gframeopt{html}
3363 {
3364 \providedby{\sty{flowfram} v2.0+}
3365 \syntax{\marg{\keyvallist}}
3366 \desc{provided for the benefit of \LaTeX\ to HTML parsers that
3367 don't have access to the output routine. When the document is
3368 compiled with \LaTeX, this option simply writes information to the
3369 \ext{aux} file. It's up to the \LaTeX\ to HTML parser to determine
3370 what to do with the information}
3371 \note{\idx{static} and \idx{dynamic} only}
3372 }
3373 % html = { show = boolean }
3374 \ghtmlopt{show}
3375 {
3376 \syntax{\meta{boolean}}
3377 \initval{false}
3378 \defval{true}
3379 \desc{the frame contents should be shown at this point}
3380 }
3381 % html = { div = boolean }
3382 \ghtmlopt{div}
3383 {
3384 \syntax{\meta{boolean}}
3385 \initval{true}
3386 \defval{true}
3387 \desc{if the frame contents should be shown, encapsulate the
3388 content in a \code{div} element}
3389 }
3390 % html = { style = css }
3391 \ghtmlopt{style}
3392 {
3393 \syntax{\meta{css}}
3394 \desc{if the frame contents should be shown in a \code{div}
3395 element, set the \code{style} attribute to \meta{css}}
3396 }
3397 % html = { class = css-class }
3398 \ghtmlopt{class}
3399 {
3400 \syntax{\meta{css-class}}
3401 \desc{if the frame contents should be shown in a \code{div}
3402 element, set the \code{class} attribute to \meta{css-class}}
3403 }
3404 % html = { image = boolean }
3405 \ghtmlopt{image}
3406 {
3407 \syntax{\meta{boolean}}
3408 \initval{false}
3409 \defval{true}
3410 \desc{if the frame contents should be shown, convert the content
3411 into an image (because it can't be rendered correctly in HTML)}
3412 }
3413 % html = { mime-type = type }
3414 \ghtmlopt{mime\dhyphen type}
3415 {
3416 \syntax{\meta{type}}
3417 \desc{if the frame contents should be converted to an image, the
3418 image should have the given MIME type}
3419 }
3420 % html = { alt = text }
3421 \ghtmlopt{alt}
3422 {
3423 \syntax{\meta{text}}
3424 \desc{if the frame contents should be converted to an image, the
3425 \code{alt} tag should be set to \meta{text}}
3426 }
3427 % PAGE STYLES
3428 % page style ffempty
3429 \gpagestyle{ff\-empty}
3430 {
3431 \desc{a nominally empty page style for dynamic header and footer
3432 frames that's governed by the \opt{dynamic-empty-page-style} option}
3433 }
3434 % page style ffplain
3435 \gpagestyle{ff\-plain}
3436 {
3437 \desc{a plain page style for dynamic header and footer frames}
3438 }
3439 % page style ffheadings
3440 \gpagestyle{ff\-headings}
3441 {
3442 \desc{a headings page style for dynamic header and footer frames}
3443 }
3444 % page style ffmyheadings
3445 \gpagestyle{ff\-my\-headings}
3446 {
3447 \desc{a \qt{myheadings} page style for dynamic header and footer frames}
3448 }
3449 % HOOKS
3450 \gidx{hook}{\name{hooks}\field{text}{hook}}
3451 \ghook{flowfram\dslash chaphead\dslash before}{}
3452 \ghook{flowfram\dslash chaphead\dslash after}{}
3453 \ghook{flowfram\dslash chaphead\dslash box\dslash before}{}
3454 \ghook{flowfram\dslash chaphead\dslash box\dslash after}{}
3455 \ghook{flowfram\dslash staticbox\dslash before}{}
3456 \ghook{flowfram\dslash staticbox\dslash after}{}
3457 % SPECIAL LABELS
3458 \gidx{speciallabel}
3459 {
3460 \name{special labels}
3461 \field{text}{special label}
3462 }
3463 \gspeciallabel{header}{}
3464 \gspeciallabel{footer}{}
3465 \gspeciallabel{evenheader}{}
3466 \gspeciallabel{evenfooter}{}
3467 \gspeciallabelmeta{thumbtab}{n}{}
3468 \gspeciallabelmeta{thumbtabindex}{n}{}
3469 \gspeciallabelmeta{eventhumbtab}{n}{}
3470 \gspeciallabelmeta{eventhumbtabindex}{n}{}
3471 % PACKAGES
3472 \gpkg{flow\-fram}% flowfram.sty
3473 {
3474 \common
3475 \syntax{\meta{options}}
3476 \desc{package for constructing custom document columns and fixed
3477 frames}
3478 }
3479 \gpkg{flow\-fram\-tk\-utils}% flowframtkutils.sty
3480 {
3481 \syntax{\meta{options}}
3482 \desc{supplementary package for use with \app{flowframtk}}
3483 }
3484 % PACKAGE OPTIONS
3485 % outline (flowframtkutils.sty)
3486 \gstyopt{out\-line}
3487 {
3488 \inpackage{flowframtkutils}
3489 \providedby{\sty{flowframtkutils}}
3490 \syntax{\meta{boolean}}
3491 \initval{false}
3492 \defval{true}
3493 \desc{if true, provide support for outline text according to the
3494 \TeX\ engine}
3495 }
3496 % textpath (flowframtkutils.sty)
3497 \gstyopt{text\-path}
3498 {
3499 \inpackage{flowframtkutils}
3500 \providedby{\sty{flowframtkutils}}
3501 \syntax{\meta{boolean}}
3502 \initval{false}
3503 \defval{true}
3504 \desc{if true, provide support for text along a path}
3505 }
3506 % draft
3507 \gstyopt{draft}
3508 {
3509 \inpackage{flowfram}
3510 \providedby{\sty{flowfram} v1.0+}
3511 \desc{switches on draft mode}
3512 }
3513 % final
3514 \gstyopt{final}
3515 {
3516 \inpackage{flowfram}
3517 \providedby{\sty{flowfram} v1.0}
3518 \desc{switches off draft mode}
3519 }
3520 % verbose
3521 \gstyopt{verbose}
3522 {
3523 \inpackage{flowfram}
3524 \providedby{\sty{flowfram} v1.14+}
3525 \syntax{\meta{boolean}}
3526 \initval{false}
3527 \defval{true}
3528 \desc{switches on/off verbose mode}
3529 }
3530 % color
3531 \gstyopt{color}
3532 {
3533 \inpackage{flowfram}
3534 \providedby{\sty{flowfram} v1.0}
3535 \syntax{\meta{boolean}}
3536 \initval{true}
3537 \defval{true}
3538 \desc{if true, enable colour support}
3539 \note{preamble only}
3540 }
3541 % nocolor
3542 \gstyopt{nocolor}
3543 {
3544 \inpackage{flowfram}
3545 \providedby{\sty{flowfram} v1.0}
3546 \desc{equivalent to \optval{color}{false}}
3547 \note{preamble only}
3548 }
3549 % LR
3550 \gstyopt{LR}
3551 {
3552 \inpackage{flowfram}
3553 \providedby{\sty{flowfram} v1.12+}
3554 \desc{the column commands, such as \gls{twocolumn}, will
3555 create \idxpl{flow-frame} from left to right}
3556 \note{preamble only}
3557 }
3558 % RL
3559 \gstyopt{RL}
3560 {
3561 \inpackage{flowfram}
3562 \providedby{\sty{flowfram} v1.12+}
3563 \desc{the column commands, such as \gls{twocolumn}, will
3564 create \idxpl{flow-frame} from right to left}
3565 \note{preamble only}
3566 }
3567 % pages
3568 \gstyopt{pages}
3569 {
3570 \inpackage{flowfram}
3571 \providedby{\sty{flowfram} v1.14+}
3572 \syntax{\meta{setting}}
3573 \initval{relative}
3574 \desc{indicates which value \idxpl{pglist} refer to}
3575 \note{preamble only}
3576 }
3577 % pages = relative
3578 \goptval{pages}{relative}
3579 {
3580 \desc{all \idxpl{pglist} refer to the \ctr{page} counter}
3581 }
3582 % pages = absolute
3583 \goptval{pages}{absolute}
3584 {
3585 \desc{all \idxpl{pglist} refer to the \ctr{absolutepage} counter}
3586 }
3587 % column-changes
3588 \gstyopt{column-changes}
3589 {
3590 \inpackage{flowfram}
3591 \providedby{\sty{flowfram} v2.0+}
3592 \initval{ignore}
3593 \syntax{\meta{setting}}
3594 \desc{indicates what to do if \gls{onecolumn} or \gls{twocolumn}
3595 are encountered in the \env{document} environment}
3596 }
3597 % column-changes = ignore
3598 \goptval{column-changes}{ignore}
3599 {
3600 \desc{ignore any instance of \gls{onecolumn} or \gls{twocolumn}
3601 found in the \env{document} environment}
3602 }
3603 % column-changes = clearpage
3604 \goptval{column-changes}{clear\-page}
3605 {
3606 \desc{clear the page but otherwise ignore any instance of \gls{onecolumn} or \gls{twocolumn}
3607 found in the \env{document} environment}
3608 }
3609 % column-changes = switch
3610 \goptval{column-changes}{switch}
3611 {
3612 \desc{switch to the designated frames}
3613 }
3614 % sections-extra-option
3615 \gstyopt{sections\dhyphen extra\dhyphen option}
3616 {
3617 \inpackage{flowfram}
3618 \providedby{\sty{flowfram} v2.0+}
3619 \syntax{\meta{setting}}
3620 \desc{indicates whether or not the second optional argument of
3621 sectioning commands should be passed to the original or just be used
3622 for the \idx{thumbtab} title}
3623 }
3624 % sections-extra-option = as-original
3625 \goptval{sections-extra-option}{as\dhyphen original}
3626 {
3627 \desc{indicates that the underlying command has a second optional
3628 argument and any second optional argument should simply be passed
3629 and not used as the \idx{thumbtab} title}
3630 }
3631 % sections-extra-option = thumbtab-only
3632 \goptval{sections-extra-option}{thumbtab\dhyphen only}
3633 {
3634 \desc{indicates that the second optional argument (if present)
3635 should only be used as the \idx{thumbtab} title (if enabled) and not
3636 passed to the underlying command}
3637 }
3638 % sections-extra-option = original-and-thumbtab
3639 \goptval{sections-extra-option}{original\dhyphen and\dhyphen thumbtab}
3640 {
3641 \desc{indicates that the underlying command has a second optional
3642 argument and any second optional argument should be both passed
3643 to the underlying command and used as the \idx{thumbtab} title (if
3644 enabled)}
3645 }
3646 % toc-thumbtabs
3647 \gstyopt{toc\dhyphen thumbtabs}
3648 {
3649 \inpackage{flowfram}
3650 \providedby{\sty{flowfram} v2.0+}
3651 \syntax{\meta{setting}}
3652 \defval{true}
3653 \initval{false}
3654 \desc{sets whether or not to show the thumbtab index frames in
3655 the table of contents (if thumbtabs have been created)}
3656 }
3657 % toc-thumbtabs = aligned
3658 \goptval{toc-thumbtabs}{aligned}
3659 {
3660 \desc{separate the table of contents into blocks that are the
3661 same height as the corresponding \idx{thumbtab} (for single-paged
3662 table of contents only)}
3663 }
3664 % toc-thumbtabs = unaligned
3665 \goptval{toc-thumbtabs}{unaligned}
3666 {
3667 \desc{don't align sub-blocks of the table of contents with the
3668 \idxpl{thumbtab} and only show the \idx{thumbtab} indexes on the
3669 first page of the table of contents}
3670 }
3671 % toc-thumbtabs = false
3672 \goptval{toc-thumbtabs}{false}
3673 {
3674 \desc{don't show the \idx{thumbtab} indexes in the table of
3675 contents}
3676 }
3677 % toc-thumbtabs = true
3678 \goptval{toc-thumbtabs}{true}
3679 {
3680 \desc{show the \idx{thumbtab} indexes on every page of the table of
3681 contents}
3682 }
3683 % thumbtab-text
3684 \gstyopt{thumbtab\dhyphen text}
3685 {
3686 \inpackage{flowfram}
3687 \providedby{\sty{flowfram} v2.0+}
3688 \syntax{\meta{setting}}
3689 \initval{rotate}
3690 \desc{indicates how the text should be shown in the
3691 \idxpl{thumbtab}}
3692 }
3693 % thumbtab-text = rotate
3694 \goptval{thumbtab-text}{rotate}
3695 {
3696 \desc{turn the text sideways}
3697 }
3698 % thumbtab-text = rotate-right
3699 \goptval{thumbtab-text}{rotate\dhyphen right}
3700 {
3701 \desc{rotate the text to the right}
3702 }
3703 % thumbtab-text = rotate-left
3704 \goptval{thumbtab-text}{rotate\dhyphen left}
3705 {
3706 \desc{rotate the text to the left}
3707 }
3708 % thumbtab-text = stack
3709 \goptval{thumbtab-text}{stack}
3710 {
3711 \desc{stack the letters vertically}
3712 }
3713 % thumbtab-text = normal
3714 \goptval{thumbtab-text}{normal}
3715 {
3716 \desc{no rotation or stacking}
3717 }
3718 % adjust-pre-chapter
3719 \gstyopt{adjust\dhyphen pre\dhyphen chapter}
3720 {
3721 \inpackage{flowfram}
3722 \providedby{\sty{flowfram} v2.0+}
3723 \syntax{\meta{boolean}}
3724 \initval{true}
3725 \defval{true}
3726 \desc{if true and \gls{chapter} is defined, this setting will
3727 define \gls{ffprechapterhook} and \gls{chapterfirstpagestyle}}
3728 \note{package option only}
3729 }
3730 % adjust-toc
3731 \gstyopt{adjust\dhyphen toc}
3732 {
3733 \inpackage{flowfram}
3734 \providedby{\sty{flowfram} v2.0+}
3735 \syntax{\meta{setting}}
3736 \desc{specifies whether or not the table of contents should be
3737 adjusted to support \idx{thumbtab} indexes and \idxpl{minitoc}}
3738 }
3739 % adjust-toc = header
3740 \goptval{adjust-toc}{header}
3741 {
3742 \desc{adjust the table of contents, including the header}
3743 }
3744 % adjust-toc = notheader
3745 \goptval{adjust-toc}{notheader}
3746 {
3747 \desc{adjust the table of contents, but not the header}
3748 }
3749 % adjust-toc = off
3750 \goptval{adjust-toc}{off}
3751 {
3752 \desc{don't adjust the table of contents, which means there
3753 won't be any support for \idx{thumbtab} indexes or \idxpl{minitoc}}
3754 }
3755 % dynamic-page-style
3756 \gstyopt{dynamic\dhyphen page\dhyphen style}
3757 {
3758 \inpackage{flowfram}
3759 \providedby{\sty{flowfram} v2.0+}
3760 \syntax{\meta{setting}}
3761 \initval{adjust}
3762 \desc{indicates whether or not to adjust the standard page styles if the header and
3763 footer are converted into \idxpl{dynamic-frame}}
3764 \note{preamble only}
3765 }
3766 % dynamic-page-style = noadjust
3767 \goptval{dynamic-page-style}{noadjust}
3768 {
3769 \desc{don't adjust the \pstyle{empty}, \pstyle{plain},
3770 \pstyle{headings} and \pstyle{myheadings} page styles}
3771 }
3772 % dynamic-page-style = adjust
3773 \goptval{dynamic-page-style}{adjust}
3774 {
3775 \desc{if used, \gls{makedfheaderfooter} will set (\csfmt{let}) the
3776 \pstyle{empty}, \pstyle{plain},
3777 \pstyle{headings} and \pstyle{myheadings} page styles
3778 to \pstyle{ffempty}, \pstyle{ffplain},
3779 \pstyle{ffheadings} and \pstyle{ffmyheadings}}
3780 }
3781 % dynamic-header-case
3782 \gstyopt{dynamic\dhyphen header\dhyphen case}
3783 {
3784 \inpackage{flowfram}
3785 \providedby{\sty{flowfram} v2.0+}
3786 \syntax{\meta{setting}}
3787 \initval{no-change}
3788 \desc{indicates whether or not \gls{chaptermark} (if chapters are
3789 defined) or \gls{sectionmark} (otherwise) with the \pstyle{ffheadings} and
3790 \pstyle{ffmyheadings} styles should change the case of the header
3791 text}
3792 }
3793 % dynamic-header-case = uc
3794 \goptval{dynamic-header-case}{uc}
3795 {
3796 \desc{change the header to uppercase}
3797 }
3798 % dynamic-header-case = no-change
3799 \goptval{dynamic-header-case}{no\dhyphen change}
3800 {
3801 \desc{don't change the case of the header}
3802 }
3803 % dynamic-subheader-case
3804 \gstyopt{dynamic\dhyphen subheader\dhyphen case}
3805 {
3806 \inpackage{flowfram}
3807 \providedby{\sty{flowfram} v2.0+}
3808 \syntax{\meta{setting}}
3809 \initval{no-change}
3810 \desc{indicates whether or not \gls{sectionmark} (if chapters are
3811 defined) or \gls{subsectionmark} (otherwise) with the \pstyle{ffheadings} and
3812 \pstyle{ffmyheadings} styles should change the case of the sub-header
3813 text}
3814 }
3815 % dynamic-subheader-case = uc
3816 \goptval{dynamic-subheader-case}{uc}
3817 {
3818 \desc{change the sub-header to uppercase}
3819 }
3820 % dynamic-subheader-case = no-change
3821 \goptval{dynamic-subheader-case}{no\dhyphen change}
3822 {
3823 \desc{don't change the case of the sub-header}
3824 }
3825 % dynamic-page-style-header-font
3826 \gstyopt{dynamic\dhyphen page\dhyphen style\dhyphen header\dhyphen font}
3827 {
3828 \inpackage{flowfram}
3829 \providedby{\sty{flowfram} v2.0+}
3830 \syntax{\margm{code}}
3831 \initval{\cmd{emph}}
3832 \desc{use the given \meta{code} to set the font used by
3833 \gls{chaptermark} (if chapters are available) or \gls{sectionmark}
3834 (otherwise) with \pstyle{ffheadings}. The \meta{code} may be
3835 declarations or the final command in \meta{code} may be a text-block
3836 command}
3837 }
3838 % dynamic-page-style-subheader-font
3839 \gstyopt{dynamic\dhyphen page\dhyphen style\dhyphen subheader\dhyphen font}
3840 {
3841 \inpackage{flowfram}
3842 \providedby{\sty{flowfram} v2.0+}
3843 \syntax{\margm{code}}
3844 \desc{use the given \meta{code} to set the font used by
3845 \gls{sectionmark} (if chapters are available) or \gls{subsectionmark}
3846 (otherwise) with \pstyle{ffheadings}. Initialised to match
3847 \opt{dynamic-page-style-header-font}}
3848 }
3849 % dynamic-empty-page-style
3850 \gstyopt{dynamic\dhyphen empty\dhyphen page\dhyphen style}
3851 {
3852 \inpackage{flowfram}
3853 \providedby{\sty{flowfram} v2.0+}
3854 \syntax{\margm{value}}
3855 \initval{hide}
3856 \desc{controls how the \pstyle{ffempty} page style behaves with
3857 dynamic header and footer frames}
3858 }
3859 % dynamic-empty-page-style = empty
3860 \goptval{dynamic-empty-page-style}{empty}
3861 {
3862 \desc{the header and footer frames have their contents set to
3863 empty but will still be shown on the page}
3864 }
3865 % dynamic-empty-page-style = plain
3866 \goptval{dynamic-empty-page-style}{plain}
3867 {
3868 \desc{behaves like \pstyle{ffplain}}
3869 }
3870 % dynamic-empty-page-style = headings
3871 \goptval{dynamic-empty-page-style}{headings}
3872 {
3873 \desc{behaves like \pstyle{ffheadings}}
3874 }
3875 % dynamic-empty-page-style = myheadings
3876 \goptval{dynamic-empty-page-style}{myheadings}
3877 {
3878 \desc{behaves like \pstyle{ffmyheadings}}
3879 }
3880 % dynamic-empty-page-style = ignore
3881 \goptval{dynamic-empty-page-style}{ignore}
3882 {
3883 \desc{the style will do nothing, retaining the current page style}
3884 }
3885 % dynamic-empty-page-style = hide
3886 \goptval{dynamic-empty-page-style}{hide}
3887 {
3888 \desc{the \frameopt{hide} attribute will be switched on with
3889 \gls{pagestyle} and the \frameopt{hidethis} attribute will be switched on with
3890 \gls{thispagestyle}}
3891 }
3892 % dynamic-empty-page-style = show
3893 \goptval{dynamic-empty-page-style}{show}
3894 {
3895 \desc{the \frameopt{hide} or \frameopt{hidethis} attribute won't be switched on
3896 by the \pstyle{ffempty} style}
3897 }
3898 % backmatter-sections
3899 \gstyopt{backmatter\dhyphen sections}
3900 {
3901 \inpackage{flowfram}
3902 \providedby{\sty{flowfram} v2.0+}
3903 \syntax{\meta{setting}}
3904 \initval{no-number}
3905 \desc{classes that support \gls{backmatter} tend to suppress the
3906 chapter number but not section numbers. As this can cause
3907 interference, this option may be used to suppress section numbers as
3908 well}
3909 }
3910 % backmatter-sections = no-number
3911 \goptval{backmatter-sections}{no-number}
3912 {
3913 \desc{suppress section numbers in the \idx{back-matter}
3914 (\gls{backmatter} will set \ctr{secnumdepth} to -1)}
3915 }
3916 % backmatter-sections = no-change
3917 \goptval{backmatter-sections}{no-change}
3918 {
3919 \desc{don't alter \ctr{secnumdepth} in the \idx{back-matter}}
3920 }
3921 % matter-thumbtabs
3922 \gstyopt{matter\dhyphen thumbtabs}
3923 {
3924 \inpackage{flowfram}
3925 \providedby{\sty{flowfram} v2.0+}
3926 \syntax{\meta{setting}}
3927 \desc{indicates whether or not unstarred sectional units outside
3928 of the \idx{main-matter} should have \idxpl{thumbtab}}
3929 }
3930 % matter-thumbtabs = main-only
3931 \goptval{matter-thumbtabs}{main\dhyphen only}
3932 {
3933 \desc{only have \idxpl{thumbtab} for unstarred units in the
3934 \idx{main-matter}}
3935 }
3936 % matter-thumbtabs = all
3937 \goptval{matter-thumbtabs}{all}
3938 {
3939 \desc{support \idxpl{thumbtab} for unstarred units everywhere}
3940 }
3941 % matter-thumbtabs = not-front
3942 \goptval{matter-thumbtabs}{not\dhyphen front}
3943 {
3944 \desc{only have \idxpl{thumbtab} for unstarred units in the
3945 \idx{main-matter} and \idx{back-matter} but not in the
3946 \idx{front-matter}}
3947 }
3948 % matter-thumbtabs = not-back
3949 \goptval{matter-thumbtabs}{not\dhyphen back}
3950 {
3951 \desc{only have \idxpl{thumbtab} for unstarred units in the
3952 \idx{main-matter} and \idx{front-matter} but not in the
3953 \idx{back-matter}}
3954 }
3955 % thumbtab-links
3956 \gstyopt{thumbtab\dhyphen links}
3957 {
3958 \inpackage{flowfram}
3959 \providedby{\sty{flowfram} v2.0+}
3960 \syntax{\meta{setting}}
3961 \desc{indicates which \idxpl{thumbtab} should have
3962 \idxpl{hyperlink} (if supported)}
3963 }
3964 % thumbtab-links = toc-only
3965 \goptval{thumbtab-links}{toc\dhyphen only}
3966 {
3967 \desc{only have \idxpl{hyperlink} in the \idx{thumbtab} indexes}
3968 }
3969 % thumbtab-links = all
3970 \goptval{thumbtab-links}{all}
3971 {
3972 \desc{have \idxpl{hyperlink} in all the \idxpl{thumbtab}}
3973 }
3974 % thumbtab-links = none
3975 \goptval{thumbtab-links}{none}
3976 {
3977 \desc{don't have \idxpl{hyperlink} in any of the \idxpl{thumbtab}}
3978 }
3979 % unstarred-thumbtabs
3980 \gstyopt{unstarred\dhyphen thumbtabs}
3981 {
3982 \inpackage{flowfram}
3983 \providedby{\sty{flowfram} v2.0+}
3984 \syntax{\meta{boolean}}
3985 \initval{false}
3986 \defval{true}
3987 \desc{indicates whether or not unstarred units should have
3988 \idxpl{thumbtab}}
3989 }
3990 % prohibit-frame-rotation
3991 \gstyopt{prohibit\dhyphen frame\dhyphen rotation}
3992 {
3993 \inpackage{flowfram}
3994 \providedby{\sty{flowfram} v2.0+}
3995 \syntax{\meta{boolean}}
3996 \initval{false}
3997 \defval{true}
3998 \desc{if true, disable frame rotation}
3999 }
4000 % rotate
4001 \gstyopt{rotate}
4002 {
4003 \inpackage{flowfram}
4004 \providedby{\sty{flowfram} v1.0}
4005 \syntax{\meta{boolean}}
4006 \initval{false}
4007 \defval{true}
4008 \desc{if true, enables frame rotation and sets
4009 \opteqvalref{thumbtab-text}{rotate-right}}
4010 }
4011 % norotate
4012 \gstyopt{no\-rotate}
4013 {
4014 \inpackage{flowfram}
4015 \providedby{\sty{flowfram} v1.0}
4016 \desc{prevents frame rotation and sets
4017 \opteqvalref{thumbtab-text}{stack}}
4018 }
4019 % thumbtabs
4020 \gstyopt{thumbtabs}
4021 {
4022 \inpackage{flowfram}
4023 \providedby{\sty{flowfram} v1.14+}
4024 \syntax{\meta{setting}}
4025 \desc{indicates whether or not the number or title should be shown in
4026 the \idxpl{thumbtab}}
4027 \note{preamble only}
4028 }
4029 % thumbtabs = number
4030 \goptval{thumbtabs}{number}
4031 {
4032 \desc{only show the number (if applicable)}
4033 }
4034 % thumbtabs = title
4035 \goptval{thumbtabs}{title}
4036 {
4037 \desc{only show the title}
4038 }
4039 % thumbtabs = both
4040 \goptval{thumbtabs}{both}
4041 {
4042 \desc{show both the number (if applicable) and the title}
4043 }
4044 % thumbtabs = none
4045 \goptval{thumbtabs}{none}
4046 {
4047 \desc{don't show either the number or title}
4048 }
4049 % ttbtitle
4050 \gstyopt{ttb\-title}
4051 {
4052 \inpackage{flowfram}
4053 \providedby{\sty{flowfram} v1.0}
4054 \desc{include the title in the \idxpl{thumbtab} (if enabled)}
4055 \note{preamble only}
4056 \field{see}{opt.thumbtabs}
4057 }
4058 % ttbnotitle
4059 \gstyopt{ttb\-no\-title}
4060 {
4061 \inpackage{flowfram}
4062 \providedby{\sty{flowfram} v1.0}
4063 \desc{don't include the title in the \idxpl{thumbtab} (if enabled)}
4064 \note{preamble only}
4065 \field{see}{opt.thumbtabs}
4066 }
4067 % ttbnum
4068 \gstyopt{ttb\-num}
4069 {
4070 \inpackage{flowfram}
4071 \providedby{\sty{flowfram} v1.0}
4072 \desc{include the number in the \idxpl{thumbtab} (if enabled)}
4073 \note{preamble only}
4074 \field{see}{opt.thumbtabs}
4075 }
4076 % ttbnonum
4077 \gstyopt{ttb\-no\-num}
4078 {
4079 \inpackage{flowfram}
4080 \providedby{\sty{flowfram} v1.0}
4081 \desc{don't include the number in the \idxpl{thumbtab} (if enabled)}
4082 \note{preamble only}
4083 \field{see}{opt.thumbtabs}
4084 }
4085 % FILE EXTENSIONS
4086 \gext{tex}{}% .tex
4087 \gext{cls}{}% .cls
4088 \gext{sty}{}% .sty
4089 \gext{aux}{}% .aux
4090 \gext{toc}{}% .toc
4091 \gext{ttb}{}% .ttb
4092 % FILES
4093 \gfile{pdf\dhyphen trans.tex}{}% pdf-trans
4094 \gapp{kpse\-which}{}% kpsewhich
4095 % GENERAL PACKAGES / CLASSES
4096 \gpkg{hyper\-ref}{}% hyperref.sty
4097 \gpkg{geometry}{}% geometry.sty
4098 \gpkg{long\-table}{}% longtable.sty
4099 \gpkg{super\-tabular}{}% supertabular.sty
4100 \gpkg{color}{}% color.sty
4101 \gpkg{fancybox}{}% fancybox.sty
4102 \gpkg{pgf}{}% pgf.sty
4103 \gmodule{decorations.text}{\parent{pkg.pgf}}% decorations.text pgf library
4104 \gpkg{tikz}{}% tikz.sty
4105 \gpkg{lua\-tex85}{}% luatex85.sty
4106 \gpkg{pst\dhyphen char}{}% pst-char.sty
4107 \gcls{memoir}{}% memoir.cls
4108 \gcls{scr\-book}{}% scrbook.cls
4109 \gcls{beamer}{}% beamer.cls
4110 \gcls{book}{}% book.cls
4111 \gcls{report}{}% report.cls
4112 \gpkg{shape\-par}{}% shapepar.sty
4113 \gpkg{graphicx}{}% graphicx.sty
4114 % GENERAL COUNTERS
4115 \gctr{page}{}% page counter
4116 \gctr{sec\-num\-depth}{}% secnumdepth counter
4117 % GENERAL COMMANDS
4118 \gcmd{text\-width}{} % \textwidth
4119 \gcmd{text\-height}{} % \textheight
4120 \gcmd{paper\-width}{} % \paperwidth
4121 \gcmd{paper\-height}{} % \paperheight
4122 \gcmd{line\-width}{}% \linewidth
4123 \gcmd{hsize}{} % \hsize
4124 \gcmd{vsize}{} % \vsize
4125 \gcmd{base\-line\-skip}{}% \baselineskip
4126 \gcmd{column\-sep}{}% \columnsep
4127 \gcmd{column\-width}{}% \columnwidth
4128 \gcmd{column\-sep\-rule}{}% \columnseprule
4129 \gcmd{top\-margin}{}% \topmargin
4130 \gcmd{head\-height}{}% \headheight
4131 \gcmd{head\-sep}{}% \headsep
4132 \gcmd{voffset}{}% \voffset
4133 \gcmd{odd\-side\-margin}{}% \oddsidemargin
4134 \gcmd{even\-side\-margin}{}% \evensidemargin
4135 \gcmd{margin\-par}{}% \marginpar
4136 \gcmd{margin\-par\-width}{}% \marginparwidth
4137 \gcmd{par}{}% \par
4138 \gcmd{par\-box}{}% \parbox
4139 \gcmd{par\-indent}{}% \parindent
4140 \gcmd{fbox}{}% \fbox
4141 \gcmd{fbox\-sep}{}% \fboxsep
4142 \gcmd{fbox\-rule}{}% \fboxrule
4143 \gcmd{ovalbox}{}% \ovalbox
4144 \gcmd{Ovalbox}{}% \Ovalbox
4145 \gcmd{doublebox}{}% \doublebox
4146 \gcmd{shadowbox}{}% \shadowbox
4147 \gcmd{table\-of\-contents}{}% \tableofcontents
4148 \gcmd{main\-matter}{}% \mainmatter
4149 \gcmd{front\-matter}{}% \frontmatter
4150 \gcmd{back\-matter}{}% \backmatter
4151 \gcmd{clear\-page}{}% \clearpage
4152 \gcmd{clear\-double\-page}{}% \cleardoublepage
4153 \gcmd{new\-page}{}% \newpage
4154 \gcmd{page\-break}{}% \pagebreak
4155 \gcmd{input}{}% \input
4156 \gcmd{color}{}% \color
4157 \gcmd{fcolor\-box}{}% \fcolorbox
4158 \gcmd{cap\-tion}{}% \caption
4159 \gcmd{label}{}% \label
4160 \gcmd{ref}{}% \ref
4161 \gcmd{page\-ref}{}% \pageref
4162 \gcmd{hyper\-link}{}% \hyperlink
4163 \gcmd{geo\-metry}{}% \geometry
4164 \gcmd{page\-style}{}% \pagestyle
4165 \gcmd{this\-page\-style}{}% \thispagestyle
4166 \gcmd{chapter\-mark}{}% \chaptermark
4167 \gcmd{section\-mark}{}% \sectionmark
4168 \gcmd{sub\-section\-mark}{}% \subsectionmark
4169 \gcmd{pdf\-info}{}% \pdfinfo
4170 \gcmd{hyper\-set\-up}{}% hypersetup
4171 \gcmd{pgf\-point}{}% \pgfpoint
4172 \gcmd{set\-length}{}% \setlength
4173 \gcmd{@make\-chap\-ter\-head}{}% \@makechapterhead
4174 \gcmd{@odd\-foot}{}% \@oddfoot
4175 \gcmd{@even\-foot}{}% \@evenfoot
4176 \gcmd{@odd\-head}{}% \@oddhead
4177 \gcmd{@even\-head}{}% \@evenhead
4178 \gcmd{left\-mark}{}% \leftmark
4179 \gcmd{right\-mark}{}% \rightmark
4180 \gcmd{appendix}{}% \appendix
4181 \gcmd{uncover}{}% \uncover (beamer)
4182 % \parshape
4183 \gcmd{par\-shape}{
4184 \syntax{\dequals \meta{n} \meta{i\textsubscript{1}} \meta{l\textsubscript{1}} \meta{i\textsubscript{2}} \meta{l\textsubscript{2}} \ldots\ \meta{i\textsubscript{n}} \meta{l\textsubscript{n}}}
4185 }
4186 \gcmd{shape\-par}{}% \shapepar
4187 \gcmd{Shape\-par}{}% \Shapepar
4188 \gcmd{include\-graphics}{}% \includegraphics
4189 \gcmd{item}{}% \item
4190 \gcmd{verb}{}% \verb
4191 \gcmd{centering}{}% \centering
4192 \gcmd{ragged\-left}{}% \raggedleft
4193 \gcmd{ragged\-right}{}% \raggedright
4194 % GENERAL ENVIRONMENTS
4195 \genv{doc\-u\-ment}{} % document environment
4196 \genv{figure}{}
4197 \genv{figure*}{}
4198 \genv{table}{}
4199 \genv{table*}{}
4200 \genv{pgf\-picture}{}% pgfpicture environment
4201 \genv{pgf\-scope}{}% pgfscope environment
4202 \genv{lr\-box}{}% lrbox
4203 % GENERAL PAGE STYLES
4204 \gpagestyle{plain}{}% \ps@plain
4205 \gpagestyle{empty}{}% \ps@empty
4206 \gpagestyle{headings}{}% \ps@headings
4207 \gpagestyle{my\-head\-ings}{}% \ps@myheadings
4208 % TERMS
4209 \gterm{typeblock}
4210 {
4211 \desc{The area of the page where the main body of the text goes.
4212 The width and height of this area are given by \gls{typeblockwidth}
4213 and \gls{typeblockheight}. This lengths are initialised to
4214 \gls{textwidth} and \gls{textheight}, and may be adjusted at the
4215 start of the \env{document} environment}
4216 }
4217 \gterm{flow-frame}
4218 {
4219 \common
4220 \name{flow frame}
4221 \desc{The frames in a document such that the contents of the
4222 \env{document} environment flow from one frame to the next in
4223 the order that they were defined. There must be at least one flow frame
4224 on every page.}
4225 }
4226 \gterm{static-frame}
4227 {
4228 \common
4229 \name{static frame}
4230 \desc{Frames in which text is fixed in place. The contents are fixed until
4231 explicitly changed or cleared via the \frameopt{clear} key
4232 in \gls{setstaticcontents}}
4233 }
4234 \gterm{dynamic-frame}
4235 {
4236 \common
4237 \name{dynamic frame}
4238 \desc{Frames in which text is fixed in place, but the contents are re-typeset
4239 each time the frame is displayed}
4240 }
4241 \gterm{header-frame}
4242 {
4243 \name{header frame}
4244 \desc{a special \idx{dynamic-frame} with the label
4245 \speciallabel{header} created either with \gls{makedfheaderfooter}
4246 or via \idx{FlowframTk}['s] export function,
4247 or the special \idx*{dynamic-frame} with the label
4248 \speciallabel{evenheader} that may be created with
4249 \idx{FlowframTk}. If \speciallabel{evenheader} doesn't exist,
4250 the \speciallabel{header} frame will be used for the page header
4251 on both odd and even pages. If \speciallabel{evenheader} does exist,
4252 it will be used as the page header for even pages if the document
4253 two-sided setting is on. This special behaviour must be enabled either
4254 with \gls{makedfheaderfooter} or via \idx{FlowframTk}}
4255 }
4256 \gterm{footer-frame}
4257 {
4258 \name{footer frame}
4259 \desc{a special \idx{dynamic-frame} with the label
4260 \speciallabel{footer} created either with \gls{makedfheaderfooter}
4261 or via \idx{FlowframTk}['s] export function,
4262 or the special \idx*{dynamic-frame} with the label
4263 \speciallabel{evenfooter} that may be created with
4264 \idx{FlowframTk}. If \speciallabel{evenfooter} doesn't exist,
4265 the \speciallabel{footer} frame will be used for the page footer
4266 on both odd and even pages. If \speciallabel{evenfooter} does exist,
4267 it will be used as the page footer for even pages if the document
4268 two-sided setting is on. This special behaviour must be enabled either
4269 with \gls{makedfheaderfooter} or via \idx{FlowframTk}}
4270 }
4271 \gterm{frame}
4272 {
4273 \common
4274 \desc{A rectangular area of the page in which text can be placed (not to be
4275 confused with a \idx{fcmd}). There are three types:
4276 \idx{flow}, \idx{static} and \idx{dynamic}}
4277 }
4278 \gterm{fcmd}
4279 {
4280 \name{frame making command}
4281 \desc{A \LaTeX\ command which places some kind of border around its
4282 argument. For example: \gls{fbox}}
4283 }
4284 \gterm{pglist}
4285 {
4286 \name{page list}
4287 \desc{A list of pages. This can either be a single keyword:
4288 \optfmt{all},
4289 \optfmt{odd}, \optfmt{even} or \optfmt{none}, or it can
4290 be a comma-separated list of individual page numbers or
4291 page ranges. For example: \code{\textless3,5,7-11,\textgreater15}
4292 indicates pages 1,2,5,7,8,9,10,11 and all pages after page 15.
4293 These numbers refer to the decimal value of the page counter by
4294 default. To make them refer to the absolute page number use
4295 the package option \optval{pages}{absolute}}
4296 }
4297 \gterm{pgrange}
4298 {
4299 \name{page range}
4300 \desc{Page ranges can be closed (for example \code{5-10}) or
4301 open (for example, \code{\textless7} or \code{\textgreater9})}
4302 }
4303 \gterm{bbox}
4304 {
4305 \name{bounding box}
4306 \field{plural}{bounding boxes}
4307 \desc{The bounding box of a frame is the area allocated for the
4308 contents of that frame. However the text may not completely fill that
4309 area, and it is possible that the text may overflow that area}
4310 }
4311 \gtermabbr{IDN}{IDN}{identification number}
4312 {
4313 \desc{A unique number assigned to each frame, which you can use to identify
4314 the frame when modifying its appearance. Example: if you
4315 have defined 3 \idxpl{flow-frame}, 2 \idxpl{static-frame} and
4316 1 \idx{dynamic-frame}, the \idxpl{flow-frame} will have IDNs 1, 2 and 3,
4317 the \idxpl{static-frame} will have IDNs 1 and 2, and the
4318 \idx{dynamic-frame} will have IDN 1}
4319 }
4320 \gtermabbr{IDL}{IDL}{identification label}
4321 {
4322 \desc{A unique label which can be assigned to a frame, enabling you to
4323 refer to the frame by label instead of by its \idx{IDN}}
4324 }
4325 \gapp{flow\-fram\-tk}{}
4326 \gterm{Flow\-fram\-Tk}% FlowframTk
4327 {
4328 \desc{A Java application with a graphical user interface which
4329 can be used to construct frames for use with the \sty{flowfram}
4330 package. It can also be used to create vector graphics images which
4331 can be exported as \ext{tex} files containing a \env{pgfpicture}
4332 environment (defined by the \sty{pgf} package). The supplementary
4333 package \sty{flowframtkutils} provided with \sty{flowfram} will
4334 need to be loaded by any document that inputs these files.
4335 The \sty{flowframtkutils} package will also be automatically added to
4336 any \ext+{cls} or \ext+{sty} files created by \appfmt{flowframtk}
4337 (version 0.8.8 onwards). The latest stable release is available on
4338 \CTANpkg{flowframtk} or experimental releases can be found
4339 on \urlfootref{https://github.com/nlct/flowframtk/releases}{GitHub}.
4340 FlowFramTk was originally called JpgfDraw (a Java \sty{pgf}-code
4341 generating drawing application). Ensure you have at least version
4342 0.8.8 to use the features mentioned in this manual}
4343 }
4344 % GENERAL INDEX
4345 \gidx{flow}{\parent{frame}\field{alias}{flow-frame}}
4346 \gidx{static}{\parent{frame}\field{alias}{static-frame}}
4347 \gidx{dynamic}{\parent{frame}\field{alias}{dynamic-frame}}
4348 \gidx{dynamic-frame.special}
4349 {
4350 \name{dynamic frame (special)}
4351 \field{text}{special}
4352 \field{alias}{idx.speciallabel}
4353 }
4354 \gidx{IDL.special}
4355 {
4356 \name{IDL (special)}
4357 \field{text}{special}
4358 \field{alias}{idx.speciallabel}
4359 }
4360 \gidx{thumbtab}{}
4361 \gidx{thumbtab-label}
4362 {
4363 \name{thumbtab label}
4364 \field{alias}{idx.speciallabel}
4365 }
4366 \gidx{minitoc}{\name{mini-toc}}
4367 \gidx{main-matter}{\name{main matter}}
4368 \gidx{front-matter}{\name{front matter}}
4369 \gidx{back-matter}{\name{back matter}}
4370 \gidx{hyperlink}{}
4371 \gidx{output-routine}{\name{output routine}}
4372 \gidx{page-style}{
4373 \name{page styles}
4374 \field{text}{page style}
4375 \field{seealso}{header-frame,footer-frame}
4376 }
4377 \gidx{header}
4378 {
4379 \name{header (page)}
4380 \field{text}{header}
4381 \field{seealso}{header-frame,idx.page-style}
4382 }
4383 \gidx{footer}
4384 {
4385 \name{footer (page)}
4386 \field{text}{footer}
4387 \field{seealso}{footer-frame,idx.page-style}
4388 }
4389 \gidx{verbatim}{}
4390 }
4391
4392 % Page layout stuff
4393
4394 % set up some background frames to liven up the title page
4395 \newlength{\leftwidth}
4396 \newlength{\rightwidth}
4397
4398 \computeleftedgeodd{\leftwidth}
4399 \setlength{\leftwidth}{-\leftwidth}
4400 \addtolength{\leftwidth}{0.4\textwidth}
4401 \setlength{\rightwidth}{\paperwidth}
4402 \addtolength{\rightwidth}{-\leftwidth}
4403 % only defined on page 1 unfortunately the document
4404 % has more than one page 1, so will need to change the settings after the title page
4405 \vtwotone[1]{\leftwidth}{magenta}{backleft}{\rightwidth}{[cmyk]{0,0.48,0,0}}{backright}
4406
4407 % This is for the back cover.
4408 \vtwotone[none]{\rightwidth}{[cmyk]{0,0.48,0,0}}{lastbackright}{\leftwidth}{magenta}{lastbackleft}
4409
4410 \vtwotonetop[odd]{1cm}{\leftwidth}{magenta}{oddtopleft}{\rightwidth}{[cmyk]{0,0.48,0,0}}{oddtopright}
4411 \vtwotonetop[even]{1cm}{\rightwidth}{[cmyk]{0,0.48,0,0}}{eventopleft}{\leftwidth}{magenta}{eventopright}
4412
4413 % Set the margin width
4414 \setlength{\marginparwidth}{2cm}
4415
4416 % now set up main document frames. Each page has a dynamic
4417 % frame for the chapter heading, and a flow frame for the
4418 % text.
4419 \newflowframe{0.6\textwidth}{\textheight}{0pt}{0pt}[main]
4420 \newdynamicframe{0.38\textwidth}{\textheight}{0.62\textwidth}{0pt}[chaphead]
4421
4422 \twocolumninarea[none]{0.6\textwidth}{\textheight}{0pt}{0pt}[left,right]
4423
4424 % swap them round on even pages
4425 \setflowframe*{main}{evenx=0.4\typeblockwidth}
4426 \setdynamicframe*{chaphead}{evenx=0pt,clear}
4427
4428 % make a frames to illustrate shaped frames
4429 \newstaticframe[none]{0.38\typeblockwidth}{0.55\typeblockheight}{0.62\typeblockwidth}{0.45\typeblockheight}[shapedt]
4430 \setstaticframe*{shapedt}{evenx=0pt,clear}
4431
4432 \newstaticframe[none]{0.38\typeblockwidth}{0.45\typeblockheight}{0.62\typeblockwidth}{0pt}[shapedb]
4433 \setstaticframe*{shapedb}{evenx=0pt,clear}
4434
4435 \newdynamicframe{0.38\typeblockwidth}{\typeblockheight}{0.62\typeblockwidth}{0pt}[examples]
4436 \setdynamicframe*{examples}{evenx=0pt,valign=t,clear}
4437
4438 % set the margins to appear on the spine side of the page
4439 \setflowframe*{main}{margin=inner}
4440
4441 \IfTeXParserLib
4442 {
4443 \newcommand\thisdoc{the PDF version of this document}
4444 \newcommand\chapdesc[1]{\par\emph{#1}\par}
4445 }
4446 {
4447 \newcommand\thisdoc{this document}
4448 % put chapter headings in dynamic frame with IDL chaphead
4449 \ChapterInDynamic*{chaphead}
4450
4451 \addtokomafont{chapter}{\color{blue}}
4452 \renewcommand\chapterheadstartvskip{}
4453
4454 % append chapter minitocs to same dynamic frame.
4455 \appenddfminitoc*{chaphead}
4456
4457 \newcommand{\chapdesc}[1]{%
4458 \appenddynamiccontents*{chaphead}{\par \normalfont\emph{#1}}%
4459 }
4460
4461 \renewcommand{\flowframheaderchapprefix}{}
4462 \renewcommand{\glsglossarymark}[1]{}
4463 }
4464
4465
4466 \flowframsetup{
4467 dynamic-empty-page-style=hide,
4468 toc-thumbtabs,
4469 thumbtabs=number,
4470 thumbtab-text=normal
4471 }
4472
4473 % Make thumb tabs (specify each tab to be 0.75in high)
4474
4475 \makethumbtabs{0.6in}
4476 \enableminitoc
4477
4478 % Thumbtabs are grey by default which looks a bit boring,
4479 % so change the colours
4480 \setthumbtab{1}{backcolor=[rgb]{0.15,0.15,1}}
4481 \setthumbtab{2}{backcolor=[rgb]{0.2,0.2,1}}
4482 \setthumbtab{3}{backcolor=[rgb]{0.25,0.25,1}}
4483 \setthumbtab{4}{backcolor=[rgb]{0.3,0.3,1}}
4484 \setthumbtab{5}{backcolor=[rgb]{0.35,0.35,1}}
4485 \setthumbtab{6}{backcolor=[rgb]{0.4,0.4,1}}
4486 \setthumbtab{7}{backcolor=[rgb]{0.45,0.45,1}}
4487 \setthumbtab{8}{backcolor=[rgb]{0.5,0.5,1}}
4488 \setthumbtab{9}{backcolor=[rgb]{0.55,0.55,1}}
4489
4490 % change the text style on the thumbtabs
4491 \newcommand{\thumbtabstyle}[1]{%
4492 \centering
4493 \bfseries\large\sffamily #1
4494 }
4495
4496 \setthumbtab{all}{valign=c,style=thumbtabstyle,textcolor=white}
4497
4498 % Put headers and footers in dynamic frames
4499 \makedfheaderfooter
4500
4501 % set default page style
4502
4503 \pagestyle{ffheadings}
4504
4505 \newlength{\xoffset}
4506 \computerightedgeodd{\xoffset}
4507 \addtolength{\xoffset}{-2cm}
4508 \newlength{\yoffset}
4509 \computebottomedge{\yoffset}
4510
4511 \newcommand{\footstyle}[1]{\bfseries\LARGE #1}
4512
4513 \setdynamicframe*{footer}{oddx=\xoffset,y=\yoffset,width=2cm,height=2cm,
4514 backcolor=blue,textcolor=white,style=footstyle,pages=none}
4515
4516 % now work out the x offset for the even pages
4517
4518 \computeleftedgeeven{\xoffset}
4519 \setdynamicframe*{footer}{evenx=\xoffset}
4520
4521 \title{Creating Flow Frames for Posters, Brochures or
4522 Magazines using flowfram.sty version 2.2}
4523 \author{Nicola L.C. Talbot\\[10pt]
4524 Dickimaw Books\\
4525 \href{https://www.dickimaw-books.com/}{\nolinkurl{dickimaw-books.com}}}
4526 \date{2026-04-25}
4527
4528 \begin{document}
4529
4530 % swap frames around for title page
4531 \ffswapoddeven*{main}
4532 \dfswapoddeven*{chaphead}
4533
4534 \pagenumbering{alph}
4535 \maketitle
4536
4537 % swap frames back again
4538 \ffswapoddeven*{main}
4539 \dfswapoddeven*{chaphead}
4540
4541 \htmlavailable
4542
4543 \begin{information}
4544 Version 2.0 has been mostly rewritten using \LaTeX3 commands and
4545 updated to take into account changes to the \idx{output-routine} in the
4546 \LaTeX\ kernel. Some defaults have changed. If there are any compatibility issues you can
4547 rollback to v1.18 or v1.17. For example:
4548 \begin{codebox}
4549 \cmd{usepackage}\marg{flowfram}[=v1.18]
4550 \end{codebox}
4551 Note that v1.18 was never publicly released but is just a minor
4552 change to v1.17 to allow for rollback with corrections.
4553
4554 The rollback files are frozen snapshots of older versions.
4555 Bear in mind that those old versions may not work properly with
4556 new kernels.
4557 \end{information}
4558
4559 %suppress the background
4560 \setstaticframe*{backleft}{pages=none}
4561 \setstaticframe*{backright}{pages=none}
4562
4563 \frontmatter
4564 % make the footers appear from this point on
4565 \setdynamicframe*{footer}{pages=all}
4566
4567 \tableofcontents
4568 \listofexamples
4569
4570 \mainmatter
4571 \enablethumbtabs
4572 \chapter{Introduction}\label{sec:intro}
4573 \chapdesc{This chapter provides a brief overview of the package,
4574 the package options and the various frame types.}
4575
4576 This document is the user manual for the \sty{flowfram} package.
4577 Advanced users wanting further details of the package should read
4578 the documented code \filefmt{flowfram-code.pdf}. Sample files are provided
4579 with the documentation.
4580
4581 The \sty{flowfram} package is a \LaTeX\ package designed to
4582 enable you to create text \idxpl{frame} in a document such that
4583 the contents of the \env{document} environment flow from one
4584 \idx*{frame} to the next in the order that they were defined.
4585 This is useful for creating posters
4586 or magazines or any other form of document that does not
4587 conform to the standard one or two column layout. There's an
4588 optional helper application called \idx{FlowframTk} (distributed
4589 separately) if you prefer to use a graphical user interface to set up the
4590 document layout (see \sectionref{sec:flowframtk}).
4591
4592 Each \idx{frame} has an \idx{IDN} that's unique to the particular
4593 type of \idx{frame} that may be used to identify it. You may also
4594 assign an \idx{IDL} for reference purposes to make it easier to
4595 remember. In general, a command or environment with both a starred and unstarred
4596 version that requires an ID will need the \idx{IDN} for the
4597 unstarred version and the \idx{IDL} for the starred version.
4598 Some commands may allow keywords (\optfmt{all}, \optfmt{odd}
4599 or \optfmt{even}) instead of a numeric value for the unstarred versions.
4600
4601 \begin{important}
4602 The \sty{flowfram} package tries to make \TeX\ do
4603 something it wasn't originally designed to do. It modifies the
4604 \idx{output-routine} and may not always perform as desired. Extra care
4605 must be taken if a paragraph spans frames of unequal width due to
4606 the asynchronous nature of \TeX's \idx{output-routine}. (See
4607 \sectionref{sec:unexpectedoutput}.)
4608 The \sty{flowfram} package has only been tested on a limited number
4609 of packages, and may well conflict with packages that also modify
4610 the \idx{output-routine} or rely on it being unmodified.
4611 You can switch back to the normal \idx{output-routine} with
4612 \gls{FlowFramRestoreOR} and then restore \sty{flowfram}['s]
4613 modified \idx{output-routine} with \gls{FlowFramUnrestoreOR} if necessary (see
4614 \sectionref{sec:outputroutine}).
4615 \end{important}
4616
4617 If the \sty{geometry} package is required, it's best to load it
4618 first and setup the page dimensions before \sty{flowfram} is loaded. You can
4619 load \sty{geometry} afterwards and the \idx{typeblock} dimensions will
4620 automatically be updated after it has been loaded, but they won't be
4621 correct if you later change the settings with \gls{geometry}.
4622 The lengths governing the \idx{typeblock} are:
4623
4624 \cmddef{typeblockwidth}
4625 The width of the \idx{typeblock}. This is initialised to
4626 \gls{textwidth}.
4627
4628 \cmddef{typeblockheight}
4629 The height of the \idx{typeblock}. This is initialised to
4630 \gls{textheight}.
4631
4632 \cmddef{typeblockoffsety}
4633 The vertical offset of the \idx{typeblock}. This is initialised to
4634 the sum of \gls{topmargin}, \gls{headheight}, \gls{headsep} and \gls{voffset}.
4635
4636 These lengths identify the dimensions and vertical offset of the
4637 \idx{typeblock} to ensure that all defined \idxpl{frame} are in the
4638 correct relative positions. If these dimensions change then the
4639 available area used by commands like \gls{onecolumn},
4640 \gls{twocolumn} and \gls{Ncolumn} might be incorrect.
4641
4642 \begin{information}
4643 The \sty{geometry} package's \optfmt{showframes} option will be
4644 confused by \sty{flowfram}['s] frames. You can instead use
4645 \sty{flowfram}['s] \opt{draft} option to show the layout.
4646 \end{information}
4647
4648 If you need to switch \idxpl{frame} on and off, it's best to use the
4649 \opteqvalref{pages}{absolute} package option if the \ctr{page}
4650 counter is reset in the document.
4651
4652 \mExampleref{ex:twocolumnsidepanel} creates three
4653 \idxpl{flow-frame}. The first is labelled \qt{single} (only shown on absolute
4654 page~1), and the other two are labelled \qt{left} and \qt{right} (shown on all pages except the
4655 first). The example also creates a \idx{dynamic-frame} labelled
4656 \qt{sidepanel} that's shown on all pages (the default \idx{pglist}
4657 setting). The \opt{draft} package
4658 option is used to show the outlines of each frame and the
4659 \idx{typeblock}. The \idxpl{flow-frame} created with \gls{onecolumn}
4660 and \gls{twocolumn} are slightly shorter than the \idx{typeblock}
4661 due to the default adjustment setting (see \sectionref{sec:Ncolumn}).
4662 \begin{codebox}[before upper app=\small]
4663 \cmd{documentclass}\oarg{11pt}\marg{book}
4664 \cmd{usepackage}\oarg{a4paper,outer=3in,marginparwidth=2cm,
4665 columnsep=4pt}\marg{geometry}
4666 \cmd{usepackage}\oarg{\opteqvalref{pages}{absolute},\opt{draft}}\marg{flowfram}
4667 \cmd{usepackage}\marg{lipsum}\comment{provide dummy text}
4668 \gls{pagestyle}\marg{plain}
4669 \gls{onecolumn}\oarg{1}\oarg{single}\comment{only use on page 1}
4670 \gls{setflowframe}*\marg{single}\marg{\frameoptval{margin}{inner}}
4671 \gls{twocolumn}\oarg{>1}\oarg{left,right}\comment{all pages except p.1}
4672 \gls{setflowframe}*\marg{left}\marg{\frameoptval{margin}{left}}
4673 \gls{setflowframe}*\marg{right}\marg{\frameoptval{margin}{right}}
4674 \gls{newdynamicframe}\marg{2in}\marg{\gls{typeblockheight}}\comment{width \& height}
4675 \marg{\gls{typeblockwidth}+\gls{columnsep}}\marg{0pt}\comment{position}
4676 \oarg{sidepanel}\comment{label}
4677 \cmd{newcommand}\marg{\cmd{Hugebf}}\marg{\cmd{Huge}\cmd{bfseries}}
4678 \gls{setdynamicframe}*\marg{sidepanel}
4679 \marg{\frameoptvalm{evenx}{-2in-\gls{columnsep}}, \frameoptvalm{style}{Hugebf}}
4680 \gls{setdynamiccontents}*\marg{sidepanel}\marg{Side Panel on
4681 Page~\thectr{page}.}
4682 \cbeg{document}
4683 First page.\gls{marginpar}\marg{note1}
4684 \gls{mainmatter}
4685 Start sample.\gls{marginpar}\marg{note2} \cmd{lipsum}\oarg{3-5}
4686 End sample.\gls{marginpar}\marg{note3}
4687 \cend{document}
4688 \end{codebox}
4689
4690 \createresultexampleindynamicframe*
4691 [title={Frame Page Lists},arara={pdflatex},border,
4692 fontsize=11,class=book,pagestyle=plain,
4693 pages={1,2,3},pagesperrow=2,pagesep=2pt,solofirst,
4694 label={ex:twocolumnsidepanel},
4695 description={Example document with lipsum filler text in two
4696 columns with a side panel}
4697 ]
4698 {examples}
4699 {%
4700 \cmd{usepackage}\oarg{a4paper,outer=3in,marginparwidth=2cm,columnsep=4pt}\marg{geometry}\nl
4701 \cmd{usepackage}\oarg{pages=absolute,draft}\marg{flowfram}\nl
4702 \cmd{usepackage}\marg{lipsum}\commentnl{provide dummy text}%
4703 \gls{onecolumn}\oarg{1}\oarg{single}\commentnl{only use on page 1}%
4704 \gls{setflowframe}*\marg{single}\marg{margin=inner}\nl
4705 \gls{twocolumn}\oarg{>1}\oarg{left,right}\commentnl{use on all pages except p.1}%
4706 \gls{setflowframe}*\marg{left}\marg{margin=left}\nl
4707 \gls{setflowframe}*\marg{right}\marg{margin=right}\nl
4708 \gls{newdynamicframe}\marg{2in}\marg{\gls{typeblockheight}}\nlsp
4709 \marg{\gls{typeblockwidth}+\gls{columnsep}}\marg{0pt}\oarg{sidepanel}\nl
4710 \cmd{newcommand}\marg{\cmd{Hugebf}}\marg{\cmd{Huge}\cmd{bfseries}}\nl
4711 \gls{setdynamicframe}*\marg{sidepanel}\nlsp
4712 \marg{evenx={-2in-\gls{columnsep}},\nlsp
4713 style=Hugebf\nl
4714 }
4715 \codepar
4716 \gls{setdynamiccontents}*\marg{sidepanel}\marg{Side Panel on
4717 Page~\thectr{page}.}
4718 }
4719 {%
4720 First page.\gls{marginpar}\marg{note1}\nl
4721 \gls{mainmatter}\nl
4722 Start sample.\gls{marginpar}\marg{note2}\nl
4723 \cmd{lipsum}\oarg{3-5}\nl
4724 End sample.\gls{marginpar}\marg{note3}
4725 }
4726
4727 Note that this example document has narrow columns with a small gap
4728 between them. This can cause overfull lines and a cramped layout,
4729 but it's for illustrative purposes only.
4730
4731 In \exampleref{ex:twocolumnsidepanel} the \ctr{page} counter is reset by \gls{mainmatter}
4732 (which also does \gls{cleardoublepage}).
4733 With \opteqvalref{pages}{relative}, the \idx{pglist} \qt{1} refers
4734 to any page where the \ctr{page} counter is 1 so the \qt{single}
4735 \idx{flow-frame} would be used on both the first and third page and
4736 the \qt{left} and \qt{right} \idxpl{flow-frame} (which have
4737 \idx{pglist} \code{>1}) wouldn't be selected on the third page but
4738 would still be selected on the second page. However, with
4739 \opteqvalref{pages}{absolute} the \idxpl{pglist} now refer to the
4740 absolute page.
4741
4742 The \sty{flowfram} package provides three types of \gls{frame}:
4743 \idxpl{flow-frame}, \idxpl{static-frame} and \idxpl{dynamic-frame},
4744 each with a custom width, height and position. (These may be changed
4745 later, see \sectionref{sec:modattr}.)
4746 The main contents of the \env{document} environment flow from
4747 one \idx{flow-frame} to the next in the order of definition
4748 (for the \idxpl{flow-frame} that are valid on the current page),
4749 whereas the contents of the \idx{static} and \idx{dynamic} frames
4750 are set explicitly using commands such as \gls{setstaticcontents}
4751 (see \sectionref{sec:static})
4752 and \gls{setdynamiccontents} (see \sectionref{sec:dynamic}).
4753
4754 \begin{important}
4755 Unless otherwise stated, all co-ordinates are relative to the
4756 bottom left hand corner of the \idx{typeblock}. If you have
4757 a two-sided document, the absolute position of the \gls*{typeblock}
4758 may vary depending on the values of \gls{oddsidemargin}
4759 and \gls{evensidemargin}, and all the \idxpl*{frame} will shift
4760 accordingly unless otherwise indicated. Alternative positions for
4761 even pages can be set with the \frameopt{evenx} and \frameopt{eveny}
4762 attributes but those co-ordinates are still relative to the position of the even
4763 page \idx{typeblock}.
4764 \end{important}
4765
4766 The \idx{pglist} (\frameopt{pages}), exclusion list
4767 (\frameopt{excludepages}), and the \frameopt{hide} and
4768 \frameopt{hidethis} settings determine whether or not a
4769 \idx{frame} is valid for a particular page.
4770
4771 \section{Frame Stacking Order}
4772 \label{sec:stacking}
4773
4774 \setdynamiccontents*[html={show,div,class=figure}]{examples}{%
4775 \begin{staticfigure}
4776 \includeteximage[scale=0.5]{images/flowframe-layers1}
4777 \includeteximage[scale=0.5]{images/flowframe-layers2}
4778 \caption{Frame Layers}\label{fig:framelayers}
4779 \end{staticfigure}
4780 }
4781
4782 The material on each page is placed in the following order:
4783 \begin{enumerate}
4784 \item Each \idx{static-frame} that's valid for the current page in ascending
4785 order of \idx{IDN} (shown in magenta in \figureref{fig:framelayers}).
4786
4787 \item Each \idx{flow-frame} that's valid for the current page in ascending
4788 order of \idx{IDN} (shown in yellow in \figureref{fig:framelayers}).
4789
4790 \item Each \idx{dynamic-frame} that's valid for the current page in ascending
4791 order of \idx{IDN} (shown in cyan in \figureref{fig:framelayers}).
4792
4793 \item \Glspl{bbox} if the \opt{draft} package option has been used.
4794 \end{enumerate}
4795
4796 This ordering can be used to determine if you want something
4797 to overlay or underlay everything else on the page.
4798 Note that the \idxpl{frame} do not interact with each other. If
4799 you have two or more overlapping \idxpl*{frame}, the text in each
4800 \idx*{frame} will not attempt to wrap around the other
4801 \idxpl*{frame}, but will simply overwrite them.
4802
4803 \begin{information}
4804 For non-rectangular \idxpl{frame}, see \sectionref{sec:parshape}.
4805 (That is, normal \staticordynamicframes\ that have their content
4806 shaped using \gls{parshape} or \gls{shapepar}\slash\gls{Shapepar}.)
4807 \end{information}
4808
4809 \mExampleref{ex:stackingorder} demonstrates the layers with a strange
4810 overlapping layout. Note that this example is intentionally weird
4811 and is not a recommendation!
4812
4813 First, some \idxpl{flow-frame} are defined. I've given them labels
4814 to make them easier to reference when changing their attributes:
4815 \begin{codebox}
4816 \gls{newflowframe}
4817 \marg{0.4\gls{typeblockwidth}}\comment{width}
4818 \marg{0.6\gls{typeblockwidth}}\comment{height}
4819 \marg{0pt}\comment{x}
4820 \marg{0.6\gls{typeblockwidth}}\comment{y}
4821 [upper]\comment{label}
4822 \gls{setflowframe}*\marg{upper}\marg{\frameoptval{border}{plain}}
4823 \codepar
4824 \gls{newflowframe}
4825 \marg{0.4\gls{typeblockwidth}}\comment{width}
4826 \marg{0.6\gls{typeblockwidth}}\comment{height}
4827 \marg{0.6\gls{typeblockwidth}}\comment{x}
4828 \marg{0pt}\comment{y}
4829 [lower]\comment{label}
4830 \gls{setflowframe}*\marg{lower}\marg{\frameoptval{border}{shadowbox}}
4831 \codepar
4832 \gls{newflowframe}
4833 \marg{0.4\gls{typeblockwidth}}\comment{width}
4834 \marg{0.6\gls{typeblockwidth}}\comment{height}
4835 \marg{0.3\gls{typeblockwidth}}\comment{x}
4836 \marg{0.3\gls{typeblockwidth}}\comment{y}
4837 [middle]\comment{label}
4838 \gls{setflowframe}*\marg{middle}\marg{\frameoptval{backcolor}{yellow}}
4839 \end{codebox}
4840 This will need the \sty{fancybox} package for the \gls{shadowbox} command.
4841 (More complex borders can be created with \styfmt{tikz} or
4842 using \idx{FlowframTk}.)
4843
4844 Order of definition matters. The above are defined in the order:
4845 \optfmt{upper} (\idx{IDN}~1), \optfmt{lower} (\idx{IDN}~2), and
4846 \optfmt{middle} (\idx{IDN}~3). This means that the document text
4847 will start in \optfmt{upper}, flow into \optfmt{lower}, and then
4848 into \optfmt{middle}.
4849
4850 A custom counter helps to demonstrate the order in which contents
4851 are processed:
4852 \begin{codebox}
4853 \cmd{newcounter}\marg{sample}
4854 \end{codebox}
4855
4856 Next a \idx{dynamic-frame} is defined:
4857 \begin{codebox}
4858 \gls{newdynamicframe}
4859 \marg{0.5\gls{typeblockwidth}}\comment{width}
4860 \marg{0.5\gls{typeblockwidth}}\comment{height}
4861 \marg{0.75\gls{typeblockwidth}}\comment{x}
4862 \marg{0.25\gls{typeblockwidth}}\comment{y}
4863 [sample]\comment{label}
4864 \end{codebox}
4865 The contents are then set so that the \ctrfmt{sample} counter is
4866 incremented and shown, and an image (provided by \styfmt{mwe}) is displayed
4867 (this will need the \styfmt{graphicx} package):
4868 \begin{codebox}
4869 \gls{setdynamiccontents}*\marg{sample}\marg{\comment{}
4870 \cmd{hfill}\cmd{stepcounter}\marg{sample}
4871 Sample \cmd{thesample}\cmd{\visiblespace}(dynamic).\cmd{par}
4872 \cmd{includegraphics}\oarg{width=\cmd{linewidth}}
4873 \marg{example-image-a}
4874 }
4875 \end{codebox}
4876 Labels are unique to the particular \gls{frame}['s] \emph{type}.
4877 A \idx{static-frame} is defined in a similar way and, in this case, it
4878 happens to have the same label (\optfmt{sample}) as the \idx{dynamic-frame}. This isn't a
4879 problem as they are different types of frame. However, it can be a
4880 bit confusing.
4881 \begin{codebox}
4882 \gls{newstaticframe}
4883 \marg{0.5\gls{typeblockwidth}}\comment{width}
4884 \marg{0.5\gls{typeblockwidth}}\comment{height}
4885 \marg{0.5\gls{typeblockwidth}}\comment{x}
4886 \marg{0.4\gls{typeblockwidth}}\comment{y}
4887 [sample]\comment{label}
4888 \end{codebox}
4889 The document uses the \styfmt{lipsum} package to provide sample
4890 text:
4891 \begin{codebox}
4892 START.
4893 (sample \cmd{stepcounter}\marg{sample}\cmd{thesample}).
4894 \cmd{lipsum}\oarg{1-2}
4895 END.
4896 \end{codebox}
4897 \Glspl{frame} must be defined in the preamble, but the contents of
4898 \staticordynamicframes\ may be set in the document body.
4899 This example sets the \optfmt{sample} \idx{static-frame} content
4900 after the sample text (but it's still on page~1):
4901 \begin{codebox}
4902 \gls{setstaticcontents}*\marg{sample}\marg{\comment{}
4903 \cmd{stepcounter}\marg{sample}
4904 Sample \cmd{thesample}\cmd{\visiblespace}(static).\cmd{par}
4905 \cmd{includegraphics}\oarg{width=\cmd{linewidth}}
4906 \marg{example-image-b}
4907 }
4908 \end{codebox}
4909
4910 \createresultexampleindynamicframe*
4911 [title={Frame Stacking Order},fontsize=10,
4912 label={ex:stackingorder},
4913 description={Example document with lipsum filler text that starts
4914 in the upper left, moves to the lower right and then into the middle
4915 frames}
4916 ]
4917 {examples}
4918 {%
4919 \cmd{usepackage}\oarg{T1}\marg{fontenc}\nl
4920 \cmd{usepackage}\marg{flowfram}\nl
4921 \cmd{usepackage}\marg{lipsum}\nl
4922 \cmd{usepackage}\marg{graphicx}\nl
4923 \cmd{usepackage}\marg{fancybox}
4924 \codepar
4925 \gls{newflowframe}\nldbsp
4926 \marg{0.4\gls{typeblockwidth}}\commentdbsp{width}
4927 \marg{0.6\gls{typeblockwidth}}\commentdbsp{height}
4928 \marg{0pt}\commentdbsp{x}
4929 \marg{0.6\gls{typeblockwidth}}\commentdbsp{y}
4930 [upper]\commentnl{label}
4931 \gls{setflowframe}*\marg{upper}\marg{border=plain}
4932 \codepar
4933 \gls{newflowframe}\nldbsp
4934 \marg{0.4\gls{typeblockwidth}}\commentdbsp{width}
4935 \marg{0.6\gls{typeblockwidth}}\commentdbsp{height}
4936 \marg{0.6\gls{typeblockwidth}}\commentdbsp{x}
4937 \marg{0pt}\commentdbsp{y}
4938 [lower]\commentnl{label}
4939 \gls{setflowframe}*\marg{lower}\marg{border=shadowbox}
4940 \codepar
4941 \gls{newflowframe}\nldbsp
4942 \marg{0.4\gls{typeblockwidth}}\commentdbsp{width}
4943 \marg{0.6\gls{typeblockwidth}}\commentdbsp{height}
4944 \marg{0.3\gls{typeblockwidth}}\commentdbsp{x}
4945 \marg{0.3\gls{typeblockwidth}}\commentdbsp{y}
4946 [middle]\commentnl{label}
4947 \gls{setflowframe}*\marg{middle}\marg{backcolor=yellow}
4948 \codepar
4949 \cmd{newcounter}\marg{sample}
4950 \codepar
4951 \gls{newdynamicframe}\nldbsp
4952 \marg{0.5\gls{typeblockwidth}}\commentdbsp{width}
4953 \marg{0.5\gls{typeblockwidth}}\commentdbsp{height}
4954 \marg{0.75\gls{typeblockwidth}}\commentdbsp{x}
4955 \marg{0.25\gls{typeblockwidth}}\commentdbsp{y}
4956 [sample]\commentnl{label}
4957 \gls{setdynamiccontents}*\marg{sample}\marg{\commentdbsp{}
4958 \cmd{hfill}\cmd{stepcounter}\marg{sample}\nldbsp
4959 Sample \cmd{thesample}\ (dynamic).\cmd{par}\nldbsp
4960 \cmd{includegraphics}\oarg{width=\cmd{linewidth}}\marg{example-image-a}\nl
4961 }
4962 \codepar
4963 \gls{newstaticframe}\nldbsp
4964 \marg{0.5\gls{typeblockwidth}}\commentdbsp{width}
4965 \marg{0.5\gls{typeblockwidth}}\commentdbsp{height}
4966 \marg{0.5\gls{typeblockwidth}}\commentdbsp{x}
4967 \marg{0.5\gls{typeblockwidth}}\commentdbsp{y}
4968 [sample]\comment{label}\nl
4969 }
4970 {%
4971 START
4972 (sample \cmd{stepcounter}\marg{sample}\cmd{thesample}).
4973 \cmd{lipsum}\oarg{1-2}
4974 END.
4975 \codepar
4976 \gls{setstaticcontents}*\marg{sample}\marg{\commentdbsp{}
4977 \cmd{stepcounter}\marg{sample}\nldbsp
4978 Sample \cmd{thesample}\ (static).\cmd{par}\nldbsp
4979 \cmd{includegraphics}\oarg{width=\cmd{linewidth}}\marg{example-image-b}\nl
4980 }
4981 }
4982
4983 Some things to note from \exampleref{ex:stackingorder}:
4984
4985 \begin{itemize}
4986 \item The \idx{static-frame} has its contents set in a box register, which
4987 means that the \ctrfmt{sample} counter is incremented as soon as the
4988 contents are set, but \gls{setstaticcontents} was placed at the end
4989 of the one-paged document. The first increment of the \ctrfmt{sample} counter occurs
4990 at the start of the first paragraph of the document text, so the
4991 counter has the value 1 when \gls{setstaticcontents} is processed.
4992 Therefore the contents of the \idx{static-frame} shows \qt{Sample 2}.
4993
4994 \Idxpl{static-frame} are always positioned on the page
4995 first, so the sample \idx{static-frame} is drawn first and is
4996 partially obscured by the other \idxpl{frame} with overlapping positions.
4997 Although the \idxpl{flow-frame} were filled first (because the
4998 document text came before \gls{setstaticcontents}), they are still drawn on
4999 top of the \idx{static-frame}.
5000
5001 \item The document text automatically flows into the
5002 \idxpl{flow-frame} (using a similar mechanism to the way the
5003 standard two-column mode works). However the column order is determined
5004 by the order of definition of the \idxpl{flow-frame}. In this
5005 example, the order leads to the document text starting at the top
5006 left, continuing in the bottom right, and then moving into the
5007 middle of the page. \Idxpl{flow-frame} are always positioned after
5008 \idxpl{static-frame} so the middle and lower frames obscure the
5009 \idx{static-frame} that has an overlapping position.
5010
5011 \item The \idx{dynamic-frame} has its contents stored in a token
5012 list variable which isn't expanded until the \idx{output-routine}
5013 positions it on the page so, although the frame contents were set in
5014 the preamble, the \ctrfmt{sample} counter increment
5015 in the \idx{dynamic-frame} contents doesn't take effect until the
5016 end of the current page. \Idxpl{dynamic-frame} are always positioned after the other
5017 types of \gls{frame}, so the sample \idx{dynamic-frame} obscures the
5018 others with overlapping positions.
5019
5020 \item If more content is added to the document text before
5021 \gls{setstaticcontents} then the first page may be completed before the
5022 contents of the \idx{static-frame} are set. In which case, the
5023 \qt{B} image won't show until the next page and the \ctrfmt{sample}
5024 counter increment won't occur until after it has been incremented by
5025 the \idx{dynamic-frame} when the first page is shipped.
5026
5027 \end{itemize}
5028
5029 So it's important to consider the order when defining \idxpl{frame}
5030 but it's also important to consider the frame type and when and how
5031 the different types of \gls{frame} are filled and processed.
5032
5033
5034 \section{Package Options}\label{sec:pkgopts}
5035
5036 \pkgdef{flowfram}
5037
5038 Some options may only be set when the package is loaded, some may be
5039 set in the preamble (before any command affected by the setting
5040 is used) and a few may be used anywhere. For those options that may be
5041 changed after the package has loaded, you can set them with:
5042 \cmddef{flowframsetup}
5043
5044 Available options are listed in the sections below or see
5045 \sectionref{styoptsummary} for an alphabetical list.
5046
5047 \subsection{Thumbtabs, Contents and Mini-Tocs}
5048 \label{sec:pkgoptsthumbtoc}
5049
5050 \Idxpl{thumbtab} are \idxpl{dynamic-frame} with a \idx{speciallabel} that can be created with
5051 \gls{makethumbtabs} (see \sectionref{sec:thumbtabs}). If enabled,
5052 they correspond to a particular sectioning unit (such as chapter),
5053 with the frame's content set to the number or the title or both.
5054 These \idxpl{dynamic-frame} are aligned against the edge of the page
5055 and are designed to be shown only in the applicable sectioning unit.
5056
5057 Each \idx{thumbtab} frame has a corresponding index frame which may
5058 be shown in the table of contents. This requires adjusting the
5059 \gls{tableofcontents} command to show the index frames. The relevant
5060 sub-block in the table of contents may be adjusted so that it fills
5061 the height of the corresponding \idx{thumbtab} index frame
5062
5063 \begin{important}
5064 No \idxpl{thumbtab} information will be written to the \ext+{ttb} file
5065 until they are first enabled with \gls{enablethumbtabs}.
5066 This can later be suspended with \gls{disablethumbtabs}.
5067 While the \idxpl{thumbtab} are disabled, options such as
5068 \opt{unstarred-thumbtabs} and \opt{matter-thumbtabs} will have no effect.
5069 \end{important}
5070
5071 \Idxpl{minitoc} are a sub-set of the table of contents that may be
5072 displayed at the start of the applicable sectioning unit. This may
5073 or may not be the same unit as the \idxpl{thumbtab} (if also
5074 present). The default is to match them if both \idxpl{thumbtab} and
5075 \idxpl{minitoc} are required. The \idx{minitoc} information is
5076 obtained when \sty{flowfram}['s] modified \gls{tableofcontents}
5077 parses the \ext+{toc} file.
5078
5079 This means that if the \opteqvalref{adjust-toc}{off} option is used to
5080 restore the \gls{tableofcontents} definition that's in
5081 effect when \sty{flowfram} is first loaded, then neither
5082 \idxpl{minitoc} nor \idx{thumbtab} indexes can be supported.
5083
5084 \optiondef{adjust-toc}
5085
5086 Specifies whether \gls{tableofcontents} should be adjusted to allow
5087 for \idx{thumbtab} indexes and \idxpl{minitoc}.
5088 This may take one of the following values:
5089
5090 \optionvaldef{adjust-toc}{header}
5091
5092 Adjust the table of contents, including the header. This may change
5093 the way the page header is displayed, if a page style with headers
5094 is used.
5095
5096 \optionvaldef{adjust-toc}{notheader}
5097
5098 Adjust the table of contents, but not the header.
5099
5100 \optionvaldef{adjust-toc}{off}
5101
5102 Don't adjust the table of contents. There's no support for
5103 \idx{thumbtab} indexes or \idxpl{minitoc} with this setting.
5104
5105 \optiondef{backmatter-sections}
5106
5107 Classes that support \gls{backmatter} tend to suppress the
5108 chapter number but not section numbers. As this can cause
5109 interference, \sty{flowfram} by default adds code to \gls{backmatter}
5110 that sets \ctr{secnumdepth} to \code{-1}. This option may be used to
5111 prevent this.
5112
5113 \optionvaldef{backmatter-sections}{no-change}
5114
5115 If \gls{backmatter} is defined, \sty{flowfram}['s] additional code
5116 won't alter \ctr{secnumdepth}.
5117
5118 \optionvaldef{backmatter-sections}{no-number}
5119
5120 Make \gls{backmatter} (if defined) set \ctr{secnumdepth} to \code{-1}.
5121
5122 \optiondef{toc-thumbtabs}
5123
5124 Indicates whether or not \idx{thumbtab} indexes should be shown in
5125 \gls{tableofcontents} and whether or not to align them. Note that
5126 the alignment setting should only be used if the table of contents
5127 is on a single page. It's not appropriate for longer content.
5128 This setting has no effect with \opteqvalref{adjust-toc}{off}.
5129
5130 \optionvaldef{toc-thumbtabs}{aligned}
5131
5132 Divide the table of contents into blocks that are the
5133 same height as the corresponding \idx{thumbtab}.
5134 This assumes that the start of the table of contents
5135 is aligned with the vertical offset identified when the
5136 \idxpl{thumbtab} were created. If the \idxpl{thumbtab} are shifted
5137 too far up or down the \meta{y-offset} will need to be adjusted
5138 in the first optional argument of \gls{makethumbtabs}.
5139 This setting is only applicable for singled-paged table of contents.
5140
5141 \optionvaldef{toc-thumbtabs}{unaligned}
5142
5143 Don't align the sub-block in the table of contents with the corresponding
5144 \idx{thumbtab} and only show the \idx{thumbtab} indexes on the first
5145 page of the table of contents.
5146
5147 \optionvaldef{toc-thumbtabs}{true}
5148
5149 Show the \idx{thumbtab} indexes on every page of the table of
5150 contents.
5151
5152 \optionvaldef{toc-thumbtabs}{false}
5153
5154 Don't show the \idx{thumbtab} indexes in the table of
5155 contents.
5156
5157 \optiondef{unstarred-thumbtabs}
5158
5159 Indicates whether or not unstarred sectional units should have
5160 \idxpl{thumbtab}. Note that this is not the same as unstarred but
5161 unnumbered sectional units in the \idx{front-matter} or
5162 \idx{back-matter}. (See \opt{matter-thumbtabs} below, for that.)
5163
5164 This option will have no effect if \idxpl{thumbtab} aren't enabled
5165 when the applicable sectional units occur.
5166
5167 \optiondef{matter-thumbtabs}
5168
5169 Indicates if unstarred sectional units outside of the main matter
5170 should have \idxpl{thumbtab}. Unstarred commands such as
5171 \gls{chapter} are not usually numbered outside of the
5172 \idx{main-matter} but behave slightly differently to the starred
5173 version. For example, \gls{chapter} without a star may not be
5174 numbered but may be added to the table of contents.
5175 This setting does not affect the starred version.
5176
5177 This setting will have no effect if \idxpl{thumbtab} aren't enabled
5178 outside of the \idx{main-matter}.
5179
5180 \optionvaldef{matter-thumbtabs}{main-only}
5181
5182 Only support \idxpl{thumbtab} for unstarred (numbered) units in the
5183 \idx{main-matter}.
5184
5185 \optionvaldef{matter-thumbtabs}{all}
5186
5187 Support \idxpl{thumbtab} for all unstarred units.
5188
5189 \optionvaldef{matter-thumbtabs}{not-front}
5190
5191 Only support \idxpl{thumbtab} for unstarred (numbered) units in the
5192 \idx{main-matter} and \idx{back-matter} but not in the \idx{front-matter}.
5193
5194 \optionvaldef{matter-thumbtabs}{not-back}
5195
5196 Only support \idxpl{thumbtab} for unstarred (numbered) units in the
5197 \idx{main-matter} and \idx{front-matter} but not in the \idx{back-matter}.
5198
5199 \optiondef{thumbtab-links}
5200
5201 Indicates which \idxpl{thumbtab} should have \idxpl{hyperlink} (if supported).
5202 You will need to load \sty{hyperref} if you want \idxpl{hyperlink}.
5203
5204 \optionvaldef{thumbtab-links}{toc-only}
5205
5206 Only have \idxpl{hyperlink} in the \idx{thumbtab} indexes that are
5207 shown in the table of contents.
5208
5209 \optionvaldef{thumbtab-links}{all}
5210
5211 Have \idxpl{hyperlink} in all the \idxpl{thumbtab}.
5212
5213 \optionvaldef{thumbtab-links}{none}
5214
5215 Don't have \idxpl{hyperlink} in any of the \idxpl{thumbtab}.
5216
5217 \optiondef{thumbtab-text}
5218
5219 Indicates how the text should be shown on the \idxpl{thumbtab}.
5220
5221 \optionvaldef{thumbtab-text}{rotate}
5222
5223 Turn the text sideways. This will either rotate the text to the
5224 right or to the left, depending on whether or not a two-sided layout
5225 is on and whether or not the current page is odd or even.
5226
5227 \optionvaldef{thumbtab-text}{rotate-right}
5228
5229 Rotate the text to the right.
5230
5231 \optionvaldef{thumbtab-text}{rotate-left}
5232
5233 Rotate the text to the left.
5234
5235 \optionvaldef{thumbtab-text}{stack}
5236
5237 Stacks the letters vertically. This doesn't look very good and is
5238 just provided for backward-compatibility.
5239
5240 \optionvaldef{thumbtab-text}{normal}
5241
5242 No rotation or stacking.
5243
5244
5245 \optiondef{thumbtabs}
5246
5247 Indicates whether or not the number or title should be shown in
5248 the \idxpl{thumbtab} (if enabled).
5249
5250 \optionvaldef{thumbtabs}{title}
5251
5252 Only show the title.
5253
5254 \optionvaldef{thumbtabs}{number}
5255
5256 Only show the number (if applicable).
5257
5258 \optionvaldef{thumbtabs}{both}
5259
5260 Show both the number (if applicable) and the title
5261
5262 \optionvaldef{thumbtabs}{none}
5263
5264 Don't show either the number or title.
5265
5266 \optiondef{sections-extra-option}
5267
5268 The \sty{flowfram} package redefines the standard sectioning
5269 commands so that they have a second optional argument (which is used
5270 for the corresponding \idx{thumbtab} title, if enabled), but it first
5271 saves the original definitions to use as an underlying command.
5272 Normally it will only pass the first optional argument to the
5273 underlying command.
5274
5275 If you are using a class, such as \cls{memoir}, that also has a second optional
5276 argument, then this option identifies whether or not the second
5277 optional argument should also be passed to the underlying command.
5278 If \sty{flowfram} detects that \cls{memoir} has been loaded, it will
5279 automatically implement
5280 \opteqvalref{sections-extra-option}{original-and-thumbtab}
5281 otherwise it will implement
5282 \opteqvalref{sections-extra-option}{thumbtab-only}.
5283
5284 \optionvaldef{sections-extra-option}{thumbtab-only}
5285
5286 Only use the second optional argument as the \idx{thumbtab} title
5287 (if applicable) and don't pass it to the underlying command.
5288
5289 \optionvaldef{sections-extra-option}{original-and-thumbtab}
5290
5291 The underlying command has a second optional argument and any second
5292 optional argument should be both passed to the underlying command
5293 and used as the \idx{thumbtab} title (if enabled).
5294
5295 \optionvaldef{sections-extra-option}{as-original}
5296
5297 The underlying command has a second optional
5298 argument and any second optional argument provided should simply be passed
5299 to the underlying command and not used as the \idx{thumbtab} title.
5300
5301 \subsection{Dynamic Frames}
5302 \label{sec:pkgoptsdynamic}
5303
5304 \optiondef{dynamic-page-style}
5305
5306 Indicates whether or not \gls{makedfheaderfooter} should
5307 adjust the standard page styles. If this option is required, it should be set
5308 before \gls{makedfheaderfooter} otherwise it will be too late to
5309 have an effect.
5310
5311 \optionvaldef{dynamic-page-style}{adjust}
5312
5313 If \gls{makedfheaderfooter} is used, it will set (\csfmt{let}) the
5314 \pstyle{empty}, \pstyle{plain}, \pstyle{headings} and
5315 \pstyle{myheadings} page styles to \pstyle{ffempty},
5316 \pstyle{ffplain}, \pstyle{ffheadings} and \pstyle{ffmyheadings}.
5317
5318 \optionvaldef{dynamic-page-style}{noadjust}
5319
5320 Don't adjust the page styles.
5321
5322 \optiondef{dynamic-header-case}
5323
5324 Indicates whether or not \gls{chaptermark} (if chapters are
5325 defined) or \gls{sectionmark} (otherwise) with the \pstyle{ffheadings} and
5326 \pstyle{ffmyheadings} styles should change the case of the header
5327 text.
5328
5329 \optionvaldef{dynamic-header-case}{uc}
5330
5331 Convert to uppercase.
5332
5333 \optionvaldef{dynamic-header-case}{no-change}
5334
5335 Don't change the case.
5336
5337 \optiondef{dynamic-subheader-case}
5338
5339 Indicates whether or not \gls{sectionmark} (if chapters are
5340 defined) or \gls{subsectionmark} (otherwise) with the \pstyle{ffheadings} and
5341 \pstyle{ffmyheadings} styles should change the case of the sub-header
5342 text.
5343
5344 \optionvaldef{dynamic-subheader-case}{uc}
5345
5346 Convert to uppercase.
5347
5348 \optionvaldef{dynamic-subheader-case}{no-change}
5349
5350 Don't change the case.
5351
5352 \optiondef{dynamic-page-style-header-font}
5353
5354 Use the given \meta{code} to set the font used by
5355 \gls{chaptermark} (if chapters are available) or \gls{sectionmark}
5356 (otherwise) with \pstyle{ffheadings}. The \meta{code} may be
5357 declarations or the final command in \meta{code} may be a text-block
5358 command.
5359
5360 If \meta{code} is empty (but the equal sign \code{=} will
5361 still be required) no font change will be applied. For example, you
5362 may prefer to use the \idx{dynamic} frame's \frameopt{style} command
5363 instead.
5364
5365 \optiondef{dynamic-page-style-subheader-font}
5366
5367 Use the given \meta{code} to set the font used by
5368 \gls{sectionmark} (if chapters are available) or \gls{subsectionmark}
5369 (otherwise) with \pstyle{ffheadings}. The \meta{code} may be
5370 declarations or the final command in \meta{code} may be a text-block
5371 command. Again the \meta{code} may be empty.
5372
5373 \begin{information}
5374 The sub-header font is initialised to match the header font, so if
5375 you change the header font it will automatically change the
5376 sub-header font as well.
5377 \end{information}
5378
5379 \optiondef{dynamic-empty-page-style}
5380
5381 Controls how the \pstyle{ffempty} page style behaves with
5382 dynamic \headerandfooterframes. Remember that with
5383 the default \opteqvalref{dynamic-page-style}{adjust},
5384 \gls{makedfheaderfooter} will set the \pstyle{empty} page style to
5385 \pstyle{ffempty}.
5386 The initial setting is
5387 \opteqvalref{dynamic-empty-page-style}{empty},
5388 \opteqvalref{dynamic-empty-page-style}{hide}.
5389 This means that
5390 \opteqvalref{dynamic-empty-page-style}{show}
5391 will revert back to showing empty frames.
5392
5393 If you have decorated the header or footer \idx{dynamic-frame}, such
5394 as setting a border or background colour, then simply setting the header
5395 and footer to empty (the usual behaviour of the \pstyle{empty} page
5396 style), the \headerandfooterframes\ will still be visible. This may
5397 or may not be desired.
5398
5399 \optionvaldef{dynamic-empty-page-style}{empty}
5400
5401 The \pstyle{ffempty} page style will set the header and footer text
5402 to empty but the frames will still be visible.
5403 This option automatically sets
5404 \opteqvalref{dynamic-empty-page-style}{show}.
5405
5406 \optionvaldef{dynamic-empty-page-style}{plain}
5407
5408 The \pstyle{ffempty} page style will behave like the \pstyle{ffplain}
5409 style. The \headerandfooterframes\ will be visible.
5410 This option automatically sets
5411 \opteqvalref{dynamic-empty-page-style}{show}.
5412
5413 \optionvaldef{dynamic-empty-page-style}{headings}
5414
5415 The \pstyle{ffempty} page style will behave like the
5416 \pstyle{ffheadings} style. The \headerandfooterframes\ will be visible.
5417 This option automatically sets
5418 \opteqvalref{dynamic-empty-page-style}{show}.
5419
5420 \optionvaldef{dynamic-empty-page-style}{myheadings}
5421
5422 The \pstyle{ffempty} page style will behave like the
5423 \pstyle{ffmyheadings} style. The \headerandfooterframes\ will be visible.
5424
5425 \optionvaldef{dynamic-empty-page-style}{ignore}
5426
5427 The \pstyle{ffempty} page style will do nothing, so the previous
5428 page style will remain in effect. The \headerandfooterframes\ will be visible.
5429 This option automatically sets
5430 \opteqvalref{dynamic-empty-page-style}{show}.
5431
5432 \optionvaldef{dynamic-empty-page-style}{hide}
5433
5434 The \headerandfooterframes\ will have the \frameopt{hide} attribute
5435 set by the \pstyle{ffempty} page style. No other change will be
5436 made, but since the frames will no longer be shown, the frame
5437 content won't be visible.
5438
5439 Note that if \gls{thispagestyle} is used instead of \gls{pagestyle}
5440 then \frameopt{hidethis} instead of \frameopt{hide} will be set.
5441
5442 \optionvaldef{dynamic-empty-page-style}{show}
5443
5444 The header and footer frames won't have the \frameopt{hide} (or
5445 \frameopt{hidethis}) attribute set by the \pstyle{ffempty} page
5446 style. Whatever \opt{dynamic-empty-page-style} setting was in effect
5447 before \opteqvalref{dynamic-empty-page-style}{hide} will continue.
5448
5449
5450 \subsection{Column Command Options}
5451 \label{sec:pkgoptscolumns}
5452
5453 These options govern column commands, such as \gls{onecolumn},
5454 \gls{onecolumninarea}, \gls{twocolumn} and \gls{twocolumninarea},
5455 which create one or more \idxpl{flow-frame} arranged as columns (see
5456 \sectionref{sec:Ncolumn}). This includes column commands that
5457 additionally create a \gls{frame} to go above or below the column
5458 \idxpl{flow-frame} (see \sectionref{sec:colstyleswithframe}).
5459
5460 The order that the \idxpl{flow-frame} are
5461 defined matters, as the \idx{output-routine} selects the next
5462 \idx{flow-frame} in order of definition (that is, in ascending order of
5463 \idx{IDN}) and cycles back to the start when a page is shipped out.
5464 So if the first \idx{flow-frame} to be defined is on the left, the
5465 document text will start on the left, but if the first
5466 \idx{flow-frame} to be defined is on the right, then the document
5467 text will start on the right.
5468
5469 \optiondef{LR}
5470
5471 The column commands, such as \gls{twocolumn}, will
5472 create \idxpl{flow-frame} from left to right. This is the default.
5473
5474 \optiondef{RL}
5475
5476 The column commands, such as \gls{twocolumn}, will
5477 create \idxpl{flow-frame} from right to left. The \opt{RL} option may be set
5478 in the preamble but should be set before the applicable commands are
5479 used (see also \sectionref{sec:RL}).
5480
5481 \optiondef{column-changes}
5482
5483 The \sty{flowfram} package redefines \gls{onecolumn} and
5484 \gls{twocolumn} for use in the preamble to define a single
5485 \idx{flow-frame} (\gls{onecolumn}) or two \idxpl{flow-frame}
5486 (\gls{twocolumn}). However, some commands provided by the kernel or
5487 other classes or packages may try to use \gls{onecolumn} and
5488 \gls{twocolumn} to adjust the page layout. This option indicates
5489 what to do if these commands are encountered in the document
5490 environment.
5491
5492 \optionvaldef{column-changes}{ignore}
5493
5494 Ignore any instance of \gls{onecolumn} or \gls{twocolumn}
5495 found in the \env{document} environment. In the case of
5496 \gls{twocolumn}, if the optional argument is present, it will simply
5497 be added to the page content.
5498
5499 \optionvaldef{column-changes}{clearpage}
5500
5501 Like \opteqvalref{column-changes}{ignore} but does \gls{clearpage}.
5502
5503 \optionvaldef{column-changes}{switch}
5504
5505 Switch to the designated \idxpl{frame}, which will first need to be
5506 identified. If you use \gls{onecolumn} or
5507 \gls{onecolumninarea} in the preamble (see
5508 \sectionref{sec:Ncolumn}), the first instance will automatically
5509 identify the \idx{flow-frame} to use for any \gls{onecolumn} found
5510 in the document. Alternatively, you can identify the required
5511 \idx{flow-frame} with:
5512 \cmddef{SetOneColumnFrame}
5513 The \meta{ID} should be the \idx{frame}['s] \idx{IDN} for the
5514 unstarred version or the \idx{IDL} for the starred version.
5515
5516 Similarly if you use \gls{twocolumn} or
5517 \gls{twocolumninarea}, the first instance will automatically
5518 identify the \idxpl{flow-frame} to use for any \gls{twocolumn} found
5519 in the \env{document}. However, this is a little more complicated as
5520 a \idx{frame} for the header and shorter columns are also needed in
5521 the event that \gls{twocolumn} is used with its optional argument.
5522 Commands such as \gls{twocolumnStop} or \gls{twocolumnDtop}
5523 will identify the \idxpl{frame} to use in this case.
5524 You can also identify the desired \idxpl{frame} with:
5525 \cmddef{SetTwoColumnFrames}
5526 The starred version references the \idxpl{frame} by their \idx{IDL}.
5527 The unstarred version references them by their \idx{IDN}.
5528
5529 The first non-headed \idx{flow-frame} is identified by \meta{col1}
5530 and the second non-headed \idx{flow-frame} is identified by
5531 \meta{col2}.
5532 If the optional arguments are omitted, then this just establishes
5533 the two \idxpl{flow-frame} to use.
5534
5535 To identify a frame for the header and the two \idxpl{flow-frame}
5536 accompanying it, the optional arguments are required:
5537 \meta{header-type} is the frame type for the header (\optfmt{flow},
5538 \optfmt{dynamic} or \optfmt{static}). Note that \idxpl{dynamic-frame}
5539 are best for this, although they can cause dependent counters to go
5540 out-of-sync. The header frame is identified with
5541 \meta{header-id}. The first headed \idx{flow-frame} is identified
5542 with \meta{header-col1} and the second headed \idx{flow-frame} is
5543 identified with \meta{header-col2}.
5544
5545 \begin{information}
5546 If you don't identify the designated \idxpl{frame} to use, you will
5547 get a warning.
5548 \end{information}
5549
5550
5551 \subsection{Other}
5552 \label{sec:pkgoptsother}
5553
5554 \optiondef{pages}
5555
5556 All \idxpl{frame} have an associated \idx{pglist} that determines
5557 which pages they should be shown on. By default, this uses the
5558 \ctr{page} counter, but as that is sometimes reset (for example,
5559 when changing from \idx{front-matter} to \idx{main-matter}) this can
5560 be ambiguous. Version 1.14 introduced the \ctr{absolutepage}
5561 counter which is incremented every time a page is shipped out and
5562 should not be reset, which allows for unambiguous references in the
5563 \idxpl{pglist}.
5564
5565 \optionvaldef{pages}{absolute}
5566
5567 Use the \ctr{absolutepage} counter.
5568
5569 \optionvaldef{pages}{relative}
5570
5571 Use the standard \ctr{page} counter. Note that the \idxpl{pglist}
5572 always uses the numeric value (1, 2, etc) not the formatted value
5573 (i, ii, etc). This is the default setting for backward
5574 compatibility.
5575
5576 \optiondef{adjust-pre-chapter}
5577 If true and \gls{chapter} is defined, the pre-chapter hook commands
5578 \gls{ffprechapterhook} and \gls{chapterfirstpagestyle} will be
5579 defined (see \sectionref{sec:chapters}).
5580
5581 \optiondef{verbose}
5582 Switches on or off verbose mode. Provided to assist with debugging.
5583
5584 \optiondef{draft}
5585 Switches on draft mode (see \sectionref{sec:draft}).
5586
5587 \optiondef{final}
5588 Switches off draft mode.
5589
5590 \optiondef{prohibit-frame-rotation}
5591
5592 If true, don't rotate \idxpl{frame}, regardless of the
5593 \frameopt{angle} setting.
5594
5595 The remaining options are provided for backward-compatibility.
5596
5597 \optiondef{norotate}
5598
5599 Equivalent to setting both \optval{prohibit-frame-rotation}{true} and
5600 \opteqvalref{thumbtab-text}{stack}.
5601 The original version of \sty{flowfram} was released in 2005 when
5602 there was less support for rotation, so the default was no frame
5603 rotation and no \idx{thumbtab} text rotation. This is no longer
5604 applicable, so this is no longer the default.
5605
5606 \optiondef{rotate}
5607
5608 If true, this option is equivalent to setting both
5609 \optval{prohibit-frame-rotation}{false} and
5610 \opteqvalref{thumbtab-text}{rotate-right}.
5611 If false, this option is equivalent to \opt{norotate}.
5612
5613 \optiondef{ttbtitle}
5614
5615 Include the title in the \idxpl{thumbtab} (if enabled). This doesn't affect
5616 whether or not the number is shown. Use the \opt{thumbtabs} option
5617 instead.
5618
5619 \optiondef{ttbnotitle}
5620
5621 Don't include the title in the \idxpl{thumbtab} (if enabled). This doesn't affect
5622 whether or not the number is shown. Use the \opt{thumbtabs} option
5623 instead.
5624
5625 \optiondef{ttbnum}
5626
5627 Include the number in the \idxpl{thumbtab} (if enabled). This doesn't affect
5628 whether or not the title is shown. Use the \opt{thumbtabs} option
5629 instead.
5630
5631 \optiondef{ttbnonum}
5632
5633 Don't include the number in the \idxpl{thumbtab} (if enabled). This doesn't affect
5634 whether or not the title is shown. Use the \opt{thumbtabs} option
5635 instead.
5636
5637 \optiondef{color}
5638
5639 If true, enable colour support. Note that the \sty{color} package is
5640 now always loaded regardless of this option but setting this value
5641 to false will prevent the \frameopt{textcolor}, \frameopt{backcolor}
5642 and \frameopt{bordercolor} frame options from having an effect.
5643
5644 \optiondef{nocolor}
5645
5646 Equivalent to \optval{color}{false}.
5647
5648
5649 \section{Floats}
5650 \label{sec:floats}
5651
5652 The standard \env{figure} and \env{table} commands will
5653 behave as usual in the \idxpl*{flow-frame}, but their starred versions,
5654 \env{figure*} and \env{table*} behave no differently
5655 from \env{figure} and \env{table}. This is because
5656 the arbitrary layout of the \idxpl{flow-frame} makes it difficult
5657 to determine where to put them.
5658
5659 If you really need floats to behave normally on a particular page,
5660 you can temporarily restore the normal \idx{output-routine} with
5661 \gls{FlowFramRestoreOR} (see \sectionref{sec:outputroutine}). Note
5662 that all the defined \gls{frame} won't be used until you revert back
5663 to \sty{flowfram}['s] \idx{output-routine} with \gls{FlowFramUnrestoreOR}.
5664
5665 Since floats can't go in the content of \idxpl{static-frame} or
5666 \idxpl{dynamic-frame}, the \sty{flowfram} package provides two
5667 environments that may be used instead. Unlike their \env{figure} and
5668 \env{table} counterparts, they are fixed in place, and
5669 so do not take an optional placement specifier.
5670
5671 \envdef{staticfigure}
5672
5673 Simulate a figure in a \staticordynamicframe.
5674
5675 \envdef{statictable}
5676
5677 Simulate a table in a \staticordynamicframe.
5678
5679 The \gls{caption} and \gls{label} commands can
5680 be used within \env{staticfigure} and \env{statictable} as
5681 usual, but remember that if the frame is displayed on multiple
5682 pages, you may end up with multiply defined labels. You may want to
5683 consider setting the \frameopt{clear} attribute to automatically
5684 clear the frame contents on every page.
5685
5686 \section{Draft Mode}
5687 \label{sec:draft}
5688
5689 The \sty{flowfram} package's \opt{draft} option will draw the \idxpl{bbox} for
5690 each \gls{frame} that has been defined. At the bottom right of each
5691 \idx{bbox} (except for the \idx{bbox} denoting the
5692 \idx{typeblock}), a marker will be shown in the form:
5693 \code{[\meta{T}:\meta{IDN};\meta{IDL}]}, where \meta{T} is a single
5694 letter denoting the \idx*{frame} type, \meta{IDN} is the \idx{IDN}
5695 for the \idx*{frame} and \meta{IDL} is the \idx{IDL} for that
5696 \idx*{frame}. Values of \meta{T} are: \optfmt{F} (\idx{flow-frame}),
5697 \optfmt{S} (\idx{static-frame}) or \optfmt{D} (\idx{dynamic-frame}).
5698 Markers of the form: \code{[M:\meta{IDN}]} indicate that the
5699 \gls*{bbox} is the area taken up by the margin for \idx*{flow-frame}
5700 with \gls*{IDN} \meta{IDN}.
5701
5702 \begin{information}
5703 The \gls*{bbox} will not be rotated, even if a \idx*{frame} has rotation set.
5704 \end{information}
5705
5706 There are conditionals that govern what types of \idxpl{bbox} should
5707 be shown. The \opt{draft} option sets all these conditionals to
5708 true. You can instead selectively switch on or off the applicable
5709 conditions instead of using \opt{draft} or in addition to using
5710 \opt{draft}.
5711
5712 \cmddef{ifshowtypeblock}
5713 Determines whether or not the \idx{bbox} for the \idx{typeblock}
5714 should be shown.
5715
5716 \cmddef{showtypeblocktrue}
5717 Show the \idx{typeblock} \gls*{bbox}.
5718 \cmddef{showtypeblockfalse}
5719 Don't show the \idx{typeblock} \gls*{bbox}.
5720
5721 \cmddef{ifshowmargins}
5722 Determines whether or not the \idx{bbox} for the margins
5723 should be shown.
5724
5725 \cmddef{showmarginstrue}
5726 Show the margin \gls*{bbox}.
5727 \cmddef{showmarginsfalse}
5728 Don't show the margin \gls*{bbox}.
5729
5730 \cmddef{ifshowframebbox}
5731 Determines whether or not the \idx{bbox} for the \idxpl{frame}
5732 should be shown.
5733
5734 \cmddef{showframebboxtrue}
5735 Show the \gls*{bbox} for all \idxpl{frame}.
5736 \cmddef{showframebboxfalse}
5737 Don't show the \gls*{bbox} for all \idxpl{frame}.
5738
5739 You can see the layout for the current page (irrespective of
5740 whether or not the \opt{draft} option has been set) using
5741 the command:
5742 \cmddef{flowframeshowlayout}
5743 This finishes the current page, temporarily sets draft mode, and
5744 prints an empty page. Only the \idxpl{frame} for that page will be
5745 shown.
5746
5747 \begin{information}
5748 \gls{flowframeshowlayout} shows the frames for the page \emph{after}
5749 the current page.
5750 \end{information}
5751
5752 \section{Output Routine}\label{sec:outputroutine}
5753
5754 The \sty{flowfram} package modifies the \inlineidxdef{output-routine} to ensure
5755 that all \idxpl{frame} are placed in the correct location and that
5756 \gls{textwidth} and \gls{textheight} and related dimensions are
5757 correctly set. In particular, it removes the page header and
5758 footer code from their normal place to allow for the header and
5759 footer to be placed in \idxpl{dynamic-frame} with arbitrary
5760 dimensions and locations.
5761
5762 This can cause a conflict with other packages that rely on an unaltered
5763 \idx{output-routine} or expect \gls{textwidth} and \gls{textheight} to
5764 reflect the one column size. For example, the \sty{geometry}
5765 package's \optfmt{showframes} option will be confused and may draw
5766 the outline of the \idx{typeblock} shorter or narrower that it ought
5767 to be, which will consequently push the footer frame out of place.
5768 Therefore, if you want to view the page layout, use
5769 \sty{flowfram}['s] \opt{draft} option instead.
5770
5771 If you need to use a command or environment that requires the normal
5772 \idx{output-routine}, you can restore it with:
5773 \cmddef{FlowFramRestoreOR}
5774 This will finish the current page (with \gls{finishthispage}) and
5775 setup a normal one column page layout with \gls{textheight} set
5776 to \gls{typeblockheight} and \gls{textwidth} set to
5777 \gls{typeblockwidth}. The \ctr{absolutepage} counter will still be
5778 incremented in the \code{build/page/after} hook but none of the
5779 \idxpl{static-frame}, \idxpl{flow-frame} or \idxpl{dynamic-frame}
5780 will appear on the page. The header and footer will be restored to
5781 their usual location. The \env{figure*} and \env{table*}
5782 environments and \gls{onecolumn} and \gls{twocolumn} commands
5783 will also be restored to normal.
5784
5785 You can later revert back to \sty{flowfram}['s] \idx{output-routine} with:
5786 \cmddef{FlowFramUnrestoreOR}
5787 This will start a new page (using \gls{clearpage}) and select the
5788 first \idx{flow-frame} that's valid for the new page. The
5789 \env{figure*} and \env{table*} environments will once again behave like
5790 their unstarred counterparts. Likewise \gls{onecolumn} and
5791 \gls{twocolumn} will return to their \env{document} environment
5792 behaviour.
5793
5794 \section{Chapters}\label{sec:chapters}
5795
5796 If the \gls{chapter} command has been defined, the \sty{flowfram}
5797 package will add the following commands to the
5798 \code{cmd\slash chapter\slash before} hook:
5799 \begin{compactcodebox}
5800 \gls{ffprechapterhook}
5801 \gls{thispagestyle}\marg{\gls{chapterfirstpagestyle}}
5802 \end{compactcodebox}
5803 Note that these two \sty{flowfram} commands won't be defined if \gls{chapter} hasn't
5804 been defined or if \optval{adjust-pre-chapter}{false} has been used.
5805
5806 These hooks are largely redundant now that there are more convenient hooks
5807 provided with the new \LaTeX\ hook management system, but they are
5808 retained for backward-compatibility.
5809
5810 \cmddef{ffprechapterhook}
5811 Does nothing by default.
5812
5813 \cmddef{chapterfirstpagestyle}
5814 Expands to the page style name to use for the first page of each
5815 chapter.
5816
5817 If you want to use a different style, you will need to redefine
5818 \gls{chapterfirstpagestyle} to the name of the relevant page style.
5819 Note that some classes provide their own way of adjusting the style
5820 of the first page of each chapter.
5821
5822 \begin{information}
5823 These hooks are used at the start of \gls{chapter} \emph{before
5824 \gls{clearpage} or \gls{cleardoublepage} is called}.
5825 \end{information}
5826
5827 Chapter titles can be placed in a \idx{dynamic-frame}. See
5828 \sectionref{sec:dfchaphead} for further details.
5829
5830 \chapter{Defining New Frames}\label{sec:newframes}
5831
5832 \chapdesc{This chapter describes how to define new frames, and how to
5833 identify and set frame contents. See also \sectionref{sec:layouts}.}
5834
5835 There are three types of \gls{frame}: \idxpl{flow-frame},
5836 \idxpl{static-frame} and \idxpl{dynamic-frame}. They each have their
5837 own set of commands to define a new \idx*{frame} and to set the
5838 \idx*{frame}['s] attributes. Their identifying labels (\idxpl{IDL})
5839 and numbers (\idxpl{IDN}) are unique to each type of \idx*{frame}.
5840 For example, the first \idx{flow-frame} to be defined will have
5841 \idx{IDN}~1, but the first \idx{static-frame} and the first
5842 \idx{dynamic-frame} will also have \idx{IDN}~1.
5843
5844 \section{Flow Frames}\label{sec:flowframes}
5845
5846 The \gls[format=mainfmt]{flow-frame} is the principle type of \gls{frame}.
5847 The text of the \env{document} environment will flow from
5848 one \idx*{frame} to the next in order of definition. Each
5849 \idx*{flow-frame} has an associated width, height,
5850 position on the page and optionally a border.
5851
5852 \begin{important}
5853 A \idx{flow-frame}['s] width and height must be greater than 0pt.
5854 This is checked by commands like \gls{newflowframe}, which will
5855 trigger an error for invalid dimensions but is not checked if the
5856 width or height is later changed with commands like
5857 \gls{setflowframe}. Not only will zero-width \idxpl{flow-frame} cause
5858 overfull hbox warnings but also if all defined \idxpl{flow-frame}
5859 have zero width then the output routine may end up creating thousands of
5860 pages that can't be filled.
5861 \end{important}
5862
5863 \cmddef{newflowframe}
5864 Defines a new \idx{flow-frame}, where \meta{width} is the width of the
5865 \idx*{frame}, \meta{height} is the height of the \idx*{frame},
5866 (\meta{x}, \meta{y}) is the
5867 position of the bottom left hand corner of the \idx*{frame}
5868 relative to the bottom left hand corner of the
5869 \idx{typeblock}.
5870
5871 The starred version will add a plain border to the
5872 \gls{frame}, which is simply a shortcut for first defining the frame
5873 and then setting the \frameoptval{border}{plain} attribute.
5874
5875 \begin{information}
5876 See \sectionref{sec:typeblockloc} if you need to calculate positions
5877 from the page edge.
5878 \end{information}
5879
5880 The first optional argument, \meta{page list}, indicates the
5881 list of pages for which this \idx*{frame} is defined.
5882 A \idx{pglist} can either be specified by the keywords:
5883 \optfmt{all}, \optfmt{odd}, \optfmt{even} or \optfmt{none}, or
5884 by a comma-separated list of either individual page numbers or
5885 \idxpl{pgrange}. If \meta{page list} is
5886 omitted, \optfmt{all} is assumed.
5887 A \idx*{pgrange} can be a closed range (such as, \code{2-8}) or
5888 an open range (such as, \code{<10} or \code{>5}).
5889 For example: \code{<3,5,7-11,>15}
5890 indicates pages 1, 2, 5, 7, 8, 9, 10, 11 and all pages
5891 greater than page 15. These page numbers refer to the integer value of
5892 the page counter by default, so if you have a page~i and a page~1, they
5893 will both have the same layout (unless you change the
5894 page list setting somewhere between the two pages).
5895
5896 With the \optval{pages}{absolute} package option, the numbers in the
5897 \idx{pglist} refer to the absolute page number (as given by the
5898 \ctr{absolutepage} counter). In which case page~1
5899 refers to the first page of the document only, regardless of whether
5900 there is another page~1 or page~i later in the document.
5901
5902 \begin{information}
5903 You can't use formatted numbers (such as i or I) in the \idx{pglist}
5904 as \sty{flowfram} needs the integer values in conditional expressions.
5905 \end{information}
5906
5907 Each \idx{flow-frame} has its own unique \idx{IDN},
5908 corresponding to the order in which it was defined. So the first
5909 \idx*{flow-frame} to be defined has \gls*{IDN}~1,
5910 the second has \gls*{IDN}~2, and so on. This number can then
5911 be used to identify the \idx*{flow-frame} when you want to modify its
5912 settings. Alternatively, you can assign a unique \idx{IDL} to the
5913 \idx*{flow-frame} using the final optional argument \meta{label}.
5914 If omitted, the \idx{IDL} will be the same as its \idx{IDN}.
5915
5916 \cmddef{getflowlabel}
5917 Expands to the \idx{IDL} for the \idx{flow-frame} identified by its
5918 \idx{IDN}. An error will occur if there is no \idx{flow-frame} with
5919 the given \idx{IDN}.
5920
5921 There is no equivalent command that will expand to the \idx{IDN}.
5922 Instead you need to fetch the value with:
5923 \cmddef{getflowid}
5924 This will define the command \meta{cmd} to expand to the \idx{IDN} of the
5925 \idx{flow-frame} identified by its \idx{IDL}. An error will occur if
5926 there is no \idx{flow-frame} with the given \idx{IDL}.
5927
5928 For example, suppose the first \idx{flow-frame} has been defined
5929 with:
5930 \begin{codebox}
5931 \gls{newflowframe}\marg{0.6\gls{textwidth}}\marg{\gls{textheight}}\marg{0pt}\marg{0pt}\oarg{main}
5932 \end{codebox}
5933 Then later in the document:
5934 \begin{coderesult}
5935 The label for the first
5936 flow frame is
5937 ``\gls{getflowlabel}\marg{1}''.
5938 The flow frame labelled
5939 ``main'' has IDN
5940 \gls{getflowid}\marg{\cmd{myid}}\marg{main}\cmd{myid}.
5941 \tcblower
5942 The label for the first flow frame is ``\getflowlabel{1}''.
5943 The flow frame labelled ``main'' has IDN
5944 \getflowid{\myid}{main}\myid.
5945 \end{coderesult}
5946
5947 If the document continues beyond the last
5948 defined \idx*{flow-frame} (for example, the \idxpl*{flow-frame} have only
5949 been defined on pages~1 to~10, but the document contains 11
5950 pages) then a single \idx*{flow-frame} will be defined,
5951 emulating one column mode for all subsequent pages.
5952
5953 \begin{information}
5954 \Idx{flow-frame} attributes can be changed with \gls{setflowframe}.
5955 See \sectionref{sec:modattr} for further details.
5956 \end{information}
5957
5958 \subsection{Prematurely Ending a Flow Frame}
5959 \label{sec:framebreak}
5960
5961 You can force text to move immediately to the next defined
5962 \idx{flow-frame} using \gls{newpage} or \gls{pagebreak}. These work
5963 in an analogous way to the way they work in standard two-column
5964 mode.
5965
5966 \cmddef{framebreak}
5967 This command is required when a paragraph spans two
5968 \idxpl*{flow-frame} of different widths, as \TeX's output routine
5969 does not adjust to the new value of \gls{hsize} until the last
5970 paragraph of the previous column (\idx{flow-frame} in this case) has
5971 ended. As a result, the end of the paragraph at the beginning of the
5972 new \idx*{flow-frame} retains the width of the previous
5973 \idx*{flow-frame}. The optional argument is as for \gls{pagebreak}.
5974
5975 The \gls{framebreak} command is similar to \gls{newpage} in that it
5976 forces a break in the flow of the document text but, unlike
5977 \gls{newpage}, if \gls{framebreak} is used mid-paragraph it forces
5978 a break without given the appearance of a break in the paragraph.
5979
5980 \begin{warning}
5981 The use of \gls{framebreak} can lead to unwanted excess space in the
5982 paragraph before the break.
5983 \end{warning}
5984
5985 If a paragraph spans two \idxpl*{flow-frame} of unequal width without
5986 using \gls{framebreak} a warning will be issued. If a subtle
5987 difference in frame widths is caused by rounding errors (for
5988 example, if the frames were created using \idx{FlowframTk}) you can adjust
5989 the tolerance to suppress these warnings.
5990
5991 \cmddef{fftolerance}
5992 The tolerance used when determining whether or not to warn
5993 when moving between \idxpl{flow-frame} of different widths is given
5994 by the length register \gls{fftolerance}. If you want to change the
5995 tolerance, you need to change the value of this register using an
5996 appropriate length command, such as \gls{setlength}. For example, to suppress warnings where
5997 the difference in width is less than 3pt, do:
5998 \begin{codebox}
5999 \gls{setlength}\marg{\gls{fftolerance}}\marg{3pt}
6000 \end{codebox}
6001
6002 If you want to start a new page, rather than simply move to the
6003 next \idx*{flow-frame}, use the command \gls{clearpage},
6004 or for two-sided documents, to start on the next odd page
6005 do \gls{cleardoublepage}.
6006
6007 \cmddef{cleartoevenpage}
6008 This command is like \gls{cleardoublepage} but ensures that the next page is even.
6009
6010 \cmddef{finishthispage}
6011 To finish the entire page (rather than just move to the next
6012 column), you can also use \gls{finishthispage}. This ensures that
6013 each remaining valid \idx{flow-frame} on the current page is shipped
6014 out with empty content.
6015
6016 \section{Static Frames}
6017 \label{sec:static}
6018
6019 A \gls[format=mainfmt]{static-frame} is a rectangular area in which text neither
6020 flows into nor flows out of. That is, you have to explicitly set the contents of
6021 this frame. A \idx{static-frame} may have non-rectangular content (see
6022 \sectionref{sec:parshape}).
6023
6024 \begin{information}
6025 A \idx{static-frame} may appear to contain text belonging to another
6026 frame if that other frame overlaps it. This doesn't mean that the
6027 \idx{static-frame} contains that text.
6028 \end{information}
6029
6030 The contents must be set explicitly, and once set, the contents
6031 of the \idx*{static-frame} will remain the same on each page until it is
6032 explicitly changed. Thus, a \idx*{static-frame} can be used, for
6033 example, to make a company logo appear in the same place on every
6034 page. The \frameopt{clear} attribute may be set to automatically
6035 clear the contents whenever a page is shipped out.
6036
6037 \cmddef{newstaticframe}
6038 Defines a new \idx{static-frame}. The arguments are the same as for
6039 \gls{newflowframe}: \meta{width} is the width of
6040 the \idx*{static-frame}, \meta{height} is the height of the \idx*{frame},
6041 (\meta{x},\meta{y}) is the position of the bottom left hand
6042 corner of the \idx*{frame} relative to the bottom left hand
6043 corner of the \idx{typeblock}. The first optional argument,
6044 \meta{page list}, indicates the \idx{pglist} for which this
6045 \idx*{static-frame} should appear, and the final optional argument,
6046 \meta{label} is a unique textual \idx{IDL} which you can use to
6047 identify this \idx*{static-frame}. If no label is specified, you
6048 can refer to this \idx*{frame} by its unique \idx{IDN}.
6049 The first \idx*{static-frame} to be defined has \gls*{IDN}~1, the second
6050 has \gls*{IDN}~2, and so on.
6051
6052 The starred version assigns a plain border to the \idx*{frame},
6053 which is simply a shortcut for first defining the frame and then
6054 setting the \frameoptval{border}{plain} attribute.
6055
6056 \cmddef{getstaticlabel}
6057 Expands to the \idx{IDL} for the \idx{static-frame} identified by its
6058 \idx{IDN}. An error will occur if there is no \idx{static-frame} with
6059 the given \idx{IDN}.
6060
6061 There is no equivalent command that will expand to the \idx{IDN}.
6062 Instead you need to fetch the value with:
6063 \cmddef{getstaticid}
6064 This will define the command \meta{cmd} to expand to the \idx{IDN} of the
6065 \idx{static-frame} identified by its \idx{IDL}. An error will occur if
6066 there is no \idx{static-frame} with the given \idx{IDL}.
6067
6068 For example:
6069 \begin{coderesult}[before upper app=\footnotesize]
6070 The label for the first
6071 static frame is
6072 ``\gls{getstaticlabel}\marg{1}''.
6073 The static frame labelled
6074 ``backleft'' has IDN
6075 \gls{getstaticid}\marg{\cmd{myid}}\marg{backleft}\cmd{myid}.
6076 \tcblower
6077 The label for the first static frame is ``\getstaticlabel{1}''.
6078 The static frame labelled ``backleft'' has IDN
6079 \getstaticid{\myid}{backleft}\myid.
6080 \end{coderesult}
6081
6082 \section{Setting the Contents}\label{sec:staticcontents}
6083
6084 \envdef{staticcontents}
6085 The contents of a particular \idx{static-frame} may be set within
6086 the \env{staticcontents} environment, where the \idx{static-frame}
6087 is identified by its \idx{IDN}.
6088
6089 \envdef{staticcontents*}
6090 The starred version identifies the \idx{static-frame} by its
6091 \idx{IDN} instead. Both environments (as from v2.0) have an optional
6092 argument that may be used to locally set the \idx*{frame}['s]
6093 attributes (see \sectionref{sec:modattr}).
6094
6095 \cmddef{setstaticcontents}
6096 A command alternative to the above environments. The \meta{ID}
6097 argument is the \idx{IDN} for the unstarred version and the
6098 \idx{IDL} for the starred version. If the optional argument is
6099 provided, this becomes a shortcut for first setting the options and
6100 then setting the content. The definition internally uses
6101 \env{staticcontents} or \env{staticcontents*} as applicable.
6102
6103 \begin{information}
6104 Frame attributes are global variables.
6105 \end{information}
6106
6107 \emph{For advanced users:}
6108 Unlike \idxpl{dynamic-frame}, which store their contents in a global
6109 token list variable, \idxpl{static-frame} set their contents in a
6110 box. A box variable, \inlineglsdef{staticframe}, is used
6111 for temporary storage when the content is set in an \env{lrbox}
6112 environment.
6113
6114 \hookdef{flowfram/staticbox/before}
6115 The hook \hook{flowfram/staticbox/before} is used immediately before
6116 the \gls{staticframe} box is set.
6117
6118 \hookdef{flowfram/staticbox/after}
6119 The hook \hook{flowfram/staticbox/after} is used immediately before
6120 the \gls{staticframe} box is set.
6121
6122 The actual box variable associated with the \idx{static-frame}
6123 contents is then set after the \hook{flowfram/staticbox/after}
6124 hook. Since this always occurs within the \env{staticcontents}
6125 or \env{staticcontents*} environment (either explicitly or
6126 implicitly via \gls{setstaticcontents}), any changes made by the
6127 hooks will be scoped by the usual environment grouping.
6128
6129 \subsection{Continued Text}\label{sec:staticcontinue}
6130
6131 Although text can't flow into or out of a \idx{static-frame}, it's
6132 possible to simulate this effect.
6133
6134 \cmddef{continueonframe}
6135 This command may be used when either setting the contents of a
6136 \idx{static-frame} or a \idx{dynamic-frame}. When the command is
6137 encountered, the content that follows will be placed in the
6138 identified \idx*{frame}. The \idx*{frame} type depends on the
6139 context. If \gls{continueonframe} is used while setting the content
6140 of a \idx{static-frame} then \meta{ID} refers to another
6141 \idx{static-frame}. It will match the encapsulating command or
6142 environment. (For \idxpl{dynamic-frame}, see
6143 \sectionref{sec:dynamiccontinue}.)
6144
6145 \begin{warning}
6146 This command forces a break in the text whilst at the same time
6147 trying to justify it, so overly large space may occur.
6148 \end{warning}
6149
6150 For example, if \gls{continueonframe} is used within the body of
6151 \env{staticcontents} then \meta{ID} refers to the next
6152 \idx*{static-frame}['s] \idx{IDN} (since \env{staticcontents}
6153 references the frame by its \idx{IDN}), but if \gls{continueonframe}
6154 is used within the body of \env{staticcontents*} then \meta{ID}
6155 refers to the next \idx*{static-frame}['s] \idx{IDL} (since
6156 \env{staticcontents*} references the frame by its \idx{IDL}).
6157
6158 This command is actually just a convenient shortcut where the
6159 behaviour is determined by the encapsulating command or environment.
6160 For example:
6161 \begin{codebox}
6162 \cbeg{staticcontents}\marg{1}
6163 Some text\ldots{}
6164 \gls{continueonframe}\oarg{Continued/}\marg{2}
6165 Some more text\ldots{}
6166 \cend{staticcontents}
6167 \end{codebox}
6168 This is simply a shortcut for:
6169 \begin{codebox}
6170 \cbeg{staticcontents}\marg{1}
6171 Some text\ldots{}
6172 \gls{ffcontinuedtextlayout}\marg{Continued/}
6173 \cend{staticcontents}
6174 \cbeg{staticcontents}\marg{2}
6175 \gls{ffstaticpostcontinued}\marg{1}\marg{2}
6176 Some more text\ldots{}
6177 \cend{staticcontents}
6178 \end{codebox}
6179 Whereas:
6180 \begin{codebox}
6181 \cbeg{staticcontents*}\marg{leftframe}
6182 Some text\ldots{}
6183 \gls{continueonframe}\oarg{Continued/}\marg{rightframe}
6184 Some more text\ldots{}
6185 \cend{staticcontents*}
6186 \end{codebox}
6187 This is a shortcut for:
6188 \begin{codebox}
6189 \cbeg{staticcontents*}\marg{leftframe}
6190 Some text\ldots{}
6191 \gls{ffcontinuedtextlayout}\marg{Continued/}
6192 \cend{staticcontents*}
6193 \cbeg{staticcontents*}\marg{rightframe}
6194 \gls{ffstaticpostcontinued}\margm{IDN1}\margm{IDN2}
6195 Some more text\ldots{}
6196 \cend{staticcontents*}
6197 \end{codebox}%
6198 where \meta{IDN1} is the \idx{IDN} of \optfmt{leftframe} and
6199 \meta{IDN2} is the \idx{IDN} of \optfmt{rightframe}.
6200
6201 \begin{important}
6202 Bear in mind that this means that \gls{continueonframe} causes a
6203 change in scope so any local changes made before the command won't
6204 still be in effect after it.
6205 \end{important}
6206
6207 The optional argument \meta{text} specifies some continuation text to place
6208 at the end of the first \idx*{frame}.
6209 If \meta{text} is omitted, then (for \idxpl{static-frame}) the
6210 default is:
6211 \cmddef{ffdefaultstaticcontinuetext}
6212 where \meta{IDN1} is the \idx{IDN} of the first \idx{static-frame}
6213 and \meta{IDN2} is the \idx{IDN} of the continuation frame.
6214 Note that these arguments are always numeric, regardless of the
6215 encapsulating command or environment.
6216
6217 By default, \gls{ffdefaultstaticcontinuetext} ignores its arguments and
6218 simply expands to:
6219 \cmddef{ffdefaultcontinuetext}
6220 This does nothing by default. It's also used by
6221 \gls{ffdefaultdynamiccontinuetext} so if you do, for
6222 example:
6223 \begin{codebox}
6224 \cmd{renewcommand}\marg{\gls{ffdefaultcontinuetext}}\marg{Continued/}
6225 \end{codebox}
6226 then this text will be used as the default for both
6227 \idxpl{static-frame} and \idxpl{dynamic-frame}.
6228
6229 \begin{important}
6230 An empty optional argument in \gls{continueonframe} is not the same
6231 as omitting the optional argument. This has changed in version 2.0.
6232 In earlier versions, the default value was simply empty.
6233 \end{important}
6234
6235 The formatting of the supplied \meta{text} is applied by:
6236 \cmddef{ffcontinuedtextlayout}
6237 The default definition fills the paragraph so that the end is flush
6238 with the right margin and then typesets the \meta{text} flush right
6239 on the next line encapsulated with:
6240 \cmddef{ffcontinuedtextfont}
6241 The default definition expands to
6242 \code{\cmd{emph}\marg{\cmd{small} \meta{text}}}.
6243
6244 \begin{important}
6245 This assumes that it should appear as though no paragraph
6246 break occurs in the transition between the two \idxpl*{frame}. If you
6247 want a paragraph break you need to explicitly put one before
6248 and after \gls{continueonframe}.
6249 \end{important}
6250
6251 For example:
6252 \begin{codebox}
6253 \cbeg{staticcontents*}\marg{frame1}
6254 Some text in the first frame. (Let's
6255 assume this frame is somewhere on the
6256 left half of the page.)
6257 \codepar
6258 \gls{continueonframe}\oarg{Continued on the right}\marg{frame2}
6259 \codepar
6260 This is some text in the second frame. (Let's
6261 assume this frame is somewhere on the
6262 right half of the same page.)
6263 \cend{staticcontents*}
6264 \end{codebox}
6265
6266 Alternatively, just redefine \gls{ffcontinuedtextlayout} and
6267 \gls{ffdefaultpostcontinued}. However, there seems little point in using
6268 \gls{continueonframe} in this case. You may just as well use two
6269 \env{staticcontents} environments to set the contents separately.
6270
6271 The content of the continuation \idx{static-frame} will start with:
6272 \cmddef{ffstaticpostcontinued}
6273 The first argument is the \idx{IDN} of the previous frame (the frame
6274 at the point where \gls{continueonframe} occurs).
6275 The second argument is the \idx{IDN} of the continuation frame.
6276
6277 Both arguments are always numeric irrespective of whether or not the
6278 starred or unstarred version of \env{staticcontents} or
6279 \gls{setstaticcontents} was used (the second argument is an integer
6280 variable whereas the first is the actual number).
6281
6282 The default definition simply ignores its arguments and expands to:
6283 \cmddef{ffdefaultpostcontinued}
6284 This just does:
6285 \begin{compactcodebox}
6286 \cmd{par} \cmd{noindent} \cmd{ignorespaces}
6287 \end{compactcodebox}%
6288 which is what suppresses the normal paragraph indentation at the start of the
6289 continuation frame content.
6290
6291 The arguments of \gls{ffstaticpostcontinued} provides a way of referencing
6292 back to the previous frame.
6293
6294 \mExampleref{ex:staticcont} redefines the default definitions to
6295 use \gls{relativeframelocation} (see \sectionref{sec:relativelocs})
6296 but first some layout commands described in \sectionref{sec:colstyleswithframe}
6297 are used to create a \idx{flow-frame} with
6298 a \idx{static-frame} above it and another \idx{flow-frame} with a
6299 \idx{static-frame} below it.
6300 \begin{codebox}[before upper app=\small]
6301 \gls{onecolumnStopinarea}\marg{1in}
6302 \marg{0.5\gls{typeblockwidth}-10pt}\marg{\gls{typeblockheight}}
6303 \marg{0pt}\marg{0pt}
6304 \gls{setstaticframe}\marg{\cmd{value}\marg{\ctr{maxstatic}}}
6305 \marg{\frameoptval{label}{upper},\frameoptval{border}{plain}}
6306 \codepar
6307 \gls{onecolumnSbottominarea}\marg{1in}
6308 \marg{0.5\gls{typeblockwidth}-10pt}\marg{\gls{typeblockheight}}
6309 \marg{0.5\gls{typeblockwidth}+10pt}\marg{0pt}
6310 \gls{setstaticframe}\marg{\cmd{value}\marg{\ctr{maxstatic}}}
6311 \marg{\frameoptval{label}{lower},\frameoptval{border}{plain},\frameoptval{parindent}{1em}}
6312 \end{codebox}
6313 I've assigned \idxpl{IDL} to the \idxpl{static-frame}:
6314 \optfmt{upper} for the first one and \optfmt{lower} for the second
6315 one. I've also given both \idxpl{static-frame} a border to make them
6316 stand out. The second (\optfmt{lower}) has also been given its own
6317 paragraph indentation rather than using the default (given by \gls{sdfparindent}).
6318
6319 Now the defaults are changed:
6320 \begin{codebox}[before upper app=\small]
6321 \cmd{renewcommand}\marg{\gls{ffdefaultstaticcontinuetext}}\oarg{2}\marg{\comment{}
6322 Continued
6323 \gls{relativeframelocation}\marg{static}\marg{\#2}\marg{static}\marg{\#1}\comment{}
6324 }
6325 \cmd{renewcommand}\marg{\gls{ffstaticpostcontinued}}\oarg{2}\marg{\comment{}
6326 \gls{ffcontinuedtextlayout}\marg{\comment{}
6327 Continued from
6328 \gls{relativeframelocation}\marg{static}\marg{\#1}\marg{static}\marg{\#2}\comment{}
6329 }\comment{}
6330 \gls{ffdefaultpostcontinued}
6331 }
6332 \end{codebox}%
6333 and then content is added to both \idxpl{static-frame} but
6334 \gls{continueonframe} is used to transition between the two.
6335 The optional argument isn't present so the default will be used:
6336 \begin{codebox}
6337 \cbeg{\env{staticcontents*}}\marg{upper}
6338 Some text\ldots{}
6339 \gls{continueonframe}\marg{lower}
6340 resuming where we left off\ldots{}
6341 \codepar
6342 Next paragraph.
6343 \cend{\env{staticcontents*}}
6344 \end{codebox}
6345
6346 The \styfmt{lipsum} package is used for filler text.
6347 Note that because of the narrow columns, there are some overfull
6348 lines.
6349
6350 \createresultexampleindynamicframe*
6351 [title={Contination Text in Static Frames},
6352 label={ex:staticcont},
6353 description={Example document with lipsum filler text spanning the
6354 two main columns and sample text starting in an upper left frame and
6355 continuing in a lower right frame}
6356 ]
6357 {examples}
6358 {%
6359 \cmd{usepackage}\oarg{T1}\marg{fontenc}\nl
6360 \cmd{usepackage}\marg{flowfram}\nl
6361 \cmd{usepackage}\marg{lipsum}
6362 \codepar
6363 \gls{onecolumnStopinarea}\marg{1in}\marg{0.5\gls{typeblockwidth}-10pt}\marg{\gls{typeblockheight}}\marg{0pt}\marg{0pt}\nl
6364 \gls{setstaticframe}\marg{\cmd{value}\marg{maxstatic}}\marg{\frameoptval{label}{upper},\frameoptval{border}{plain}}
6365 \codepar
6366 \gls{onecolumnSbottominarea}\marg{1in}\marg{0.5\gls{typeblockwidth}-10pt}\marg{\gls{typeblockheight}}\marg{0.5\gls{typeblockwidth}+10pt}\marg{0pt}\nl
6367 \gls{setstaticframe}\marg{\cmd{value}\marg{maxstatic}}\marg{\frameoptval{label}{lower},\frameoptval{border}{plain},\frameoptval{parindent}{1em}}\nl
6368 \codepar
6369 \cmd{renewcommand}\marg{\gls{ffdefaultstaticcontinuetext}}\oarg{2}\marg{\commentdbsp{}
6370 Continued \gls{relativeframelocation}\marg{static}\marg{\#2}\marg{static}\marg{\#1}\commentnl{}
6371 }\nl
6372 \cmd{renewcommand}\marg{\gls{ffstaticpostcontinued}}\oarg{2}\marg{\comment{}
6373 \gls{ffcontinuedtextlayout}\marg{\commentdbsp{}
6374 Continued from \gls{relativeframelocation}\marg{static}\marg{\#1}\marg{static}\marg{\#2}\comment{}
6375 }\comment{}
6376 \gls{ffdefaultpostcontinued}\nl
6377 }
6378 }
6379 {
6380 \cbeg{staticcontents*}\marg{upper}\nl
6381 Some text in a static frame for \nl
6382 illustrative purposes that needs to\nl
6383 break off and continue later on and\nl
6384 \gls{continueonframe}\marg{lower}\nl
6385 resuming where we left off\nl
6386 this is text in another static frame\nl
6387 elsewhere on the page.
6388 \codepar
6389 Next paragraph.\nl
6390 \cend{staticcontents*}
6391 \codepar
6392 \cmd{lipsum}\oarg{1-3}
6393 }
6394
6395 \subsection{Important Notes}\label{sec:staticimportantnotes}
6396
6397 When you set the contents of a \idx{static-frame}, the contents are
6398 immediately typeset and stored in a \TeX\ \qt{box} until it is time to put
6399 the contents on the page. This means that if you use any information
6400 that varies throughout the document (such as the page number) the
6401 value that is current when you set the \idx*{static-frame}['s] contents
6402 will be the value used.
6403
6404 However, if \gls{label} is used inside a \idx*{static-frame},
6405 the label information will be written to the auxiliary file each
6406 time the \idx*{static-frame} is displayed until the contents of that
6407 frame have been changed. This means that you may
6408 end up with multiply defined labels.
6409
6410 \begin{information}
6411 If you want to use cross-referencing commands, it's better to use a
6412 \idx{dynamic-frame} instead of a \idx{static-frame}.
6413 \end{information}
6414
6415 \section{Dynamic Frames}
6416 \label{sec:dynamic}
6417
6418 A \gls[format=mainfmt]{dynamic-frame} is similar to a
6419 \idx{static-frame} except that its contents
6420 are re-typeset on each page. As with \idxpl{static-frame}, a
6421 \idx*{dynamic-frame} may have non-rectangular content
6422 (see \sectionref{sec:parshape}).
6423
6424 \begin{important}
6425 A \idx*{static-frame} stores its contents in a \qt{box}, whereas a
6426 \idx*{dynamic-frame} stores its contents in a token list variable.
6427 This means that \idx{verbatim} content may be used in the body of
6428 the \env{staticcontents} environment but not in the body of the
6429 \env{dynamiccontents} environment (and likewise for the starred
6430 versions).
6431 \end{important}
6432
6433 The contents must be set and will remain the same until changed.
6434 There are some special types of \idxpl{dynamic-frame} that have their content
6435 automatically set. The \frameopt{clear} attribute may be set to automatically
6436 clear the contents whenever a page is shipped out but this
6437 may interfere with the special \idxpl*{dynamic-frame}.
6438
6439 Special frames have \inlineglsdef{idx.speciallabel} that should not be
6440 assigned to non-special \idx*{dynamic} frames:
6441 \speciallabel{header}, \speciallabel{footer},
6442 \speciallabel{evenheader}, \speciallabel{evenfooter} (see
6443 \sectionref{sec:dfheadfoot}),
6444 \speciallabel{thumbtab}, \speciallabel{thumbtabindex},
6445 \speciallabel{eventhumbtab}, and \speciallabel{eventhumbtabindex}
6446 (see \sectionref{sec:thumbtabs}).
6447
6448 \cmddef{newdynamicframe}
6449 Defines a new \idx{dynamic-frame}. The arguments are the same as for
6450 \gls{newflowframe}: \meta{width} is the width of
6451 the \idx*{dynamic-frame}, \meta{height} is the height of the \idx*{frame},
6452 (\meta{x},\meta{y}) is the position of the bottom left hand
6453 corner of the \idx*{frame} relative to the bottom left hand
6454 corner of the \idx{typeblock}. The first optional argument,
6455 \meta{page list}, indicates the \idx{pglist} for which this
6456 \idx*{dynamic-frame} should appear, and the final optional argument,
6457 \meta{label} is a unique textual \idx{IDL} which you can use to
6458 identify this \idx*{dynamic-frame}. If no label is specified, you
6459 can refer to this \idx*{frame} by its unique \idx{IDN}.
6460 The first \idx*{dynamic-frame} to be defined has \gls*{IDN}~1, the second
6461 has \gls*{IDN}~2, and so on.
6462
6463 The starred version assigns a plain border to the \idx*{frame},
6464 which is simply a shortcut for first defining the frame and then
6465 setting the \frameoptval{border}{plain} attribute.
6466
6467 \cmddef{getdynamiclabel}
6468 Expands to the \idx{IDL} for the \idx{dynamic-frame} identified by its
6469 \idx{IDN}. An error will occur if there is no \idx{dynamic-frame} with
6470 the given \idx{IDN}.
6471
6472 There is no equivalent command that will expand to the \idx{IDN}.
6473 Instead you need to fetch the value with:
6474 \cmddef{getdynamicid}
6475 This will define the command \meta{cmd} to expand to the \idx{IDN} of the
6476 \idx{dynamic-frame} identified by its \idx{IDL}. An error will occur if
6477 there is no \idx{dynamic-frame} with the given \idx{IDL}.
6478
6479 For example, if the first \idx{dynamic-frame} is defined as:
6480 \begin{codebox}
6481 \gls{newdynamicframe}\marg{0.38\gls{textwidth}}\marg{\gls{textheight}}\marg{0.62\gls{textwidth}}\marg{0pt}\oarg{chaphead}
6482 \end{codebox}
6483 then later in the document:
6484 \begin{coderesult}[before upper app=\footnotesize]
6485 The label for the first
6486 dynamic frame is
6487 ``\gls{getdynamiclabel}\marg{1}''.
6488 The dynamic frame labelled
6489 ``chaphead'' has IDN
6490 \gls{getdynamicid}\marg{\cmd{myid}}\marg{chaphead}\cmd{myid}.
6491 \tcblower
6492 The label for the first dynamic frame is
6493 ``\getdynamiclabel{1}''.
6494 The dynamic frame labelled ``chaphead'' has IDN
6495 \getdynamicid{\myid}{chaphead}\myid.
6496 \end{coderesult}
6497
6498 The contents of a \idx{dynamic-frame} may be set with either a
6499 command or an environment but, in either case, the content can't
6500 include any \idx{verbatim} material.
6501
6502 \cmddef{setdynamiccontents}
6503 Sets the contents of the \idx{dynamic-frame} identified by
6504 \meta{ID}. This should be the \idx*{frame}['s] \idx{IDN} for the
6505 unstarred versions and the \idx{IDL} for the starred version.
6506 If \meta{options} is present, the given attributes will be
6507 applied to the frame first.
6508
6509 \begin{information}
6510 Frame attributes are global variables.
6511 \end{information}
6512
6513 \envdef{dynamiccontents}
6514 Sets the contents of the \idx{dynamic-frame} identified by its
6515 \idx{IDN}. If \meta{options} is present, the given attributes will
6516 be applied to the frame first.
6517
6518 \envdef{dynamiccontents*}
6519 The starred version is the same as \env{dynamiccontents} except that
6520 the \idx*{frame} is identified by its \idx{IDL}.
6521
6522 Unlike \idxpl{static-frame}, you can append content to a
6523 \idx{dynamic-frame}.
6524
6525 \cmddef{appenddynamiccontents}
6526 Appends \meta{content} to the current content of the
6527 \idx{dynamic-frame} identified by its \idx{IDN} (unstarred version)
6528 or by its \idx{IDL} (starred version).
6529
6530 \begin{information}
6531 The \idx{dynamic-frame} content is stored in a global variable.
6532 It's not used until the output routine positions it on the page
6533 so there's no point localising any changes.
6534 \end{information}
6535
6536 \subsection{Putting Chapter Titles in a Dynamic Frame}
6537 \label{sec:dfchaphead}
6538
6539 If \gls{chapter} is defined, you can make the chapter heading appear
6540 in a \idx{dynamic-frame} instead of in its usual place in the flow of
6541 document text. There is no facility for placing other sectional types in a
6542 \idx*{dynamic-frame}.
6543
6544 This feature was originally implemented with \gls{dfchaphead}
6545 which hacked the internal commands commonly used in the definition
6546 of \gls{chapter} but this is problematic and doesn't work with some
6547 classes so version 2.0 provides a new approach. The old
6548 \gls{dfchaphead} command is still available but its use is now
6549 deprecated.
6550
6551 \begin{information}
6552 The chapter heading refers to the (typically large, bold) text with the chapter number (if
6553 applicable) and title that's normally placed at the start of a new
6554 page. If you want thumbtabs, see \sectionref{sec:thumbtabs}.
6555 If you want page headers and footers in a \idx{dynamic-frame},
6556 see \sectionref{sec:dfheadfoot}.
6557 \end{information}
6558
6559 \cmddef{ChapterInDynamic}
6560 Places the chapter heading in the \idx{dynamic-frame}
6561 identified by \meta{ID}, which is the frame's \idx{IDN} (unstarred)
6562 or \idx{IDL} (starred). This command is only available if
6563 \gls{chapter} is defined.
6564
6565 \begin{important}
6566 This causes each instance of \gls{chapter} to set
6567 the contents of the identified \idx{dynamic-frame} which will
6568 replace any previous content.
6569 \end{important}
6570
6571 The \sty{flowfram} package redefines all the standard sectioning commands
6572 (\gls{chapter} is only redefined if it's already defined). The
6573 modified \gls{chapter} places the original definition in the content
6574 of the chosen \idx{dynamic-frame}, but there are some problems with
6575 this approach. Normally, the contents of a \idx{dynamic-frame}
6576 aren't expanded until the output routine positions the frame on the
6577 page, and since \idxpl{dynamic-frame} are always positioned after
6578 \idxpl{flow-frame} this can cause counters and labels to be
6579 out-of-sync.
6580
6581 To avoid this problem, \gls{ChapterInDynamic} ensures
6582 that the chapter heading is first expanded by putting it in a box of
6583 the same width as the \idx{dynamic-frame}, but it first needs to
6584 locally disable problematic commands, such as \gls{clearpage}.
6585 This means that the page break usually performed by \gls{chapter} is
6586 now implemented with:
6587 \cmddef{dfchapterclearpage}
6588 This is be defined to use either \gls{clearpage} or
6589 \gls{cleardoublepage}, depending on the standard \optfmt{openright}
6590 setting.
6591 This command is only available if \gls{chapter} is defined.
6592
6593 There are hooks available in the event that there are other
6594 problematic commands that may need adjusting. These hooks are only
6595 defined if \gls{chapter} is defined.
6596
6597 \hookdef{flowfram/chaphead/before}
6598 The \hook{flowfram/chaphead/before} hook is used before the heading
6599 box is set but after the page has been cleared with
6600 \gls{dfchapterclearpage}.
6601
6602 \hookdef{flowfram/chaphead/after}
6603 The \hook{flowfram/chaphead/after} hook is used after the
6604 \idx{dynamic-frame}['s] content has been set. For example, you can
6605 use this hook to automatically append content to the
6606 \idx{dynamic-frame} with \gls{appenddynamiccontents}.
6607
6608 \hookdef{flowfram/chaphead/box/before}
6609 The \hook{flowfram/chaphead/box/before} hook is used inside the
6610 heading box before the heading but after the known set of
6611 problematic commands have been adjusted. Since this hook occurs
6612 within a \gls{parbox}, it will be scoped.
6613
6614 For example, this hook can be used to change the text colour of just
6615 the heading without affecting the colour of any content that is
6616 subsequently added to the frame:
6617 \begin{codebox}
6618 \cmd{AddToHook}\marg{\hook{flowfram/chaphead/box/before}}\marg{\gls{color}\marg{blue}}
6619 \end{codebox}
6620
6621 \hookdef{flowfram/chaphead/box/after}
6622 The \hook{flowfram/chaphead/box/after} hook is used after the
6623 heading at the end of the box. Since this hook occurs
6624 within a \gls{parbox}, it will be scoped.
6625
6626 For example, \thisdoc\ defines a new \idx{dynamic-frame} called
6627 \optfmt{chaphead} and uses it for chapter headings:
6628 \begin{codebox}
6629 \gls{newdynamicframe}\marg{0.38\gls{textwidth}}\marg{\gls{textheight}}\marg{0.62\gls{textwidth}}\marg{0pt}\oarg{chaphead}
6630 \gls{setdynamicframe}*\marg{chaphead}\marg{\frameoptval{evenx}{0pt},\frameopt{clear}}
6631 \gls{ChapterInDynamic}*\marg{chaphead}
6632 \end{codebox}
6633 Note that this provides a different horizontal position for even
6634 pages (specified with \frameopt{evenx}) and the frame contents are
6635 automatically cleared on each new page (otherwise the chapter
6636 heading would show on every page).
6637
6638 The document class is \cls{scrbook} so the KOMA-Script
6639 command that adds extra vertical space is redefined to do nothing
6640 (since the \idx{dynamic-frame} has its own custom dimensions):
6641 \begin{codebox}
6642 \cmd{renewcommand}\cmd{chapterheadstartvskip}\marg{}
6643 \end{codebox}
6644 and the chapter heading text is changed to blue:
6645 \begin{codebox}
6646 \cmd{addtokomafont}\marg{chapter}\marg{\cmd{color}\marg{blue}}
6647 \end{codebox}
6648
6649 A \idx{minitoc} is also added to the same frame (see
6650 \sectionref{sec:minitocs}):
6651 \begin{codebox}
6652 \gls{appenddfminitoc}*\marg{chaphead}
6653 \end{codebox}
6654
6655 I then defined a custom command to add a summary after the chapter
6656 heading:
6657 \begin{codebox}
6658 \cmd{newcommand}\marg{\cmd{chapdesc}}\oarg{1}\marg{\comment{}
6659 \gls{appenddynamiccontents}*
6660 \marg{chaphead}\marg{\cmd{par} \cmd{normalfont} \cmd{emph}\marg{\#1}}\comment{}
6661 }
6662 \end{codebox}
6663 For example, this chapter starts with:
6664 \begin{codebox}
6665 \gls{chapter}\marg{Defining New Frames}\gls{label}\marg{sec:newframes}
6666 \codepar
6667 \cmd{chapdesc}\marg{This chapter describes how to define new frames\ldots}
6668 \end{codebox}
6669
6670 Modern classes, such as \cls{memoir} and the KOMA-Script classes
6671 provide ways of adjusting the style of chapter headings. These can be
6672 adjusted, as in the example above. However, if you are using the
6673 standard \cls{book} or \cls{report} class, \sty{flowfram} will
6674 adjust the definitions to make it easier to change the style.
6675
6676 \begin{important}
6677 The following commands are only provided if \gls{@makechapterhead}
6678 matches the definition provided by \cls{book} or \cls{report}.
6679 \end{important}
6680
6681 \cmddef{ffchapterpreheadskip}
6682 Vertical space before the chapter heading. The default expansion is
6683 \code{\cmd{vspace}*\marg{50pt}} but this command is set to \csfmt{relax} in
6684 the \hook{flowfram/chaphead/box/before} hook as leading vertical
6685 space is generally redundant at the start of a \idx{dynamic-frame}
6686 that has been specifically dedicated to holding the chapter heading.
6687
6688 \cmddef{ffchapterpostheadskip}
6689 Vertical space after the chapter heading. The default expansion is
6690 \code{\cmd{vspace}*\marg{40pt}}.
6691
6692 \cmddef{ffchapterheadstyle}
6693 The paragraph style for the chapter heading. The default definition
6694 sets \gls{parindent} to zero and sets ragged right formatting.
6695
6696 \cmddef{ffchapterdefaultfont}
6697 The default font declarations for the chapter heading. This can then
6698 be overridden by the following two commands (which both have an argument,
6699 unlike \gls{ffchapterdefaultfont}). The default definition is
6700 \code{\cmd{normalfont} \cmd{bfseries}}.
6701
6702 \cmddef{ffchaptertitlefont}
6703 The font command for the chapter title (for both numbered and
6704 unnumbered chapters).
6705
6706 \cmddef{ffchapternamenumfont}
6707 The font command for the chapter name and number (only applicable
6708 with numbered chapters). Note that the definition should scope any
6709 declarations otherwise they will also be applied to the chapter
6710 title.
6711
6712 \cmddef{ffchapternamenum}
6713 Typesets the chapter name (\csfmt{chaptername} or
6714 \csfmt{appendixname}) and number. The default definition
6715 expands to \code{\meta{name} \meta{number}}.
6716
6717 \cmddef{ffchapterpostnamenum}
6718 The separator between the chapter number and the title.
6719 The default definition inserts a paragraph break and vertical space.
6720
6721 \subsection{Putting Headers and Footers in a Dynamic Frame}
6722 \label{sec:dfheadfoot}
6723
6724 Page \idxpl{header} and \idxpl{footer} can be turned into \idxpl{dynamic-frame}
6725 using:
6726 \cmddef{makedfheaderfooter}
6727 This command will create two \idxpl{dynamic-frame} with special
6728 labels \speciallabelinlinedef{header} and
6729 \speciallabelinlinedef{footer}. You can then move or resize these
6730 using \gls{setdynamicframe} (see \sectionref{sec:modattr}).
6731 Additionally, the page style will be set to \pstyle{ffheadings}.
6732
6733 \begin{information}
6734 If you use \idx{FlowframTk} (at least v0.8.8), you can additionally
6735 have different \headerandfooterframes\ for even pages.
6736 These should be assigned the special labels \speciallabelinlinedef{evenheader} and
6737 \speciallabelinlinedef{evenfooter} with the \idx{pglist} set to \qt{Even}.
6738 The \idxpl{dynamic-frame} for odd pages should be assigned the
6739 special labels \speciallabel{header} and \speciallabel{footer} with the \idx{pglist} set
6740 to \qt{Odd}. This may be done via the Flow Frame Wizard
6741 (see the \idx{FlowframTk} documentation for further details.)
6742 \end{information}
6743
6744 Below, \gls[format=main]{header-frame} and
6745 \gls[format=main]{footer-frame} refer to the \idxpl*{dynamic-frame}
6746 with the special labels \speciallabel{header} and
6747 \speciallabel{footer}, but also (if applicable) to the
6748 \speciallabel{evenheader} and \speciallabel{evenfooter} frames
6749 created with \idx{FlowframTk}.
6750
6751 \begin{important}
6752 You can't simply create \idxpl{dynamic-frame} with \gls{newdynamicframe} with these
6753 \idxpl{speciallabel} for this behaviour to work.
6754 You need to use the applicable command or application function.
6755 The frame content needs to be set to the appropriate code to ensure
6756 that it reflects the current page style. It's important not to use
6757 the \frameoptval{clear}{true} setting or otherwise clear the content of
6758 these frames as this function would then be lost.
6759 \end{important}
6760
6761 The \sty{flowfram} package provides page styles that are customised
6762 for \headerandfooterframes, which are listed below.
6763 Remember that you can set the frame style with the \frameopt{style}
6764 setting, but you may prefer to modify the helper commands instead
6765 (which may counteract the \frameopt{style} setting):
6766 \cmddef{dfOddFooterStyle}
6767 This command is used to format the footer for odd pages, where
6768 applicable. The default centres \meta{text} within the frame.
6769
6770 \cmddef{dfEvenFooterStyle}
6771 This command is used to format the footer for even pages, where
6772 applicable. The default centres \meta{text} within the frame.
6773
6774 \cmddef{dfOddHeaderStyle}
6775 This command is used to format the header for odd pages, where
6776 applicable. The default places \meta{text} flush right to the edge
6777 of the frame.
6778
6779 \cmddef{dfEvenHeaderStyle}
6780 This command is used to format the header for even pages, where
6781 applicable. The default places \meta{text} flush left to the edge
6782 of the frame.
6783
6784 \cmddef{flowframchapterheader}
6785 This command is only defined if \gls{chapter} is defined and picks
6786 up the \opt{dynamic-page-style-header-font} and \opt{dynamic-header-case} settings.
6787
6788 \cmddef{flowframsectionheader}
6789 The definition of this command depends on whether or not
6790 \gls{chapter} is defined. If it isn't defined,
6791 the \opt{dynamic-page-style-header-font} and \opt{dynamic-header-case} settings
6792 will apply. If \gls{chapter} is defined,
6793 the \opt{dynamic-page-style-subheader-font} and \opt{dynamic-subheader-case} settings
6794 will apply.
6795
6796 \cmddef{flowframheadersep}
6797 The separator used between the chapter or section number and the
6798 title (where a number is shown). If \gls{chapter} is defined, this
6799 is initialised to \code{.\visiblespace} (period followed by a space)
6800 otherwise it is initialised to \csfmt{quad}.
6801
6802 \cmddef{flowframheaderchapprefix}
6803 The prefix inserted before the chapter number. If \gls{chapter} is
6804 defined, the initial definition is \code{\cmd{@chapapp\visiblespace}}
6805 (\csfmt{chaptername} or \csfmt{appendixname} followed by a space)
6806 otherwise the initial definition is empty.
6807
6808 \pagestyledef{ffempty}
6809 The default behaviour of the \pstyle{ffempty} page style clears the
6810 standard header and footer commands (\gls{@oddhead}, \gls{@evenhead},
6811 \gls{@oddfoot} and \gls{@evenfoot}), as per the \pstyle{empty} style, but
6812 also hides the special \headerandfooterframes. This action may
6813 be changed with the \opt{dynamic-empty-page-style} setting.
6814
6815 For example, suppose you have created fancy \headerandfooterframes\
6816 with a background and border. It may look strange to have these
6817 frames showing with empty content, so the default setting hides them
6818 as well. However, if you still want the frames to show, then you
6819 would need to change the \opt{dynamic-empty-page-style} option to a
6820 setting that doesn't hide them, such as
6821 \opteqvalref{dynamic-empty-page-style}{empty}.
6822
6823 \pagestyledef{ffplain}
6824 The default behaviour of the \pstyle{ffplain} style is to have an
6825 empty header with \thectr{page} centred in the footer. More
6826 precisely, this style sets \gls{@oddfoot} to:
6827 \begin{compactcodebox}
6828 \gls{dfOddFooterStyle}\marg{\thectr{page}}
6829 \end{compactcodebox}
6830 and sets \gls{@evenfoot} to:
6831 \begin{compactcodebox}
6832 \gls{dfEvenFooterStyle}\marg{\thectr{page}}
6833 \end{compactcodebox}
6834 Both \gls{@oddhead} and \gls{@evenhead} are set to empty.
6835 Additionally, if \pstyle{ffempty} is set to hide the special
6836 \headerandfooterframes, the \pstyle{ffplain} style will ensure that
6837 \frameopt{hide} and \frameopt{hidethis} are set to \optfmt{false}
6838 to counteract any previous instance of \pstyle{ffempty}.
6839
6840 \begin{information}
6841 The \pstyle{ffheadings} and \pstyle{ffmyheadings} don't replicate
6842 the style of the standard \pstyle{headings} and \pstyle{myheadings}
6843 styles. Instead, the page number is always placed in the \idx{footer-frame}.
6844 If you want standard page headers and footers, there's no point switching
6845 to dynamic \headerandfooterframes. Any minor stylist changes can be
6846 made using packages or document classes that provide support for
6847 flexible page styles.
6848 \end{information}
6849
6850 \pagestyledef{ffheadings}
6851 The default behaviour of the \pstyle{ffheadings} style depends
6852 on whether or not \gls{chapter} is defined. Note that the page
6853 number is still placed in the \idx{footer-frame}, as per the
6854 \pstyle{ffplain} style. The right and left marks are placed in the
6855 applicable \idx{header-frame}.
6856
6857 This style sets \gls{@oddfoot} to
6858 \begin{compactcodebox*}
6859 \gls{dfOddFooterStyle}\marg{\thectr{page}}
6860 \end{compactcodebox*}
6861 \gls{@evenfoot} to:
6862 \begin{compactcodebox*}
6863 \gls{dfEvenFooterStyle}\marg{\thectr{page}}
6864 \end{compactcodebox*}
6865 \gls{@oddhead} to:
6866 \begin{compactcodebox*}
6867 \gls{dfOddHeaderStyle}\marg{\gls{rightmark}}
6868 \end{compactcodebox*}
6869 and \gls{@evenhead} to:
6870 \begin{compactcodebox*}
6871 \gls{dfOddHeaderStyle}\marg{\gls{leftmark}}
6872 \end{compactcodebox*}
6873
6874 If \gls{chapter} is defined, \gls{chaptermark} is redefined to
6875 encapsulate the mark with \gls{flowframchapterheader} and
6876 \gls{sectionmark} is redefined to encapsulate the mark with
6877 \gls{flowframsectionheader}.
6878
6879 If \gls{chapter} is not defined, \gls{sectionmark} is redefined to
6880 encapsulate the mark with \gls{flowframsectionheader} and
6881 \gls{subsectionmark} is redefined to encapsulate the mark with
6882 \gls{flowframsubsectionheader}.
6883
6884 In either case, if \pstyle{ffempty} is set to hide the special
6885 \headerandfooterframes, the \pstyle{ffheadings} style will ensure that
6886 \frameopt{hide} and \frameopt{hidethis} are set to \optfmt{false}
6887 to counteract any previous instance of \pstyle{ffempty}.
6888
6889 \pagestyledef{ffmyheadings}
6890 The \pstyle{ffmyheadings} style is similar to the
6891 \pstyle{ffheadings} style except that it sets the applicable mark
6892 commands to discard their argument. So, if \gls{chapter} is defined
6893 the \gls{chaptermark} and \gls{sectionmark} will be redefined to do
6894 nothing, otherwise \gls{sectionmark} and \gls{subsectionmark} will
6895 be redefined to do nothing.
6896
6897 \begin{information}
6898 If the \opteqvalref{dynamic-page-style}{adjust} setting is on,
6899 \gls{makedfheaderfooter} will redefine the standard page styles
6900 (\pstyle{empty}, \pstyle{plain}, \pstyle{headings} and
6901 \pstyle{myheadings}) to the analogous \pstyle{ffempty},
6902 \pstyle{ffplain}, \pstyle{ffheadings} or \pstyle{ffmyheadings} style.
6903 \end{information}
6904
6905 \subsection{Continued Text}\label{sec:dynamiccontinue}
6906
6907 As with \idxpl{static-frame}, in the body of \env{dynamiccontents}
6908 or \env{dynamiccontents*} or within the text of \gls{setdynamiccontents},
6909 you can move onto another \idx*{dynamic-frame} using:
6910 \begin{compactcodebox*}
6911 \gls[format=main]{continueonframe}\syntax{continueonframe}
6912 \end{compactcodebox*}%
6913 to simulate text flowing from one \idx{dynamic-frame} to another.
6914 This command must not be hidden inside the definition of another
6915 command.
6916
6917 \begin{warning}
6918 The \gls{continueonframe} command forces a break in the text whilst at the same time
6919 trying to justify it, so overly large space may occur.
6920 \end{warning}
6921
6922 In this case, if \gls{continueonframe} occurs within
6923 \env{dynamiccontents*}, \meta{ID} refers to the \gls*{IDL} of the
6924 other \idx{dynamic-frame}, otherwise it refers to the \gls*{IDN} of
6925 the other \idx{dynamic-frame}. It's not possible to continue onto a
6926 different type of frame.
6927
6928 For example, suppose I have defined two \idxpl*{dynamic-frame} labelled
6929 \optfmt{frame1} (IDN~1) and \optfmt{frame2} (IDN~2), then:
6930 \begin{codebox}
6931 \cbeg{\env{dynamiccontents*}}\marg{frame1}
6932 Some text in the first frame. (Let's
6933 assume this frame is somewhere on the
6934 left half of the page.)
6935 \gls{continueonframe}\oarg{Continued on the right}\marg{frame2}
6936 This is some text in the second frame. (Let's
6937 assume this frame is somewhere on the
6938 right half of the same page.)
6939 \cend{\env{dynamiccontents*}}
6940 \end{codebox}
6941 is essentially the same as:
6942 \begin{compactcodebox}
6943 \cbeg{\env{dynamiccontents*}}\marg{frame1}
6944 Some text in the first frame. (Let's
6945 assume this frame is somewhere on the
6946 left half of the page.)
6947 \gls{ffcontinuedtextlayout}\marg{Continued on the right}
6948 \cend{\env{dynamiccontents*}}
6949 \cbeg{\env{dynamiccontents*}}\marg{frame2}
6950 \gls{ffdynamicpostcontinued}\marg{1}\marg{2}
6951 This is some text in the second frame. (Let's
6952 assume this frame is somewhere on the
6953 right half of the same page.)
6954 \cend{\env{dynamiccontents*}}
6955 \end{compactcodebox}
6956
6957 When \gls{continueonframe} is used with \idxpl{dynamic-frame} it has
6958 analogous commands to those used with \idxpl{static-frame}.
6959 If the optional \meta{text} is omitted, the default is obtained
6960 with:
6961 \cmddef{ffdefaultdynamiccontinuetext}
6962 This is like \gls{ffdefaultstaticcontinuetext} where the first argument is
6963 the \idx{IDN} of the previous \idx{dynamic-frame} and the second
6964 argument is the \idx{IDN} of the continuation \idx{dynamic-frame}.
6965 The default definition ignores its arguments and simply expands to
6966 \gls{ffdefaultcontinuetext}.
6967
6968 \cmddef{ffdynamicpostcontinued}
6969 This is like \gls{ffstaticpostcontinued} where the first argument is
6970 the \idx{IDN} of the previous \idx{dynamic-frame} and the second
6971 argument is the \idx{IDN} of the continuation \idx{dynamic-frame}.
6972 The default definition ignores its arguments and simply expands to
6973 \gls{ffdefaultpostcontinued}.
6974
6975 \subsection{Important Notes}\label{sec:dynamicimportantnotes}
6976
6977 \begin{itemize}
6978 \item \Idx{verbatim} text can't be used in a
6979 \idx{dynamic-frame}. This includes
6980 the body of the \env{dynamiccontents} and \env{dynamiccontents*}
6981 environments.
6982
6983 \item \gls{continueonframe} can't be used in the
6984 argument of any of the commands that append to the contents of a
6985 \idx*{dynamic-frame}, such as \gls{appenddynamiccontents}.
6986
6987 \item \gls{continueonframe} causes a change in scope so any local
6988 changes made before the command won't still be in effect after it.
6989
6990 \item \Glspl*{dynamic-frame} are painted on the page after all the
6991 static and flow \idxpl{frame}. If the location of a \idx*{dynamic-frame}
6992 overlaps the location of any static or flow frames, the contents
6993 of the \idx*{dynamic-frame} will obscure the contents of the overlapping
6994 frames.
6995 \end{itemize}
6996
6997 \chapter{Modifying Frame Attributes}
6998 \label{sec:modattr}
6999
7000 \chapdesc{This chapter describes how to modify frame attributes,
7001 such as the size and location.}
7002
7003 Once you have defined the \idxpl+{flow-frame}, \idxpl+{static-frame} and
7004 \idxpl+{dynamic-frame}, their attributes can be changed. The three types of
7005 \idx+{frame} mostly have the same set of attributes, but some are
7006 specific to a certain type.
7007
7008 \begin{important}
7009 Attributes are global. Changes usually come into effect during the
7010 \idx{output-routine}. Dimension and text colour are best set in the
7011 preamble, especially for \idxpl{flow-frame} and \idxpl{static-frame}.
7012 \end{important}
7013
7014 \Idxpl{flow-frame} attributes are modified using:
7015 \cmddef{setflowframe}
7016 Alternatively, you can set the same attributes for all
7017 defined \idxpl{flow-frame} with:
7018 \cmddef{setallflowframes}
7019
7020 \Idxpl{static-frame} attributes are modified using:
7021 \cmddef{setstaticframe}
7022 Alternatively, you can set the same attributes for all
7023 defined \idxpl{static-frame} with:
7024 \cmddef{setallstaticframes}
7025
7026 \Idxpl{dynamic-frame} attributes are modified using:
7027 \cmddef{setdynamicframe}
7028 Alternatively, you can set the same attributes for all
7029 defined \idxpl{dynamic-frame} with:
7030 \cmddef{setalldynamicframes}
7031
7032 In each of the above \gls{set...frame} commands, if the starred
7033 version is used then \meta{ID-list} should be a comma-separated list
7034 of \idxpl{IDL} that identify the frames for which the attributes
7035 need to be applied. Note that you can't use ranges or the keywords
7036 described below with the starred versions.
7037
7038 In the case of the unstarred version the
7039 \meta{ID-list} can either be a list or range of \idxpl{IDN} that
7040 identify the required frames or one of the
7041 keywords \optfmt{all}, \optfmt{odd} or \optfmt{even}.
7042 The \optfmt{all} keyword is essentially equivalent to using the
7043 corresponding \csmetafmt{setall}{type}{frames}. The \optfmt{odd}
7044 keyword indicates that all frames with an odd \idx{IDN} should be
7045 set. The \optfmt{even} keyword indicates that all frames with an
7046 even \idx{IDN} should be set.
7047
7048 \begin{important}
7049 The \optfmt{all}, \optfmt{odd} and \optfmt{even} keywords
7050 used to identify frames should not be confused with the
7051 \optfmt{all}, \optfmt{odd} and \optfmt{even} \idx{pglist} keywords.
7052 \end{important}
7053
7054 The \keyvallist\ argument is a comma-separated list of \keyval\
7055 settings. \strong{Make sure that you group the \meta{value} if it
7056 contains one or more commas or equal signs.} Available options are
7057 listed in \sectionref{sec:setframeopts}.
7058
7059 \section{Set Frame Options}\label{sec:setframeopts}
7060
7061 Some attributes are shared by all types of frame but some are only
7062 available for a particular type of frame.
7063
7064 \subsection{Identification and Scope}\label{sec:label+pagelist}
7065
7066 \frameoptiondef{label}
7067
7068 The frame's \idx{IDL} can be assigned with the \frameopt{label}
7069 option. This may be needed when a \gls{frame} is created by a helper
7070 command, such as \gls{Ncolumn} (see \sectionref{sec:layouts}).
7071 In general, it's best to set the \idx{IDL} when the frame is defined.
7072 (If you do not specify a label when you first define a \idx*{frame}
7073 it will be given a label identical to its \gls*{IDN}.)
7074
7075 \frameoptiondef{pages}
7076
7077 The frame's \idx{pglist} is set when the frame is defined. The
7078 default is \optfmt{all}. The \frameopt{pages}
7079 option may be used to change the \idx{pglist}.
7080 The value may be either \meta{page-list} or \meta{keyword}.
7081
7082 \begin{warning}
7083 Changing the \idx{pglist} mid-document can cause unpredictable
7084 results. You may lose text if the frame has already had content
7085 added to it on the current page. See \sectionref{sec:switch}
7086 for switching frames on and off mid-document.
7087 \end{warning}
7088
7089 Allowed values for \meta{keyword}:
7090 \begin{deflist}
7091 \itemtitle{\optfmt{none}}
7092 \begin{itemdesc}
7093 The frame should not be displayed on any page.
7094 \end{itemdesc}
7095 \itemtitle{\optfmt{all}}
7096 \begin{itemdesc}
7097 The frame should be displayed on all pages, unless exceptions apply.
7098 \end{itemdesc}
7099 \itemtitle{\optfmt{even}}
7100 \begin{itemdesc}
7101 The frame should only be displayed on even pages if the document is
7102 two-sided, unless exceptions apply.
7103 \end{itemdesc}
7104 \itemtitle{\optfmt{odd}}
7105 \begin{itemdesc}
7106 The frame should only be displayed on odd pages if the document is
7107 two-sided, unless exceptions apply.
7108 \end{itemdesc}
7109 \end{deflist}
7110
7111 Otherwise the value should be \meta{page-list},
7112 a list or range of numbers identifying on which page or pages the
7113 frame should be shown.
7114 Ranges may be closed, such as \optfmt{3-9} (which indicates pages~3
7115 to~9 inclusive), or open-ended, such as \optfmt{<3} (which indicates
7116 any page less than 3) or \optfmt{>9} (which indicates any page
7117 greater than 9). The \meta{page-list} may be a single range or a
7118 comma-separated list of individual pages or ranges, such as
7119 \optfmt{<3,5-12,>20}.
7120
7121 \begin{important}
7122 Each number in the list must be a plain positive integer (1, 2, etc) not a formatted number.
7123 \end{important}
7124
7125 The \idx{pglist} may also be set using:
7126 \cmddef{flowsetpagelist}
7127 This sets the \idx{pglist} for a specific \idx{flow-frame}
7128 identified by its \idx{IDN}.
7129 \cmddef{staticsetpagelist}
7130 This sets the \idx{pglist} for a specific \idx{static-frame}
7131 identified by its \idx{IDN}.
7132 \cmddef{dynamicsetpagelist}
7133 This sets the \idx{pglist} for a specific \idx{dynamic-frame}
7134 identified by its \idx{IDN}.
7135
7136 \begin{important}
7137 There are no starred versions for the
7138 \csmetafmt{}{type}{setpagelist} commands and \meta{IDN} must be a
7139 number that identifies a specific frame.
7140 \end{important}
7141
7142 The numbers refer to the counter identified by the \opt{pages}
7143 package option. With \opteqvalref{pages}{relative}, the numbers
7144 refer to the value of the \ctr{page} counter (not the formatted text
7145 obtained with \thectr{page}). This can be ambiguous if the
7146 \ctr{page} counter is reset in the document. With
7147 \opteqvalref{pages}{absolute}, the numbers refer to the value of the
7148 \ctr{absolutepage} counter, which should not be reset in the
7149 document and is incremented by the \idx{output-routine} whenever a page is
7150 shipped out.
7151
7152 \begin{warning}
7153 With \opteqvalref{pages}{relative}, not only can you have multiple
7154 pages with the same numeric value (for example, page~i and page~ii)
7155 but there's also no way of determining whether or not the next page
7156 will have the number reset. When the \sty{flowfram} code in the
7157 \idx{output-routine} looks ahead to determine which \idx{flow-frame} it
7158 needs to switch to, it will assume that the value of the next page
7159 is one more than the value of the current page. For example, if the
7160 current page is \qt{iv} (4) then the next page is assumed to have the
7161 value 5 and \sty{flowfram} will select the next \idx{flow-frame} on that basis.
7162 If it turns out that the \ctr{page} counter is then reset so that
7163 \thectr{page} is now 1, if that's outside the range of the selected
7164 \idx{flow-frame} then you may lose text.
7165 \end{warning}
7166
7167 \frameoptiondef{excludepages}
7168
7169 Certain pages can be excluded from a frame's \idx{pglist}. For
7170 example, if a frame's \idx{pglist} is set to \optfmt{all}
7171 but it has \frameoptvalm{excludepages}{2,9} then the frame will be
7172 shown on all pages except for page~2 and page~9. Note that in this
7173 case the value is just a list of numbers.
7174 See also \sectionref{sec:switch} for switching frames on and off
7175 mid-document.
7176
7177 It's also possible to set the exclusion list the following commands:
7178 \cmddef*{flowsetexclusion}
7179 Sets the exclusion list for a \idx{flow-frame}.
7180 \cmddef*{flowaddexclusion}
7181 Appends to the existing exclusion list for a \idx{flow-frame}.
7182
7183 \cmddef*{staticsetexclusion}
7184 Sets the exclusion list for a \idx{static-frame}.
7185 \cmddef*{staticaddexclusion}
7186 Appends to the existing exclusion list for a \idx{static-frame}.
7187
7188 \cmddef*{dynamicsetexclusion}
7189 Sets the exclusion list for a \idx{dynamic-frame}.
7190 \cmddef*{dynamicaddexclusion}
7191 Appends to the existing exclusion list for a \idx{dynamic-frame}.
7192
7193 \begin{important}
7194 There are no starred versions for these commands and
7195 the \meta{IDN} argument should be a single number.
7196 \end{important}
7197
7198 \frameoptiondef{hide}
7199
7200 A frame can also be omitted if the boolean \frameopt{hide} option is set.
7201 If true, this overrides the \idx{pglist} and omits the frame for all
7202 pages.
7203
7204 \frameoptiondef{hidethis}
7205
7206 A frame can also be omitted if the boolean \frameopt{hidethis} option is set.
7207 If true, this overrides the \idx{pglist} and omits the frame for
7208 this pages. The value will be reset when the current page is shipped
7209 out.
7210
7211 \subsection{Content Attributes}\label{sec:contentattr}
7212
7213 \frameoptiondef{clear}
7214
7215 This boolean option is only available for \idx+{static-frame}
7216 and \idx+{dynamic-frame}. If true, the frame contents will be cleared
7217 on each new page.
7218
7219 \begin{warning}
7220 If you set \frameoptval{clear}{true} for a special
7221 \idx{dynamic-frame}, such as \speciallabel{header} or
7222 \speciallabel{footer}, they will lose their special function.
7223 \end{warning}
7224
7225 In \thisdoc, I have used \gls{ChapterInDynamic} to put the chapter
7226 titles in a \idx{dynamic-frame} called \optfmt{chaphead}. This isn't
7227 a special frame, but the contents are reset every time \gls{chapter}
7228 is used. I've also used \gls{appenddfminitoc} which then appends the
7229 chapter's \idx{minitoc} to that frame. And finally, I have a custom
7230 command that appends a brief summary. For example, this chapter is
7231 started with:
7232 \begin{codebox}
7233 \gls{chapter}\marg{Modifying Frame Attributes}\gls{label}\marg{sec:modattr}
7234 \cmd{chapdesc}\marg{This chapter describes how to modify frame attributes,
7235 such as the size and location.}
7236 \end{codebox}
7237 However, I only want this content visible on the first page of the
7238 chapter, so I've set the \frameopt{clear} option for the
7239 \optfmt{chaphead} frame. This ensures that the content is cleared
7240 whenever a new page starts.
7241
7242 I've also used \gls{makedfheaderfooter} and
7243 \gls{makethumbtabs}. This automatically defines a set of special
7244 \idxpl{dynamic-frame}. In this case, the \frameopt{clear} option
7245 should not be set as clearing the content will remove the code that
7246 ensures the header, footer and thumbtab show the correct
7247 information.
7248
7249 \frameoptiondef{parindent}
7250
7251 This option is only available for \idxpl{static-frame} and \idxpl{dynamic-frame}. The value
7252 should be a dimension (either explicit, such as \code{5pt}, or a
7253 variable, such as \gls{sdfparindent}, or an expression, such as
7254 \code{1em + 0.1\gls{linewidth}}). The default is \gls{sdfparindent}.
7255
7256 The dimension won't be evaluated until the contents of the frame are
7257 typeset. For \idxpl{static-frame} this is when the frame content is
7258 set, and for \idxpl{dynamic-frame} this is every time the frame is
7259 placed on the page by the \idx{output-routine}.
7260
7261 \frameoptiondef{style}
7262
7263 This option is only available for \idxpl+{dynamic-frame}. The value
7264 may be the keyword \optfmt{none} (equivalent to \optfmt{@firstofone})
7265 or the name of a declaration or a text-block command (without the leading backslash).
7266
7267 For example:
7268 \begin{codebox}
7269 \gls{setdynamicframe}\marg{1}\marg{\frameoptvalm{style}{emph}}
7270 \end{codebox}
7271 The above will encapsulate the contents of the \idx{dynamic-frame}
7272 identified by \idx{IDN}~1 with \csfmt{emph}.
7273
7274 Bear in mind that text-block commands such as \csfmt{emph} and
7275 \csfmt{textbf} introduce grouping which may result in subtle spacing
7276 issues. If this is a problem, try using the analogous declaration
7277 instead. For example:
7278 \begin{codebox}
7279 \gls{setdynamicframe}\marg{1}\marg{\frameoptvalm{style}{em}}
7280 \end{codebox}
7281 The frame content is already scoped and no extra grouping is
7282 introduced with this method for standard rectangular frames.
7283 (Extra grouping is added for shaped frames.)
7284
7285 \Exampleref{ex:twocolumnsidepanel} provided a custom command:
7286 \begin{codebox}
7287 \cmd{newcommand}\marg{\cmd{Hugebf}}\marg{\cmd{Huge}\cmd{bfseries}}
7288 \end{codebox}
7289 and the \optfmt{sidepanel} \idx{dynamic-frame} had
7290 \frameoptval{style}{Hugebf} set. This command could have been
7291 defined as:
7292 \begin{codebox}
7293 \cmd{newcommand}\marg{\cmd{Hugebf}}\oarg{1}\marg{\cmd{textbf}\marg{\cmd{Huge} \#1}}
7294 \end{codebox}
7295 but if you try this out you would find that the interline spacing
7296 is much smaller. This is because the paragraph doesn't end until after the
7297 styling command so the line skip for \csfmt{Huge} is wrong. The text
7298 is Huge but the line spacing is normal size.
7299
7300 \begin{information}
7301 The \idx{FlowframTk} dialog windows used to specify \gls{frame}
7302 attributes are different: the \qt{Style} field
7303 should be left blank for no styling or may be a command name like
7304 \code{emph} (as for \frameopt{style}) but may also be a list of
7305 declarations (with optionally a final text-block command).
7306 When \idx{FlowframTk} exports the information, if the \qt{Style}
7307 field contains one or more backslashes it will use
7308 commands provided by \sty{flowframtkutils} to define a custom
7309 command that can then be used in the \frameopt{style} option.
7310 \end{information}
7311
7312 If you are not using \idx{FlowframTk} and you need more than one
7313 command to apply the style then you will need to define your own
7314 custom command and use that instead (as in \exampleref{ex:twocolumnsidepanel}).
7315
7316 \frameoptiondef{shape}
7317
7318 This key is only available for \idxpl+{static-frame} and
7319 \idxpl+{dynamic-frame} and sets the paragraph shape for the frame
7320 contents. See \sectionref{sec:parshape} for further details.
7321
7322 \frameoptiondef{valign}
7323
7324 This key is only available for \idxpl{static-frame} and
7325 \idxpl{dynamic-frame} and sets the vertical alignment of the content
7326 within the frame. The default is \optfmt{c} for \idxpl+{static-frame}
7327 and \optfmt{t} for \idxpl+{dynamic-frame}.
7328
7329 \subsection{Layout Attributes}\label{sec:layoutattr}
7330
7331 \frameoptiondef{margin}
7332
7333 This option is only available for \idxpl{flow-frame} and indicates
7334 on which side of the \idx{flow-frame} the margin should be placed.
7335 The value may be one of the keywords: \optfmt{inner},
7336 \optfmt{outer}, \optfmt{left} or \optfmt{right}.
7337
7338 For two-sided documents, \optfmt{inner} places the margin on the
7339 left for odd pages and on the right for even pages, and
7340 \optfmt{outer} places the margin on the right for odd pages and on
7341 the left for even pages.
7342
7343 For one-sided documents, \optfmt{inner} is the same as \optfmt{left}
7344 (place to the left of the frame) and \optfmt{outer} is the same as
7345 \optfmt{right} (place to the right of the frame).
7346
7347
7348 \frameoptiondef{offset}
7349
7350 Sets the \gls{frame}['s] offset to take the border into account.
7351 The value may be a dimension or the keyword \optfmt{compute}, which
7352 will compute the offset if the frame has a known border (\gls{fbox},
7353 \gls{ovalbox}, \gls{Ovalbox} and \gls{doublebox}). If the border is
7354 unknown then the offset for \gls{fbox} will be used.
7355
7356 If the frame has a border set and it takes up extra space (caused by
7357 the padding between the border and the text and the size of the
7358 frame) then this attribute needs to be set to shift the frame so
7359 that the bottom left corner of the text area within the frame is at
7360 the designated $x$ and $y$-coordinates.
7361
7362 \begin{information}
7363 This setting is not required with \idx{FlowframTk} as it calculates
7364 the offset based on the supplied inner padding.
7365 \end{information}
7366
7367 \frameoptiondef{width}
7368
7369 Set the width of the frame to the given \meta{dimension}. This is
7370 available for all types of frame but be careful not to change this value
7371 after any content has been added to the frame.
7372
7373 The width can be obtained for a \idx{flow-frame} with:
7374 \cmddef*{flowframewidth}
7375 where \meta{IDN} is the \idx{flow-frame}['s] \idx{IDN}.
7376 The width can be obtained for a \idx{static-frame} with:
7377 \cmddef*{staticframewidth}
7378 where \meta{IDN} is the \idx{static-frame}['s] \idx{IDN}.
7379 The width can be obtained for a \idx{dynamic-frame} with:
7380 \cmddef*{dynamicframewidth}
7381 where \meta{IDN} is the \idx{dynamic-frame}['s] \idx{IDN}.
7382 In each case, the command simply expands to the dimension.
7383
7384 \frameoptiondef{height}
7385
7386 Set the height of the \gls{frame} to the given \meta{dimension}. This is
7387 available for all types of \gls{frame} but be careful not to change this value
7388 after any content has been added to the \gls{frame}.
7389
7390 The height can be obtained for a \idx{flow-frame} with:
7391 \cmddef*{flowframeheight}
7392 where \meta{IDN} is the \idx{flow-frame}['s] \idx{IDN}.
7393 The height can be obtained for a \idx{static-frame} with:
7394 \cmddef*{staticframeheight}
7395 where \meta{IDN} is the \idx{static-frame}['s] \idx{IDN}.
7396 The height can be obtained for a \idx{dynamic-frame} with:
7397 \cmddef*{dynamicframeheight}
7398 where \meta{IDN} is the \idx{dynamic-frame}['s] \idx{IDN}.
7399 In each case, the command simply expands to the dimension.
7400
7401 \frameoptiondef{x}
7402
7403 Set the $x$-coordinate of the \gls{frame} for all pages on which it's
7404 defined. This is available for all types of \gls{frame}.
7405 Note that \frameoptval{x}{\meta{position}} is equivalent to setting
7406 both \frameoptval{oddx}{\meta{position}} and
7407 \frameoptval{evenx}{\meta{position}}.
7408
7409 \frameoptiondef{y}
7410
7411 Set the $y$-coordinate of the \gls{frame} for all pages on which it's
7412 defined. This is available for all types of \gls{frame}.
7413 Note that \frameoptval{y}{\meta{position}} is equivalent to setting
7414 both \frameoptval{oddy}{\meta{position}} and
7415 \frameoptval{eveny}{\meta{position}}.
7416
7417 \frameoptiondef{evenx}
7418
7419 Set the \gls{frame}'s $x$-coordinate for all even pages on which it's
7420 defined (only applicable if the document is two-sided).
7421 For example:
7422 \begin{codebox}
7423 \gls{setflowframe}*\marg{main}\marg{\frameoptvalm{evenx}{0.4\gls{typeblockwidth}}}
7424 \gls{setdynamicframe}*\marg{chaphead}\marg{\frameoptval{evenx}{0pt}}
7425 \end{codebox}
7426 This changes the horizontal position of the \idx*{flow-frame} labelled
7427 \optfmt{main} and the \idx*{dynamic-frame} labelled \optfmt{chaphead}
7428 on even pages (provided the document has the two-sided setting on).
7429
7430 The even-page $x$-coordinate can be obtained for a \idx{flow-frame} with:
7431 \cmddef*{flowframeevenx}
7432 where \meta{IDN} is the \idx{flow-frame}['s] \idx{IDN}.
7433 The even-page $x$-coordinate can be obtained for a \idx{static-frame} with:
7434 \cmddef*{staticframeevenx}
7435 where \meta{IDN} is the \idx{static-frame}['s] \idx{IDN}.
7436 The even-page $x$-coordinate can be obtained for a \idx{dynamic-frame} with:
7437 \cmddef*{dynamicframeevenx}
7438 where \meta{IDN} is the \idx{dynamic-frame}['s] \idx{IDN}.
7439 In each case, the command simply expands to the dimension.
7440
7441 \frameoptiondef{eveny}
7442
7443 Set the \gls{frame}'s $y$-coordinate for all even pages on which it's
7444 defined (only applicable if the document is two-sided).
7445
7446 The even-page $y$ co-ordinate can be obtained for a \idx{flow-frame} with:
7447 \cmddef*{flowframeeveny}
7448 where \meta{IDN} is the \idx{flow-frame}['s] \idx{IDN}.
7449 The even-page $y$ co-ordinate can be obtained for a \idx{static-frame} with:
7450 \cmddef*{staticframeeveny}
7451 where \meta{IDN} is the \idx{static-frame}['s] \idx{IDN}.
7452 The even-page $y$ co-ordinate can be obtained for a \idx{dynamic-frame} with:
7453 \cmddef*{dynamicframeeveny}
7454 where \meta{IDN} is the \idx{dynamic-frame}['s] \idx{IDN}.
7455 In each case, the command simply expands to the dimension.
7456
7457 \frameoptiondef{oddx}
7458
7459 Set the \gls{frame}'s $x$-coordinate for all odd pages (or all pages
7460 for one-sided documents) on which it's defined.
7461
7462 The odd-page $x$-coordinate can be obtained for a \idx{flow-frame} with:
7463 \cmddef*{flowframex}
7464 where \meta{IDN} is the \idx{flow-frame}['s] \idx{IDN}.
7465 The odd-page $x$-coordinate can be obtained for a \idx{static-frame} with:
7466 \cmddef*{staticframex}
7467 where \meta{IDN} is the \idx{static-frame}['s] \idx{IDN}.
7468 The odd-page $x$-coordinate can be obtained for a \idx{dynamic-frame} with:
7469 \cmddef*{dynamicframex}
7470 where \meta{IDN} is the \idx{dynamic-frame}['s] \idx{IDN}.
7471 In each case, the command simply expands to the dimension.
7472
7473 \frameoptiondef{oddy}
7474
7475 Set the \gls{frame}'s $y$-coordinate for all odd pages (or all pages
7476 for one-sided documents) on which it's defined.
7477
7478 The odd-page $y$-coordinate can be obtained for a \idx{flow-frame} with:
7479 \cmddef*{flowframey}
7480 where \meta{IDN} is the \idx{flow-frame}['s] \idx{IDN}.
7481 The odd-page $y$-coordinate can be obtained for a \idx{static-frame} with:
7482 \cmddef*{staticframey}
7483 where \meta{IDN} is the \idx{static-frame}['s] \idx{IDN}.
7484 The odd-page $y$-coordinate can be obtained for a \idx{dynamic-frame} with:
7485 \cmddef*{dynamicframey}
7486 where \meta{IDN} is the \idx{dynamic-frame}['s] \idx{IDN}.
7487 In each case, the command simply expands to the dimension.
7488
7489 There are also commands available to swap the odd and even
7490 co-ordinates:
7491 \cmddef*{ffswapoddeven}
7492 This swaps the odd and even co-ordinates for each \idx{flow-frame} in
7493 \meta{ID-list}. (The \meta{ID-list} is as for \gls{setflowframe}.)
7494
7495 \cmddef*{sfswapoddeven}
7496 This swaps the odd and even co-ordinates for each \idx{static-frame} in
7497 \meta{ID-list}. (The \meta{ID-list} is as for \gls{setstaticframe}.)
7498
7499 \cmddef*{dfswapoddeven}
7500 This swaps the odd and even co-ordinates for each \idx{dynamic-frame} in
7501 \meta{ID-list}. (The \meta{ID-list} is as for \gls{setdynamicframe}.)
7502
7503 \subsection{Appearance}\label{sec:appearanceattr}
7504
7505 \frameoptiondef{angle}
7506
7507 Rotates the frame by \meta{angle} degrees. Note the \idxpl{bbox} are
7508 not rotated in draft mode.
7509
7510 \frameoptiondef{border}
7511
7512 Sets the frame's border. The \meta{value} may be the keyword
7513 \optfmt{plain} (use a plain border, equivalent to
7514 \frameoptval{border}{fbox}), \optfmt{false} (no border) or
7515 may be the control sequence name (without the leading backslash) of
7516 a \idx{fcmd}. If you set a border for a frame, you may also need to
7517 specify the \frameopt{offset} if the default computation is
7518 incorrect. The rule width for the plain border is governed by
7519 \gls{flowframerule} (see \sectionref{sec:lengths}).
7520
7521 The \sty{fancybox} package provides the commands \gls{shadowbox},
7522 \gls{doublebox}, \gls{ovalbox} and \gls{Ovalbox}, which may all be
7523 used as a border. For example, \frameoptval{border}{ovalbox}.
7524 Remember to load the \sty{fancybox} package if you want to use any
7525 of these commands as a border.
7526
7527 For example, to make the first \idx*{static-frame} have an oval border:
7528 \begin{codebox}
7529 \gls{setstaticframe}\marg{1}\marg{\frameoptval{border}{ovalbox}}
7530 \end{codebox}
7531 Or you can define your own border, for example with \gls{fcolorbox}:
7532 \begin{codebox}
7533 \cmd{newcommand}\marg{\cmd{greenyellowbox}}\oarg{1}\marg{\gls{fcolorbox}\marg{green}\marg{yellow}\marg{\#1}}
7534 \gls{setstaticframe}\marg{1}\marg{\frameoptval{border}{greenyellowbox}}
7535 \end{codebox}
7536 In this case, the border incorporates colour so the
7537 \frameopt{bordercolor} and \frameopt{backcolor} settings should be
7538 \optfmt{none}.
7539
7540 \begin{information}
7541 If you use \idx{FlowframTk} to create the frames, remember to set
7542 the \qt{border as shown} option if you want the shape to be the
7543 border. \idx{FlowframTk} will define the border command and
7544 deal with the offset, border colour, text colour and background
7545 colour.
7546 \end{information}
7547
7548 \frameoptiondef{bordercolor}
7549 Sets the colour of the border. The value may be the keyword
7550 \optfmt{none} (no colour change) or the colour specifications as
7551 suitable for \gls{color}.
7552
7553 \begin{information}
7554 This option will have no effect with borders created by
7555 \idx{FlowframTk} as the colour specifications will be included in
7556 the custom border command.
7557 \end{information}
7558
7559 \frameoptiondef{border-color}
7560
7561 Synonym for \frameopt{bordercolor}.
7562
7563 \frameoptiondef{bordercolour}
7564
7565 Synonym for \frameopt{bordercolor}.
7566
7567 \frameoptiondef{border-colour}
7568
7569 Synonym for \frameopt{bordercolor}.
7570
7571 \frameoptiondef{backcolor}
7572 Sets the colour of the frame's background. The value may be the keyword
7573 \optfmt{none} (no colour change) or the colour specifications as
7574 suitable for \gls{color}.
7575
7576 \begin{information}
7577 If you are using \idx{FlowframTk}, set the shape's fill colour
7578 instead of using this option or you may end up with blank areas in
7579 the border padding.
7580 \end{information}
7581
7582 \frameoptiondef{back-color}
7583
7584 Synonym for \frameopt{backcolor}.
7585
7586 \frameoptiondef{backcolour}
7587
7588 Synonym for \frameopt{backcolor}.
7589
7590 \frameoptiondef{back-colour}
7591
7592 Synonym for \frameopt{backcolor}.
7593
7594 \frameoptiondef{textcolor}
7595 Sets the colour of the frame's text. The value may be the keyword
7596 \optfmt{none} (no colour change) or the colour specifications as
7597 suitable for \gls{color}.
7598
7599 \begin{important}
7600 It's best to keep to the default document colour for all \idxpl{flow-frame}
7601 otherwise inconsistencies can occur when paragraphs span across
7602 frames and also the footnotes will now be in the document colour.
7603 (This has changed in v2.0 as it requires too much meddling with the
7604 \idx{output-routine} to alter the footnote colour.)
7605 The default document colour can be set by using
7606 \code{\gls{color}\oargm{color-space}\margm{colour-specs}} in the
7607 preamble.
7608 \end{important}
7609
7610 \frameoptiondef{text-color}
7611
7612 Synonym for \frameopt{textcolor}.
7613
7614 \frameoptiondef{textcolour}
7615
7616 Synonym for \frameopt{textcolor}.
7617
7618 \frameoptiondef{text-colour}
7619
7620 Synonym for \frameopt{textcolor}.
7621
7622 \subsection{HTML}\label{sec:html}
7623
7624 The need to know where page breaks occur can make it hard for a \LaTeX\ to HTML
7625 parser that doesn't use a \LaTeX\ engine to generate HTML output.
7626 The arbitrary location of \idxpl{frame} can make it hard to support
7627 the \sty{flowfram} package. As from version 2.0, there is now an
7628 option specifically to help support parsers that don't have access
7629 to the \idx{output-routine}.
7630
7631 \frameoptiondef{html}
7632
7633 When the document is processed by \LaTeX, this option simply writes
7634 information to the \ext+{aux} file. The \ext{aux} command depends on
7635 whether or not the \frameopt{html} option was in the preamble or in
7636 the \env{document} environment.
7637
7638 \cmddef*{flowfram@preamble@htmlopts}
7639
7640 This command will be written to the \ext{aux} file if
7641 the \frameopt{html} option was set in the preamble.
7642
7643 \cmddef*{flowfram@doc@htmlopts}
7644
7645 This command will be written to the \ext{aux} file if
7646 the \frameopt{html} option was set in the \env{document} environment.
7647
7648 Both commands have the same syntax. The first argument \meta{n} is a
7649 number that starts at 1 and is incremented every time that the
7650 \frameopt{html} option is applied. The \keyvallist\ option is the
7651 value of the \frameopt{html} option. The \meta{type} is the \gls{frame}
7652 type, which will either be \idx{static} or \idx{dynamic}. The
7653 \meta{IDN} argument is the frame's \idx{IDN}. The final two
7654 arguments, \meta{page} and \meta{absolute-page}, are the values of
7655 \thectr{page} and \thectr{absolutepage}.
7656
7657 It's up to the \LaTeX\ to HTML parser to choose what options in
7658 \keyvallist\ to implement. The following are options recognised by
7659 the \TeX\ Parser Library, which is used by the system that creates
7660 the HTML helpset files for some of my Java GUI applications, including
7661 \idx{FlowframTk}:
7662
7663 \htmloptiondef{show}
7664
7665 This boolean option indicates that the frame contents should be
7666 shown at this point. If this value is true, then the following
7667 options govern how the content is shown.
7668
7669 \htmloptiondef{div}
7670
7671 If true, the content should be encapsulated in a \code{div}
7672 element.
7673
7674 \htmloptiondef{style}
7675
7676 If \htmloptval{div}{true}, then the \code{style} attribute should be
7677 set to \meta{css}.
7678
7679 \htmloptiondef{class}
7680
7681 If \htmloptval{div}{true}, then the \code{class} attribute should be
7682 set to \meta{css-class}.
7683
7684 \htmloptiondef{image}
7685
7686 If true, the content should be converted to an image. This typically
7687 indicates that the content is too complicated to convert to HTML.
7688
7689 \htmloptiondef{mime-type}
7690
7691 If \htmloptval{image}{true}, the image should have the given MIME
7692 type.
7693
7694 \htmloptiondef{alt}
7695
7696 If \htmloptval{image}{true}, the image's \code{alt} attribute should
7697 be set to \meta{text}.
7698
7699
7700 \section{Non-Rectangular Frames}
7701 \label{sec:parshape}
7702
7703 As from version 1.03, it is now possible to specify non-rectangular
7704 \staticordynamicframes\ (but not \idxpl{flow-frame}).
7705 Note that the \idx{bbox} will still appear as a rectangle despite
7706 the \gls{frame}['s] shape setting. You may use either \TeX's
7707 \gls{parshape} command, or the \gls{shapepar}\slash\gls{Shapepar}
7708 commands defined in Donald~Arseneau's \sty{shapepar} package (if
7709 using \gls{shapepar} or \gls{Shapepar}, remember to include the
7710 \sty{shapepar} package.)
7711
7712 \begin{information}
7713 \idx{FlowframTk} can compute the parameters of \gls{parshape}
7714 or \gls{shapepar}\slash\gls{Shapepar} from a shape (limitations may apply).
7715 You can either export the parameters to a \TeX\ file that
7716 can simply be \gls{input} at the start of a paragraph or, if you are
7717 creating a \staticordynamicframe\ you can set the \qt{Shape}
7718 selector to \qt{Parshape} or \qt{Shapepar} as applicable.
7719 Use the \qt{Configure \TeX\ Settings} dialog to specify whether you
7720 want \gls{shapepar} or \gls{Shapepar} for the \qt{Shapepar} setting.
7721 See the \idx{FlowframTk} manual for further details.
7722 \end{information}
7723
7724 The \gls{shapepar} or \gls{Shapepar} commands provide
7725 greater flexibility in the type of shape that can be used. However,
7726 be aware of the advice given in the \sty{shapepar} documentation.
7727
7728 \begin{deflist}
7729 \itemtitle{\inlineglsdef{parshape}}
7730
7731 \begin{itemdesc}
7732 With \gls{parshape} you can not have cut-outs in the middle, top or
7733 bottom of a frame, however it is possible to have cut-outs in the
7734 left or right side of the \idx*{frame}. When used with the
7735 \frameopt{shape} key for \staticordynamicframes, the effects of
7736 \gls{par} and the sectioning commands (\gls{section} and below) are
7737 modified to allow the paragraph shape to extend beyond a single
7738 paragraph, and to allow sectioning commands (but not \gls{chapter}
7739 or \gls{part}).
7740 \end{itemdesc}
7741
7742 \itemtitle{\inlineglsdef{shapepar}\slash\inlineglsdef{Shapepar}}
7743
7744 \begin{itemdesc}
7745 With \gls{shapepar} or \gls{Shapepar} you may
7746 have cut-outs, but you may not have any sectioning commands,
7747 paragraph breaks, vertical spacing or mathematics. You can
7748 simulate a paragraph break using \gls{FLFsimpar}, but this
7749 is not recommended. The size of the shape depends on the
7750 amount of text, so the shape will expand or contract as you
7751 add or delete text. In general, \gls{Shapepar} is better suited
7752 for use as a frame shape than \gls{shapepar}. See the
7753 \sty{shapepar} documentation for more details of these commands.
7754 \end{itemdesc}
7755 \end{deflist}
7756
7757 To restore a \staticordynamicframe\ to its default rectangular
7758 setting, use \frameopt{shape}{\cmd{relax}}.
7759
7760 For those unfamiliar with \TeX's \gls{parshape} command,
7761 the syntax is:
7762 \begin{compactcodebox}
7763 \gls{parshape}\syntax{parshape}
7764 \end{compactcodebox}
7765 where \meta{n} is the number of (\meta{i\textsubscript{j}} \meta{l\textsubscript{j}})
7766 pairs and \meta{i\textsubscript{j}} specifies the left
7767 indentation for the $j$th line and \meta{l\textsubscript{j}} specifies the length of
7768 the $j$th line.
7769
7770 \setstaticframe*{shapedb,shapedt}{pages=all}%
7771 For example, to create a zigzag shaped static frame (whose
7772 \gls*{IDL} is \code{shapedt}):
7773 \begin{codebox*}[before upper app=\small]
7774 \gls{setstaticframe}*\marg{shapedt}\marg{\frameopt{shape}=\marg{\gls{parshape}=20
7775 0.6\gls{linewidth} 0.4\gls{linewidth}
7776 0.5\gls{linewidth} 0.4\gls{linewidth}
7777 0.4\gls{linewidth} 0.4\gls{linewidth}
7778 0.3\gls{linewidth} 0.4\gls{linewidth}
7779 0.2\gls{linewidth} 0.4\gls{linewidth}
7780 0.1\gls{linewidth} 0.4\gls{linewidth}
7781 0pt 0.4\gls{linewidth} 0.1\gls{linewidth} 0.4\gls{linewidth}
7782 0.2\gls{linewidth} 0.4\gls{linewidth}
7783 0.3\gls{linewidth} 0.4\gls{linewidth}
7784 0.4\gls{linewidth} 0.4\gls{linewidth}
7785 0.5\gls{linewidth} 0.4\gls{linewidth}
7786 0.6\gls{linewidth} 0.4\gls{linewidth}
7787 0.5\gls{linewidth} 0.4\gls{linewidth}
7788 0.4\gls{linewidth} 0.4\gls{linewidth}
7789 0.3\gls{linewidth} 0.4\gls{linewidth}
7790 0.2\gls{linewidth} 0.4\gls{linewidth}
7791 0.1\gls{linewidth} 0.4\gls{linewidth}
7792 0pt 0.4\gls{linewidth} 0.1\gls{linewidth} 0.4\gls{linewidth}
7793 }}
7794 \end{codebox*}
7795 \setstaticframe*{shapedt}{shape={\parshape=20
7796 0.6\linewidth 0.4\linewidth
7797 0.5\linewidth 0.4\linewidth
7798 0.4\linewidth 0.4\linewidth
7799 0.3\linewidth 0.4\linewidth
7800 0.2\linewidth 0.4\linewidth
7801 0.1\linewidth 0.4\linewidth
7802 0pt 0.4\linewidth
7803 0.1\linewidth 0.4\linewidth
7804 0.2\linewidth 0.4\linewidth
7805 0.3\linewidth 0.4\linewidth
7806 0.4\linewidth 0.4\linewidth
7807 0.5\linewidth 0.4\linewidth
7808 0.6\linewidth 0.4\linewidth
7809 0.5\linewidth 0.4\linewidth
7810 0.4\linewidth 0.4\linewidth
7811 0.3\linewidth 0.4\linewidth
7812 0.2\linewidth 0.4\linewidth
7813 0.1\linewidth 0.4\linewidth
7814 0pt 0.4\linewidth
7815 0.1\linewidth 0.4\linewidth
7816 }}
7817
7818 \begin{staticcontents*}[html={show,image,name=zigzagcontent,alt={example
7819 paragraph with a zigzag shape}}]{shapedt}
7820 \small
7821 This is an example of a static frame with a non-rectangular
7822 shape. This zigzag shape was specified using the
7823 \glsfmttext{opt.frame.shape}
7824 option in \glsfmttext{setstaticframe}. The \glsfmttext{parshape}
7825 command was used to set the shape.
7826
7827 Using the \glsfmttext{opt.frame.shape} key rather than explicitly using
7828 \glsfmttext{parshape} means that I can have a paragraph break whilst
7829 retaining the shape \strong{but there are limitations}.
7830 \end{staticcontents*}
7831
7832 \begin{warning}
7833 Previously it was possible to have paragraph-breaking content such as displayed maths
7834 or the \envfmt{verbatim} environment in a shaped paragraph.
7835 Due to various underlying changes this is no
7836 longer possible. You will now need to insert the \gls{parshape}
7837 command in the appropriate places in the frame content instead of
7838 in the \frameopt{shape} option.
7839 \end{warning}
7840
7841 The syntax for \gls{shapepar} and \gls{Shapepar} is more complicated, see
7842 the \sty{shapepar} documentation for more details. In general:
7843 \begin{compactcodebox}
7844 \gls{shapepar}\margm{shape specs}
7845 \end{compactcodebox}
7846 The \sty{shapepar} package has some predefined shapes, such as
7847 \csfmt{squareshape}, \csfmt{diamondshape},
7848 \csfmt{heartshape} and \csfmt{nutshape}.
7849
7850 For example, to assign a heart shape to the \idx{static-frame} whose
7851 \gls*{IDL} is \optfmt{shapedb}:
7852 \begin{codebox}
7853 \gls{setstaticframe}*\marg{shapedb}\marg{\frameopt{shape}=\marg{\gls{shapepar}\cmd{heartshape}}}
7854 \end{codebox}
7855 To reset the frame back to its original rectangular shape
7856 do:
7857 \begin{codebox}
7858 \gls{setstaticframe}*\marg{shapedb}\marg{\frameopt{shape}=\cmd{relax}}
7859 \end{codebox}
7860
7861 \setstaticframe*{shapedb}{shape={\Shapepar\heartshape}}
7862 \begin{staticcontents*}
7863 [html={show,image,name=heartshapedpar,alt={heart-shaped paragraph}}]
7864 {shapedb}
7865 This example has a more complicated shape that can not
7866 be generated using \TeX's \glsfmtname{parshape} command, so
7867 \glsfmtname{shapepar} was used instead. Note that this document
7868 must include the \glsfmtname{pkg.shapepar} package in this instance,
7869 whereas no extra packages are required to use \glsfmtname{parshape}.
7870 No sectioning commands are allowed here.
7871 The shape will expand as more text is added to it.
7872 $\heartsuit$
7873 \end{staticcontents*}
7874
7875 The \sty{flowfram} package currently does not support any other
7876 paragraph shape making commands. Any other commands would
7877 have to be used explicitly within the contents of the frame.
7878
7879 \staticswitchoffnext*{shapedt,shapedb}
7880
7881 \section{Switching Frames On and Off On-The-Fly}
7882 \label{sec:switch}
7883
7884 Modifying the \idx{pglist} (or the page exclusion list) within the
7885 \env{document} environment is a risky business. This list must
7886 be up-to-date before the output routine looks for the next frame.
7887 To make this a little easier, as from version~1.14 there are
7888 commands that help you do this.
7889
7890 \begin{important}
7891 If you want to use these commands, it's best to use the package
7892 option \opteqvalref{pages}{absolute}.
7893 \end{important}
7894
7895 The commands described in this section update the \idxpl{pglist}
7896 (and possibly the exclusion list) \emph{when the output routine is
7897 next used}. They are designed to switch frames on or off either on
7898 the next page or on the next odd page. You therefore need to take
7899 care where you place these commands. For example, if you have a
7900 two-sided document and you do:
7901 \begin{codebox}
7902 \gls{dynamicswitchonnextodd}\marg{1}
7903 \gls{mainmatter}
7904 \gls{chapter}\marg{Introduction}
7905 \end{codebox}
7906 This will set the dynamic frame whose \idx{IDN} is~1 to be visible for
7907 the first page of chapter~1. However, if you do
7908 \begin{codebox}
7909 \gls{mainmatter}
7910 \gls{dynamicswitchonnextodd}\marg{1}
7911 \gls{chapter}\marg{Introduction}
7912 \end{codebox}
7913 This will have a different effect as \gls{mainmatter} issues a
7914 \gls{cleardoublepage} so the command to switch on the dynamic
7915 frame is on the same page as the start of chapter~1. This means that
7916 the dynamic frame won't appear until the following odd page
7917 (page~3).
7918
7919 These commands all have the same syntax with one argument that may
7920 be a comma-separated list. The starred version uses
7921 the \idxpl{IDL} and the unstarred version uses the \idxpl{IDN}.
7922
7923 \cmddef{flowswitchonnext}
7924 Switch on the listed \idxpl{flow-frame} from the following page onwards.
7925
7926 \cmddef{flowswitchoffnext}
7927 Switch off the listed \idxpl{flow-frame} from the following page onwards.
7928
7929 \cmddef{flowswitchonnextodd}
7930 Switch on the listed \idxpl{flow-frame} from the next odd page onwards.
7931
7932 \cmddef{flowswitchoffnextodd}
7933 Switch off the listed \idxpl{flow-frame} from the next odd page onwards.
7934
7935 \cmddef{flowswitchonnextonly}
7936 Switch on the listed \idxpl{flow-frame} just for the following page.
7937
7938 \cmddef{flowswitchoffnextonly}
7939 Switch off the listed \idxpl{flow-frame} just for the following page.
7940
7941 \cmddef{flowswitchonnextoddonly}
7942 Switch on the listed \idxpl{flow-frame} just for the next odd page.
7943
7944 \cmddef{flowswitchoffnextoddonly}
7945 Switch off the listed \idxpl{flow-frame} just for the next odd page.
7946
7947 \cmddef{dynamicswitchonnext}
7948 Switch on the listed \idxpl{dynamic-frame} from the following page onwards.
7949
7950 \cmddef{dynamicswitchoffnext}
7951 Switch off the listed \idxpl{dynamic-frame} from the following page onwards.
7952
7953 \cmddef{dynamicswitchonnextodd}
7954 Switch on the listed \idxpl{dynamic-frame} from the next odd page onwards.
7955
7956 \cmddef{dynamicswitchoffnextodd}
7957 Switch off the listed \idxpl{dynamic-frame} from the next odd page onwards.
7958
7959 \cmddef{dynamicswitchonnextonly}
7960 Switch on the listed \idxpl{dynamic-frame} just for the following page.
7961
7962 \cmddef{dynamicswitchoffnextonly}
7963 Switch off the listed \idxpl{dynamic-frame} just for the following page.
7964
7965 \cmddef{dynamicswitchonnextoddonly}
7966 Switch on the listed \idxpl{dynamic-frame} just for the next odd page.
7967
7968 \cmddef{dynamicswitchoffnextoddonly}
7969 Switch off the listed \idxpl{dynamic-frame} just for the next odd page.
7970
7971 \cmddef{staticswitchonnext}
7972 Switch on the listed \idxpl{static-frame} from the following page onwards.
7973
7974 \cmddef{staticswitchoffnext}
7975 Switch off the listed \idxpl{static-frame} from the following page onwards.
7976
7977 \cmddef{staticswitchonnextodd}
7978 Switch on the listed \idxpl{static-frame} from the next odd page onwards.
7979
7980 \cmddef{staticswitchoffnextodd}
7981 Switch off the listed \idxpl{static-frame} from the next odd page onwards.
7982
7983 \cmddef{staticswitchonnextonly}
7984 Switch on the listed \idxpl{static-frame} just for the following page.
7985
7986 \cmddef{staticswitchoffnextonly}
7987 Switch off the listed \idxpl{static-frame} just for the following page.
7988
7989 \cmddef{staticswitchonnextoddonly}
7990 Switch on the listed \idxpl{static-frame} just for the next odd page.
7991
7992 \cmddef{staticswitchoffnextoddonly}
7993 Switch off the listed \idxpl{static-frame} just for the next odd page.
7994
7995 The \sty{flowfram} package comes with a sample file
7996 \filefmt{sample-pages.tex} that uses some of these commands.
7997
7998 \chapter{Locations and Dimensions}\label{sec:locationsdims}
7999
8000 \chapdesc{This chapter describes some of the commands provided to
8001 determine the locations and dimensions of frames.}
8002
8003 This chapter describes some of the commands available that can
8004 be used to determine the locations and dimensions of \idxpl{frame}.
8005 See the accompanying document \filefmt{flowfram-code.pdf} for more details of
8006 these commands or for other commands not listed here.
8007
8008 \section{Determining the Location of the Typeblock}
8009 \label{sec:typeblockloc}
8010
8011 As mentioned earlier, when you create new \idxpl{frame},
8012 you must specify their location relative to the \idx{typeblock}, but
8013 what if you want to position a \idx*{frame} a set distance from the
8014 edge of the paper? The \sty{flowfram} package provides the following
8015 commands that compute the distance from the \gls*{typeblock} to the
8016 paper boundary. Since odd and even pages may have a different offset
8017 if \gls{oddsidemargin} and \gls{evensidemargin} have different
8018 values, there are separate commands for horizontal measurements on odd and even pages.
8019
8020 \cmddef{computeleftedgeodd}
8021 Computes the position of the left edge of the page, relative
8022 to the left side of the \gls*{typeblock}, for odd pages, and stores the result in
8023 the dimension variable (length register) \meta{dim var}.
8024
8025 \cmddef{computeleftedgeeven}
8026 Computes the position of the left edge of the page, relative
8027 to the left side of the \gls*{typeblock}, for even pages, and stores the result in
8028 the dimension variable (length register) \meta{dim var}.
8029
8030 \cmddef{computetopedge}
8031 Computes the top edge of the page, relative to the bottom of the
8032 \gls*{typeblock}, and stores the result in
8033 the dimension variable (length register) \meta{dim var}.
8034
8035 \cmddef{computebottomedge}
8036 Computes the bottom edge of the page, relative to the bottom of the
8037 \gls*{typeblock}, and stores the result in
8038 the dimension variable (length register) \meta{dim var}.
8039
8040 \cmddef{computerightedgeodd}
8041 Computes the position of the right edge of the page,
8042 relative to the left side of the \gls*{typeblock}, for odd pages, and store the result in
8043 the dimension variable (length register) \meta{dim var}.
8044
8045 \cmddef{computerightedgeeven}
8046 Computes the position of the right edge of the page,
8047 relative to the left side of the \gls*{typeblock}, for even pages, and store the result in
8048 the dimension variable (length register) \meta{dim var}.
8049
8050 For example, if you want to create a frame whose bottom
8051 left corner is one inch from the left edge of the page
8052 and half an inch from the bottom edge of the page (this
8053 assumes odd and even pages have the same margins):
8054 \begin{codebox}[before upper app=\small]
8055 \comment{define two new lengths to store the x and y coords}
8056 \cmd{newlength}\marg{\cmd{myX}}
8057 \cmd{newlength}\marg{\cmd{myY}}
8058 \comment{compute the distance from typeblock to the paper edge}
8059 \gls{computeleftedgeodd}\marg{\cmd{myX}}
8060 \gls{computebottomedge}\marg{\cmd{myY}}
8061 \comment{Add the absolute co-ordinates to get co-ordinates}
8062 \comment{relative to the typeblock}
8063 \cmd{addtolength}\marg{\cmd{myX}}\marg{1in}
8064 \cmd{addtolength}\marg{\cmd{myY}}\marg{0.5in}
8065 \end{codebox}
8066
8067 \section{Determining the Dimensions and Locations of Frames}
8068 \label{sec:frameloc}
8069
8070 It is possible to determine the dimensions and locations
8071 of a \gls{frame} using one of the following commands.
8072 For each command, the starred version identifies the \gls{frame} by
8073 its \idx{IDL} and the unstarred version identifies it by its
8074 \idx{IDN}. The results are stored in the length registers
8075 \gls{ffareax} (the $x$-coordinate), \gls{ffareay} (the
8076 $y$-coordinate), \gls{ffareawidth} (the \gls{frame}['s] width)
8077 and \gls{ffareaheight} (the \gls{frame}['s] height).
8078
8079 \cmddef{getstaticbounds}
8080 Gets the bounds for the \idx{static-frame} identified by \meta{ID}.
8081
8082 \cmddef{getflowbounds}
8083 Gets the bounds for the \idx{flow-frame} identified by \meta{ID}.
8084
8085 \cmddef{getdynamicbounds}
8086 Gets the bounds for the \idx{dynamic-frame} identified by \meta{ID}.
8087
8088 For other related commands, see the section \qt{Determining Dimensions
8089 and Locations} in the accompanying document
8090 \filefmt{flowfram-code.pdf}.
8091
8092 \section{Relative Locations}
8093 \label{sec:relativelocs}
8094
8095 If you want to a textual description to appear in the document of
8096 the relative location of one \gls{frame} from another you can use:
8097 \cmddef{relativeframelocation}
8098 This produces a textual description of the relative location of
8099 the \meta{type1} \gls{frame} identified by \meta{ID1} to the
8100 \meta{type2} \gls{frame} identified by \meta{ID2} (the starred
8101 version references the \idxpl{frame} by their \idx{IDL} and the
8102 unstarred version references them by their \idx{IDN}).
8103
8104 \begin{important}
8105 The relative locations are taken for the current page,
8106 regardless of whether either of the two frames are displayed on that
8107 page. If the current page is odd, then the frame settings for odd pages
8108 will be compared, otherwise the frame settings for even pages will
8109 be compared. However remember that the first paragraph of each page
8110 retains the settings in place at the start of the paragraph, so if the
8111 frames have different locations for odd and even pages, then
8112 \gls{relativeframelocation} may use the wrong page settings if it
8113 is used at the start of the page. You may prefer to use
8114 \gls{SaveRelativeFrameLocation} instead.
8115 \end{important}
8116
8117 The text produced will be obtained with one of the following
8118 commands, which may be added to a language hook if required.
8119
8120 \cmddef{FFaboveleft}
8121 Text produced if the first frame is above left of the second frame.
8122
8123 \cmddef{FFaboveright}
8124 Text produced if the first frame is above right of the
8125 second frame.
8126
8127 \cmddef{FFabove}
8128 Text produced if the first frame is above the second frame
8129 (but not to the right or left).
8130
8131 \cmddef{FFbelowleft}
8132 Text produced if the first frame is below left of the
8133 second frame.
8134
8135 \cmddef{FFbelowright}
8136 Text produced if the first frame is below right of the
8137 second frame.
8138
8139 \cmddef{FFbelow}
8140 Text produced if the first frame is below the second frame
8141 (but not to the right or left).
8142
8143 \cmddef{FFleft}
8144 Text produced if the first frame is to the left of the
8145 second frame (but not above or below).
8146
8147 \cmddef{FFright}
8148 Text produced if the first frame is to the right of the
8149 second frame (but not above or below).
8150
8151 \cmddef{FFoverlap}
8152 Text produced if both frames overlap.
8153
8154 \begin{deflist}
8155 \itemtitle{Above}
8156
8157 \begin{itemdesc}
8158 A frame is considered to be above another frame if the bottom edge
8159 of the first frame is higher than the top edge of the second frame.
8160 \end{itemdesc}
8161
8162 \itemtitle{Below}
8163
8164 \begin{itemdesc}
8165 A frame is considered to be below another frame if the top edge
8166 of the first frame is lower than the bottom edge of the second frame.
8167 \end{itemdesc}
8168
8169 \itemtitle{Left}
8170
8171 \begin{itemdesc}
8172 A frame is considered to be to the left of another frame if the right
8173 edge of the first frame is to the left of the left edge of the second
8174 frame.
8175 \end{itemdesc}
8176
8177 \itemtitle{Right}
8178
8179 \begin{itemdesc}
8180 A frame is considered to be to the right of another frame if the left
8181 edge of the first frame is to the right of the right edge of the
8182 second frame.
8183 \end{itemdesc}
8184 \end{deflist}
8185
8186 There are some short cut commands for \idxpl*{frame} of the
8187 same type:
8188 \cmddef{reldynamicloc}
8189 A shortcut for \gls{relativeframelocation} where both frame
8190 types are \idx{dynamic}. The starred version references the
8191 \idxpl{dynamic-frame} by their \gls{IDL} and the unstarred version
8192 references them by their \gls{IDN}.
8193
8194 \cmddef{relstaticloc}
8195 A shortcut for \gls{relativeframelocation} where both frame
8196 types are \idx{static}. The starred version references the
8197 \idxpl{static-frame} by their \gls{IDL} and the unstarred version
8198 references them by their \gls{IDN}.
8199
8200 \cmddef{relflowloc}
8201 A shortcut for \gls{relativeframelocation} where both frame
8202 types are \idx{flow}. The starred version references the
8203 \idxpl{flow-frame} by their \gls{IDL} and the unstarred version
8204 references them by their \gls{IDN}.
8205
8206 These commands may be used in the optional argument of
8207 \gls{continueonframe} for frames that are on the same page.
8208 For example:
8209 \begin{codebox}[before upper app=\small]
8210 \cbeg{\env{dynamiccontents}}\marg{1}
8211 Some text in the first dynamic frame that goes on for
8212 quite a bit longer than this example.
8213 \gls{continueonframe}\oarg{continued \gls{reldynamicloc}\marg{2}\marg{1}}\marg{2}
8214 This text is in the second dynamic frame which is
8215 somewhere on the same page.
8216 \cend{\env{dynamiccontents}}
8217 \end{codebox}
8218 Alternatively, they may be used in the default continued text, as in
8219 \exampleref{ex:staticcont}.
8220
8221 An alternative approach is to save the query in the \ext+{aux} file
8222 to ensure that the \ctr{page} counter is correct:
8223 \cmddef{SaveRelativeFrameLocation}
8224 This saves the information and defers the calculation until the start of the
8225 next \LaTeX\ run. This means that the \ctr{page} number for
8226 the location in the document where \gls{SaveRelativeFrameLocation}
8227 was used will now be correct. The \meta{label} argument is a label that may be used to
8228 reference the information and has the usual restrictions that apply
8229 to labels. The remaining arguments are as for \gls{relativeframelocation}.
8230
8231 On the next run, the information can be retrieved with:
8232 \cmddef{RefSavedRelativeLocation}
8233 where \meta{label} should match the label argument supplied to
8234 \gls{SaveRelativeFrameLocation}.
8235 This will produce the usual undefined reference double question mark \code{??} and
8236 a warning on the first run.
8237
8238 For example, \thisdoc\ defined a
8239 \idx{flow-frame} labelled \optfmt{main} and a
8240 \idx{dynamic-frame} labelled \optfmt{chaphead} which is
8241 used to display the chapter headings. The following code:
8242 \begin{codebox}
8243 The dynamic frame is
8244 \gls{SaveRelativeFrameLocation}*
8245 \marg{chapheadmain}\comment{label}
8246 \marg{dynamic}\marg{chaphead}\marg{flow}\marg{main}\comment{frames}
8247 \gls{RefSavedRelativeLocation}\marg{chapheadmain}
8248 of the flow frame.
8249 \end{codebox}
8250 produces:
8251 \begin{resultbox}
8252 The dynamic frame is
8253 \SaveRelativeFrameLocation*
8254 {chapheadmain}%
8255 {dynamic}{chaphead}{flow}{main}%
8256 \RefSavedRelativeLocation{chapheadmain}
8257 of the flow frame.
8258 \end{resultbox}
8259
8260 The result from the calculation is saved as one of the placeholder
8261 commands, \gls{FFabove} etc. You can test for any of these commands
8262 with:
8263 \cmddef{IfSavedRelativeLocationEq}
8264 This will expand to \meta{true} if the given command matches or
8265 false if it doesn't match or if the label doesn't exist. In this
8266 case, no warning occurs for an undefined label. The second argument
8267 must be the actual placeholder command, not an expansion of it.
8268
8269 You will only be able to find out an exact match with
8270 \gls{IfSavedRelativeLocationEq}. For example, \gls{FFabove} will
8271 only match if the first frame is above the second frame but not to
8272 the right or to the left (that is, their horizontal positions
8273 overlap).
8274
8275 If you simply need to know more generally, you can use the following
8276 commands:
8277 \cmddef{IfSavedRelativeLocationAbove}
8278 Expands to \meta{true}, if the first frame is above the second frame
8279 without regard to their horizontal positions.
8280
8281 \cmddef{IfSavedRelativeLocationBelow}
8282 Expands to \meta{true}, if the first frame is below the second frame
8283 without regard to their horizontal positions.
8284
8285 \cmddef{IfSavedRelativeLocationLeft}
8286 Expands to \meta{true}, if the first frame is left of the second frame
8287 without regard to their vertical positions.
8288
8289 \cmddef{IfSavedRelativeLocationRight}
8290 Expands to \meta{true}, if the first frame is right of the second frame
8291 without regard to their vertical positions.
8292
8293 For additional commands that determine the relative location of one
8294 frame from another, see the section \qt{Determining the relative
8295 location of one frame from another} in the accompanying document
8296 \filefmt{flowfram-code.pdf}.
8297
8298 \chapter{Predefined Layouts}
8299 \label{sec:layouts}
8300
8301 \chapdesc{This chapter describes commands that create frames
8302 arranged in a predefined layout.}
8303
8304 The \sty{flowfram} package has a number of commands which
8305 create \idxpl{frame} in a predefined layout. These commands
8306 may only be used in the preamble. The distance between the
8307 \idxpl{flow-frame} created with these commands is given by
8308 the standard \gls+{columnsep} length register.
8309
8310 \cmddef{adjustcolsep}
8311 If you have more than two columns and you want space for any
8312 marginal notes (created with \gls{marginpar}) that may occur in the
8313 middle columns, you can use \gls{adjustcolsep} to automatically
8314 adjust the value of \gls{columnsep} to ensure that there's
8315 sufficient room. This is simply a shortcut that sets \gls{columnsep}
8316 to twice its existing value plus the value of \gls{marginparwidth}.
8317
8318 \begin{important}
8319 If you want to change the value of \gls{columnsep}, make sure you do
8320 it before using the column commands. Changing it afterwards will
8321 have no effect on any \idxpl{flow-frame} that have already been
8322 created.
8323 \end{important}
8324
8325 \section{Column Styles}
8326 \label{sec:Ncolumn}
8327
8328 The standard \LaTeX\ commands \gls{onecolumn} and
8329 \gls{twocolumn} are redefined to create one or two
8330 \idxpl{flow-frame} that fill the entire \idx{typeblock} separated
8331 from each other (in the case of \gls{twocolumn}) by a
8332 gap of width \gls[format=mainfmt]{columnsep}.
8333
8334 \begin{information}
8335 The final \meta{label} optional argument the commands
8336 described below is retained for backward-compatibility.
8337 In early versions of \sty{flowfram} that option occurred by chance
8338 rather than design as the some of the commands happened to end with
8339 \gls{newflowframe} which picked up a following optional argument.
8340 \end{information}
8341
8342 The syntax for these commands is slightly different:
8343 \cmddef{onecolumn}
8344 Creates a \idx{flow-frame} that spans the \idx{typeblock} with the
8345 given label and \idx{pglist}. If you want to specify a label, you
8346 will need to also supply the \idx{pglist}. The default is
8347 \optfmt{all} for \meta{page-list} and the \idx{frame}['s] \gls{IDN}
8348 for \meta{label}.
8349
8350 \cmddef{twocolumn}
8351 Creates two \idxpl{flow-frame} that fit in the \idx{typeblock}
8352 separated by the distance given by \gls{columnsep}. The first
8353 argument \meta{page-list} is as for \gls{onecolumn}. The second
8354 argument may either be a single label, in which case it applies to
8355 the second column, or (v2.0+) two comma-separated labels where the first one
8356 should apply to the first \idx{flow-frame} and the second should
8357 apply to the second \idx{flow-frame}. For example:
8358 \begin{codebox}
8359 \gls{twocolumn}\oarg{all}\oarg{frame1,frame2}
8360 \end{codebox}
8361 The \opt{RL} package option will define the columns starting from
8362 the right, so the right-hand column will be filled first.
8363 The default \opt{LR} package option will define the columns starting
8364 from the left, so the left-hand column will be filled first.
8365 Likewise for all the other commands described in this section that
8366 create more than one \idx{flow-frame}.
8367
8368 \begin{information}
8369 The height of these \idxpl*{flow-frame} may not be exactly as high as the \idx*{typeblock},
8370 as their height is adjusted to make them an integer multiple of \gls{baselineskip}.
8371 \end{information}
8372
8373 \mExampleref{ex:twocolumndraft} shows a two-column document in draft
8374 mode where the \idxpl{flow-frame} were created with \gls{twocolumn}.
8375 Remember that the page geometry needs to be set first.
8376 The \styfmt{lipsum} package is used to provide dummy text to pad out
8377 the document.
8378 \begin{codebox}
8379 \cmd{documentclass}\oarg{12pt}\marg{article}
8380 \cmd{usepackage}\oarg{a4paper,margin=1in}\marg{geometry}
8381 \cmd{usepackage}\oarg{draft}\marg{flowfram}
8382 \cmd{usepackage}\marg{lipsum}
8383 \gls{twocolumn}\comment{create two \idxpl{flow-frame}}
8384 \gls{setflowframe}\marg{2}\marg{\frameoptval{border}{plain}}\comment{add border to second frame}
8385 \cbeg{document}
8386 \cmd{lipsum}\oarg{1-3}
8387 \cend{document}
8388 \end{codebox}
8389
8390 \createresultexampleindynamicframe*
8391 [title={Two Columns in Draft Mode},fontsize=12,
8392 label={ex:twocolumndraft},arara={pdflatex},border,
8393 description={Example two-column document with lipsum filler text that starts
8394 in the left column and flows into the right column}
8395 ]
8396 {examples}
8397 {%
8398 \cmd{usepackage}\oarg{a4paper,margin=1in}\marg{geometry}\nl
8399 \cmd{usepackage}\oarg{draft}\marg{flowfram}\nl
8400 \cmd{usepackage}\marg{lipsum}\nl
8401 \gls{twocolumn}\nl
8402 \gls{setflowframe}\marg{2}\marg{\frameoptval{border}{plain}}
8403 }
8404 {%
8405 \cmd{lipsum}\oarg{1-3}
8406 }
8407
8408
8409 Draft mode draws grey rectangles to show the location of the
8410 \idx{typeblock}, \idxpl{frame} and the margin area (where the text of
8411 \gls{marginpar} is placed). Note that the top border of both
8412 \idxpl{flow-frame} is slightly below the top border of the
8413 \idx{typeblock}. This is due to the automatic vertical adjustment.
8414
8415 The plain border around the second \idx{flow-frame} is wider than
8416 the actual frame area. In this case, the \sty{flowfram} package
8417 knows the appropriate offset for the plain border. Custom
8418 borders may require the use of the \frameopt{offset} option.
8419 If you are creating the \idxpl{frame} with \idx{FlowframTk} then
8420 there's an area in which you can specify the inner padding between
8421 the border and the area for the text.
8422
8423 You can switch off the automatic height adjustment using the command:
8424 \cmddef{ffvadjustfalse}
8425 or switch it back on again with:
8426 \cmddef{ffvadjusttrue}
8427 You can test the current setting with the conditional:
8428 \cmddef{ifffvadjust}
8429 This setting applies to all the column commands described in this
8430 section.
8431
8432 \cmddef{Ncolumn}
8433 Creates \meta{n} column \idxpl{flow-frame}, each separated by a
8434 distance of \gls{columnsep}, adjusting their height according to the
8435 \gls{ifffvadjust} setting. This is similar to \gls{twocolumn} but
8436 the final optional argument is a single label for the last
8437 \idx{flow-frame} to be created.
8438
8439 \cmddef{onecolumninarea}
8440 This creates a single \idx*{flow-frame} to fill the given area,
8441 adjusting its height according to the \gls{ifffvadjust} setting.
8442
8443 \cmddef{twocolumninarea}
8444 Creates two column \idxpl*{flow-frame} separated by a distance
8445 of \gls{columnsep} filling the area specified,
8446 adjusting their height according to the \gls{ifffvadjust} setting.
8447
8448 \cmddef{Ncolumninarea}
8449 This is a more general form of \gls{twocolumninarea} making
8450 \meta{n} \idxpl*{flow-frame} instead of two.
8451 The final optional argument is a single label for the last
8452 \idx{flow-frame} to be created.
8453
8454 \section{Column Styles with an Additional Frame}
8455 \label{sec:colstyleswithframe}
8456
8457 As well as the column-style \idxpl{flow-frame} defined
8458 in \sectionref{sec:Ncolumn}, it is also possible to define
8459 \meta{n} columns with an additional \idx{frame} spanning either
8460 above or below them. There will be a vertical gap of
8461 approximately \gls{vcolumnsep} between the columns
8462 and the extra frame.
8463
8464 \begin{information}
8465 The height of the vertical gap may not be exactly \gls{vcolumnsep},
8466 as the \idxpl*{flow-frame} will be adjusted (if the default
8467 \gls{ffvadjusttrue} setting is in effect) so that their height
8468 is an integer multiple of \gls{baselineskip}, which may increase the gap.
8469 \end{information}
8470
8471 In each of the following definitions,
8472 the argument \meta{page-list} is the \idx{pglist} for which
8473 the \idxpl*{frame} are defined, \meta{n} is the number of
8474 columns required, \meta{type} is the type of frame to go
8475 above or below the columns (this may be one of: \optfmt{flow},
8476 \optfmt{static} or \optfmt{dynamic}). The area in which the
8477 new frames should fill is defined by \meta{width}, \meta{height}
8478 (the width and height of the area) and \meta{x}, \meta{y}
8479 (the position of the bottom left hand corner of the area
8480 relative to the bottom left hand corner of the \idx{typeblock}.)
8481
8482 The height of the additional frame at the top or bottom of
8483 the columns is given by \meta{top-height} and \meta{bottom-height},
8484 respectively.
8485
8486 \cmddef{onecolumntopinarea}
8487 Creates one \idx{flow-frame} with a \meta{type} frame above it, filling
8488 the area specified. If the \meta{label} option is supplied, it will
8489 be set as the label of the \idx{flow-frame}.
8490
8491 \cmddef{twocolumntopinarea}
8492 Creates two column-style \idxpl{flow-frame} with a \meta{type}
8493 frame above them, filling the area specified. If the \meta{label}
8494 option is supplied, it will be set as the label of the last
8495 \idx{flow-frame} to be created.
8496
8497 \cmddef{Ncolumntopinarea}
8498 Creates \meta{n} column-style \idxpl{flow-frame} with a \meta{type}
8499 frame above them, filling the area specified. If the \meta{label}
8500 option is supplied, it will be set as the label of the last
8501 \idx{flow-frame} to be created.
8502
8503 \cmddef{onecolumnbottominarea}
8504 Creates one \idx{flow-frame} with a \meta{type} frame underneath it,
8505 filling the area specified. If the \meta{label} option is supplied, it will
8506 be set as the label of the \idx{flow-frame}.
8507
8508 \cmddef{twocolumnbottominarea}
8509 Creates two column-style \idxpl{flow-frame} with a \meta{type} frame
8510 below them, filling the area specified. If the \meta{label}
8511 option is supplied, it will be set as the label of the last
8512 \idx{flow-frame} to be created.
8513
8514 \cmddef{Ncolumnbottominarea}
8515 Creates \meta{n} column-style \idxpl*{flow-frame} with a \meta{type}
8516 frame below them, filling the area specified. If the \meta{label}
8517 option is supplied, it will be set as the label of the last
8518 \idx{flow-frame} to be created.
8519
8520 The following commands are special cases of the above:
8521
8522 \cmddef{onecolumnStopinarea}
8523 This is equivalent to:
8524 \begin{compactcodebox}
8525 \gls{onecolumntopinarea}\oargm{page-list}\marg{static}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}
8526 \end{compactcodebox}
8527
8528 \cmddef{onecolumnDtopinarea}
8529 This is equivalent to:
8530 \begin{compactcodebox}
8531 \gls{onecolumntopinarea}\oargm{page-list}\marg{dynamic}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}
8532 \end{compactcodebox}
8533
8534 \cmddef{onecolumntop}
8535 As \gls{onecolumntopinarea} where the area is given by the
8536 \idx{typeblock}.
8537
8538 \cmddef{onecolumnStop}
8539 This is equivalent to:
8540 \begin{compactcodebox}
8541 \gls{onecolumntop}\oargm{page-list}\marg{static}\margm{top-height}\oargm{label}
8542 \end{compactcodebox}
8543
8544 \cmddef{onecolumnDtop}
8545 This is equivalent to:
8546 \begin{compactcodebox}
8547 \gls{onecolumntop}\oargm{page-list}\marg{dynamic}\margm{top-height}\oargm{label}
8548 \end{compactcodebox}
8549
8550 \cmddef{twocolumnStopinarea}
8551 This is equivalent to:
8552 \begin{compactcodebox}
8553 \gls{twocolumntopinarea}\oargm{page-list}\marg{static}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}
8554 \end{compactcodebox}
8555
8556 \cmddef{twocolumnDtopinarea}
8557 This is equivalent to:
8558 \begin{compactcodebox}
8559 \gls{twocolumntopinarea}\oargm{page-list}\marg{dynamic}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}
8560 \end{compactcodebox}
8561
8562 \cmddef{twocolumntop}
8563 As \gls{twocolumntopinarea} where the area is the entire
8564 \idx{typeblock}.
8565
8566 \cmddef{twocolumnStop}
8567 This is equivalent to:
8568 \begin{compactcodebox}
8569 \gls{twocolumntop}\oargm{page-list}\marg{static}\margm{top-height}\oargm{label}
8570 \end{compactcodebox}
8571
8572 \cmddef{twocolumnDtop}
8573 This is equivalent to:
8574 \begin{compactcodebox}
8575 \gls{twocolumntop}\oargm{page-list}\marg{dynamic}\margm{top-height}\oargm{label}
8576 \end{compactcodebox}
8577
8578 \cmddef{NcolumnStopinarea}
8579 This is equivalent to:
8580 \begin{compactcodebox}
8581 \gls{Ncolumntopinarea}\oargm{page-list}\marg{static}\margm{n}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}
8582 \end{compactcodebox}
8583
8584 \cmddef{NcolumnDtopinarea}
8585 This is equivalent to:
8586 \begin{compactcodebox}
8587 \gls{Ncolumntopinarea}\oargm{page-list}\marg{dynamic}\margm{n}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}
8588 \end{compactcodebox}
8589
8590 \cmddef{Ncolumntop}
8591 As \gls{Ncolumntopinarea} where the area is the entire \idx{typeblock}.
8592
8593 \cmddef{NcolumnStop}
8594 This is equivalent to:
8595 \begin{compactcodebox}
8596 \gls{Ncolumntop}\oargm{page-list}\marg{static}\margm{n}\margm{top-height}\oargm{label}
8597 \end{compactcodebox}
8598
8599 \cmddef{NcolumnDtop}
8600 This is equivalent to:
8601 \begin{compactcodebox}
8602 \gls{Ncolumntop}\oargm{page-list}\marg{dynamic}\margm{n}\margm{top-height}\oargm{label}
8603 \end{compactcodebox}
8604
8605 \cmddef{onecolumnSbottominarea}
8606 This is equivalent to:
8607 \begin{compactcodebox}
8608 \gls{onecolumnbottominarea}\oargm{page-list}\marg{static}\margm{bottom-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}
8609 \end{compactcodebox}
8610
8611 \cmddef{onecolumnDbottominarea}
8612 This is equivalent to:
8613 \begin{compactcodebox}
8614 \gls{onecolumnbottominarea}\oargm{page-list}\marg{dynamic}\margm{bottom-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}
8615 \end{compactcodebox}
8616
8617 \cmddef{onecolumnbottom}
8618 As \gls{onecolumnbottominarea} where the area is the entire \idx{typeblock}.
8619
8620 \cmddef{onecolumnSbottom}
8621 This is equivalent to:
8622 \begin{compactcodebox}
8623 \gls{onecolumnbottom}\oargm{page-list}\marg{static}\margm{bottom-height}\oargm{label}
8624 \end{compactcodebox}
8625
8626 \cmddef{onecolumnDbottom}
8627 This is equivalent to:
8628 \begin{compactcodebox}
8629 \gls{onecolumnbottom}\oargm{page-list}\marg{dynamic}\margm{bottom-height}\oargm{label}
8630 \end{compactcodebox}
8631
8632 \cmddef{twocolumnSbottominarea}
8633 This is equivalent to:
8634 \begin{compactcodebox}
8635 \gls{twocolumnbottominarea}\oargm{page-list}\marg{static}\margm{bottom-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}
8636 \end{compactcodebox}
8637
8638 \cmddef{twocolumnDbottominarea}
8639 This is equivalent to:
8640 \begin{compactcodebox}
8641 \gls{twocolumnbottominarea}\oargm{page-list}\marg{dynamic}\margm{bottom-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}
8642 \end{compactcodebox}
8643
8644 \cmddef{twocolumnbottom}
8645 As \gls{twocolumnbottominarea} where the area is the entire \idx{typeblock}.
8646
8647 \cmddef{twocolumnSbottom}
8648 This is equivalent to:
8649 \begin{compactcodebox}
8650 \gls{twocolumnbottom}\oargm{page-list}\marg{static}\margm{bottom-height}\oargm{label}
8651 \end{compactcodebox}
8652
8653 \cmddef{twocolumnDbottom}
8654 This is equivalent to:
8655 \begin{compactcodebox}
8656 \gls{twocolumnbottom}\oargm{page-list}\marg{dynamic}\margm{bottom-height}\oargm{label}
8657 \end{compactcodebox}
8658
8659 \cmddef{NcolumnSbottominarea}
8660 This is equivalent to:
8661 \begin{compactcodebox}
8662 \gls{Ncolumnbottominarea}\oargm{page-list}\marg{static}\margm{n}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}
8663 \end{compactcodebox}
8664
8665 \cmddef{NcolumnDbottominarea}
8666 This is equivalent to:
8667 \begin{compactcodebox}
8668 \gls{Ncolumnbottominarea}\oargm{page-list}\marg{dynamic}\margm{n}\margm{top-height}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}
8669 \end{compactcodebox}
8670
8671 \cmddef{Ncolumnbottom}
8672 As \gls{Ncolumnbottominarea} where the area is the entire \idx{typeblock}.
8673
8674 \cmddef{NcolumnSbottom}
8675 This is equivalent to:
8676 \begin{compactcodebox}
8677 \gls{Ncolumnbottom}\oargm{page-list}\marg{static}\margm{n}\margm{top-height}\oargm{label}
8678 \end{compactcodebox}
8679
8680 \cmddef{NcolumnDbottom}
8681 This is equivalent to:
8682 \begin{compactcodebox}
8683 \gls{Ncolumnbottom}\oargm{page-list}\marg{dynamic}\margm{n}\margm{top-height}\oargm{label}
8684 \end{compactcodebox}
8685
8686 The top\slash bottom frame for each of the above commands is defined
8687 with:
8688 \cmddef{newframe}
8689 This is essentially the same as:
8690 \begin{compactcodebox}
8691 \csmetafmt{new}{frame-type}{frame}\oargm{page-list}\margm{width}\margm{height}\margm{x}\margm{y}\oargm{label}
8692 \end{compactcodebox}
8693
8694 \section{Right to Left Columns}
8695 \label{sec:RL}
8696
8697 The default behaviour for the column style commands defined
8698 in \sectionsref{sec:Ncolumn,sec:colstyleswithframe} above is
8699 to create the \idxpl{flow-frame} from left to right. However if you are
8700 typesetting from right to left, you will probably prefer to
8701 define the \idxpl{flow-frame} in the reverse order. This can be
8702 done via the package option \opt{RL}. Alternatively you can use the
8703 command:
8704 \cmddef{lefttorightcolumnsfalse}
8705 before using commands such as \gls{twocolumn} or
8706 \gls{Ncolumn}. To switch back to left-to-right columns use the
8707 \opt{LR} option or:
8708 \cmddef{lefttorightcolumnstrue}
8709 You can test the current setting with the conditional:
8710 \cmddef{iflefttorightcolumns}
8711
8712 \begin{important}
8713 Changing the setting only affects new \idxpl{flow-frame} created
8714 with subsequent column commands and does not affect any
8715 \idxpl{flow-frame} that have already been created or any
8716 \idxpl{flow-frame} created explicitly with \gls{newflowframe}.
8717 \end{important}
8718
8719 Remember that it's the order of definition that determines
8720 the next \idx{flow-frame} to be selected by the
8721 \idx{output-routine} (that's valid for the current page).
8722 This setting simply switches round the order
8723 of definition in the column-style shortcut commands.
8724
8725 \section{Backdrop Effects}\label{sec:backdrop}
8726
8727 \Idxpl{static-frame} can be used to produce a backdrop, and there
8728 are a number of commands that define \idxpl{static-frame} and
8729 automatically set the \frameopt{backcolor} attribute to
8730 create a rectangular patch of colour.
8731
8732 In the following definitions, \meta{page-list} is the \idx{pglist}
8733 for which those \idxpl*{static-frame} are defined (\optfmt{all} is
8734 the default). The arguments \meta{L1}, \ldots, \meta{Ln} are the
8735 labels to assign to the 1st, \ldots, \meta{n}th new frame that will
8736 be created by the applicable command.
8737
8738 The arguments \meta{C1}, \ldots, \meta{Cn} are the colour
8739 specifications for the \meta{L1}, \ldots, \meta{Ln} frame. The colour
8740 specification must be completely enclosed in the \meta{C1} etc
8741 argument braces. For example \verb"{[rgb]{1,0,1}}" (one argument)
8742 not \verb"[rgb]{1,0,1}" (optional argument followed by mandatory
8743 argument).
8744
8745 For the horizontal stripes: \meta{x-offset} is the amount by which
8746 the frames should be shifted horizontally (0pt by default),
8747 \meta{W1} is the width of frame \meta{L1}, and so on up to
8748 \meta{Wn}, the width of frame \meta{Ln}.
8749
8750 For the vertical stripes: \meta{y-offset} is the amount by which the
8751 frames should be shifted vertically (0pt by default),
8752 \meta{H1} is the height of frame \meta{L1}, and so on up to
8753 \meta{Hn}, the height of frame \meta{Ln}.
8754
8755 \begin{important}
8756 Unlike the earlier commands, these commands are all relative to the
8757 actual page, not the \idx{typeblock}. So an \meta{x-offset} of 0pt
8758 indicates the first vertical frame is flush with the left hand edge
8759 of the page, and a \meta{y-offset} of 0pt indicates the first horizontal
8760 frame is flush with the bottom edge of the page. This is because
8761 backdrops tend to span the entire page, not just the
8762 \idx{typeblock}.
8763 \end{important}
8764
8765 \subsection{Vertical stripe effects}\label{sec:vstripes}
8766
8767 \cmddef{vtwotone}
8768 Defines two \idxpl{static-frame} to create a two-tone vertical stripe
8769 effect. (This command was used to create the coloured background on
8770 the title page of \thisdoc.)
8771
8772 \cmddef{vNtone}
8773 This is similar to \gls{vtwotone} but with \meta{n}
8774 \idxpl{static-frame} instead of two.
8775
8776 \cmddef{vtwotonebottom}
8777 This is similar to \gls{vtwotone} but the \idxpl{static-frame} are only
8778 \meta{H} high, instead of the entire height of the page.
8779 The frames are aligned along the bottom edge of the page.
8780
8781 \cmddef{vtwotonetop}
8782 This is similar to \gls{vtwotone} but the \idxpl{static-frame} are only
8783 \meta{H} high, instead of the entire height of the page.
8784 The frames are aligned along the top edge of the page.
8785 (This command was used to create the border effect along
8786 the top of every page in \thisdoc. Two \gls{vtwotonetop}
8787 commands were used, one for the even pages, and the other
8788 for the odd pages.)
8789
8790 \cmddef{vNtonebottom}
8791 This is a general version of \gls{vtwotonebottom} for
8792 \meta{n} frames instead of two.
8793
8794 \cmddef{vNtonetop}
8795 This is a general version of \gls{vtwotonetop} for
8796 \meta{n} frames instead of two.
8797
8798 \subsection{Horizontal stripe effect}\label{sec:hstripes}
8799
8800 \cmddef{htwotone}
8801 This defines two \idxpl{static-frame} to create a two-tone
8802 horizontal stripe effect.
8803
8804 \cmddef{hNtone}
8805 This is similar to \gls{htwotone} but with \meta{n}
8806 \idxpl{static-frame} instead of two.
8807
8808 \cmddef{htwotoneleft}
8809 This is similar to \gls{htwotone} but the \idxpl{static} are only
8810 \meta{W} wide, instead of the entire width of the page.
8811 The frames are aligned along the left edge of the page.
8812
8813 \cmddef{htwotoneright}
8814 This is similar to \gls{htwotone} but the \idxpl{static} are only
8815 \meta{W} wide, instead of the entire width of the page.
8816 The frames are aligned along the right edge of the page.
8817
8818 \cmddef{hNtoneleft}
8819 This is a general version of \gls{htwotoneleft} for
8820 \meta{n} frames instead of two.
8821
8822 \cmddef{hNtoneright}
8823 This is a general version of \gls{htwotoneright} for
8824 \meta{n} frames instead of two.
8825
8826 \subsection{Background Frame}\label{sec:backgroundframe}
8827
8828 \cmddef{makebackgroundframe}
8829 Creates a single \idx{static-frame} covering the entire page.
8830 The new frame will be given the \idx{IDL} \meta{label}, if provided.
8831
8832 \begin{important}
8833 If this \idx*{frame} is given a background colour, it
8834 should be created before any other \idxpl{static-frame} otherwise it
8835 will obscure all other \idxpl*{static-frame} created before it.
8836 \end{important}
8837
8838 \subsection{Vertical and Horizontal Rules}
8839 \label{sec:insertrule}
8840
8841 You can create vertical or horizontal rules between two
8842 \idxpl{frame} using the commands described below. The arguments
8843 \meta{type-1} and \meta{type-2} identify the frame type
8844 (\optfmt{static}, \optfmt{flow} or \optfmt{dynamic}). For the
8845 unstarred version, the frames should be identified by their
8846 \idx{IDN} and for the starred version they should be identified by
8847 their \idx{IDL}.
8848
8849 \cmddef{insertvrule}
8850 Creates a new \idx{static-frame} which fits between \meta{type-1}
8851 \idx*{frame} identified by \meta{ID1} and \meta{type-2} \idx*{frame}
8852 identified by \meta{ID2}.
8853
8854 The new frame's \frameopt{y} position and height are calculated from the
8855 lowest point of the lowest frame (of \meta{ID1} and \meta{ID2}) to the
8856 highest point of the highest of the reference frames.
8857 The first optional argument \meta{y-top} (default 0pt)
8858 extends the height of the new frame by that much above the highest point.
8859
8860 The second optional argument \meta{y-bottom} (default 0pt) increases
8861 the height of the new frame by that much but also lowers the
8862 \frameopt{y} position by that amount. If either of the optional
8863 arguments are negative, the frame will be shortened instead of
8864 extended.
8865
8866 The contents of this new frame are set to a vertical rule that
8867 extends the full height of the frame.
8868 The width of the rule is given by:
8869 \cmddef{ffcolumnseprule}
8870
8871 \begin{warning}
8872 This has changed as from version 1.09: versions
8873 prior to 1.09 used \gls{columnseprule} (provided by the \LaTeX\
8874 kernel).
8875 \end{warning}
8876
8877 The vertical rule drawn by \gls{insertvrule} is created using
8878 the command:
8879 \cmddef{ffvrule}
8880 This can be redefined if a more ornate rule is required
8881 (see \exampleref{ex:rules}).
8882
8883 The command:
8884 \cmddef{ffruledeclarations}
8885 can be redefined to set declarations that affect how the rule is drawn.
8886 The most likely use of this command is to set the rule colour.
8887 Any redefinition of \gls{ffruledeclarations} must come before the
8888 \idx{static-frame} is created. (Remember that the contents of a
8889 \idx{static-frame} are set in a box so the declaration is used at
8890 that point.)
8891
8892 \cmddef{inserthrule}
8893 This creates a new \idx{static-frame} which fits between \meta{type-1}
8894 \idx*{frame} identified by \meta{ID1} and \meta{type-2} \idx*{frame}
8895 identified by \meta{ID2}.
8896
8897 The new frame's \frameopt{x} position and width are calculated from the
8898 leftmost point of the furthest left frame (of \meta{ID1} and \meta{ID2}) to the
8899 rightmost point of the furthest right of the reference frames.
8900 The first optional argument \meta{x-top} (default 0pt)
8901 extends the width of the new frame by that much above the rightmost point.
8902
8903 The second optional argument \meta{x-bottom} (default 0pt) increases
8904 the width of the new frame by that much but also lowers the
8905 \frameopt{x} position by that amount. If either of the optional
8906 arguments are negative, the frame will be shortened instead of
8907 extended.
8908
8909 The contents of this new frame are set to a horizontal rule that
8910 extends the full width of the frame.
8911 The height of the rule is given by \gls{ffcolumnseprule}.
8912
8913 The horizontal rule drawn by \gls{inserthrule} is created using
8914 the command:
8915 \cmddef{ffhrule}
8916 This can be redefined if a more ornate rule is required (see
8917 \exampleref{ex:rules}).
8918 The horizontal rule is also governed by \gls{ffruledeclarations}.
8919 As with \gls{insertvrule}, any redefinition of these commands must
8920 be made before \gls{inserthrule} to have an effect.
8921
8922 \mExampleref{ex:rules} creates two \idxpl{flow-frame} with a
8923 \idx{static-frame} above (with \gls{twocolumnStop}) and
8924 the creates a vertical rule between the two \idxpl{flow-frame}
8925 and a horizontal rule between the top \idx{static-frame} and the two
8926 \idxpl{flow-frame}, bit first the rules are redefined to use a
8927 zigzag pattern (achieved with the \sty{tikz} package).
8928 \begin{codebox}
8929 \cmd{usepackage}\marg{flowfram}
8930 \cmd{usepackage}\marg{tikz}
8931 \cmd{usetikzlibrary}\marg{decorations.pathmorphing}
8932 \gls{twocolumnStop}\marg{1in}
8933 \cmd{renewcommand}\marg{\gls{ffvrule}}\oarg{3}\marg{\comment{}
8934 \cmd{hfill} \cmd{tikz}\marg{\comment{}
8935 \cmd{draw}\oarg{decorate,decoration=zigzag,
8936 line width=\#2,yshift=-\#1}
8937 (0,0) -- (0pt,\#3); }\comment{}
8938 \cmd{hfill} \cmd{mbox}\marg{}}
8939 \gls{insertvrule}\marg{flow}\marg{1}\marg{flow}\marg{2}
8940 \codepar
8941 \cmd{renewcommand}\marg{\gls{ffhrule}}\oarg{3}\marg{\comment{}
8942 \cmd{tikz}\marg{\comment{}
8943 \cmd{draw}\oarg{decorate,decoration=zigzag,
8944 line width=\#3,xshift=-\#1} (0,0) -- (\#2,0pt);
8945 }}
8946 \gls{inserthrule}\marg{static}\marg{1}\marg{flow}\marg{1}
8947 \end{codebox}
8948
8949 The \styfmt{lipsum} package is used for filler text. The document
8950 body sets the content for the first \idx{static-frame} (the top one):
8951 \begin{codebox}
8952 \gls{setstaticcontents}\marg{1}\marg{Top Frame}\cmd{lipsum}[1-5]
8953 \end{codebox}
8954
8955 \createresultexampleindynamicframe*
8956 [title={Rules},arara={pdflatex},border,
8957 label={ex:rules},
8958 description={Example document with horizontal and vertical zigzags
8959 between columns}
8960 ]
8961 {examples}
8962 {%
8963 \cmd{usepackage}\oarg{a4paper,margin=2cm}\marg{geometry}\nl
8964 \cmd{usepackage}\marg{flowfram}\nl
8965 \cmd{usepackage}\marg{lipsum}\commentnl{dummy text}%
8966 \cmd{usepackage}\marg{tikz}\nl
8967 \cmd{usetikzlibrary}\marg{decorations.pathmorphing}
8968 \codepar
8969 \gls{twocolumnStop}\marg{1in}
8970 \codepar
8971 \cmd{renewcommand}\marg{\gls{ffvrule}}\oarg{3}\marg{\comment{}
8972 \cmd{hfill}\nlsp
8973 \cmd{tikz}\marg{\comment{}
8974 \cmd{draw}\oarg{decorate,decoration=zigzag,line width=\#2,yshift=-\#1}\nlsp
8975 (0,0) -- (0pt,\#3);\nl
8976 }\comment{}
8977 \cmd{hfill} \cmd{mbox}\marg{}\commentnl{}%
8978 }
8979 \codepar
8980 \gls{insertvrule}\marg{flow}\marg{1}\marg{flow}\marg{2}
8981 \codepar
8982 \cmd{renewcommand}\marg{\gls{ffhrule}}\oarg{3}\marg{\comment{}
8983 \cmd{tikz}\marg{\comment{}
8984 \cmd{draw}\oarg{decorate,decoration=zigzag,line width=\#3,xshift=-\#1}\nlsp
8985 (0,0) -- (\#2,0pt);\nl
8986 }\commentnl{}%
8987 }
8988 \codepar
8989 \gls{inserthrule}\marg{static}\marg{1}\marg{flow}\marg{1}
8990 }
8991 {%
8992 \gls{setstaticcontents}\marg{1}\marg{Top Frame}
8993 \cmd{lipsum}[1-5]
8994 }
8995
8996 Remember that because the \idx{static-frame} contents are set in a
8997 box, any change to \gls{ffvrule} or \gls{ffhrule} must occur before
8998 the corresponding \gls{insertvrule} or \gls{inserthrule} for the
8999 change to have an effect.
9000
9001 \chapter{Thumbtabs and Minitocs}\label{sec:thumbtabsminitocs}
9002
9003 \chapdesc{This chapter describes how to create thumbtabs and minitocs,
9004 such as those used in \thisdoc.}
9005
9006 \section{Thumbtabs}
9007 \label{sec:thumbtabs}
9008
9009 On the right hand side of the odd pages and on the left hand side of
9010 even pages in \thisdoc, there is a blue rectangle
9011 with the chapter number in it. This is a \inlineglsdef{idx.thumbtab}, and it gives
9012 you a rough idea whereabouts in the document you are when you
9013 quickly flick through the pages (of a hard copy). Each \idx{thumbtab} is in fact
9014 a \idx{dynamic-frame}.
9015
9016 There are two \idxpl{dynamic-frame} per \idx{thumbtab}: the
9017 \idx{thumbtab} index shown in the table of contents and the
9018 main \idx{thumbtab} shown in the applicable part of the document.
9019 These frames are given \idxpl{speciallabel}:
9020 \speciallabelinlinedef{thumbtabindex} for the \meta{n}th
9021 \idx{thumbtab} index and
9022 \speciallabelinlinedef{thumbtab} for the \meta{n}th \idx{thumbtab}.
9023
9024 \begin{information}
9025 With \idx{FlowframTk} you can also define separate \idxpl{thumbtab} for
9026 even pages in two-sided documents. These have special labels
9027 \speciallabelinlinedef{eventhumbtabindex} for the \meta{n}
9028 \idx{thumbtab} index frame shown on even pages and
9029 \speciallabelinlinedef{eventhumbtab} for the \meta{n} \idx{thumbtab}
9030 frame shown on even pages.
9031 \end{information}
9032
9033 Options that govern the \idx{thumbtab} settings are listed in
9034 \sectionref{sec:pkgoptsthumbtoc}.
9035
9036 \cmddef{makethumbtabs}
9037 If you want \idxpl{thumbtab} in your document, you need to add
9038 \gls{makethumbtabs} in the preamble. This reads information in from
9039 the \inlineglsdef{ext.ttb} file created during the previous \LaTeX\
9040 run. As with the table of contents, you need a rerun to ensure that
9041 the \idx{thumbtab} information is correct.
9042
9043 Each \idx{dynamic-frame} corresponding to a \idx{thumbtab} and
9044 \idx{thumbtab} index is then defined by \gls{makethumbtabs} with the
9045 contents set according to the information read from the \ext{ttb} file. If
9046 a \idx{dynamic-frame} with the corresponding \idx{speciallabel} has
9047 already been defined, that will be used instead of defining a new
9048 frame. (This will be the case with any package or class files that have
9049 been exported from \idx{FlowframTk} where \idx{thumbtab} frames have
9050 been setup.)
9051
9052 \begin{information}
9053 If you have used \idx{FlowframTk} and you haven't defined enough
9054 \idx{thumbtab} frames, \gls{makethumbtabs} will fall back on the
9055 default \idx{thumbtab} frame style for the missing frames.
9056 \end{information}
9057
9058 When \gls{makethumbtabs} creates a \idx{dynamic-frame}, the
9059 \meta{height} argument is the height of each \idx{thumbtab} frame.
9060 The default $y$ position puts the first \idx{thumbtab} level with
9061 the top of the \idx{typeblock} and each following \idx{thumbtab} is
9062 shifted below the last by \meta{height}. The first optional argument
9063 \meta{y-offset} (a dimension) will shift all the \idxpl{thumbtab}
9064 vertically by \meta{y-offset}. The width of each \idx{thumbtab} is
9065 given by:
9066 \cmddef{thumbtabwidth}
9067 This value may be changed with \csfmt{setlength} but only changes
9068 that are made before \gls{makethumbtabs} will have any effect. The
9069 \frameopt{evenx} position will automatically be calculated. If the
9070 frame was already defined, no change will be made to its attributes.
9071
9072 \begin{information}
9073 The dimension settings will be ignored if the
9074 \idx{thumbtab} frames have already been defined.
9075 \end{information}
9076
9077 The final optional argument \meta{section-type}
9078 indicates what section unit should be used for the \idxpl{thumbtab}.
9079 If omitted, \meta{section-type} obtained by expanding:
9080 \cmddef{defaultthumbtabtype}
9081 This command should expand to the control sequence name (no
9082 backslash) of the applicable section type. The default definition is
9083 \glscsname{chapter} if \gls{chapter} is defined, otherwise it's
9084 \glscsname{section}.
9085
9086 Make sure that you have set all your preferred \idx{thumbtab}
9087 settings before using \gls{makethumbtabs}. For example:
9088 \begin{codebox}
9089 \gls{flowframsetup}\marg{
9090 \opteqvalref{thumbtabs}{number},
9091 \opteqvalref{thumbtab-text}{normal}
9092 }
9093 \gls{makethumbtabs}\marg{0.75in}
9094 \end{codebox}
9095
9096 Once the \idx*{thumbtab} \idxpl{dynamic-frame} have been defined and
9097 setup, the \idx{thumbtab} indexing must be enabled.
9098 \cmddef{enablethumbtabs}
9099 This should be placed at the point where you want
9100 the \idx{thumbtab} indexing to start.
9101
9102 \begin{important}
9103 There will be no \idxpl{thumbtab} if you don't have \emph{both}
9104 \gls{makethumbtabs} and \gls{enablethumbtabs} in your document.
9105 \end{important}
9106
9107 You may put \gls{enablethumbtabs} in the preamble (after
9108 \gls{makethumbtabs}) in which case any \idx{front-matter}
9109 sectional units may have associated \idxpl{thumbtab}, depending on
9110 the \opt{matter-thumbtabs} option. Alternatively, place
9111 \gls{enablethumbtabs} just before the first sectional unit that
9112 should appear as a \idx{thumbtab}. For example:
9113 \begin{codebox*}
9114 \gls{tableofcontents}
9115 \gls{mainmatter}
9116 \gls{enablethumbtabs}
9117 \gls{chapter}\marg{Introduction}
9118 \end{codebox*}
9119
9120 You can stop indexing \idxpl{thumbtab} with:
9121 \cmddef{disablethumbtabs}
9122 This should be placed before the sectional unit that shouldn't have
9123 a \idx{thumbtab}. For example:
9124 \begin{codebox*}
9125 End of last chapter.
9126 \gls{appendix}
9127 \gls{disablethumbtabs}
9128 \gls{chapter}\marg{Supplementary Material}
9129 \end{codebox*}
9130
9131 The \idx{thumbtab} index frames will automatically be shown in the
9132 table of contents unless you have used
9133 \opteqvalref{adjust-toc}{off}, which prevents \sty{flowfram} from
9134 redefining \gls{tableofcontents}. If you have done this and want the
9135 \idx{thumbtab} indexes to appear elsewhere, you can switch them on
9136 with:
9137 \cmddef{thumbtabindex}
9138 The optional argument \meta{page-list} indicates which pages the
9139 \idx{thumbtab} frames should be shown on.
9140
9141 There are commands available to customized the format of the
9142 \idx{thumbtab} content.
9143 \cmddef{thumbtabhyperlinkformat}
9144 This command is used when the content should have a hyperlink to the
9145 start of the associated sectional unit. The \sty{hyperref} package
9146 needs to be loaded to support this. If \sty{hyperref} is loaded
9147 after \sty{flowfram}, \gls{thumbtabhyperlinkformat} will
9148 automatically be redefined to use \gls{hyperlink}.
9149
9150 Regardless of whether or not \sty{hyperref} has been loaded,
9151 \gls{thumbtabhyperlinkformat} will format the text with:
9152 \cmddef{thumbtabformat}
9153 The behaviour of this command varies according to the
9154 \opt{thumbtab-text} option. You can redefine \gls{thumbtabformat} if
9155 you prefer, but the \opt{thumbtab-text} options will no longer have
9156 an effect after that.
9157
9158 \cmddef{thumbtabindexformat}
9159 This command is used to format the content of the \idx{thumbtab}
9160 index frames. The default definition just uses
9161 \gls{thumbtabhyperlinkformat}. The \gls{thumbtabindexformat}
9162 command will be redefined by the \opt{thumbtab-links} option.
9163
9164 \cmddef{thumbtabregularformat}
9165 This command is used to format the content of the \idx{thumbtab}
9166 (non-index) frames. The default definition just uses
9167 \gls{thumbtabformat}. The \gls{thumbtabregularformat}
9168 command will be redefined by the \opt{thumbtab-links} option.
9169
9170 Since \idx{thumbtab} frames are just \idxpl{dynamic-frame}, it is
9171 possible to change their attributes with \gls{setdynamicframe}.
9172 However, the \idxpl{dynamic-frame} won't be defined until
9173 \gls{makethumbtabs} finds the relevant information in the \ext{ttb}
9174 file. This means that you will get an error on the first run when
9175 the frames are not defined.
9176
9177 Instead, the \idx{thumbtab} frame attributes can be changed with:
9178 \cmddef{setthumbtab}
9179 This sets the attributes \keyvallist\ for the \idxpl{dynamic-frame}
9180 associated with the \idx{thumbtab} with the given \meta{index} (starting
9181 from 1 for the first \idx{thumbtab}). Only a warning occurs if the
9182 \idxpl{dynamic-frame} haven't been defined.
9183
9184 For example:
9185 \begin{codebox}
9186 \gls{setthumbtab}\marg{1}\marg{\frameopt{backcolor}=[rgb]\marg{0.15,0.15,1}}
9187 \end{codebox}
9188 This is essentially equivalent to:
9189 \begin{compactcodebox}
9190 \gls{setdynamicframe}*
9191 \marg{\speciallabelmeta{thumbtabindex}{1},\speciallabelmeta{thumbtab}{1}}
9192 \marg{\frameopt{backcolor}=[rgb]\marg{0.15,0.15,1}}
9193 \end{compactcodebox}
9194
9195 Note that \meta{index} isn't the same as the frame's \idx{IDN}.
9196 The first argument may be the keyword \optfmt{all}, which indicates all \idxpl{thumbtab}
9197 frames.
9198
9199 To just change the settings for the \idx{thumbtab} index, use:
9200 \cmddef{setthumbtabindex}
9201 This is like \gls{setthumbtab} but only changes the \idx{thumbtab}
9202 index frames.
9203 For example:
9204 \begin{codebox}
9205 \gls{setthumbtabindex}\marg{1}\marg{\frameopt{backcolor}=[rgb]\marg{0.15,0.15,1}}
9206 \end{codebox}
9207 This is essentially equivalent to:
9208 \begin{compactcodebox}
9209 \gls{setdynamicframe}*
9210 \marg{\speciallabelmeta{thumbtabindex}{1}}
9211 \marg{\frameopt{backcolor}=[rgb]\marg{0.15,0.15,1}}
9212 \end{compactcodebox}
9213
9214 By default, the \idxpl{thumbtab} have a grey background (unless you
9215 have created them with \idx{FlowframTk}). In \thisdoc, I set the
9216 background colours with:
9217 \begin{codebox}
9218 \gls{setthumbtab}\marg{1}\marg{\frameopt{backcolor}=[rgb]\marg{0.15,0.15,1}}
9219 \gls{setthumbtab}\marg{2}\marg{\frameopt{backcolor}=[rgb]\marg{0.2,0.2,1}}
9220 \gls{setthumbtab}\marg{3}\marg{\frameopt{backcolor}=[rgb]\marg{0.25,0.25,1}}
9221 \gls{setthumbtab}\marg{4}\marg{\frameopt{backcolor}=[rgb]\marg{0.3,0.3,1}}
9222 \gls{setthumbtab}\marg{5}\marg{\frameopt{backcolor}=[rgb]\marg{0.35,0.35,1}}
9223 \gls{setthumbtab}\marg{6}\marg{\frameopt{backcolor}=[rgb]\marg{0.4,0.4,1}}
9224 \gls{setthumbtab}\marg{7}\marg{\frameopt{backcolor}=[rgb]\marg{0.45,0.45,1}}
9225 \gls{setthumbtab}\marg{8}\marg{\frameopt{backcolor}=[rgb]\marg{0.5,0.5,1}}
9226 \gls{setthumbtab}\marg{9}\marg{\frameopt{backcolor}=[rgb]\marg{0.55,0.55,1}}
9227 \end{codebox}
9228
9229 I then defined my own custom command for the frame style:
9230 \begin{codebox}
9231 \cmd{newcommand}\marg{\cmd{thumbtabstyle}}\marg{\comment{}
9232 \cmd{centering}\cmd{bfseries}\cmd{large}\cmd{sffamily}
9233 }
9234 \codepar
9235 \gls{setthumbtab}\marg{all}\marg{\frameoptval{valign}{c},\frameoptval{style}{thumbtabstyle},\frameoptval{textcolor}{white}}
9236 \end{codebox}
9237
9238
9239 \section{Minitocs}\label{sec:minitocs}
9240
9241 In \thisdoc, after each chapter heading, there is a mini table of
9242 contents (\inlineglsdef{idx.minitoc}) for that chapter. To enable
9243 \idxpl{minitoc}, use the command:
9244 \cmddef{enableminitoc}
9245 This enables a \idx{minitoc} at the start of the given sectional
9246 unit. If present, the optional argument \meta{section-type} should
9247 be the control sequence name (no backslash) of the section command.
9248 If omitted, the default is to use the same as that used by
9249 \idxpl{thumbtab}.
9250
9251 The \idx{minitoc} will normally appear immediately after the
9252 corresponding section heading. If you prefer the \idx{minitoc} to
9253 appear in a \idx{dynamic-frame}, you can use:
9254 \cmddef{appenddfminitoc}
9255 This appends the \idx{minitoc} to the \idx{dynamic-frame} identified
9256 by \meta{ID} (the \idx{IDN} for the unstarred version or the
9257 \idx{IDL} for the starred version). The \idx{minitoc} support needs
9258 to be enabled first with \gls{enableminitoc}.
9259
9260 For example, in \thisdoc, I have:
9261 \begin{codebox}
9262 \gls{appenddfminitoc}*\marg{chaphead}
9263 \end{codebox}
9264
9265 Recall from \sectionref{sec:dfchaphead} that \gls{ChapterInDynamic}
9266 causes the corresponding sectioning command to reset the contents of
9267 the identified \idx{dynamic-frame}. The \gls{appenddfminitoc}
9268 command will cause the corresponding sectioning command to append to
9269 the contents of the associated \idx{dynamic-frame}.
9270
9271 This means that if you have something like:
9272 \begin{compactcodebox}
9273 \gls{ChapterInDynamic}*\margm{label}
9274 \gls{enableminitoc}
9275 \gls{appenddfminitoc}*\margm{label}
9276 \end{compactcodebox}
9277 for the same \idx{dynamic-frame} \meta{label}, then
9278 \gls{chapter} will first set the contents with
9279 the section heading and will then append the \idx{minitoc}.
9280 If \gls{ChapterInDynamic} isn't used or has a different frame, then
9281 the behaviour of \gls{appenddfminitoc} will depend on whether or not
9282 the \frameopt{clear} attribute has been set on the \idx{minitoc}
9283 frame. If the \frameopt{clear} attribute is not set then the
9284 \idx{minitoc} code will only be appended once. (Otherwise the frame
9285 would end up accumulating all the \idxpl{minitoc}.)
9286
9287 The style of the \idx{minitoc} text is governed by:
9288 \cmddef{minitocstyle}
9289 The default behaviour is to simply reset the font and text colour to
9290 normal. The argument is the \idx{minitoc} content. Note that this
9291 style isn't applied to the \idx*{dynamic-frame}['s] \frameopt{style} as
9292 the reason for appending the \idx{minitoc} content is because there
9293 may be other content in the frame, such as the chapter heading.
9294 The \gls{minitocstyle} command is placed inside a group so any
9295 declarations will be scoped.
9296
9297 The \idx{minitoc} has vertical spacing before and after it.
9298 \cmddef{beforeminitocskip}
9299 The gap before the \idx{minitoc}.
9300 \cmddef{afterminitocskip}
9301 The gap after the \idx{minitoc}.
9302 These are both lengths and can be changed with \csfmt{setlength}.
9303
9304 \chapter{Global Settings}\label{sec:globalsettings}
9305
9306 \chapdesc{This section describes style macros, lengths and counters used
9307 by the \glsfmttext{pkg.flowfram} package.}
9308
9309 \section{Macros}\label{sec:macros}
9310
9311 The following macros can be changed using \csfmt{renewcommand}:
9312 \cmddef{setffdraftcolor}
9313 Sets the colour of the \idxpl{bbox} when displayed in draft mode (see \sectionref{sec:draft}).
9314 The default definition is:
9315 \begin{compactcodebox}
9316 \cmd{color}\oarg{gray}\marg{0.8}
9317 \end{compactcodebox}
9318 For example, if you want a darker grey, do:
9319 \begin{codebox}
9320 \cmd{renewcommand}\marg{\gls{setffdraftcolor}}\marg{\cmd{color}[gray]\marg{0.3}}
9321 \end{codebox}
9322
9323 \cmddef{setffdrafttypeblockcolor}
9324 Sets the colour of the \idx{typeblock} outline when displayed in
9325 draft mode. The default definition is:
9326 \begin{compactcodebox}
9327 \cmd{color}[gray]\marg{0.9}
9328 \end{compactcodebox}
9329
9330 \cmddef{fflabelfont}
9331 Sets the font for the annotation labels shown in draft mode.
9332 The default definition is:
9333 \begin{compactcodebox}
9334 \cmd{small}\cmd{sffamily}
9335 \end{compactcodebox}
9336
9337 \section{Lengths}\label{sec:lengths}
9338
9339 The following are lengths, which can be changed using
9340 \csfmt{setlength}:
9341
9342 \cmddef{fflabelsep}
9343 The distance from the right hand side of the
9344 \idx{bbox} at which to place the annotation.
9345
9346 \cmddef{flowframesep}
9347 The gap between the text of the \idx{frame} and
9348 its border, for the standard border types.
9349 This is initialised to \gls{fboxsep} when \sty{flowfram} loads. It
9350 won't be automatically updated if \gls{fboxsep} is later changed.
9351
9352 \cmddef{flowframerule}
9353 The width of the \idx{frame}['s] border, if using
9354 a border given by a \idx{fcmd} that uses \gls{fboxsep}
9355 to set its border width (for example, \gls{fbox}).
9356
9357 \cmddef{sdfparindent}
9358 The default paragraph indentation within \staticordynamicframes.
9359 This may be overridden for individual frames with
9360 the \frameopt{parindent} attribute.
9361
9362 \cmddef{vcolumnsep}
9363 The approximate vertical distance between the top frame
9364 and the column frames when using \gls{Ncolumntop} etc.
9365 (The height of the \idx{flow-frame} may be adjusted if
9366 the \glslink{ifffvadjust}{ffvadjust} setting is on.)
9367 This length should be changed before the frames are defined for the
9368 change to have effect.
9369
9370 \cmddef{columnsep}
9371 The \gls{columnsep} length is provided by the \LaTeX\ kernel and is
9372 used in \LaTeX's normal two-column mode. With \sty{flowfram} it's
9373 used for the horizontal distance between the column frames
9374 that are created with commands such as \gls{Ncolumn}. This length
9375 should be changed before the frames are defined for the change to
9376 have effect.
9377
9378 \section{Counters}
9379 \label{sec:counters}
9380
9381 The following are counters that can be accessed via
9382 \code{\cmd{value}\margm{counter\dhyphen name}}
9383 or \code{\csmetafmt{the}{counter\dhyphen name}{}}.
9384
9385 \begin{important}
9386 The values of these counters may be referenced but should not be
9387 modified. They are automatically incremented by the commands.
9388 \end{important}
9389
9390 \ctrdef{maxstatic}
9391 The total number of \idxpl{static-frame} that have been defined so
9392 far. You can use this value to reference the most recently defined
9393 \idx{static-frame}.
9394
9395 \ctrdef{maxflow}
9396 The total number of \idxpl{flow-frame} that have been defined so
9397 far. You can use this value to reference the most recently defined
9398 \idx{flow-frame}.
9399
9400 \ctrdef{maxdynamic}
9401 The total number of \idxpl{dynamic-frame} that have been defined so
9402 far. You can use this value to reference the most recently defined
9403 \idx{dynamic-frame}.
9404
9405 \ctrdef{maxthumbtabs}
9406 The total number of \idxpl{thumbtab}.
9407
9408 \ctrdef{absolutepage}
9409 The absolute page number.
9410
9411 \ctrdef{thisframe}
9412 Stores the \idx{IDN} of the current \idx{flow-frame}. You can label
9413 and reference the \idx{IDN} using:
9414 \cmddef{labelflowidn}
9415 This is analogous to the standard \gls{label} command, but will
9416 always refer to the \idx{IDN} of the current \idx*{flow-frame}. It can
9417 then be referenced using \gls{ref}.
9418
9419 \begin{important}
9420 Avoid using \gls{labelflowidn} or \ctr{thisframe} in the contents of
9421 a \staticordynamicframe.
9422 \end{important}
9423
9424 \ctrdef{displayedframe}
9425 This counter is reset at the start of each page and is incremented
9426 each time a \idx{flow-frame} is selected by the
9427 \idx{output-routine}. If all \idxpl{flow-frame} are displayed on the
9428 current page then this will have the same value as \ctr{thisframe}.
9429 However, if some \idxpl{flow-frame} are invalid for the current
9430 page, the values of \ctr{displayedframe} and \ctr{thisframe} may be
9431 different. You can label the \ctr{displayedframe} counter using:
9432 \cmddef{labelflow}
9433 The label may then be referenced with \gls{ref}. For example, if
9434 your document has a column layout:
9435 \begin{codebox*}
9436 This text is about hippos\gls{labelflow}\marg{hippos}.
9437 \ldots{}
9438 \comment{Somewhere else in the document:}
9439 See column\string~\gls{ref}\marg{hippos} on page\string~\gls{pageref}\marg{hippos}
9440 for information on hippos.
9441 \end{codebox*}
9442
9443 \begin{important}
9444 Avoid using \gls{labelflow} or \ctr{displayedframe} in the contents of
9445 a \staticordynamicframe.
9446 \end{important}
9447
9448 \chapter{FlowframTk}\label{sec:flowframtk}
9449
9450 \idx{FlowframTk} is a Java graphical application that may be used to
9451 create images from shapes that are defined by control points
9452 (vector graphics). Bitmaps and text can also be added.
9453 The latest stable version can be found on \CTANpkg{flowframtk} but
9454 experimental releases are also available
9455 on \urlfootref{https://github.com/nlct/flowframtk/releases}{GitHub}.
9456 The application can be invoked from the command line with:
9457 \appdef{flowframtk}
9458 Depending on how it has been installed, you may also be able to
9459 start it from your operating system's application menu or from a
9460 desktop shortcut.
9461
9462 \section{Export to Image}\label{sec:exporttoimage}
9463
9464 An image created in \idx{FlowframTk} can be exported as a \LaTeX\
9465 (\ext+{tex}) file that contains a \env{pgfpicture} environment
9466 (provided by the \sty{pgf} package) with the basic layer commands
9467 that replicate (as near as possible) the image created in
9468 \idx{FlowframTk}. By way of example, \figureref{fig:framelayers} was
9469 created using \idx{FlowframTk} (with the isometric grid).
9470
9471 Any document that inputs one of these exported files will need to
9472 include the \sty{pgf} package, but the exported file may also
9473 contain some bespoke commands needed to emulate certain effects,
9474 such as outlined text. These are provided by the
9475 \sty{flowframtkutils} package (see
9476 \sectionref{sec:flowframtkutils}) which automatically loads \sty{pgf}.
9477
9478 If all you want is to include the exported image in your document,
9479 then you don't need to load the \sty{flowfram} package in your document
9480 (but you will need to ensure that \sty{flowfram} is installed in
9481 order to load the supplementary \sty{flowframtkutils} package, if
9482 required).
9483 The \sty{flowfram} package is too fragile and has the potential to
9484 conflict with too many other classes or packages to load it unnecessarily.
9485
9486 \section{Compute Parameters for \glsfmttext{parshape} or
9487 \glsfmttext{shapepar}}
9488 \label{sec:computeparshape}
9489
9490 The \frameopt{shape} attribute is only available for
9491 \staticordynamicframes. It can be set automatically if you want to
9492 use \idx{FlowframTk}['s] export to document class or package
9493 function (\sectionref{sec:exportstycls}) but if you want a shaped
9494 paragraph in a \idx{flow-frame} or if you don't need to use the
9495 \sty{flowfram} package but would like a shaped paragraph in an
9496 ordinary document, then you can create the desired shape in
9497 \idx{FlowframTk} and use the \qt{Parshape} or \qt{Shapepar} function
9498 (be sure to set the normal font size first in \idx{FlowframTk}['s]
9499 \TeX\ configuration settings). This will calculate the
9500 parameters for the applicable command and create a file that
9501 contains the command and arguments needed to shape a paragraph.
9502
9503 Simply \gls{input} the file (that was created by \idx{FlowframTk}['s] Parshape
9504 or Shapepar function) at the start of the paragraph that
9505 should be shaped. Take care not to insert a paragraph break between
9506 inputting the file and the start of the text. See the
9507 \idx{FlowframTk} user manual for further details.
9508
9509 \begin{information}
9510 Since \gls{parindent} is a \TeX\ primitive and \sty{shapepar}
9511 provides generic code, this function may be used with other \TeX\
9512 formats, such as plain \TeX.
9513 \end{information}
9514
9515 \section{Export to Document Class or Package}\label{sec:exportstycls}
9516
9517 Whilst creating images is something that can also be done by other vector
9518 graphics applications (some of which may create more readable
9519 \sty{tikz} code), \idx{FlowframTk} can also create a \LaTeX\ package
9520 (\ext+{sty}) or class file (\ext+{cls}) that uses the \sty{flowfram}
9521 package. In this case, instead of reproducing the image, the shapes
9522 may be used to identify \idxpl{flow-frame}, \idxpl{static-frame} or
9523 \idxpl{dynamic-frame}. The definitions (\gls{newflowframe},
9524 \gls{newstaticframe} and \gls{newdynamicframe}) will be written to the
9525 exported \ext{sty} or \ext{cls} file. You may find that using this
9526 graphical interface is an easier approach to defining \idxpl{frame}
9527 than trying to calculate the locations and dimensions using \LaTeX\
9528 commands. When you use \idx{FlowframTk}['s] export function to
9529 create a document class or package, the created file will contain
9530 the code to automatically load both \sty{flowfram} and
9531 \sty{flowframtkutils} (but make sure that you have at least version
9532 0.8.8 of \idx{FlowframTk}).
9533
9534 When using \idx{FlowframTk} to construct \sty{flowfram} data, you
9535 need to first establish the \idx{typeblock} and then identify the
9536 shapes that should represent \idxpl{frame}. Any shapes that aren't
9537 identified as such won't be exported. (This is useful if, for
9538 example, you have shapes that provide guides for the positioning of
9539 other shapes.) You can choose whether the shape itself should be used as a
9540 border (or background, if it's filled) for the corresponding \idx{frame}
9541 or whether to simply use the shape's bounding box as the location
9542 and size of the \idx{frame}.
9543
9544 \begin{information}
9545 When using the \idx{FlowframTk} export function, don't set the
9546 \frameopt{backcolor} or \frameopt{bordercolor} attributes. Instead,
9547 use the line paint and fill paint settings in \idx{FlowframTk}.
9548 \end{information}
9549
9550 You may also define \idxpl{dynamic-frame} with \idxpl{speciallabel}
9551 but make sure you have an up-to-date version of both \sty{flowfram}
9552 and \idx{FlowframTk} to ensure they are properly implemented.
9553 With at least \idx{FlowframTk} version 0.8.8, you can use the Flow
9554 Frame Wizard to ensure that the correct labels are used.
9555
9556 \section{The \glsfmttext{pkg.flowframtkutils} Package}
9557 \label{sec:flowframtkutils}
9558
9559 \pkgdef{flowframtkutils}
9560
9561 The \sty{flowframtkutils} package is provided with \sty{flowfram}
9562 v2.0+ to assist with files that have been exported from \idx{FlowframTk}.
9563 It provides the bespoke commands that may be written to those files.
9564 Ensure that you have at least version 0.8.8 of \idx{FlowframTk}
9565 to support newer commands.
9566
9567 \begin{information}
9568 The \sty{flowframtkutils} package doesn't load the \sty{flowfram}
9569 package as it may be simply required when
9570 an image is exported as \sty{pgf} code. However,
9571 \sty{flowframtkutils} does automatically load the \sty{pgf} package
9572 as it's likely to be needed in either the image export or
9573 the class\slash package export.
9574 \end{information}
9575
9576 \subsection{Options}\label{sec:flowframtkutilsopts}
9577
9578 All options that can be passed to \sty{flowfram} can also be passed
9579 to a package (\ext{sty}) or class (\ext{cls}) created by \idx{FlowframTk}. However,
9580 \sty{flowframtkutils} itself only has the following options, which
9581 can only be set when the package is loaded:
9582
9583 \optiondef{textpath}
9584
9585 If true, when \sty{flowframtkutils} is loaded, it will automatically
9586 load the \sty{decorations.text} PGF library after loading the \sty{pgf}
9587 package. Note that this library doesn't support all of
9588 \idx{FlowframTk}['s] text-path settings. See the \idx{FlowframTk}
9589 documentation for further details.
9590
9591 \optiondef{outline}
9592
9593 If true, when \sty{flowframtkutils} is loaded, it will try to
9594 provide the appropriate support for outline text and will redefine
9595 \gls{jdroutline} as appropriate.
9596
9597 If \pdfLaTeX\ or \LuaLaTeX\ is used, this option will input the
9598 \file{pdf-trans.tex} file, which contains generic pdf\TeX\ code to
9599 render text as an outline. This code includes pdf\TeX\ primitives,
9600 so if \LuaLaTeX\ is used, the \sty{luatex85} package will
9601 automatically be loaded with this option to ensure they are defined.
9602
9603 If a different engine is used, this option will load the
9604 \sty{pst-char} package instead, which will use PSTricks to render
9605 the outline.
9606
9607 \subsection{Provided Commands}\label{sec:flowframtkutilscmds}
9608
9609 Many of the \sty{flowfram}-related commands provided by the
9610 \sty{flowframtkutils} package aren't intended for general use, as
9611 they are provided to simplify the code written by \idx{FlowframTk}
9612 to ensure that the bespoke files are correctly integrated with the
9613 \sty{flowfram} package with the class\slash package export function.
9614
9615 Most of the user-level commands described here are those used when
9616 exporting an image to a file containing the \env{pgfpicture}
9617 environment. (The \qt{jdr} prefix is a throwback to
9618 \idx{FlowframTk}['s] original name, JpgfDraw.)
9619
9620 If you export to a complete document, \idx{FlowframTk} version 0.8.8
9621 and above will search for the \sty{flowframtkutils} package using
9622 \app{kpsewhich}. If it's found, \idx{FlowframTk} will assume it's
9623 available for use. If not, or if an older version of
9624 \idx{FlowframTk} is used, it will provide the definition of the
9625 \qt{jdr} commands if they are required.
9626
9627 \cmddef{includeteximage}
9628
9629 The \gls{includeteximage} command is provided with
9630 \csfmt{Provide\-Doc\-u\-ment\-Command}
9631 rather than defined as a new command, as it may be defined in a similar manner by
9632 other packages.
9633 This command isn't written to any exported file by \idx{FlowframTk}
9634 but is provided by \sty{flowframtkutils} to include an exported
9635 image (\ext{tex}) file in a document. You can simply input the file
9636 with commands like \gls{input}, but \gls{includeteximage} provides
9637 some extra features.
9638
9639 The filename identified by \meta{filename} is input but
9640 the command first locally sets the input search path to match the graphics
9641 search path used by \gls{includegraphics}. This means that you can
9642 save your exported image \ext{tex} file to the same location as your
9643 other image files.
9644
9645 If the optional argument is present, a transformation can be applied
9646 to the image. For example, if it turns out to be too large for the
9647 page, you could go back to \gls{FlowframTk} and shrink it or you
9648 can use the scaling options in \gls{includeteximage}. The recognised
9649 keys are just a subset of those recognised by \sty{graphicx}:
9650 \optfmt{scale}, \optfmt{angle}, \optfmt{width}, \optfmt{height}
9651 and \optfmt{alt}. Bear in mind that scaling the image will also
9652 scale any text within the image.
9653
9654 \cmddef{jdroutline}
9655
9656 If enabled by the \opt{outline} option, \gls{jdroutline} will attempt
9657 to render \meta{text} as an outline using \meta{pdf-trans code} (if
9658 \file{pdf-trans.tex} was loaded) or \meta{pst-char code} (if
9659 \sty{pst-char} was loaded). If not enabled, this command will
9660 generate a warning and just do \meta{text}.
9661
9662 For example, large bold \qt{ABC} rendered with a green outline
9663 that's filled with red:
9664 \begin{codebox}
9665 \gls{jdroutline}
9666 \marg{2 Tr 0 1 0 rg 1 0 0 RG}
9667 \marg{fillstyle=solid,linecolor=green,fillcolor=red}
9668 \marg{\cmd{bfseries}\cmd{Huge} ABC}
9669 \end{codebox}
9670
9671 \cmddef{jdrimagebox}
9672
9673 Used for encapsulated images, \gls{jdrimagebox} is designed to prevent
9674 problems if numerical rounding errors cause the image to be larger
9675 than the available area. It's used when \idx{FlowframTk} exports to
9676 a complete document that encapsulates the image. (Rather than
9677 exporting to a \ext{tex} file that can be input from an existing document.)
9678
9679 The following commands are only written to exported files by
9680 \idx{FlowframTk} v0.8.8+ if it's detected that \sty{flowframtkutils}
9681 is available.
9682
9683 \cmddef{flowframtkimageinfo}
9684
9685 If \idx{FlowframTk} was instructed to include the title and creation
9686 date, this command will be written to the exported (\ext{tex}) document file.
9687 This is only applicable when the export to a complete document is used, rather than
9688 export to a file just containing the image code.
9689 Available options:
9690
9691 \optiondef{image.title}
9692 Set the title with \code{\gls{flowframtkSetTitle}\margm{text}}.
9693 (The title is the image's description.)
9694
9695 \optiondef{image.creationdate}
9696 Set the creation date with
9697 \code{\gls{flowframtkSetCreationDate}\margm{PDF date}}.
9698
9699 \cmddef{flowframtkSetCreationDate}
9700
9701 If \sty{hyperref} has been loaded, this will use \gls{hypersetup} to
9702 set the PDF creation date, otherwise if \gls{pdfinfo} has been
9703 defined that will be used instead.
9704
9705 \cmddef{flowframtkSetTitle}
9706
9707 If \sty{hyperref} has been loaded, this will use \gls{hypersetup} to
9708 set the document title meta data, otherwise if \gls{pdfinfo} has been
9709 defined that will be used instead. Awkward characters within the
9710 title will be marked up with:
9711 \cmddef{flowframtkimgtitlechar}
9712 This normally just expands to \meta{char} but if \gls{pdfinfo} is
9713 required, then this will expand to the detokenized \meta{PDF
9714 replacement}. For example, if the image's description was set to
9715 \qt{A House (with a pond)} in \idx{FlowframTk}, and the image is
9716 exported as a complete document with meta data, then the document
9717 preamble would contain (for the given timestamp):
9718 \begin{compactcodebox}
9719 \gls{flowframtkimageinfo}\marg{
9720 \optvalm{image.title}{A House \gls{flowframtkimgtitlechar}\marg{(}\marg{\cmd{(}}with a pond\gls{flowframtkimgtitlechar}\marg{)}\marg{\cmd{)}}},
9721 \optvalm{image.creationdate}{D:20250815192214+01'00'}
9722 }
9723 \end{compactcodebox}
9724
9725 If you import from a format that can change paragraph justification,
9726 the import function will use the kernel commands \gls{raggedleft}, \gls{raggedright}
9727 and \gls{centering}. However, there is no equivalent kernel command
9728 to reset the paragraph justification, so when full justification is specified, the
9729 import function will use:
9730 \cmddef{flowframtkNoRagged}
9731 This command is defined to restore the paragraph justification back
9732 to the way it was when \sty{flowframtkutils} was loaded, which
9733 should typically be full justification. This may not be appropriate
9734 if the settings were changed after \sty{flowframtkutils} was loaded.
9735
9736 In general, in this type of situation, the code obtained from the
9737 import function is likely to need some tidying up. In which case,
9738 you may prefer to remove this command and ensure that any
9739 justification declarations are scoped.
9740
9741 If you provide a description for an object, it will be included as a
9742 comment. This can help to identify the relevant parts of the code
9743 but you may prefer to have hooks to allow you to add content from
9744 the document (rather than editing the exported image file).
9745 For example, to add tagging for accessibility or to
9746 uncover elements of the image in \cls{beamer}. With \idx{FlowframTk}
9747 v0.8.8+, you can specify what type of hook you want:
9748 paired, encapsulated or no hook.
9749
9750 \cmddef{flowframtkstartobject}
9751 If this hook is added to the image, it will always be paired with a
9752 matching closing hook:
9753 \cmddef{flowframtkendobject}
9754 By default, the above pair do nothing.
9755
9756 Alternatively, you can choose to encapsulate each object, which will
9757 instead use the following hook:
9758 \cmddef{flowframtkencapobject}
9759 By default, this simply does the final argument \meta{object}, which is the code
9760 to draw the object.
9761
9762 The common arguments in these hooks are:
9763 \begin{deflist}
9764 \itemtitle{\meta{n}}
9765 \begin{itemdesc}
9766 A number that's unique for each object in a given image. This argument in
9767 \gls{flowframtkendobject} must always be the same as its matching
9768 \gls{flowframtkstartobject}. The numbering starts at 0 for the
9769 entire image and then increments for each object within the image,
9770 descending down groups.
9771 \end{itemdesc}
9772
9773 \itemtitle{\meta{Java class name}}
9774 \begin{itemdesc}
9775 The Java class name of the object. For example, \code{JDRPath} for a
9776 path (which may consist of lines, curves and moves),
9777 \code{JDRText} for text or \code{JDRBitmap} for bitmaps.
9778
9779 This is the class responsible for writing the PGF code to render (as
9780 closely as possible) the object. That is, the final argument for
9781 \gls{flowframtkencapobject} or the content between
9782 \gls{flowframtkstartobject} and \gls{flowframtkendobject}.
9783 This is true, even if the object needs to be temporarily converted
9784 for the export. For example, a text area with gradient paint may be
9785 converted to a filled path if the \qt{To Path} export setting has
9786 been applied. The PGF code will then be path construction code not
9787 \csfmt{pgftext}, but the class name will still be \code{JDRText}.
9788 \end{itemdesc}
9789
9790 \itemtitle{\meta{description}}
9791 \begin{itemdesc}
9792 The description assigned to the object or empty if no description
9793 was set.
9794 \end{itemdesc}
9795
9796 \itemtitle{\meta{tag}}
9797 \begin{itemdesc}
9798 The tag or space-separated tag list assigned to the object or empty if no tag was set.
9799 \end{itemdesc}
9800
9801 \itemtitle{\meta{pgf point}}
9802 \begin{itemdesc}
9803 The lower left point of the object's bounding box, in the form
9804 \code{\gls{pgfpoint}\margm{x}\margm{y}}.
9805 \end{itemdesc}
9806
9807 \itemtitle{\meta{width}}
9808 \begin{itemdesc}
9809 The width of the object's bounding box.
9810 \end{itemdesc}
9811
9812 \itemtitle{\meta{height}}
9813 \begin{itemdesc}
9814 The height of the object's bounding box.
9815 \end{itemdesc}
9816
9817 \end{deflist}
9818
9819 A simplistic way of adding overlays would be to export using the
9820 paired commands and add \csfmt{pause}:
9821 \begin{codebox}
9822 \cmd{renewcommand}\marg{\gls{flowframtkendobject}}\oarg{7}\marg{\cmd{pause}}
9823 \end{codebox}
9824
9825 The \sty{flowframtkutils} package provides functions that may be
9826 used in the definition of the markup pairs \gls{flowframtkstartobject}
9827 and \gls{flowframtkendobject}. First make
9828 sure that you export to an image with the \qt{Paired} setting
9829 on. Then anywhere before the image is included in the document
9830 these command may be redefined.
9831 \cmddef{FlowframTkBeginScopeIfGroup}
9832 Designed for use in the definition of
9833 \gls{flowframtkstartobject}, this command will insert
9834 \code{\cbeg{pgfscope}} if \meta{class name} is \code{JDRGroup},
9835 otherwise it will do nothing.
9836
9837 \cmddef{FlowframTkEndScopeIfGroup}
9838 Designed for use in the definition of
9839 \gls{flowframtkendobject}, this command will insert
9840 \code{\cend{pgfscope}} if \meta{class name} is \code{JDRGroup},
9841 otherwise it will do nothing.
9842
9843 These two commands will need to be used in pairs to ensure
9844 that the \env{pgfscope} environment is correctly started and ended.
9845 For example:
9846 \begin{codebox}
9847 \cmd{renewcommand}\gls{flowframtkstartobject}\oarg{7}\marg{\comment{}
9848 \gls{FlowframTkBeginScopeIfGroup}\marg{\#2}\comment{}
9849 }
9850 \cmd{renewcommand}\gls{flowframtkendobject}\oarg{7}\marg{\comment{}
9851 \gls{FlowframTkEndScopeIfGroup}\marg{\#2}\comment{}
9852 }
9853 \end{codebox}
9854
9855 The \sty{flowframtkutils} package provides functions that may be
9856 used in the definition of \gls{flowframtkencapobject}. First make
9857 sure that you export to an image with the \qt{Encapsulated} setting
9858 on. Then anywhere before the image is included in the document this
9859 command may be redefined.
9860
9861 \cmddef{FlowframTkScopeIfGroup}
9862 Designed for use in the definition of \gls{flowframtkencapobject},
9863 this command will encapsulate \meta{object} within the
9864 \env{pgfscope} environment if \meta{class name} is \code{JDRGroup},
9865 otherwise it will just do \meta{object}. You may find this useful if
9866 you have set one or more clipping paths and you want to limit the
9867 scope.
9868 In this case, you just need to redefine \gls{flowframtkencapobject}:
9869 \begin{codebox}
9870 \cmd{renewcommand}\gls{flowframtkencapobject}\oarg{8}\marg{\comment{}
9871 \gls{FlowframTkScopeIfGroup}\marg{\#2}\marg{\#8}\comment{}
9872 }
9873 \end{codebox}
9874
9875 There is a more complicated low-level function for use with
9876 \cls{beamer}. Rather that explicitly redefining
9877 \gls{flowframtkencapobject} (which would require switching on
9878 \LaTeX3 syntax) you can simply use:
9879 \cmddef{FlowFramTkUtilsSetOverlayEncap}
9880 This redefines \gls{flowframtkencapobject} to use the low-level
9881 function:
9882 \cmddef{flowframtkutilsuncoverencap:nnnnnnnn}
9883 (There shouldn't be any need to use this function directly.)
9884
9885 This recognises the settings that may be set in the optional argument
9886 of \gls{FlowFramTkUtilsSetOverlayEncap} to govern the way that
9887 objects are uncovered.
9888
9889 The default is to use \cls{beamer}['s] \gls{uncover} command but two
9890 helper functions are used (which both required \LaTeX3 syntax to be
9891 enabled if you need to redefine them).
9892 \cmddef{flowframtkutilsuncover:nn}
9893 Uncovers for a single slide. The default definition is:
9894 \begin{compactcodebox}
9895 \gls{uncover}<\meta{number}>\margm{content}
9896 \end{compactcodebox}
9897 \cmddef{flowframtkutilsuncoverfrom:nn}
9898 Uncovers from a slide. The default definition is:
9899 \begin{compactcodebox}
9900 \gls{uncover}<\meta{number}->\margm{content}
9901 \end{compactcodebox}
9902
9903 If you later want to change the settings you can use:
9904 \cmddef{FlowFramTkUtilsOverlayEncapSetup}
9905 This should be placed before the image is input into the document
9906 but bear in mind that the settings are local and there may be
9907 interference if they are changed within the same frame that has the
9908 overlays.
9909
9910 The \gls{flowframtkutilsuncoverencap:nnnnnnnn} function is still a little
9911 experimental, but it basically works as follows:
9912 \begin{itemize}
9913 \item When \meta{n} is 0 (that is, the entire image), the bounding
9914 box is saved and some other initialisation is performed.
9915 \item When \meta{n} is greater than 0, the overlay setting is
9916 searched for:
9917 \begin{itemize}
9918 \item With the \overlayencapoptval{auto-overlay}{true} option,
9919 an integer variable is incremented for all object types except
9920 groups. This value is used as the overlay. Each object will be
9921 uncovered according to the order in which it was written to the
9922 exported file.
9923 \item With the \overlayencapoptval{auto-overlay}{false} option,
9924 the \overlayencapopt{tag-overlay} setting is checked. If that has
9925 an overlay identified for the object's tag then that will be
9926 used. If not, the \overlayencapopt{object-overlay} setting is checked.
9927 If that has an overlay identified for the object's type then that will be
9928 used. If not, the \overlayencapopt{fallback-overlay} setting is
9929 checked. If that has been set then that will be used. If not, the
9930 current object will be visible with no overlay specification.
9931 \end{itemize}
9932 \item When \meta{n} is greater than 0 and the
9933 \overlayencapopt{annote} setting is not \optfmt{false}, then
9934 after the object has been draw according to the above overlay
9935 settings an annotation will be added if applicable.
9936 The annotation consists of text with optionally a line from the
9937 object's bounding box to the text, which is offset according to
9938 the \opt{overlayencap.annote-arrow.dx} and
9939 \opt{overlayencap.annote-arrow.dy} settings. By default the line
9940 has an arrow head at the start. This may be changed with the
9941 \overlayencapopt{annote-arrow} setting.
9942 Whether or not the object has an annotation is determined by
9943 \overlayencapopt{annote-text}. The annotation overlay is
9944 determined by the \overlayencapopt{annote} setting.
9945 \end{itemize}
9946
9947 For example, assuming that the file \filefmt{image.tex} was created
9948 by \idx{FlowframTk} with the \qt{Object Markup} option set to \qt{Encapsulated}:
9949 \begin{codebox}
9950 \cmd{documentclass}\marg{beamer}
9951 \cmd{usepackage}\marg{flowframtkutils}
9952 \gls{FlowFramTkUtilsSetOverlayEncap}
9953 \oarg{
9954 \overlayencapoptvalm{object-overlay}{path = 1, text = 2},
9955 \overlayencapopt{annote},
9956 \overlayencapopteqvalref{annote-text}{description-or-tag}
9957 }
9958 \cbeg{document}
9959 \cbeg{frame}
9960 \cmd{frametitle}\marg{An Image}
9961 \cmd{centering}
9962 \cmd{input}\marg{image}
9963 \cend{frame}
9964 \cend{document}
9965 \end{codebox}
9966
9967 There are two ways of adding annotations. You can either add the
9968 text and, if applicable, a line with an arrow head to the image in
9969 \idx{FlowframTk} and tag them. Then you can use the
9970 \overlayencapopt{tag-overlay} option to uncover them. Alternatively,
9971 you can use the \overlayencapopt{annote} option to automatically add
9972 annotations based on each object's tag or description.
9973 This second method is less precise as the annotation is placed
9974 relative to the object's bounding box, which may be at a distance
9975 from a non-rectangular shape, but may be sufficient for simple
9976 images.
9977
9978 Available options are listed below.
9979
9980 \overlayencapoptdef{uncover}
9981 Determines whether or not overlays should be used for
9982 image objects and, if so, should the object just be shown on a
9983 single overlay or from a certain number.
9984
9985 \overlayencapoptvaldef{uncover}{single}
9986 Uncover for a single slide.
9987
9988 \overlayencapoptvaldef{uncover}{from}
9989 Uncover from a slide.
9990
9991 \overlayencapoptvaldef{uncover}{false}
9992 Don't have overlays for image objects (but annotations may
9993 still be overlaid).
9994
9995 \overlayencapoptdef{annote}
9996 Determines whether or not annotations should be added and,
9997 if so, what overlays should be used for annotations.
9998 If this setting is on but not annotation text is available for a given
9999 object then the annotation will be skipped. The annotation text, if
10000 available, is offset from the object's bounding box. Optionally a
10001 line may be drawn from the bounding box to the text.
10002 The \qt{annotation} refers to the text and, if present, the line.
10003
10004 \overlayencapoptvaldef{annote}{single}
10005 Uncover annotation, if applicable, for a single slide.
10006 That is, use \code{\cmd{uncover}<\meta{num}>\margm{annotation}}.
10007
10008 \overlayencapoptvaldef{annote}{from}
10009 Uncover annotation, if applicable, from a slide.
10010 That is, use \code{\cmd{uncover}<\meta{num}->\margm{annotation}}.
10011
10012 \overlayencapoptvaldef{annote}{match}
10013 Match the \overlayencapopt{uncover} setting.
10014
10015 \overlayencapoptvaldef{annote}{true}
10016 Enable annotations without changing the overlay setting.
10017
10018 \overlayencapoptvaldef{annote}{false}
10019 Don't show annotations.
10020
10021 \overlayencapoptdef{annote-position}
10022 If annotations should be added, this setting indicates in
10023 which direction the annotation should be.
10024
10025 \overlayencapoptvaldef{annote-position}{auto}
10026 Automatically determine the direction based on the object's
10027 relative position within the image.
10028
10029 \overlayencapoptvaldef{annote-position}{north}
10030 Place the annotation above the object.
10031
10032 \overlayencapoptvaldef{annote-position}{northeast}
10033 Place the annotation above right of the object.
10034
10035 \overlayencapoptvaldef{annote-position}{east}
10036 Place the annotation right of the object.
10037
10038 \overlayencapoptvaldef{annote-position}{southeast}
10039 Place the annotation below right of the object.
10040
10041 \overlayencapoptvaldef{annote-position}{south}
10042 Place the annotation below the object.
10043
10044 \overlayencapoptvaldef{annote-position}{southwest}
10045 Place the annotation below left of the object.
10046
10047 \overlayencapoptvaldef{annote-position}{west}
10048 Place the annotation left of the object.
10049
10050 \overlayencapoptvaldef{annote-position}{northwest}
10051 Place the annotation above left of the object.
10052
10053 \overlayencapoptdef{annote-arrow}
10054 If annotations should be added, this setting governs the
10055 annotation arrow. Available settings are described in
10056 \sectionref{sec:overlayencapannotearrowopts}.
10057
10058 \overlayencapoptdef{annote-text}
10059 The text used for the annotation. If the text is empty or no mapping
10060 has been provided then there won't be an annotation for the object.
10061
10062 \overlayencapoptvaldef{annote-text}{hide}
10063 No annotation text (which means no arrow either, regardless of the
10064 \overlayencapopt{annote-arrow} setting).
10065
10066 \overlayencapoptvaldef{annote-text}{description}
10067 If the object has a description, use that as the annotation text.
10068
10069 \overlayencapoptvaldef{annote-text}{tag}
10070 If the object has a tag, use that as the annotation text.
10071
10072 \overlayencapoptvaldef{annote-text}{description-or-tag}
10073 If the object has a description, use that as the annotation
10074 text, otherwise if the object has a tag use that.
10075
10076 \overlayencapoptvaldef{annote-text}{tag-map}
10077 If the object has a tag and a mapping has been set with
10078 \overlayencapopt{tag-text}, use the mapping as the annotation
10079 text.
10080
10081 \overlayencapoptdef{tag-text}
10082 Sets up the mappings for use with
10083 \overlayencapopteqvalref{annote-text}{tag-map}, where the key in
10084 \keyvallist\ is the tag and the value is the text to use for that
10085 tag. For example, if the image has some objects that have the tag
10086 \qt{window} and some have the tag \qt{door}:
10087 \begin{codebox}
10088 \overlayencapoptvalm{tag-text}{
10089 window = \marg{A Window},
10090 door = \marg{A Door}
10091 }
10092 \end{codebox}
10093
10094 \overlayencapoptdef{auto-overlay}
10095 If true, auto-increment the overlay for each object that's
10096 not a group. (Groups are excluded as their content is nested.)
10097
10098 \overlayencapoptdef{tag-overlay}
10099 If \overlayencapoptval{auto-overlay}{false},
10100 set up the tag overlays, where the key in \keyvallist\ is
10101 the tag and the value is the overlay number.
10102 For example, if the image has some objects that have the tag
10103 \qt{building}, some have the tag \qt{window} and some have the tag \qt{door}:
10104 \begin{codebox}
10105 \overlayencapoptvalm{tag-overlay}{
10106 building = 1,
10107 window = 2,
10108 door = 3
10109 }
10110 \end{codebox}
10111 Within \keyvallist, the value part should be a number but may also
10112 be empty (the equal sign is still needed). This means that there
10113 shouldn't be an overlay for an object with that tag. This is
10114 different from omitting the tag from the list as it prevents the
10115 \overlayencapopt{object-overlay} and \overlayencapopt{fallback-overlay}
10116 checks.
10117
10118 If the \keyvallist\ is not empty, this option automatically sets
10119 \overlayencapoptval{auto-overlay}{false}.
10120
10121 \overlayencapoptdef{object-overlay}
10122 If \overlayencapoptval{auto-overlay}{false}, set up the
10123 object overlays, where the key in \keyvallist\ identifies the object
10124 and the value is the overlay number.
10125
10126 \begin{warning}
10127 If you set an overlay for groups but objects within the group also
10128 have an overlay, this will cause nested \csfmt{uncover}.
10129 \end{warning}
10130
10131 The key may be any of:
10132 \optfmt{group}, \optfmt{path}, \optfmt{text}, \optfmt{text-path},
10133 \optfmt{symmetric-path}, \optfmt{scaled-pattern},
10134 \optfmt{spiral-pattern}, \optfmt{rotational-pattern} or
10135 \optfmt{bitmap}.
10136 For example:
10137 \begin{codebox}
10138 \overlayencapoptvalm{object-overlay}{
10139 bitmap = 1,
10140 path = 2,
10141 text = 3
10142 }
10143 \end{codebox}
10144 Within \keyvallist, the value part should be a number but may also
10145 be empty (the equal sign is still needed). This means that there
10146 shouldn't be an overlay for an object of that type. This is
10147 different from omitting the object type from the list as it prevents the
10148 \overlayencapopt{fallback-overlay} check.
10149
10150 If the \keyvallist\ is not empty, this option automatically sets
10151 \overlayencapoptval{auto-overlay}{false}.
10152
10153 \overlayencapoptdef{fallback-overlay}
10154 If \overlayencapoptval{auto-overlay}{false},
10155 and if an object doesn't have an overlay identified by either
10156 \overlayencapopt{tag-overlay} or \overlayencapopt{object-overlay},
10157 then use this fallback. Available keys for \keyvallist\ are
10158 listed in \sectionref{sec:overlayencapfallbackoverlayopts}.
10159
10160 \subsubsection{Fallback Overlay Options}
10161 \label{sec:overlayencapfallbackoverlayopts}
10162
10163 These are available settings for use in the
10164 \overlayencapopt{fallback-overlay} option value.
10165 They can also be set with \csfmt{keys\_set:nn} where the module is
10166 \code{flowframtkutils / overlay / fallback}.
10167
10168 \overlayencapoptdef{fallback-overlay.enable}
10169 If true, enables fallback overlay setting.
10170 This means that if an overlay is identified by either
10171 \overlayencapopt{tag-overlay} or \overlayencapopt{object-overlay}
10172 then the overlay will be set to the default value (for non-group
10173 objects).
10174
10175 \overlayencapoptdef{fallback-overlay.fixed}
10176 If fallback overlay setting enabled, set the default
10177 overlay to \meta{number}.
10178
10179 \overlayencapoptdef{fallback-overlay.increment}
10180 If fallback overlay setting enabled, set the default
10181 overlay to a number that's incremented for each use of the fallback.
10182
10183 \subsubsection{Annotation Arrow Options}
10184 \label{sec:overlayencapannotearrowopts}
10185
10186 These are available settings for use in the
10187 \overlayencapopt{annote-arrow} option value.
10188 They can also be set with \csfmt{keys\_set:nn} where the module is
10189 \code{flowframtkutils / overlay / arrow}.
10190
10191 \overlayencapoptdef{annote-arrow.show}
10192 If annotations should be added, show an arrow in addition
10193 to the text. For example:
10194 \begin{codebox}
10195 \overlayencapoptvalm{annote-arrow}{\overlayencapoptval{annote-arrow.show}{true}}
10196 \end{codebox}
10197 If this is the only \overlayencapopt{annote-arrow} setting, then it
10198 can be written more compactly:
10199 \begin{codebox}
10200 \overlayencapoptval{annote-arrow}{\overlayencapopt{annote-arrow.show}}
10201 \end{codebox}
10202
10203 \overlayencapoptdef{annote-arrow.hide}
10204 The inverse of \overlayencapopt{annote-arrow.show}.
10205 If annotations should be added, don't show an arrow (only
10206 show the text).
10207
10208 \overlayencapoptdef{annote-arrow.dx}
10209 If annotations should be added, the horizontal
10210 displacement from the start of the arrow. This is also the
10211 horizontal displacement for the annotation text, regardless of
10212 whether or not the arrow is shown.
10213
10214 \overlayencapoptdef{annote-arrow.dy}
10215 If annotations should be added, the vertical
10216 displacement from the start of the arrow. This is also the
10217 vertical displacement for the annotation text, regardless of
10218 whether or not the arrow is shown.
10219
10220 \overlayencapoptdef{annote-arrow.color}
10221 The colour to use for the annotation arrow, if shown. The
10222 value may be empty to indicate the current stroke colour should be
10223 used, otherwise it should be a colour name suitable for use in
10224 \csfmt{pgfsetstrokecolor}.
10225
10226 \overlayencapoptdef{annote-arrow.start}
10227 The start arrow marker to use for the annotation arrow, if shown. The
10228 value may be empty to indicate there should be no start arrow,
10229 otherwise it should be suitable for use in
10230 \csfmt{pgfsetarrowsstart}. The line starts at the object's bounding
10231 box so that's where the start arrow will be placed. A
10232 non-rectangular shape may be some distance away from this point.
10233
10234 Remember to include the \styfmt{arrows.meta} PGF library if you want
10235 to use any of the meta arrows. For example with:
10236 \begin{codebox}
10237 \overlayencapoptvalm{annote-arrow}{
10238 \overlayencapoptvalm{annote-arrow.start}{Latex\oarg{length=5pt}},
10239 }
10240 \end{codebox}
10241 the preamble requires:
10242 \begin{codebox}
10243 \cmd{usepgflibrary}\marg{arrows.meta}
10244 \end{codebox}
10245
10246 \overlayencapoptdef{annote-arrow.end}
10247 The end arrow marker to use for the annotation arrow, if shown. The
10248 value may be empty to indicate there should be no end arrow,
10249 otherwise it should be suitable for use in
10250 \csfmt{pgfsetarrowsend}. The line ends on the annotation text's
10251 boundary, the location determined according to the \csfmt{pgftext} anchor.
10252
10253 For example:
10254 \begin{codebox}
10255 \overlayencapoptvalm{annote-arrow}{
10256 \overlayencapopt{annote-arrow.show},
10257 \overlayencapoptval{annote-arrow.dx}{2cm},
10258 \overlayencapoptval{annote-arrow.dy}{1cm},
10259 \overlayencapoptvalm{annote-arrow.start}{},
10260 \overlayencapoptvalm{annote-arrow.end}{>}
10261 }
10262 \end{codebox}
10263
10264
10265 \chapter{Troubleshooting}
10266
10267 \chapdesc{This chapter should be consulted if you experience any
10268 problems using the \glsfmttext{pkg.flowfram} package.}
10269
10270 For an up-to-date list of frequently asked questions, see
10271 the \faqspkg{flowfram}.
10272
10273 \section{General Queries}\label{sec:generalqueries}
10274
10275 \begin{enumerate}
10276 \item If all my \idxpl{flow-frame} are only defined on, say,
10277 pages \code{1-10}, what happens if I then add some extra text so that
10278 the document exceeds 10 pages?
10279
10280 The output routine will create a new \idx{flow-frame} the size
10281 of the \idx{typeblock} and use that.
10282
10283 \item Can I use the formatted page number in \idxpl{pglist}?
10284
10285 No.
10286
10287 \item\label{itm:whynot} Why not?
10288
10289 When the output routine finishes with one \idx{flow-frame} it looks for the
10290 next \idx{flow-frame} defined on that page. If there are none left, it then
10291 searches through the \idx{pglist} of all the defined \idxpl{flow-frame} to
10292 see if the next page lies in that range. If there are none defined on
10293 that page, it ships out that page, and tries the next page. This gives
10294 rise to two problems:
10295 \begin{enumerate}
10296 \item \LaTeX\ is not clairvoyant. If it is currently
10297 on page 14, and on the next page the page numbering changes
10298 to A, it has no way of knowing this until it has reached
10299 that point, which it hasn't yet. So it is looking for a
10300 \idx{flow-frame} defined on page~15, not on page~A.
10301
10302 \item How does \LaTeX\ tell if page C lies between
10303 pages A and D\@? It would require an algorithm that can convert
10304 from a formatted number back to an integer. Given that there
10305 are many different ways of formatting the value of a counter
10306 (besides the standard Roman and alphabetical formats) it
10307 would be impossible to write an algorithm to do this
10308 for some arbitrary format.
10309
10310 \end{enumerate}
10311
10312 \item Can I have an arbitrarily shaped \gls{frame}?
10313 \label{itm:parshape}
10314
10315 You can assign certain irregular shapes to \staticordynamicframes,
10316 using the \frameopt{shape} key (see \sectionref{sec:parshape}).
10317 Note that the \idx{bbox} will still appear as a rectangle with
10318 the dimensions of the given \idx{frame} which may not correspond
10319 to the assigned shape.
10320 This function is not available for \idxpl{flow-frame}.
10321
10322 \item Why has the text from my \idx{flow-frame} appeared in a
10323 \staticordynamicframe?
10324
10325 Assuming you haven't inadvertently set that text as the contents of
10326 the \staticordynamicframe, the frames are most likely overlapping
10327 (see \sectionref{sec:stacking}). In an attempt to clarify what's
10328 going on, suppose you have defined a \idx{static-frame}, a
10329 \idx{dynamic-frame} and two \idxpl{flow-frame}. The following is an
10330 approximate analogy (not strictly accurate as \TeX\ may make several
10331 attempts to fill in the \idxpl{flow-frame} due to penalties etc):
10332
10333 \TeX\ has a sheet of paper on the table, and has
10334 pencilled in a rectangle denoting the \idx{typeblock}.
10335 The paper is put to one side for now. \TeX\ also has four
10336 rectangular sheets of transparent paper. The first (which I shall
10337 call sheet~1) represents the \idx{static-frame}, the next two (which I
10338 shall call sheets~2 and~3) represent the \idxpl{flow-frame}, and the last
10339 one (which I shall call sheet~4) represents the \idx{dynamic-frame}.
10340
10341 \TeX\ starts work on filling sheet~2 with the document text. Once
10342 it has put as much text on that sheet as it considers possible
10343 (according to its views on aesthetics), it puts sheet~2 into the
10344 \qt{in tray}, and then continues on sheet~3. While it's filling in
10345 sheets~2 and~3, if it encounters a command or environment that tells
10346 it what to put in the \idx{static-frame}, it fills in sheet~1 and then
10347 puts sheet~1 into the \qt{in tray} and resumes where it left off on
10348 sheet~2 or~3. Similarly, if it encounters a command that tells it
10349 what to put in the \idx{dynamic-frame}, it stops what it's doing, fills in
10350 sheet~4, then puts sheet~4 into the \qt{in tray}, and resumes where
10351 it left off.
10352
10353 Only when it has finished sheet~3 (the last \idx{flow-frame}
10354 defined on that page), will it gather together all the transparent
10355 sheets, and fix them onto the page starting with sheet~1 through to
10356 sheet~4, measuring the bottom left hand corner of each transparent
10357 sheet relative to the bottom left hand corner of the
10358 \idx{typeblock}. \TeX\ will then put that page aside, and start
10359 work on the next page. If two or more of the transparent sheets
10360 overlap, you will see through the top one into the one below (unless
10361 of course the top one has been painted over, either by setting a
10362 background colour, or by adding an image that has a non-transparent
10363 background).
10364
10365 Note that it's also possible that the overlap is caused by an
10366 overfull hbox that's causing the text to poke out the side of the
10367 \idx{flow-frame} into a neighbouring \idx{frame}. Check the log file for
10368 warnings or use the \opt{draft} option to the document class
10369 which will place a filled rectangle on the end of overfull lines.
10370
10371 \item Why do I get lots of overfull hbox messages?
10372
10373 Probably because you have narrow \idxpl{frame}. It's better to use
10374 ragged right formatting when the frames are narrow.
10375
10376 \item Why do I keep getting multiply-defined warnings?
10377
10378 Probably because you have used \gls{label} in a \staticordynamicframe\
10379 that is displayed on more than one page. Try using the \frameopt{clear}
10380 key to ensure that the frame is always cleared at the end of each
10381 page.
10382
10383 \item What happens if I use a command or environment
10384 that switches to two-column mode (e.g. \envfmt{theindex})?
10385
10386 The behaviour depends on the \opt{column-changes} setting (see
10387 \sectionref{sec:pkgoptscolumns}).
10388
10389 \item How do I change the vertical alignment
10390 of material inside a \staticordynamicframe?
10391
10392 Use the \frameopt{valign} attribute.
10393
10394 \item\label{itm:absval} How do I compute the distance from the edge
10395 of the page instead of the \idx{typeblock}?
10396
10397 See \sectionref{sec:typeblockloc}.
10398
10399 \item Is there a GUI I can use to make it easier to create the
10400 \idxpl{frame}?
10401
10402 Yes, \idx{FlowframTk} (see \sectionref{sec:flowframtk}).
10403
10404 \end{enumerate}
10405
10406 \section{Unexpected Output}
10407 \label{sec:unexpectedoutput}
10408
10409 \begin{enumerate}
10410 \item The lines of text at the beginning of my \idxpl{flow-frame} are the
10411 wrong width.
10412
10413 This is a problem that will occur if you have \idxpl{flow-frame}
10414 with different widths, as the change in \gls{hsize}
10415 does not come into effect until a paragraph break. So if
10416 you have a paragraph that spans two \idxpl{flow-frame}, the end
10417 of the paragraph at the beginning of the second \idx{flow-frame}
10418 will retain the width it had at the start of the
10419 paragraph at the bottom of the previous \idx{flow-frame}. You can
10420 fix the problem by inserting \gls{framebreak} at the
10421 point where the \idx{frame} break occurs
10422 (see \sectionref{sec:framebreak}).
10423
10424 \item My \idxpl{frame} shift to the right when I add a border.
10425
10426 This may occur if you use a border that is not recognised
10427 by the \sty{flowfram} package. You will need to set the
10428 offset using the \frameopt{offset} key (see
10429 \sectionref{sec:modattr}).
10430
10431 \item I have a vertical white strip along the right hand side
10432 of every page.
10433
10434 This can happen if you have, say, an A4 document, and
10435 \appfmt{ghostscript} has letter as the default paper size. You can
10436 change the default paper size by editing the file \verb|gs_init.ps|.
10437 Change:
10438 \begin{compactcodebox}[before upper app=\scriptsize]
10439 \comment{Optionally choose a default paper size other than U.S. letter.}
10440 \comment{(a4)}
10441 \end{compactcodebox}
10442 to:
10443 \begin{compactcodebox}[before upper app=\scriptsize]
10444 \comment{Optionally choose a default paper size other than U.S. letter.}
10445 (a4)
10446 \end{compactcodebox}
10447
10448 \item I don't have any output.
10449
10450 All your \idxpl{flow-frame} are empty. \TeX\ doesn't put the
10451 frames onto the page until it has finished putting text
10452 into the \idxpl*{flow-frame}. So if there is no text to go in the
10453 \idxpl*{flow-frame} it won't output the page. If you only want the
10454 \staticordynamicframes\ filled in, and nothing
10455 outside of them, just do \code{\cmd{mbox}\marg{}\gls{clearpage}}.
10456 This will put an invisible something with zero area into your
10457 \idx*{flow-frame}, but it's enough to convince \TeX\ that the
10458 document contains some text.
10459
10460 \item The last page hasn't appeared.
10461
10462 See the previous answer.
10463
10464
10465 \item There is no paragraph indentation inside my
10466 \staticordynamicframes.
10467
10468 The paragraph indentation in \staticordynamicframes\ is governed
10469 by the length \gls{sdfparindent} which is set to 0pt by
10470 default. To make the indentation the same as that used by
10471 \idxpl{flow-frame} place the following in the preamble:
10472 \begin{codebox}
10473 \cmd{setlength}\marg{\gls{sdfparindent}}\marg{\gls{parindent}}
10474 \end{codebox}
10475 Alternatively, you can use the \frameopt{parindent} attribute if
10476 different indentation is required for different frames.
10477
10478 \item My section numbering is in the wrong order.
10479
10480 Remember that the contents of the \idxpl{dynamic-frame} are not set
10481 until the page is shipped out, and the contents will be set
10482 in the order of \idx{IDN}, so if you have any sectioning commands
10483 occurring within \idxpl*{dynamic-frame}, they may not be set in the same
10484 order as they are in your input file.
10485
10486 \item The contents of my \staticordynamicframe\ have shifted
10487 to the left when I used \gls{parshape}.
10488
10489 This will happen if your \gls{parshape} specification
10490 exceeds the line width. For example:
10491 \begin{codebox}
10492 \gls{parshape}=1 0.4\gls{linewidth} 0.7\gls{linewidth}
10493 \end{codebox}
10494 This specifies a line with overall length
10495 \code{1.1\gls{linewidth}} which is too long.
10496
10497 \end{enumerate}
10498
10499 \section{Error Messages}\label{sec:errormessages}
10500
10501 \begin{enumerate}
10502
10503 \item Illegal unit of measure (pt inserted)
10504
10505 All lengths must have units. Remember to include the
10506 units when defining new \idxpl{frame}. The following
10507 \idx*{frame} options require lengths: \frameopt{width}, \frameopt{height},
10508 \frameopt{x}, \frameopt{y},
10509 \frameopt{oddx}, \frameopt{oddy},
10510 \frameopt{evenx}, \frameopt{eveny},
10511 \frameopt{parindent} and \frameopt{offset} (although
10512 \frameopt{offset} can also have the value \optfmt{compute}).
10513
10514 \item Missing number, treated as zero
10515
10516 \LaTeX\ is expecting a number. There are a number of
10517 possible causes:
10518 \begin{enumerate}
10519 \item You have used an \idx{IDL} instead of an \idx{IDN}. If you
10520 want to refer to a frame by its label, you need to remember
10521 to use the starred versions of the
10522 \gls{set...frame} commands, or when setting
10523 the contents of \staticordynamicframes.
10524
10525 \item When specifying \idxpl{pglist}, you have mixed keywords
10526 with page ranges. For example: \code{1,even} is invalid.
10527
10528 \end{enumerate}
10529
10530 \item Flow frame IDL \textquotesingle\meta{label}\textquotesingle\ already defined
10531
10532 All \idxpl{IDL} within each \idx{frame} type must be
10533 unique. There are similar error messages for duplicate
10534 \idxpl*{IDL} for \idxpl{static-frame} and \idxpl{dynamic-frame}.
10535
10536 \item Can't find flow frame id
10537
10538 You have specified a non-existent \idx*{flow-frame} \idx{IDL}. There are
10539 similar error messages for \idxpl{static-frame} and \idxpl{dynamic-frame}.
10540 Check to make sure you have spelt the label correctly, and
10541 check you are using the correct \idx{frame} type command.
10542 (For example, if a \idx*{static-frame} has the \idx{IDL} \qtt{mylabel},
10543 and you attempt to do
10544 \code{\gls{setflowframe}*\marg{mylabel}\margm{options}},
10545 then you will get this error, because \qtt{mylabel} refers
10546 to a \idxpl*{static-frame} not a \idx{flow-frame}.)
10547
10548 \item Key \textquotesingle clear\textquotesingle\ is boolean
10549
10550 The \frameopt{clear} key can only have the values \optfmt{true}
10551 or \optfmt{false}.
10552
10553 \item Key \textquotesingle clear\textquotesingle\ not available
10554
10555 The \frameopt{clear} key is only available for \staticordynamicframes.
10556
10557 \item Key \textquotesingle style\textquotesingle\ not available
10558
10559 The \frameopt{style} key is only available for \idxpl{dynamic-frame}.
10560
10561 \item Key \textquotesingle margin\textquotesingle\ not available
10562
10563 The \frameopt{margin} key is only available for \idxpl{flow-frame}.
10564
10565 \item Key \textquotesingle shape\textquotesingle\ not available
10566
10567 The \frameopt{shape} key is only available for \staticordynamicframes.
10568
10569 \item Dynamic frame style \textquotesingle\meta{style}\textquotesingle\ not defined
10570
10571 The specified style \meta{style} must be the name of a command
10572 without the preceding backslash. It is possible that you have
10573 mis-spelt the name, or you have forgotten to define the command.
10574
10575 \item Argument of \gls{fbox} has an extra \code{\}}
10576
10577 This error will occur if you do, say,
10578 \frameoptval{border}{\gls{fbox}} instead of
10579 \frameoptval{border}{fbox}. Remember not to include the initial
10580 backslash.
10581
10582 \item Not in outer par mode
10583
10584 You can not have floats (such as figures, tables or marginal
10585 notes) in \staticordynamicframes. If you want
10586 a figure or table within a \staticordynamicframe\
10587 use \env{staticfigure} or \env{statictable}.
10588
10589 \item Something's wrong---maybe missing \gls{item}
10590
10591 Assuming that all your list type of environments start
10592 with \gls{item}, this may be caused by something going
10593 wrong with the \ext+{toc} (table of contents), \ext+{ttb} (thumbtab)
10594 or \ext+{aux} (auxiliary) files in the previous run. Try deleting
10595 them, and try again.
10596
10597 \item \gls{verb} illegal in command argument
10598
10599 As a general rule, you can't use \idx{verbatim} in a command
10600 argument. This rule applies to all the commands defined by the
10601 \sty{flowfram} package. See also below.
10602
10603 \item I get \qt{\gls{verb} illegal in command argument} when using
10604 a \index{verbatim} command inside the \env{dynamiccontents} environment.
10605
10606 You can not use \index{verbatim} commands or environments inside either the
10607 \env{dynamiccontents} or \env{dynamiccontents*} environment.
10608
10609 \end{enumerate}
10610
10611 \appendix
10612 \setupglossaries{numberedsection,section}%
10613 \disablethumbtabs
10614
10615 \chapter{Glossary}
10616
10617 \printmain[title=Terms]
10618
10619 \newpage
10620
10621 \printicons
10622
10623 \chapter{Alphabetical Summaries}\label{sec:summaries}
10624
10625 \printcmdenvsummary
10626
10627 \setupglossaries{section=chapter}
10628 \printclsstysummary
10629
10630 \flowswitchoffnext*{main}
10631 \flowswitchonnext*{left,right}
10632 \renewcommand{\glsxtrbookindexcols}{1}
10633
10634 \backmatter
10635 \setupglossaries{section=chapter}
10636 \printuserguideindex
10637
10638 \cleartoevenpage
10639
10640 % have a backcover:
10641 \setstaticframe*{lastbackleft,lastbackright}{pages=even}
10642 \cleartoevenpage\mbox{}\pagestyle{empty}
10643 \end{document}