| 1 |
%% BEGIN poster.doc |
| 2 |
%% |
| 3 |
%% Documentation for poster.tex/poster.sty. |
| 4 |
%% Run with LaTeX, with or without the NFSS. |
| 5 |
%% |
| 6 |
%% Change these for a4 paper: |
| 7 |
\def\paperwidth{8.5in} |
| 8 |
\def\paperheight{11in} |
| 9 |
|
| 10 |
\def\FileVersion{1.2} |
| 11 |
\def\FileDate{August 28, 1993} |
| 12 |
|
| 13 |
\documentstyle[12pt]{article} |
| 14 |
|
| 15 |
%% PAGE PARAMETERS |
| 16 |
|
| 17 |
% Paragraphs are marked by large space rather than indentation: |
| 18 |
\parindent 0pt |
| 19 |
\parskip 6pt plus 1pt minus 1pt |
| 20 |
|
| 21 |
% No headers, 1in top margin |
| 22 |
\topmargin 0pt |
| 23 |
\headheight 0pt |
| 24 |
\headsep 0pt |
| 25 |
|
| 26 |
% Total bottom margin 1in, text height 9in |
| 27 |
\textheight 9in |
| 28 |
\footskip .625in |
| 29 |
|
| 30 |
% Now adjust for different paper size: |
| 31 |
\newdimen\mydim |
| 32 |
\mydim=\paperwidth |
| 33 |
\advance\mydim-8.5in |
| 34 |
\divide\mydim 2 |
| 35 |
\advance\oddsidemargin \mydim |
| 36 |
\advance\evensidemargin \mydim |
| 37 |
\mydim=\paperheight |
| 38 |
\advance\mydim-11in |
| 39 |
\divide\mydim 2 |
| 40 |
\advance\topmargin \mydim |
| 41 |
|
| 42 |
%% OTHER |
| 43 |
|
| 44 |
% Short meta (works in verbatim. Can't use < for other purposes. |
| 45 |
\catcode`\<=13 \def<#1>{{\rm\it #1\/}} % <meta> (works in verbatim) |
| 46 |
|
| 47 |
% Short verbatim. |
| 48 |
\catcode`\"=13 |
| 49 |
\def"{\verb"} |
| 50 |
|
| 51 |
% To make smaller sections: |
| 52 |
\def\thesubsection{\arabic{subsection}} |
| 53 |
|
| 54 |
\catcode`\@=12 % In case I'm using AmS-LaTeX |
| 55 |
|
| 56 |
\begin{document} |
| 57 |
|
| 58 |
\begin{center} |
| 59 |
\begingroup |
| 60 |
\large\bf |
| 61 |
Documentation for poster.tex/poster.sty\\[2pt] |
| 62 |
Posters and banners with Generic \TeX\\[6pt] |
| 63 |
\endgroup |
| 64 |
Version \FileVersion\\ |
| 65 |
\FileDate\\[6pt] |
| 66 |
Timothy Van Zandt\\ |
| 67 |
[email protected] |
| 68 |
\end{center} |
| 69 |
|
| 70 |
\subsection{The macros} |
| 71 |
|
| 72 |
"poster.tex/poster.sty" contains the macro |
| 73 |
\begin{verbatim} |
| 74 |
\poster{<stuff>} |
| 75 |
\end{verbatim} |
| 76 |
for making posters and banners. <stuff> is processed in restricted horizontal |
| 77 |
mode (i.e., "\hbox" or ``LR-mode'') and is then printed on as many sheets of |
| 78 |
paper as are needed. You can then construct the poster or banner by trimming |
| 79 |
and piecing together the sheets of paper. |
| 80 |
|
| 81 |
You can also write |
| 82 |
\begin{verbatim} |
| 83 |
\Poster <stuff>\endPoster |
| 84 |
\end{verbatim} |
| 85 |
and \LaTeX\ users can write |
| 86 |
\begin{verbatim} |
| 87 |
\begin{Poster} <stuff>\end{Poster} |
| 88 |
\end{verbatim} |
| 89 |
|
| 90 |
Here are a few details: |
| 91 |
\begin{itemize} |
| 92 |
\item Use a "\vbox" or \LaTeX's "minipage" or "\parbox" in <stuff> if you want |
| 93 |
to include vertical mode material. For more help with LR-boxes, see |
| 94 |
"fancybox.sty", available from archives everywhere. |
| 95 |
|
| 96 |
\item Don't worry about margins, headers or footers; "\poster" ignores output |
| 97 |
routines entirely. |
| 98 |
|
| 99 |
\item <stuff> can contain "\catcode" changes, such as verbatim environments. |
| 100 |
\end{itemize} |
| 101 |
|
| 102 |
If you want to use your regular output routines, and have "poster.tex" print |
| 103 |
out each page of your document as a poster, then instead put the command |
| 104 |
\begin{verbatim} |
| 105 |
\PosterPage |
| 106 |
\end{verbatim} |
| 107 |
towards the beginning of your document, or in the \LaTeX\ preamble. Each page |
| 108 |
is printed without its margins, but with the headers and footers, if any. (You |
| 109 |
can print out your whole dissertation on $8\times 10$-feet pages.) With |
| 110 |
"\PosterPage", you do not have to worry about LR-boxes. |
| 111 |
|
| 112 |
\subsection{Making the output look big} |
| 113 |
|
| 114 |
You can use these macros to print a large diagram, such as a genealogical |
| 115 |
tree, that would not normally fit on one page. You might also want to magnify |
| 116 |
the contents of the poster. For example, you might want to print ``Happy |
| 117 |
Birthday'' in 6 inch high letters. Here is a brief description of three ways |
| 118 |
to make your output look big. Note that these are not part of "poster.tex", |
| 119 |
but are described here for your convenience. For more information, see the |
| 120 |
\TeX book. |
| 121 |
\begin{enumerate} |
| 122 |
\item The simplest and most general method is to set \TeX's "\mag" parameter, |
| 123 |
by inserting the line |
| 124 |
\begin{verbatim} |
| 125 |
\mag <int> |
| 126 |
\end{verbatim} |
| 127 |
at or near the beginning of the document (or in the \LaTeX\ preamble). The |
| 128 |
integer <int> should be 1000 times the magnification factor. For example, to |
| 129 |
double the size of the output, use |
| 130 |
\begin{verbatim} |
| 131 |
\mag 2000 |
| 132 |
\end{verbatim} |
| 133 |
You may need to generate big bitmaps if using bitmapped fonts (e.g., \TeX's |
| 134 |
usual Metafont fonts), rather than scalable outline fonts (e.g., PostScript |
| 135 |
fonts). You can reduce the need for extra font bitmaps by using |
| 136 |
\begin{verbatim} |
| 137 |
\mag \magstep<n> |
| 138 |
\end{verbatim} |
| 139 |
to magnify the document by $1.2^n$. $n$ can be between 1 and 5. For example, |
| 140 |
to magnify the document by $1.2^4=2.074$, use |
| 141 |
\begin{verbatim} |
| 142 |
\mag \magstep4 |
| 143 |
\end{verbatim} |
| 144 |
You can also set "\mag" to "\magstephalf", which scales the document by |
| 145 |
$1.2^{1.5}$. |
| 146 |
|
| 147 |
\item If you are making a banner with just one font, then you can define a |
| 148 |
large font. For example, |
| 149 |
\begin{verbatim} |
| 150 |
\font\bigroman=cmr at 8in |
| 151 |
\bigroman |
| 152 |
\poster[vcenter=true,landscape=true]{Happy Birthday} |
| 153 |
\end{verbatim} |
| 154 |
It is best to use scalable fonts, such as PostScript fonts, if available. |
| 155 |
|
| 156 |
\item If you are using a PostScript printer, then you can use macros for |
| 157 |
scaling boxes, such as the "\scalebox" and "\scaleboxto" commands in the |
| 158 |
PSTricks package. For example, here is the banner from the previous example: |
| 159 |
\begin{verbatim} |
| 160 |
\poster[vcenter=true,landscape=true]{% |
| 161 |
\scaleboxto(0,8in){Happy Birthday}} |
| 162 |
\end{verbatim} |
| 163 |
You must use scalable fonts, because scaled bitmaps look very ugly. |
| 164 |
\end{enumerate} |
| 165 |
|
| 166 |
\subsection{Parameters} |
| 167 |
|
| 168 |
"\poster", "\Poster" and "\PosterPage" use the following parameters: |
| 169 |
\begin{center} |
| 170 |
\def\arraystretch{1.1} |
| 171 |
\begin{tabular}{lll} |
| 172 |
{\em Parameter} & {\em Value} & {\em Default}\\[2pt] |
| 173 |
"paperwidth" & <dim> & "8.5in"\\ |
| 174 |
"paperheight" & <dim> & "11in"\\ |
| 175 |
"imagewidth" & <dim> & "7.5in"\\ |
| 176 |
"imageheight" & <dim> & "10in"\\ |
| 177 |
"landscape" & "true"/"false" & "false"\\ |
| 178 |
"hcenter" & "true"/"false" & "false"\\ |
| 179 |
"vcenter" & "true"/"false" & "false"\\ |
| 180 |
"crop" & "none"/"corners"/"full" & "corners"\\ |
| 181 |
"cropwidth" & <dim> & "2pt"\\ |
| 182 |
"clip" & "none"/"pstricks" & "none"\\ |
| 183 |
"immediatewrites" & "true"/"false" & "true"\\ |
| 184 |
"numbering" & "auto"/"rowcol"/"page"/"serial" & "auto" |
| 185 |
\end{tabular} |
| 186 |
\end{center} |
| 187 |
|
| 188 |
You can include parameter changes as a list of "<key>=<value>" pairs in an |
| 189 |
optional argument to "\poster", "\Poster" or "\PosterPage", enclosed in square |
| 190 |
brackets. E.g., |
| 191 |
\begin{verbatim} |
| 192 |
\poster[clip=pstricks,hcenter=true]{foo} |
| 193 |
\end{verbatim} |
| 194 |
No extraneous spaces, please. |
| 195 |
|
| 196 |
You can also redefine the parameters using "\def" or "\LaTeX"'s |
| 197 |
"\renewcommand". For parameter "foo", you should redefine "\POSTERfoo". E.g., |
| 198 |
the next example is like the last one: |
| 199 |
\begin{verbatim} |
| 200 |
\def\POSTERclip{pstricks} |
| 201 |
\def\POSTERhcenter{true} |
| 202 |
\poster{foo} |
| 203 |
\end{verbatim} |
| 204 |
This is mainly of interest when developing your own custom "\poster" command |
| 205 |
or "poster.tex" file. |
| 206 |
|
| 207 |
Here are some comments on the parameters: |
| 208 |
\begin{itemize} |
| 209 |
\item |
| 210 |
Don't adjust the "paper" and "image" dimensions for your document's |
| 211 |
magnification (and don't use \TeX's "true" dimensions). "poster.tex" does this |
| 212 |
for you. (That is, set the "page" and "image" dimensions to the actual values |
| 213 |
you want for the output.) |
| 214 |
|
| 215 |
\item |
| 216 |
Most printers cannot print right up to the edge of the paper. That is why the |
| 217 |
"imagewidth" and "imageheight" should be smaller than the "paperwidth" and |
| 218 |
"paperheight". The default values are good for printing on 8.5in by 11in paper |
| 219 |
in portrait mode with one-half inch margins. |
| 220 |
|
| 221 |
\item |
| 222 |
Setting "landscape" to "true" is just a convenient way to switch the "height" |
| 223 |
and "width" parameters. You still have to take care of printing your document |
| 224 |
in landscape mode. E.g., with Rokicki's "dvips", use |
| 225 |
\begin{verbatim} |
| 226 |
\special{landscape} |
| 227 |
\end{verbatim} |
| 228 |
For other dvi driver's, consult the documentation. |
| 229 |
|
| 230 |
\item |
| 231 |
Setting "hcenter" and "vcenter" to "true" causes the image to be centered |
| 232 |
horizontally and vertically, respectively, in the total number of pages that |
| 233 |
are printed. E.g., when "vcenter" is "true", extra space is added to the top |
| 234 |
of the first row of pages and to the bottom of the last row of pages. |
| 235 |
|
| 236 |
\item |
| 237 |
The "crop" parameter specifies what kind of crop marks are drawn, to help you |
| 238 |
trim each page to size. When "crop" equals "full", you get crop marks along |
| 239 |
the full length of all four sides. "cropwidth" is the width of the crop mark |
| 240 |
lines. The crop marks lie entirely off the page, for any width. |
| 241 |
|
| 242 |
\item |
| 243 |
Setting "clip" to "pstricks" causes each page to be clipped to the size of the |
| 244 |
image (rather than having the image overlap in the margins on each page), but |
| 245 |
this only works if you have loaded the PSTricks package. |
| 246 |
|
| 247 |
\item |
| 248 |
When "immediatewrites" is "true", all "\write"'s are "\immediate". I.e., |
| 249 |
auxiliary files are written to only when the poster file is first processed. |
| 250 |
This is the default. The page references may be incorrect in multi-page |
| 251 |
posters. Setting "immediatewrites" to "false" will fix the page references, |
| 252 |
but writing to auxiliary files will be repeated with each page of the poster. |
| 253 |
E.g., \LaTeX\ users will get errors about multiply defined labels, if they use |
| 254 |
the "\label" command in a poster. |
| 255 |
|
| 256 |
\item |
| 257 |
The "numbering" parameter sets the page numbers, as recognized by your "dvi" |
| 258 |
driver (it does not affect the page numbering as it appears in the document). |
| 259 |
Here is the scheme: |
| 260 |
\begin{description} |
| 261 |
\item["rowcol"] Each page is numbered "[<row>.<col>]". |
| 262 |
\item["page"] Each page is numbered "[<page>.<row>.<col>]", where <page> is |
| 263 |
"\count0" (e.g., \LaTeX's "page" counter). |
| 264 |
\item["serial"] Pages are numbering serially. |
| 265 |
\item["auto"] Page numbering is "rowcol" for "\poster" and "\Poster", and |
| 266 |
"page" for "\PosterPage". |
| 267 |
\end{description} |
| 268 |
In each case, if the poster contains only one row of pages (i.e., if it is a |
| 269 |
banner), the <row> number is suppressed. |
| 270 |
\end{itemize} |
| 271 |
|
| 272 |
\subsection{Samples} |
| 273 |
|
| 274 |
The file "poster1.tex" contains the following sample of a framed poster with a |
| 275 |
whole page of text: |
| 276 |
\begin{verbatim} |
| 277 |
\documentstyle[poster]{article} |
| 278 |
|
| 279 |
\mag\magstep5 % Magnification of 1.2^5 (roughly 2.5) |
| 280 |
% Use `true' dimensions below for magnified values. |
| 281 |
|
| 282 |
\begin{document} |
| 283 |
|
| 284 |
\begin{Poster}[vcenter=true,hcenter=true] |
| 285 |
\setlength{\fboxsep}{.8truein}% |
| 286 |
\setlength{\fboxrule}{.1truein}% |
| 287 |
\fbox{\begin{minipage}{11.1truein} |
| 288 |
<stuff> |
| 289 |
\end{minipage}}% |
| 290 |
\end{Poster} |
| 291 |
|
| 292 |
\end{document} |
| 293 |
\end{verbatim} |
| 294 |
|
| 295 |
The file "poster2.tex" contain the following sample of a banner in landscape |
| 296 |
mode. "ptmr" is meant to be the name of the Times-Roman PostScript font, if |
| 297 |
your dvi driver supports such a thing. |
| 298 |
\begin{verbatim} |
| 299 |
\font\bigroman=ptmr at 7.5in |
| 300 |
\bigroman |
| 301 |
\poster[vcenter=true,landscape=true]{Animals} |
| 302 |
\end{verbatim} |
| 303 |
|
| 304 |
\subsection{Changes} |
| 305 |
|
| 306 |
\begin{description} |
| 307 |
\item[V1.2, 28 August 1993] Add "cropwidth" parameter. |
| 308 |
|
| 309 |
\item[V1.1, 1 June 1993] Added "immediatewrites" and "numbering" parameters. |
| 310 |
|
| 311 |
\item[V1.0, 13 May 1993] Added "\PosterPage". |
| 312 |
|
| 313 |
\item[V0.93, 11~Feb~1993] First stable release. |
| 314 |
\end{description} |
| 315 |
|
| 316 |
\end{document} |
| 317 |
%% |
| 318 |
%% END poster.doc |
| 319 |
|