| 1 |
% This file is public domain. |
| 2 |
|
| 3 |
\documentclass[a4paper,twoside]{report} |
| 4 |
|
| 5 |
\usepackage{url} |
| 6 |
|
| 7 |
\newcommand{\cmdname}[1]{\texttt{\char`\\#1}} |
| 8 |
\newcommand{\sty}[1]{\texttt{#1}} |
| 9 |
\newcommand{\env}[1]{\texttt{#1}} |
| 10 |
\newcommand{\meta}[1]{$\langle$\emph{#1}$\rangle$} |
| 11 |
|
| 12 |
\begin{document} |
| 13 |
|
| 14 |
\title{Creating Flow Frames for Posters or Magazines} |
| 15 |
\author{Nicola L. C. Talbot\\[1cm]\url{http://www.dickimaw-books.com/}} |
| 16 |
\date{} |
| 17 |
\pagenumbering{alph} |
| 18 |
\maketitle |
| 19 |
|
| 20 |
\pagenumbering{roman} |
| 21 |
\tableofcontents |
| 22 |
|
| 23 |
\chapter{Introduction} |
| 24 |
\pagenumbering{arabic} |
| 25 |
|
| 26 |
The \sty{flowfram} package is designed to enable you to create |
| 27 |
frames in a document such that the |
| 28 |
contents of the \env{document} environment flow from one |
| 29 |
frame to the next in the order that they were defined. |
| 30 |
This is useful for creating posters |
| 31 |
or magazines or any other form of document that does not |
| 32 |
conform to the standard one or two column layout. |
| 33 |
|
| 34 |
\chapter{Setting up Frames} |
| 35 |
|
| 36 |
The \sty{flowfram} package provides three types of frame: |
| 37 |
{flow frames}, {static |
| 38 |
frames} and {dynamic frames}. |
| 39 |
|
| 40 |
\section{Flow Frames} |
| 41 |
|
| 42 |
The flow frame is the principle type of frame. |
| 43 |
The text of the \env{document} environment will flow from |
| 44 |
one frame to the next in order of definition. Each |
| 45 |
flow frame has an associated width, height, |
| 46 |
position on the page, and optionally a border. |
| 47 |
|
| 48 |
\section{Static Frames} |
| 49 |
|
| 50 |
A static frame is a rectangular area in which text neither |
| 51 |
flows into, nor flows out of. The contents must be set |
| 52 |
explicitly, and once set, the contents of the static frame will |
| 53 |
remain the same on each page until it is explicitly |
| 54 |
changed. Thus, a static frame can be used, for example, to make |
| 55 |
a company logo appear in the same place on every page. |
| 56 |
|
| 57 |
\section{Dynamic Frames} |
| 58 |
|
| 59 |
A dynamic frame is similar to a static frame, but its contents |
| 60 |
are re-typeset on each page. (A static frame stores its |
| 61 |
contents in a savebox, whereas a dynamic frame stores its |
| 62 |
contents in a macro). |
| 63 |
|
| 64 |
\chapter{Frame Attributes} |
| 65 |
\label{sec:modattr} |
| 66 |
|
| 67 |
Once you have defined the {flow frames}, {static frames} and |
| 68 |
{dynamic frames}, their attributes can be changed. |
| 69 |
The three types of frame mostly have the |
| 70 |
same set of attributes, but some are specific to a certain type. |
| 71 |
The available attributes are as follows |
| 72 |
(\textsuperscript{\textbf{F}} indicates the key is |
| 73 |
only available for {flow frames}, |
| 74 |
\textsuperscript{\textbf{S}} indicates the key is only available |
| 75 |
for {static frames} |
| 76 |
and \textsuperscript{\textbf{D}} indicates the key |
| 77 |
is only available for {dynamic frames}): |
| 78 |
|
| 79 |
\begin{description} |
| 80 |
\item[width=\meta{length}] The width of the frame. |
| 81 |
|
| 82 |
\item[height=\meta{length}] The height of the frame. |
| 83 |
|
| 84 |
\item[x=\meta{length}] The x-coordinate of the frame. |
| 85 |
|
| 86 |
\item[y=\meta{length}] The y-coordinate of the frame. |
| 87 |
|
| 88 |
\item[border=\meta{style}] The style of the border around the |
| 89 |
frame, this can take the values: \texttt{none} (no border), |
| 90 |
\texttt{plain} (plain border) or the name of a \LaTeX\ |
| 91 |
frame making command without the preceding backslash. |
| 92 |
The value \texttt{fbox} is equivalent to \texttt{plain}. |
| 93 |
|
| 94 |
\item[offset=\meta{offset}] The border offset, if it is a |
| 95 |
user-defined border. This is the distance from the outer |
| 96 |
edge of the left hand border to the left edge of the |
| 97 |
bounding box of the text inside the border. The \sty{flowfram} |
| 98 |
package is able to compute the border for |
| 99 |
known frame making commands. |
| 100 |
If you define your own frame making command, you may need to |
| 101 |
specify the offset explicitly, or the frames |
| 102 |
may end up shifted to the right or left. |
| 103 |
|
| 104 |
\item[bordercolor=\meta{colour}] The colour of the border |
| 105 |
if you are using a standard frame making command. |
| 106 |
The colour can either be specified as, e.g.\ \texttt{green}, |
| 107 |
or including the colour model, e.g. \verb/[rgb]{0,1,0}/. |
| 108 |
|
| 109 |
\item[textcolor=\meta{colour}] The text colour for that |
| 110 |
frame. Again, the colour can either be specified as, |
| 111 |
e.g.\ \texttt{green}, or including the colour model, |
| 112 |
e.g. \verb/[rgb]{0,1,0}/. |
| 113 |
|
| 114 |
\item[pages=\meta{page list}] The {list of |
| 115 |
pages} for which the frame |
| 116 |
should appear. This can either have the values: \texttt{all}, |
| 117 |
\texttt{even}, \texttt{odd} or \texttt{none} (the latter |
| 118 |
removes the frame from that point on---useful if you |
| 119 |
have multiple pages with the same number), or it can be a |
| 120 |
comma-separated list of single pages, or |
| 121 |
{page ranges}. |
| 122 |
|
| 123 |
\item[margin=\meta{side}\textsuperscript{F}] The side of |
| 124 |
the flow frame that its corresponding margin should go on. This |
| 125 |
can take the values \texttt{left} or \texttt{right}. |
| 126 |
|
| 127 |
\item[clear=\meta{boolean}\textsuperscript{S}] If this value |
| 128 |
is set, the static frame will be cleared at the start of the |
| 129 |
next page. |
| 130 |
|
| 131 |
\item[style=\meta{cmd}\textsuperscript{D}] This should be |
| 132 |
the name of a command \emph{without} the preceding backslash, |
| 133 |
to be applied to the contents of the specified dynamic frame. |
| 134 |
The command may either be a declaration, for example \verb/style=large/ |
| 135 |
which will set the contents of all the dynamic frames in a |
| 136 |
large font, or it can be a command that takes a single argument, |
| 137 |
for example \verb/style=textbf/ |
| 138 |
which will make the text for all the dynamic frames come out in |
| 139 |
bold. To unset a style, do \verb/style=none/. |
| 140 |
|
| 141 |
\end{description} |
| 142 |
|
| 143 |
\chapter{Miscellaneous} |
| 144 |
|
| 145 |
\section{Page Layout} |
| 146 |
|
| 147 |
The \sty{flowfram} package has the package option \texttt{draft} |
| 148 |
which will draw the {bounding boxes} for |
| 149 |
each frame defined. At the bottom right of each |
| 150 |
bounding box (except for the bounding box denoting the |
| 151 |
typeblock), a marker will be shown to indictate the type |
| 152 |
of frame, its IDN and its IDL. |
| 153 |
|
| 154 |
You can see the layout for the current page (irrespective of |
| 155 |
whether or not the \texttt{draft} option has been set) using |
| 156 |
the command:\newline |
| 157 |
\cmdname{flowframeshowlayout} |
| 158 |
|
| 159 |
The headers and footers will appear as usual (but will not |
| 160 |
be shown in draft mode), according to the format given by |
| 161 |
\cmdname{pagestyle}. |
| 162 |
|
| 163 |
\section{Frame Stacking Order} |
| 164 |
|
| 165 |
The material on each page is placed in the following order: |
| 166 |
\begin{enumerate} |
| 167 |
\item Each static frame defined for that page in ascending |
| 168 |
order of IDN. |
| 169 |
|
| 170 |
\item Each flow frame defined for that page in ascending |
| 171 |
order of IDN. |
| 172 |
|
| 173 |
\item Each dynamic frame defined for that page in ascending |
| 174 |
order of IDN. |
| 175 |
|
| 176 |
\item {Bounding boxes} if the \texttt{draft} |
| 177 |
package option has been used. |
| 178 |
\end{enumerate} |
| 179 |
|
| 180 |
This ordering can be used to determine if you want something |
| 181 |
to overlay or underlay everything else on the page. |
| 182 |
|
| 183 |
\section{Prematurely Ending a Flow Frame} |
| 184 |
|
| 185 |
You can force text to move immediately to the next defined |
| 186 |
flow frame using one of the standard \LaTeX\ page breaking commands |
| 187 |
which work in an analogous way to the way they |
| 188 |
work in standard two column mode. |
| 189 |
|
| 190 |
The command \cmdname{framebreak} is provided for situations |
| 191 |
where a paragraph spans two flow frames |
| 192 |
of different widths, as \TeX's output routine does not |
| 193 |
adjust to the new value of \cmdname{hsize} until the last |
| 194 |
paragraph of the previous frame has ended. As a |
| 195 |
result, the end of the paragraph at the beginning of the new |
| 196 |
flow frame retains the width of the previous flow frame. |
| 197 |
|
| 198 |
If you want to start a new page, rather than simply move to the |
| 199 |
next frame, use the command\newline |
| 200 |
\cmdname{finishthispage}. |
| 201 |
|
| 202 |
\section{Floats} |
| 203 |
|
| 204 |
Since floats (such as figures and tables) can only go in |
| 205 |
{flow frames}, this package provides |
| 206 |
the additional environments: |
| 207 |
\env{staticfigure} and |
| 208 |
\env{statictable} which can be used in static frames |
| 209 |
and dynamic frames. Unlike their \env{figure} and |
| 210 |
\env{table} counterparts, they are fixed in place, and |
| 211 |
so do not take an optional placement specifier. The |
| 212 |
\cmdname{caption} and \cmdname{label} commands can |
| 213 |
be used within \env{staticfigure} and \env{statictable} as |
| 214 |
usual. |
| 215 |
|
| 216 |
The standard \env{figure} and \env{table} commands will |
| 217 |
behave as usual in the flow frames, but their starred versions, |
| 218 |
\env{figure*} and \env{table*} behave no differently |
| 219 |
from \env{figure} and \env{table}. |
| 220 |
|
| 221 |
\section{Global Values} |
| 222 |
|
| 223 |
The following macros can be changed using \cmdname{renewcommand}: |
| 224 |
|
| 225 |
\begin{itemize} |
| 226 |
\item \cmdname{setffdraftcolor} |
| 227 |
|
| 228 |
This sets the colour of the bounding box |
| 229 |
when it is displayed in draft mode. |
| 230 |
|
| 231 |
\item |
| 232 |
\cmdname{setffdrafttypeblockcolor} |
| 233 |
|
| 234 |
This sets the colour of |
| 235 |
the bounding box of the typeblock when it is displayed |
| 236 |
in draft mode. |
| 237 |
|
| 238 |
\item \cmdname{fflabelfont} |
| 239 |
|
| 240 |
This sets the font size for the bounding box markers in |
| 241 |
draft mode. |
| 242 |
|
| 243 |
\end{itemize} |
| 244 |
|
| 245 |
The following are lengths, which can be changed using |
| 246 |
\cmdname{setlength}: |
| 247 |
|
| 248 |
\begin{itemize} |
| 249 |
\item \cmdname{fflabelsep} |
| 250 |
|
| 251 |
This is the distance from the right hand side of the |
| 252 |
bounding box at which to place the bounding box marker. |
| 253 |
|
| 254 |
\item \cmdname{flowframesep} |
| 255 |
|
| 256 |
This is the gap between the text of the frame and |
| 257 |
its border, for the standard border types. |
| 258 |
|
| 259 |
\item \cmdname{flowframerule} |
| 260 |
|
| 261 |
This is the width of the frame's border, if using |
| 262 |
a border given by a frame making command that uses \cmdname{fboxsep} |
| 263 |
to set its border width. |
| 264 |
\end{itemize} |
| 265 |
|
| 266 |
|
| 267 |
\chapter*{Contact Details} |
| 268 |
|
| 269 |
Dr Nicola Talbot\\ |
| 270 |
Dickimaw Books\\ |
| 271 |
\url{http://www.dickimaw-books.com/} |
| 272 |
|
| 273 |
\end{document} |