| 1 |
% copyright 1996 and 1997 R. McDonnell |
| 2 |
% email [email protected] |
| 3 |
|
| 4 |
\documentclass[11pt,loose,twoside,touchwider,longish, |
| 5 |
noheaders,a4paper,notstdmargins]{report} |
| 6 |
|
| 7 |
\usepackage{rmpage,% rmstuffnew, |
| 8 |
shortvrb,tabularx,layout,xspace} |
| 9 |
|
| 10 |
% Extracted from rmstuffnew.sty |
| 11 |
\makeatletter |
| 12 |
% Might as well |
| 13 |
% |
| 14 |
\newcommand*{\OzTeX}{O\kern-.03em z\kern-.15em\TeX} |
| 15 |
\newcommand*{\OzTools}{O\kern-.03em z\kern-.10em Tools} |
| 16 |
% This command is horrible and doesn't work right with LaTeX2e. |
| 17 |
% Please forgive it. |
| 18 |
% |
| 19 |
% Could probably re-implement \unit with 2e's requiremathmode stuff. RTFM. |
| 20 |
% |
| 21 |
\newcommand*{\unit}[1]{\ifmmode\@unit{\hbox{#1}}\else$\@unit{\hbox{#1}}$\fi}% |
| 22 |
|
| 23 |
\let\units=\unit |
| 24 |
|
| 25 |
\def\@unit#1{{\setbox0=\hbox{#1}\ifdim\wd0<1.125em\,\else\>\fi\box0}} |
| 26 |
|
| 27 |
|
| 28 |
% at char for tt family |
| 29 |
\newcommand*{\at}{\char'100} |
| 30 |
\makeatother |
| 31 |
% End extracted from rmstuffnew.sty |
| 32 |
|
| 33 |
% |
| 34 |
% Note: Search and replace %% \DeclareOption -> \asleepoption |
| 35 |
% \DeclareOption -> \awakeoption |
| 36 |
% |
| 37 |
\def\awakefount{\mdseries\ttfamily} |
| 38 |
\def\asleepfount{\mdseries\ttfamily\slshape} |
| 39 |
\def\awakeoption#1{\item[{\awakefount#1}]} |
| 40 |
\def\asleepoption#1{\item[{\asleepfount#1}]} |
| 41 |
|
| 42 |
\newenvironment{ikkystuff}{\begin{quotation}\small}{\end{quotation}} |
| 43 |
|
| 44 |
\newcommand*{\keypress}[1]{{\ttfamily #1}} |
| 45 |
\newcommand*{\filename}[1]{{\ttfamily #1}} |
| 46 |
\newcommand*{\packname}[1]{{\sffamily #1}} |
| 47 |
\DeclareRobustCommand*{\comname}[1]{{\ttfamily\makeatletter\bs #1\makeatother}} |
| 48 |
\newcommand*{\envname}[1]{{\ttfamily #1}} |
| 49 |
\newcommand*{\classname}[1]{{\ttfamily #1}} |
| 50 |
\newcommand*{\optname}[1]{{\ttfamily #1}} |
| 51 |
|
| 52 |
\newcommand*{\rmpage}{\classname{rmpage}\xspace} |
| 53 |
|
| 54 |
\MakeShortVerb{\|} |
| 55 |
|
| 56 |
\author{Rowland McDonnell\\ |
| 57 |
\texttt{[email protected]}} |
| 58 |
|
| 59 |
\title{The \packname{rmpage} package\\Alpha documentation---trust |
| 60 |
nothing!} |
| 61 |
|
| 62 |
\date{Some time ago} |
| 63 |
|
| 64 |
\edef\RMsaveparskip{\the\parskip} |
| 65 |
\edef\RMsaveparindent{\the\parindent} |
| 66 |
|
| 67 |
\newcommand{\shorty}{\setlength\parskip{\RMsaveparskip}% |
| 68 |
\setlength\parindent{\RMsaveparindent}} |
| 69 |
|
| 70 |
\newcommand{\squish}{\setlength\itemsep{0pt}} |
| 71 |
|
| 72 |
\begin{document} |
| 73 |
|
| 74 |
\maketitle |
| 75 |
|
| 76 |
\begin{abstract} |
| 77 |
|
| 78 |
The \rmpage package lets you change page layout parameters in small |
| 79 |
steps over a range of values using options. It can set |\textwidth| |
| 80 |
appropriately for the main fount, and ensure that the text fits inside |
| 81 |
the printable area of a printer. |
| 82 |
|
| 83 |
An \rmpage-formatted document can be typeset identically without |
| 84 |
\rmpage after a single cut and paste operation. Local configuration |
| 85 |
can set defaults: for all documents; or by class, by printer, and by |
| 86 |
paper size. |
| 87 |
|
| 88 |
The geometry package is better if you want to set layout parameters to |
| 89 |
particular measurements. |
| 90 |
|
| 91 |
\end{abstract} |
| 92 |
|
| 93 |
|
| 94 |
\tableofcontents |
| 95 |
|
| 96 |
\chapter{Introduction} |
| 97 |
|
| 98 |
This documentation needs re-writing and tidying up, and \rmpage needs |
| 99 |
finishing, but the package is 99\% finished even if the |
| 100 |
documentation's a mess -- I'm not happy with it but it's probably |
| 101 |
usable, so here it is. |
| 102 |
|
| 103 |
The \packname{rmpage} package has five files: |
| 104 |
\filename{rmpage.tex} (documentation), \filename{rmpage.sty} (the |
| 105 |
package file itself), \filename{rmplocal.gfc} (a configuration file), |
| 106 |
and \filename{rmpgen.cfg} (another configuration file), and |
| 107 |
\filename{readme}. |
| 108 |
|
| 109 |
Only \filename{rmpage.sty} and \filename{rmpgen.cfg} \emph{need} to be |
| 110 |
on your \TeX\ search path -- read on to find out more about |
| 111 |
configuring \packname{rmpage}. |
| 112 |
|
| 113 |
I seem to have ground to a halt on this package -- it's worked fairly |
| 114 |
well for some time and I don't seem to have been able to get things |
| 115 |
together to sort out the documentation and stuff. I've come across |
| 116 |
one bug only in the last year, so I thought the best idea would be to |
| 117 |
upload the package to CTAN so someone else could use it, and perhaps |
| 118 |
any feedback I get might persuade me to pull my finger out and tidy it |
| 119 |
all up. |
| 120 |
|
| 121 |
The \filename{dtx} files aren't ready to be typeset yet---this is the |
| 122 |
only \LaTeX able documentation. |
| 123 |
|
| 124 |
What I do with \rmpage in the future depends mainly on what you tell |
| 125 |
me: if you've used \rmpage (or decided not to), I would consider it a |
| 126 |
great kindness if you told me why. I'm also interested in what you |
| 127 |
like and dislike, any suggestions you have, and anything else about |
| 128 |
this package and its documentation---an email message just saying |
| 129 |
`\rmpage is rubbish, \packname{geometry}'s much better for\ldots' |
| 130 |
would be useful if that's what you think. |
| 131 |
|
| 132 |
The chapters on how things work and all the options still need a lot |
| 133 |
of work, and the chapter on configuration isn't how I'd like it to be. |
| 134 |
This document will eventually be finished and included in a proper |
| 135 |
\filename{.dtx} file. I thought releasing this package now was best, |
| 136 |
because I've suddenly become employed, and this final polishing will |
| 137 |
take quite a long time. |
| 138 |
|
| 139 |
\rmpage sets \LaTeX\ page layout parameters to user-controlled |
| 140 |
values, without the user having to deal with particular measurements, |
| 141 |
check whether the result will fit inside the printing area of the |
| 142 |
selected printer, and so on. This is done with options like: |
| 143 |
\optname{wider}, \optname{noheaders}, \optname{lower}, and |
| 144 |
\optname{morecolsep}; all changable layout parameters can be varied |
| 145 |
in small steps over a range of values. |
| 146 |
|
| 147 |
\rmpage only changes parameters like \comname{textwidth} and |
| 148 |
\comname{columnsep}: those lengths that affect where the text goes on |
| 149 |
the page and how much of the page it occupies. It doesn't change |
| 150 |
layout parameters that affect the internal appear of your text, such |
| 151 |
as paragraph indents, spacing around section headings and the like. |
| 152 |
One of the design aims was to make changing page layout similar to a |
| 153 |
wysiwyg word processor, where you can use the mouse to fiddle with the |
| 154 |
page layout, making things a bit bigger and smaller until it's just |
| 155 |
right. |
| 156 |
|
| 157 |
There's a configuration file for you to play with and hooks galore: |
| 158 |
\rmpage is meant to be configured the way you want it---if you |
| 159 |
normally use A4 paper and produce most documents without headers, you |
| 160 |
can configure \rmpage to give you that by default, over-ridable by |
| 161 |
passing options from your document. If you follow the instructions, |
| 162 |
local configuration won't stop you producing documents with a modified |
| 163 |
layout that typeset identically on different systems---you can even |
| 164 |
copy the modified layout data into your document, and it'll typeset |
| 165 |
identically on a \LaTeX\ installation without \rmpage. |
| 166 |
|
| 167 |
The package is meant to be used directly in \LaTeX\ |
| 168 |
documents, and for creating local classes. I have used it, for |
| 169 |
example, to create a class for producing theses according to the |
| 170 |
regulations. I can play about with the layout as much as I like, |
| 171 |
because \rmpage will ensure that the final document is within |
| 172 |
specification---some of the code that does this can be seen in the |
| 173 |
configuration file. |
| 174 |
|
| 175 |
|
| 176 |
Aside: this documentation was hell to write---I hadn't realized what a |
| 177 |
monster this package was until I came to document it. With a bit of |
| 178 |
luck, you'll be able to use \rmpage as your flexible friend like I do. |
| 179 |
I never write a \LaTeX\ document without it. And strangely, even |
| 180 |
though \rmpage has been over a year in the making, and has been used |
| 181 |
constantly in that time, I spotted lots of improvements that needed |
| 182 |
doing and bugs that needed removing while I was writing this |
| 183 |
documentation, which I didn't start seriously until I thought I'd |
| 184 |
finished the first release version of the package. I have a suspicion |
| 185 |
that writing detailed documentation of software is a very, very useful |
| 186 |
part of getting it right, especially when the software's moderately |
| 187 |
complicated. Personally, I'm now suspicious of anything that isn't |
| 188 |
documented thoroughly; I've looked at the various packages I've got |
| 189 |
from CTAN and use myself, and I find that those with thorough, clear |
| 190 |
documentation of what they do \emph{and} how they do it are the ones |
| 191 |
that seem most usesful and flexible. The poorer-documented packages |
| 192 |
appear to be less well thought out and less able to do things my way, |
| 193 |
rather than the author's. By the way, when I refer to an explanation |
| 194 |
of how something works, I'm not talking about the annotated code with |
| 195 |
added jargon that the \LaTeX\ core appears to be turning into. This |
| 196 |
is fairly useful and probably inevitable, but people like me who |
| 197 |
aren't expert hackers can't understand it and can't find out how to |
| 198 |
understand it, which is worse. |
| 199 |
|
| 200 |
|
| 201 |
\section{\LaTeX's standard classes} |
| 202 |
|
| 203 |
\label{gen:standardclassproblems} |
| 204 |
|
| 205 |
\LaTeX's standard classes have all been designed well, and the |
| 206 |
\LaTeXe\ versions have a cunning way of calculating |
| 207 |
\comname{textwidth} and \comname{textheight} that adapts the page |
| 208 |
layout to the size of paper, which is useful for people like me who |
| 209 |
never print on US letter paper. |
| 210 |
|
| 211 |
But the standard \LaTeX\ page layout was intended for paper sizes near |
| 212 |
US letter, and assumes you'll be using headers and footers. If |
| 213 |
you're not, things begin to look a bit off; your printed |
| 214 |
pages have a larger white space at the top than at the bottom, which |
| 215 |
looks `bottom heavy'---standard typographical design has the larger |
| 216 |
gap at the bottom rather than the top, which looks better to the eye, |
| 217 |
even if only because we're used to it. Personally, I rarely use |
| 218 |
headers, which means the standard \LaTeX\ classes produce an |
| 219 |
unpleasant output most of the time. And for some reason, the standard |
| 220 |
classes don't allow enough space in the header box for type sizes |
| 221 |
bigger than 10pt. This is one of life's inexplicable mysteries. |
| 222 |
|
| 223 |
If you have different sized margins, the standard classes always make |
| 224 |
the outside margin the larger one, and the margins are in fixed |
| 225 |
proportions to each other. This is fine for conventional typeography, |
| 226 |
but not so good if you're formatting things to go in a ring-binder, |
| 227 |
for example. Some flexibility in this matter would be good. |
| 228 |
|
| 229 |
And there's the matter of the fixed text height and width of the |
| 230 |
standard classes. Now then, this is a good idea in one respect, |
| 231 |
because the user doesn't get to typeset lines that are too long or too |
| 232 |
short without having to do a bit of work. On the other hand, I for |
| 233 |
one have often \LaTeX ed a letter which has \emph{just} run on to two |
| 234 |
pages; being able to extend the page a small amount would be good |
| 235 |
under these circumstances. Admittedly, \LaTeXe\ introduced the |
| 236 |
\comname{enlargethispage} command which can help out, but if you make |
| 237 |
a page more than one or two lines longer this way, the results look a |
| 238 |
bit iffy---this command only extends \comname{textheight}, which |
| 239 |
reduces the size of the bottom margin, and can make the page look |
| 240 |
bottom-heavy. |
| 241 |
|
| 242 |
A more subtle problem with the standard fixed widths is that one |
| 243 |
factor affecting the ease of reading is the line width in characters, |
| 244 |
not in inches. So if you're using a fount with a different number of |
| 245 |
characters per inch, you can end up with a line that is noticably too |
| 246 |
long (Zapf Chancery), or too short (Lucida Casual). |
| 247 |
|
| 248 |
\section{How does \rmpage help?} |
| 249 |
|
| 250 |
\rmpage has options (the details come later) to format a page for |
| 251 |
typesetting with or without headers or footers, and always leaves |
| 252 |
enough space for a \comname{normalsize} line of text in the header |
| 253 |
box. You can specify which margin you want to be the larger one, and |
| 254 |
adjust the relative proportions of the inside and outside margins. |
| 255 |
And there are options to change: the width and height of the text |
| 256 |
taking into account the size of the main text fount; the position of |
| 257 |
the text on the page (up and down, and left and right); space between |
| 258 |
columns, above footers, below headers; size and position of marginal |
| 259 |
paragraphs; and lots, lots, more, so hurry! Buy now while the sale's |
| 260 |
still on! |
| 261 |
|
| 262 |
\rmpage isn't like the \packname{geometry} package: you rarely work |
| 263 |
with measurements\@. \rmpage's options are of the form: |
| 264 |
\optname{wider}/\optname{narrower} or |
| 265 |
\optname{moreheadsep}/\optname{lessheadsep}, and they scale sizes up |
| 266 |
and down over a large range in fairly small steps if you want. And |
| 267 |
unlike the \packname{Koma-Script} bundle of packages, you're not |
| 268 |
limited to a fixed aspect ratio printing area. Not that there's |
| 269 |
anything wrong with \packname{Koma-Script} or \packname{geometry}: |
| 270 |
they do a different job. |
| 271 |
|
| 272 |
\rmpage can take into account different founts, number of columns, and |
| 273 |
all sorts of things, including the physical printing area of your |
| 274 |
printer. |
| 275 |
|
| 276 |
Options exist to change all (I think I got them all) of \LaTeX's basic |
| 277 |
page layout parameters, and some new parameters that I created for: |
| 278 |
setting the size of marginal paragraphs, and changing the position of |
| 279 |
the text area in relation to the paper area. There are some \LaTeX\ |
| 280 |
page layout parameters that you don't get to affect |
| 281 |
directly; this is because of the way I looked at page layout when I |
| 282 |
wrote \rmpage. These include \comname{evesidemargin}, |
| 283 |
\comname{topmargin}, and some others, which are fine for a computer |
| 284 |
assembling a page, but not so good for me, trying to describe a |
| 285 |
layout I want in terms I like. |
| 286 |
|
| 287 |
I have paramaterized everything that didn't run away, so you can, for |
| 288 |
example, write a thesis class that limits the text area as |
| 289 |
specified in the regulations, but still allows the user some |
| 290 |
flexibility if it's needed. |
| 291 |
|
| 292 |
And \rmpage knows about a lot more paper sizes, including envelopes |
| 293 |
and ISO long sizes, which it attempts to handle in an intelligent |
| 294 |
fashion (it knows one's likely to want to print out 1/3 A3 on A4 |
| 295 |
paper, for example). |
| 296 |
|
| 297 |
\section{Installing \rmpage} |
| 298 |
|
| 299 |
You can install \rmpage by running \LaTeX\ on the file |
| 300 |
\filename{rmpage.ins}. The \filename{dtx} files might be useful if |
| 301 |
you want to dig around inside \rmpage, otherwise throw them away with |
| 302 |
the \filename{ins} files. Put the \filename{sty}, \filename{pko}, |
| 303 |
\filename{cfg}, and \filename{gfc} files somewhere in your \TeX\ |
| 304 |
search path. |
| 305 |
|
| 306 |
The file \filename{rmpage.sty} is the package you call from your |
| 307 |
\LaTeX\ document, and the \filename{cfg} files contains most of the |
| 308 |
options and locally-configurable things. Please don't change any of |
| 309 |
these files---make a copy called \filename{rmplocal.cfg} of either: |
| 310 |
\filename{rmpgen.cfg} or \filename{rmplocal.gfc}, and change that |
| 311 |
instead. The file \filename{rmplocal.gfc} is the same as |
| 312 |
\filename{rmpgen.cfg} with some options commented out to make it |
| 313 |
faster. |
| 314 |
|
| 315 |
\rmpage is meant to be configured to suit you; I suggest that everyone |
| 316 |
changes the default options in \filename{rmplocal.cfg}. Don't do this |
| 317 |
just yet unless you really want to---have a read of |
| 318 |
chapter~\ref{chap:use} and section~\ref{optcfg:settingup} first. |
| 319 |
|
| 320 |
|
| 321 |
\section{Compatibility} |
| 322 |
\label{intro:compatibility} |
| 323 |
|
| 324 |
\rmpage has been tested with the June 1996 release of \LaTeX. It |
| 325 |
appears to work well with the \classname{article}, \classname{report}, |
| 326 |
\classname{letter}, \classname{book}, and \classname{slides} classes, |
| 327 |
and a number of local classes based on these. \rmpage doesn't work |
| 328 |
well with the \classname{ltxdoc} class, because of what |
| 329 |
\classname{ltxdoc} does with marginal paragraphs. Mind you, |
| 330 |
\classname{ltxdoc} doesn't seem to have much success with marginal |
| 331 |
paragraphs anyway. \rmpage seems happy with the \classname{ltxguide} |
| 332 |
class, but I've not tested it thoroughly. |
| 333 |
|
| 334 |
Because \rmpage only changes \LaTeX\ parameters at the beginning of a |
| 335 |
\LaTeX\ run, it doesn't in general have trouble working with other |
| 336 |
packages and classes as long as \rmpage is loaded last. \rmpage |
| 337 |
includes code to help it work with the \packname{PSNFSS} packages, the |
| 338 |
\packname{beton} package, and the \packname{foils} class. The |
| 339 |
\packname{beton} package needed a little extra work because it changes |
| 340 |
\comname{baselineskip} after all packages have been loaded; |
| 341 |
\packname{foils} uses four (rather than three) extra-large base point |
| 342 |
sizes, which again took a little extra code. The \packname{PSNFSS} |
| 343 |
package support is just for convenience, so you can load a fount with |
| 344 |
one option rather than a \comname{usepackage} command and an option |
| 345 |
to \rmpage. |
| 346 |
|
| 347 |
In general, if \rmpage is loaded after the document's normal size |
| 348 |
fount has been selected, and after the document class has finished |
| 349 |
setting the various text layout parameters, there should be no |
| 350 |
problems---. If you are combining \rmpage with a package that also |
| 351 |
changes page layout parameters, you will have to find out how both |
| 352 |
packages work to ensure you get what you want. Loading \rmpage last |
| 353 |
is usually enough to ensure everything works right. For example, |
| 354 |
\rmpage must be loaded after \packname{setspace} has been used to set |
| 355 |
the line spacing for a document, so that \rmpage can set |
| 356 |
\comname{textheight} to a valid value. |
| 357 |
|
| 358 |
\begin{ikkystuff} |
| 359 |
Two things to watch for are changes to the main document |
| 360 |
fount, and changes to \comname{baselineskip}. \rmpage calculates |
| 361 |
\comname{textheight} as an integer multiple of \comname{baselineskip} |
| 362 |
plus \comname{topskip}. If these are changed after \rmpage has been |
| 363 |
called, you'll probably have lots of bad page breaks. |
| 364 |
\comname{textwidth} is normally taken to be a certain number of |
| 365 |
average-sized characters; if \rmpage has a false idea about the |
| 366 |
typeface and size you are using, \comname{textwidth} will probably |
| 367 |
not be set appropriately. |
| 368 |
|
| 369 |
If you ensure that normal size in the normal body fount with the |
| 370 |
normal \comname{baselineskip} has been selected before loading |
| 371 |
\rmpage, everything should always be fine. The \packname{beton} |
| 372 |
package sets \comname{baselineskip} \comname{AtBeginDocument}; other |
| 373 |
packages and classes which do this kind of thing will almost certainly |
| 374 |
need attention to get \rmpage to work right. |
| 375 |
\end{ikkystuff} |
| 376 |
|
| 377 |
\section{What made me write \rmpage} |
| 378 |
|
| 379 |
I started using \LaTeX~2.09 about eight or nine years ago when I was |
| 380 |
an undergraduate ('ere, Colin, 'ave you got a word processor on that |
| 381 |
bloody great workstation of yours? No, but I've got something |
| 382 |
better\ldots) and quickly realised that the standard formats looked |
| 383 |
daft on A4 paper. No worries, there was this \packname{a4l} style |
| 384 |
file that sort of sorted things out. After a bit, I wanted slightly |
| 385 |
wider columns, sometimes centred on the page and sometimes not. I |
| 386 |
found out how to write style files and eventually I ended up with a |
| 387 |
suite of simple style files that let you fiddle with the printing area |
| 388 |
by selecting one file for the kind of text area you wanted: centred, |
| 389 |
not centred, wide, very wide, long, standard \LaTeX\ length, my |
| 390 |
standard length, all hard-coded to A4 paper with no headers. |
| 391 |
|
| 392 |
I was chewing over the idea of introducing the idea of paper sizes |
| 393 |
myself, so I could write style files that weren't hard-coded to any |
| 394 |
particular paper size, when \LaTeXe\ came out with the job already |
| 395 |
done, and packages you could pass options to and all that good stuff. |
| 396 |
|
| 397 |
So what I did was use my original \LaTeX\ 2.09 packages to form the |
| 398 |
basis of the original \rmpage, which let you do everything the |
| 399 |
original styles did, but all in one file instead of over a dozen, and |
| 400 |
let you format your text on any size paper with or without headers or |
| 401 |
footers. I decided what I really wanted was a package that gave me |
| 402 |
wysiwyg-style flexibility (you know, the way you can extend line |
| 403 |
length just a bit with the mouse, without worrying about the actual |
| 404 |
numbers) without producing poor layouts, and taking advantage of |
| 405 |
\LaTeX's `extensive macro capability'\footnote{Whoever first used this |
| 406 |
phrase should be shot, after the politicians but before the lawyers} |
| 407 |
to build in a bit of intelligence. |
| 408 |
|
| 409 |
I looked at the \LaTeXe\ way of calculating the text region, and used |
| 410 |
those ideas in my package, and started adding options to change more |
| 411 |
aspects of the printing area. And more, and more, and more. The |
| 412 |
result was a mess that could change almost anything, and supported any |
| 413 |
size paper, different printers, and so. |
| 414 |
|
| 415 |
The transmogrification from the original large mess to the current |
| 416 |
large mess was in two main steps: I started out by tidying up bits of |
| 417 |
code piecemeal, rationalized command names and the like, and tried to |
| 418 |
work out how everything worked together. I'd done as much of this as |
| 419 |
I could, then started to document \rmpage systematically for myself, |
| 420 |
making notes on what I intended to change when I'd finished |
| 421 |
documenting the package. |
| 422 |
|
| 423 |
Eventually I got fed up, and decided that a good spring cleaning was |
| 424 |
in order. I read some typeography books, some British Standards |
| 425 |
(which are mainly ISO standards too, so I'm not being parochial) |
| 426 |
looked at the \packname{koma-script}, \packname{vmargin}, and |
| 427 |
\packname{geometry} packages, and cleaned up the code good and proper, |
| 428 |
none of this pussy-footing around with careful plans. I parameterized |
| 429 |
some things which had escaped the first time round, changed the |
| 430 |
numbers to give a rational, \ae sthetically pleasing, and functional |
| 431 |
spread of values for everything\footnote{That's my story, and I'm |
| 432 |
sticking to it.}, and got the whole thing more-or-less sorted, with a |
| 433 |
few extra bits thrown in where they were missing. The result seems |
| 434 |
much more useful that my original careful plan would have produced, so |
| 435 |
I'm happy. Writing the documentation has smoothed out several things |
| 436 |
I wasn't very happy with to begin with, improved some features, added |
| 437 |
some others, and unearthed more bugs than was reasonable given that |
| 438 |
I'd tested the bloody thing, honest. |
| 439 |
|
| 440 |
\section{Future plans} |
| 441 |
|
| 442 |
What I do with \rmpage depends mainly on what you tell me; if you've |
| 443 |
used \rmpage (or decided not to), I would consider it a great kindness |
| 444 |
if you let me know what you think about it---two words or two pages: |
| 445 |
whatever you might tell me would be useful and appreciated. I'm |
| 446 |
interested in what you like and dislike, any suggestions you have, and |
| 447 |
anything else about this package and its documentation, gonzo |
| 448 |
ontology, the books of Harlan Ellison and Robert Anton Wilson, good |
| 449 |
beer, fast bikes, and prawn crackers, but don't worry about most of |
| 450 |
that. |
| 451 |
|
| 452 |
I intend to make the \rmpage code more elegant, and make \rmpage more |
| 453 |
\emph{useful}---if you think of any useful changes or additions, |
| 454 |
please let me know. Of course I'll try to fix any bugs and |
| 455 |
misfeatures that you report. |
| 456 |
|
| 457 |
I'm working on reducing the restrictions on the use of options---I |
| 458 |
hope to arrange things so that more options can be used in an |
| 459 |
\comname{ExecuteOptions} statement, and things like that. |
| 460 |
|
| 461 |
A project that I'll finish eventually is a version of \rmpage that can |
| 462 |
be processed with \packname{doc} and \packname{docstrip} in the |
| 463 |
conventional way, but don't hold your breath---it's taken me perhaps |
| 464 |
two years to get this far. But I will fix bugs quicker than that. |
| 465 |
|
| 466 |
\chapter{Using \rmpage} |
| 467 |
\label{chap:use} |
| 468 |
|
| 469 |
Section~\ref{use:changingpagelayout} on |
| 470 |
page~\pageref{use:changingpagelayout} of this chapter describes how to |
| 471 |
use \rmpage to change the page layout. The sections before that are |
| 472 |
background information intended to explain the jargon and conventions |
| 473 |
I use in this document, and a little about the philosophy behind |
| 474 |
\rmpage---all of which should make the rest of this an easier read. |
| 475 |
|
| 476 |
\rmpage is a \LaTeX{} package written to change the page layout. You |
| 477 |
can control it with options, and by editing a configuration file. |
| 478 |
You don't need to edit the configuration file for \rmpage to be |
| 479 |
useful, but doing so can save you time and effort. I suggest you read |
| 480 |
this chapter and play with \rmpage a little, then read |
| 481 |
chapter~\ref{chap:config} on page~\pageref{chap:config} to find out |
| 482 |
about local configuration. |
| 483 |
|
| 484 |
\rmpage is a normal \LaTeX\ package, so put: |
| 485 |
\begin{verbatim} |
| 486 |
\usepackage{rmpage} |
| 487 |
\end{verbatim} |
| 488 |
in the preamble of your document. |
| 489 |
|
| 490 |
You can pass options directly to \rmpage in the optional argument of |
| 491 |
the \comname{usepackage} command, but I almost always put all my |
| 492 |
options in the optional argument of the \comname{documentclass} |
| 493 |
command. This is because \rmpage uses several standard options; if I |
| 494 |
made a habit of passing options to \rmpage directly, I might forget |
| 495 |
that the document class needs to know about (for example) the |
| 496 |
\optname{twocolumn} option. |
| 497 |
|
| 498 |
\rmpage was designed to change \LaTeX's page layout parameters, but it |
| 499 |
doesn't change all of them in a direct way---read on to see what I |
| 500 |
mean. If you aren't familiar with \LaTeX's basic page layout |
| 501 |
parameters, have a look at a copy of the \LaTeX\ manual, ask a |
| 502 |
convenient guru, or use the \packname{layout} package to show you what |
| 503 |
they are---I think that what they are is obvious from their names, but |
| 504 |
I'm not a Finnish \LaTeX\ novice, so my opinion is clearly suspect. |
| 505 |
|
| 506 |
Figure~\ref{fig:layout} on page~\pageref{fig:layout} shows the output |
| 507 |
from the \packname{layout} package's \comname{layout} command. I've |
| 508 |
fooled the \comname{layout} command into thinking this is a one-sided |
| 509 |
document, and this document is formatted without headers, so you can't |
| 510 |
see clearly that there is a box of height \comname{headheight} a |
| 511 |
distance \comname{headsep} above the main text body. This box |
| 512 |
contains the header, if one exists. |
| 513 |
|
| 514 |
\section{\rmpage's view of a page} |
| 515 |
|
| 516 |
The user interface to \rmpage takes the view that a page consists of |
| 517 |
a physical paper size, with a non-printable border around its inside |
| 518 |
edge. \rmpage will not produce a layout that attempts to put ink |
| 519 |
beyond the printable region thus defined. |
| 520 |
|
| 521 |
\rmpage considers the \emph{main text block} to consist of the header, |
| 522 |
body text, and footer. This is the region that \rmpage moves up and |
| 523 |
down with \optname{altitude} options, and left to right with |
| 524 |
\optname{offset} options. The body text is part of the main text |
| 525 |
block, and is the matter that fits inside the area defined by |
| 526 |
\comname{textwidth} and \comname{textheight}. |
| 527 |
|
| 528 |
Marginal paragraphs stick on the side of the main text block. They |
| 529 |
begin a certain distance from the side of the body text, and extend to |
| 530 |
within a certain distance of the edge of the page, or to a certain |
| 531 |
maximum width. |
| 532 |
|
| 533 |
The space between the main text block and the edge of the paper: top, |
| 534 |
bottom, left, and right; is considered as four different margins, |
| 535 |
measured from the edges of the paper. \LaTeX's |
| 536 |
\comname{evensidemargin}, \comname{oddsidemargin}, and |
| 537 |
\comname{topmargin} parameters measure margins differently, from a |
| 538 |
point one inch in from the top left hand corner of the paper. |
| 539 |
|
| 540 |
Asking for \optname{noheaders} or \optname{nofooters} reduces the size |
| 541 |
of the space left for the approriate element to |
| 542 |
0\units{pt}---respectively \comname{headheight} \emph{and} |
| 543 |
\comname{headsep}, or \comname{footskip}, so the main text block might |
| 544 |
consist of body text only. |
| 545 |
|
| 546 |
\section{Parameter naming conventions} |
| 547 |
|
| 548 |
I refer to various parameters in this document, so you might find it |
| 549 |
useful to know what the names are supposed to mean. |
| 550 |
|
| 551 |
In general, parameter names ending in |clearance|, |clear|, or |
| 552 |
|margin| refer to a distance from the edge of the paper. Parameter |
| 553 |
names containing |sep| refer to a distance between text elements on |
| 554 |
the page. |mpar| means marginal paragraph; |width| refers to |
| 555 |
horizontal dimensions; |height| or |length| refer to vertical |
| 556 |
dimensions. |
| 557 |
|
| 558 |
Parameter names ending in |option| contain numbers that control what |
| 559 |
value the parameter referred to is set to. Parameter names containing |
| 560 |
|min| or |max| are minimum or maximum limits for the parameter |
| 561 |
referred to. |
| 562 |
|
| 563 |
All \rmpage's parameters and commands begin with \comname{RM}; those |
| 564 |
beginning with \comname{RM@} are not meant to be set outside a class, |
| 565 |
package, or configuration file. The one exception to this is the |
| 566 |
\comname{sloppiness} command. |
| 567 |
|
| 568 |
|
| 569 |
\section{Don't read me} |
| 570 |
|
| 571 |
Without any options specified by your document or the configuration |
| 572 |
file, on paper about A4 or US letter size, \rmpage will produce a |
| 573 |
slightly different format to the standard classes: \comname{textwidth} |
| 574 |
and the position of the text body on the page will be a fraction of a |
| 575 |
point different; everything else should be the same (if not, you've |
| 576 |
found a fault---please let me know). Smaller paper sizes, around A5 |
| 577 |
or half US letter, will have a noticeable wider \comname{textwidth}. |
| 578 |
You can force \rmpage to make \comname{textwidth} and |
| 579 |
\comname{textheight} identical to the standard values (so line and |
| 580 |
page breaks are not changed) with the \optname{stdwidth} and |
| 581 |
\optname{stdlength} options; main text block positioning is never |
| 582 |
identical to standard. |
| 583 |
|
| 584 |
\rmpage with the standard configuration file follows \LaTeX's defaults |
| 585 |
and produces layouts very close to standard \LaTeX. You can change |
| 586 |
this by editing the configuration file---see chapter~\ref{chap:config} |
| 587 |
for the details. I wrote \rmpage expecting that everyone would edit |
| 588 |
the configuration file to match their preferences; for example, if you |
| 589 |
usually don't use headers, or if you usually don't print on US letter |
| 590 |
paper. |
| 591 |
|
| 592 |
If you are using typefaces other than the standard Computer Modern |
| 593 |
Roman, or a package that changes \comname{baselineskip}, have a look |
| 594 |
at section~\ref{intro:compatibility} on |
| 595 |
page~\pageref{intro:compatibility} and |
| 596 |
section~\ref{use:changingpagelayout} on |
| 597 |
page~\pageref{use:changingpagelayout}---there are things that need |
| 598 |
doing to avoid a poor layout. |
| 599 |
|
| 600 |
The observant will notice that I prefer spelling things according to |
| 601 |
the Oxford English Dictionary, rather than Webster's. Fear not: I |
| 602 |
realize that \LaTeX\ follows US English convention, so \rmpage |
| 603 |
includes options spelt both ways where there's a difference. |
| 604 |
|
| 605 |
\section{Option naming conventions} |
| 606 |
|
| 607 |
\rmpage's options are largely of the form: \optname{narrowest}, |
| 608 |
\optname{narrower}, \optname{narrowish}, \optname{normalwidth}; or |
| 609 |
\optname{mostheadsep}, \optname{moreheadsep}, |
| 610 |
\optname{moreishheadsep}, \optname{normalheadsep}. These two examples |
| 611 |
are each part of an option set (they continue with \optname{widish} |
| 612 |
and \optname{lessishheadsep}). Any option without \optname{touch} or |
| 613 |
\optname{t@uch} in its name is considered a main option. |
| 614 |
|
| 615 |
You should use only one main option from each set at a time---if you |
| 616 |
do use more than one, \rmpage will apply the settings of the option |
| 617 |
that is declared last in the package file. |
| 618 |
|
| 619 |
The \optname{touch} options all step up or down one third of the way |
| 620 |
(usually in a geometrical sequence) to the next main option. The |
| 621 |
\optname{t@uch} options are identical, but can only be used in class |
| 622 |
and package files. The following two examples produce an identical |
| 623 |
\comname{textwidth}: |
| 624 |
\begin{verbatim} |
| 625 |
\usepackage[wider,t@uchwider,touchwider]{rmpage} |
| 626 |
\usepackage[widest,touchnarrower]{rmpage} |
| 627 |
\end{verbatim} |
| 628 |
|
| 629 |
The following three examples produce a smoothly increasing |
| 630 |
\comname{textwidth}: |
| 631 |
\begin{verbatim} |
| 632 |
\usepackage[touchwider]{rmpage} |
| 633 |
\usepackage[widish,touchnarrower]{rmpage} |
| 634 |
\usepackage[widish]{rmpage} |
| 635 |
\end{verbatim} |
| 636 |
|
| 637 |
It's complete okay, but slightly silly because it has no effect, to |
| 638 |
combine, say, \optname{touchwider} and \optname{touchnarrower}. |
| 639 |
|
| 640 |
\section{Changing the page layout} |
| 641 |
\label{use:changingpagelayout} |
| 642 |
|
| 643 |
\rmpage is controlled by options passed to it in the conventional way, |
| 644 |
and by various things you can do to the configuration file. This |
| 645 |
section explains the basic use of most of the options. |
| 646 |
Chapter~\ref{chap:alltheoptions} on page~\pageref{chap:alltheoptions} |
| 647 |
lists all the options and what they do. Chapter~\ref{chap:config} on |
| 648 |
page~\pageref{chap:config} deals with the configuration file. |
| 649 |
|
| 650 |
|
| 651 |
\subsection{Width of the main text block} |
| 652 |
|
| 653 |
\label{use:width} |
| 654 |
|
| 655 |
According to the text books, the optimum width of a block of text is |
| 656 |
about 1.5--2.5 alphabets in the main fount. This is about 45--75 |
| 657 |
characters (including spaces and punctuation) or ordinary English |
| 658 |
prose. When you set the width of the main text block, \rmpage |
| 659 |
measures the width of one column, and warns you if it exceeds these |
| 660 |
limits. Note that the standard width is at the upper limit for |
| 661 |
optimum readability; any increase will produce a warning. I very |
| 662 |
strongly suggest you use multiple columns if you find yourself using a |
| 663 |
width wider than \optname{widish}. |
| 664 |
|
| 665 |
\rmpage has options for producing multiple column layouts: see |
| 666 |
section~\ref{use:multiplecolumns} on |
| 667 |
page~\pageref{use:multiplecolumns} for more details. If you are |
| 668 |
producing displayed material (a single large table on a page, for |
| 669 |
example), read the section below, called `On other width setting |
| 670 |
controls'. |
| 671 |
|
| 672 |
\rmpage sets the width of the main text block (the header, body text, |
| 673 |
and footer) with these options, which are referred to as the width |
| 674 |
option set: |
| 675 |
\begin{tabbing} |
| 676 |
\optname{narrowest}, \= \optname{narrower}, \= \optname{narrow}, \= |
| 677 |
\optname{narrowish}.\kill |
| 678 |
\optname{widest}, \> \optname{wider}, \> \optname{wide}, \> |
| 679 |
\optname{widish}, \\ |
| 680 |
\optname{normalwidth},\\ |
| 681 |
\optname{narrowest}, \> \optname{narrower}, \> \optname{narrow}, \> |
| 682 |
\optname{narrowish}. |
| 683 |
\end{tabbing} |
| 684 |
|
| 685 |
Make sure you only use one of the above options at a time. The |
| 686 |
\optname{touch} options can be used with any of the main options; they |
| 687 |
are often exactly what's needed what used alone: \optname{touchwider} |
| 688 |
and \optname{touchlonger} have often reduced my document's |
| 689 |
page count to what I wanted. |
| 690 |
|
| 691 |
The options: |
| 692 |
\begin{tabbing} |
| 693 |
\optname{touchwider} \= \optname{touchnarrower} \\ |
| 694 |
\optname{t@uchwider} \> \optname{t@uchnarrower} |
| 695 |
\end{tabbing} |
| 696 |
give a width one third of the way towards the next main option. The |
| 697 |
\optname{t@uch} options can only be used in a class or package file. |
| 698 |
|
| 699 |
There are four main width options that pay no attention to the |
| 700 |
\optname{touch} options. They are: |
| 701 |
\begin{tabbing} |
| 702 |
\optname{halfinchmargins} \= \kill |
| 703 |
\optname{stdwidth} \> Exactly the width calculated by the standard classes\\ |
| 704 |
\optname{fullwidth} \> The full width of the printable region\\ |
| 705 |
\optname{oneinchmargins} \> |
| 706 |
The left and right margins sum to 2\units{in}---average 1\units{in}\\ |
| 707 |
\optname{halfinchmargins} \> |
| 708 |
The left and right margins sum to 1\units{in}---average 0.5\units{in} |
| 709 |
\end{tabbing} |
| 710 |
The \optname{fullwidth} option fills the width of the printable region |
| 711 |
as well as it can, ensuring the specified relationship between the |
| 712 |
inside and outside margins. You will usually get a larger |
| 713 |
\optname{textwidth} if you also ask for \optname{centre} or |
| 714 |
\optname{center}; see section~\ref{use:horizontalpos} on |
| 715 |
page~\pageref{use:horizontalpos}. |
| 716 |
|
| 717 |
The \optname{one-} and \optname{halfinchmargins} options give inside |
| 718 |
and outside margins of that measurement only if you are printing |
| 719 |
centred; otherwise, the average margin size is as specified (e.g., |
| 720 |
inside 1.2\units{in}, outside 0.8\units{in}; $(1.2 + 0.8) / 2 = 1$) |
| 721 |
|
| 722 |
\subsubsection{Other width setting controls} |
| 723 |
|
| 724 |
The initial \comname{textwidth} is normally calculated as the smaller |
| 725 |
of two different widths: one, a certain number of characters; the |
| 726 |
other, a certain fraction of the \comname{paperwidth}. The precise |
| 727 |
figures depend on the width options you've used. |
| 728 |
|
| 729 |
This is not always appropriate---for example, if you are producing |
| 730 |
a weekly timetable on A4 landscape paper, I can't see why |
| 731 |
\rmpage should pay attention to the character-based width. So I |
| 732 |
created these options: |
| 733 |
\begin{tabbing} |
| 734 |
\optname{characterwidthset} \= Choose the character-based width |
| 735 |
regardless \\ |
| 736 |
\optname{paperwidthset} \> Choose the paper-based width regardless \\ |
| 737 |
\optname{bothwidthset} \> Default: choose the smaller of the two |
| 738 |
widths\\ |
| 739 |
\end{tabbing} |
| 740 |
|
| 741 |
Note that \rmpage never ignores its paper-based limits: saying |
| 742 |
\optname{characterwidthset} will produce a printable layout that takes |
| 743 |
notice of all the restrictions documented elsewhere. |
| 744 |
|
| 745 |
I've provided a \optname{ringbinding} option which sets the minimum |
| 746 |
allowed inside margin to at least 15\units{mm} if you are printing in |
| 747 |
portrait orientation, and does nothing but warn you if you are using |
| 748 |
landscape orientation. It's probably not a good idea to use this with |
| 749 |
long paper sizes, but no check is made. |
| 750 |
|
| 751 |
\subsection{Length of the main text block} |
| 752 |
\label{use:length} |
| 753 |
|
| 754 |
\rmpage sets the height of the main text block (the header, body text, |
| 755 |
and footer) with these options, which are referred to as the length |
| 756 |
option set: |
| 757 |
\begin{tabbing} |
| 758 |
\optname{shortest}, \= \optname{shorter}, \= \optname{short}, \= |
| 759 |
\optname{shortish}.\kill |
| 760 |
\optname{longest}, \> \optname{longer}, \> \optname{long}, \> |
| 761 |
\optname{longish}, \\ |
| 762 |
\optname{normallength},\\ |
| 763 |
\optname{shortest}, \> \optname{shorter}, \> \optname{short}, \> |
| 764 |
\optname{shortish}. |
| 765 |
\end{tabbing} |
| 766 |
Make sure you only use one of the above options at a time. The |
| 767 |
\optname{touch} options can be used with any of the main options; they |
| 768 |
are often exactly what's needed what used alone: \optname{touchwider} |
| 769 |
and \optname{touchlonger} have often reduced my document's |
| 770 |
page count to what I wanted. |
| 771 |
|
| 772 |
The options: |
| 773 |
\begin{tabbing} |
| 774 |
\optname{touchlonger} \= \optname{touchshorter} \\ |
| 775 |
\optname{t@uchlonger} \> \optname{t@uchshorter} |
| 776 |
\end{tabbing} |
| 777 |
give a width one third of the way towards the next main option. The |
| 778 |
\optname{t@uch} options can only be used in a class or package file. |
| 779 |
|
| 780 |
|
| 781 |
The height you get is (where $Z$ is an integer; the body text is $Z+1$ |
| 782 |
lines long): |
| 783 |
\begin{displaymath} |
| 784 |
Z \times \mbox{\comname{baselineskip}} + \mbox{\comname{topskip}} + |
| 785 |
\mbox{\comname{headheight}} + \mbox{\comname{headsep}} + |
| 786 |
\mbox{\comname{footskip}} |
| 787 |
\end{displaymath} |
| 788 |
|
| 789 |
The length of the main text block is set to be a certain fraction of |
| 790 |
\comname{paperheight}, so \comname{textheight} will increase if you |
| 791 |
turn headers or footers off. |
| 792 |
|
| 793 |
\subsection{Headers and footers} |
| 794 |
\label{use:headfoot} |
| 795 |
|
| 796 |
\rmpage doesn't select a page style to use or not use headers or |
| 797 |
footers---you've got to arrange for that to be done separately with a |
| 798 |
\comname{pagestyle} command. It does calculate a page layout that does |
| 799 |
or does not allow space for a header or a footer. If you turn |
| 800 |
footers off and forget to choose a footer-free page style, the result |
| 801 |
is mildly comical. |
| 802 |
|
| 803 |
You can allow space (or not) for headers and footers using these |
| 804 |
options: |
| 805 |
\begin{tabbing} |
| 806 |
\optname{headers} \= \optname{noheaders} \\ |
| 807 |
\optname{footers} \> \optname{nofooters} |
| 808 |
\end{tabbing} |
| 809 |
Telling \rmpage not to allow space for either headers or footers will increase |
| 810 |
\comname{textheight}, and vice-versa. See section~\ref{use:length} |
| 811 |
for more about this. |
| 812 |
|
| 813 |
\LaTeX's standard classes allow a box 12\units{pt} high for headers. |
| 814 |
This is too small for point sizes greater than 12\units{pt}, so |
| 815 |
\rmpage changes the size of the box containing the header to be |
| 816 |
\comname{baselineskip}. If you want to use a header which is a |
| 817 |
different height to that, define the command \comname{RMheadheight} to |
| 818 |
be whatever the height is before calling \rmpage. For example, if |
| 819 |
your header is to be 32\units{pt} high, do this: |
| 820 |
\begin{verbatim} |
| 821 |
\providecommand{\RMheadheight}{32pt} |
| 822 |
\usepackage{rmpage} |
| 823 |
\end{verbatim} |
| 824 |
|
| 825 |
If you don't usually use headers, I suggest that you edit the |
| 826 |
configuration file so, by default, \rmpage calculates a page layout |
| 827 |
that doesn't allow space for them. See chapter~\ref{chap:config} on |
| 828 |
page~\pageref{chap:config} for how to do this. |
| 829 |
|
| 830 |
These options let you change the space between the header and the body |
| 831 |
text---use only one of these at a time: |
| 832 |
\begin{tabbing} |
| 833 |
\optname{lessishheadsep} \= \optname{moreheadsep} \= |
| 834 |
\optname{moreishheadsep} \kill |
| 835 |
\optname{mostheadsep} \> \optname{moreheadsep} \> |
| 836 |
\optname{moreishheadsep} \\ |
| 837 |
\optname{normalheadsep} \\ |
| 838 |
\optname{lessishheadsep} \> \optname{lessheadsep} \> \optname{leastheadsep} |
| 839 |
\end{tabbing} |
| 840 |
|
| 841 |
These options let you change the space between the footer and the body |
| 842 |
text---use only one of these at a time: |
| 843 |
\begin{tabbing} |
| 844 |
\optname{lessishfootskip} \= \optname{morefootskip} \= |
| 845 |
\optname{moreishfootskip} \kill |
| 846 |
\optname{mostfootskip} \> \optname{morefootskip} \> |
| 847 |
\optname{moreishfootskip} \\ |
| 848 |
\optname{normalfootskip} \\ |
| 849 |
\optname{lessishfootskip} \> \optname{lessfootskip} \> \optname{leastfootskip} |
| 850 |
\end{tabbing} |
| 851 |
The \optname{footskip} options scale the gap between the \emph{top} of the |
| 852 |
footer and the bottom of the body text---the calculation assumes that |
| 853 |
the footer is one line high. The standard \LaTeX\ parameter |
| 854 |
\comname{footskip} is the distance from the bottom of the body text |
| 855 |
to the bottom of the footer. |
| 856 |
|
| 857 |
Both the option sets above have corresponding \optname{touch} |
| 858 |
options---these can be used with any of the main options above: |
| 859 |
\begin{tabbing} |
| 860 |
\optname{touchmorefootskip} \= \optname{touchlessfootskip} \\ |
| 861 |
\optname{t@uchmorefootskip} \> \optname{t@uchlessfootskip}\\ |
| 862 |
\optname{touchmoreheadsep} \> \optname{touchlessheadsep}\\ |
| 863 |
\optname{t@uchmoreheadsep} \> \optname{t@uchlessheadsep} |
| 864 |
\end{tabbing} |
| 865 |
These options increase or decrease the corresponding parameter one |
| 866 |
third of the way towards the value given by the next main option. |
| 867 |
|
| 868 |
|
| 869 |
\subsection{Position of the main text block} |
| 870 |
|
| 871 |
\subsubsection{Vertical position} |
| 872 |
\label{use:verticalpos} |
| 873 |
|
| 874 |
You can raise and lower the position of the main text block on the page |
| 875 |
using the altitude set of options: |
| 876 |
\begin{tabbing} |
| 877 |
\optname{highest} \= \optname{higher} \= \optname{lower} \= \optname{highish} \kill |
| 878 |
\optname{highest} \> \optname{higher} \> \optname{high} \> \optname{highish}\\ |
| 879 |
\optname{normalaltitude}\\ |
| 880 |
\optname{lowish} \> \optname{low} \> \optname{lower} \> \optname{lowest} |
| 881 |
\end{tabbing} |
| 882 |
Be sure you only use one of the main options above at a time. The |
| 883 |
\optname{touch} options below can be used with any of the main options. |
| 884 |
|
| 885 |
The options: |
| 886 |
\begin{tabbing} |
| 887 |
\optname{touchhigher} \= \optname{touchlower} \\ |
| 888 |
\optname{t@uchhigher} \> \optname{t@uchlower} |
| 889 |
\end{tabbing} |
| 890 |
give a width one third of the way towards the next main option. The |
| 891 |
\optname{t@uch} options can only be used in a class or package file. |
| 892 |
|
| 893 |
The text books say that the white space at the bottom of a page should |
| 894 |
be larger than the white space at the top. \LaTeX's and \rmpage's |
| 895 |
standard setting splits the space evenly between top and bottom; this |
| 896 |
results in an apparently larger space at the bottom---the printing |
| 897 |
appears to finish at the bottom of the body text, because the footer |
| 898 |
is usually just a page number. |
| 899 |
|
| 900 |
The altitude options consider the top margin to be the space above the |
| 901 |
top of the header box, and the bottom margin to be the space below the |
| 902 |
footer baseline. They work by changing the ratio between these two |
| 903 |
spaces; the sum of the top and bottom margins is not changed. |
| 904 |
|
| 905 |
But if you ask for a page layout which would result in text exceeding |
| 906 |
the various vertical limits, \rmpage will increase the top or bottom |
| 907 |
margin as appropriate without attempting to retain a fixed ratio |
| 908 |
between them. For example, if the layout would extend 2\units{mm} off |
| 909 |
the top of the printable area, the top margin would be increased by |
| 910 |
2\units{mm} and the bottom margin would remain the same. |
| 911 |
|
| 912 |
This is different to the horizontal position options, which do ensure |
| 913 |
a fixed ratio between the inside and outside margins; if the inside |
| 914 |
margin is reduced, the outside margin is reduced to retain the |
| 915 |
requested proportions. |
| 916 |
|
| 917 |
These two ways of doing things were deliberate design decisions; if |
| 918 |
anyone thinks I've got it wrong, please email me and try to persuade |
| 919 |
me that you're right. |
| 920 |
|
| 921 |
\subsubsection{Horizontal position} |
| 922 |
\label{use:horizontalpos} |
| 923 |
|
| 924 |
The horizontal positioning of the main text block is controlled by |
| 925 |
three types of options which: vary the ratio between the larger and |
| 926 |
smaller margins, switch the larger margin from the inside to the |
| 927 |
outside, and force both margins to be the same size or not. |
| 928 |
|
| 929 |
The options: |
| 930 |
\begin{tabbing} |
| 931 |
\optname{notcentre} or \optname{notcenter} \= \kill |
| 932 |
\optname{centre} or \optname{center} \> Equal inside and outside |
| 933 |
margins \\ |
| 934 |
\optname{notcentre} or \optname{notcenter} \> Usually unequal inside |
| 935 |
and outside margins. |
| 936 |
\end{tabbing} |
| 937 |
control whether or not the text will be centred horizontally. Using |
| 938 |
the \optname{centre} option forces the inside and outside margins to be |
| 939 |
the same; the \optname{notcentre} option means they can be different. |
| 940 |
Be sure you only use one of these options at a time. |
| 941 |
|
| 942 |
The options: |
| 943 |
\begin{tabbing} |
| 944 |
\optname{notstdmargins} \= \kill |
| 945 |
\optname{stdmargins} \> Outside margin larger \\ |
| 946 |
\optname{notstdmargins} \> Inside margin larger |
| 947 |
\end{tabbing} |
| 948 |
control which of the two margins on a page will be the larger when you |
| 949 |
have requested a \optname{notcentre}d layout. \LaTeX's convention, |
| 950 |
and standard typographical convention, has the larger of the two |
| 951 |
margins on the outside. This is given by \optname{stdmargins} (an |
| 952 |
abbreviation for standard margins). The \optname{notstdmargins} |
| 953 |
option gives the opposite effect---it is not standard practice to have |
| 954 |
the inside margin larger than the outside margin, although it is |
| 955 |
useful when you're producing material for a ring binder. |
| 956 |
Be sure you only use one of these options at a time. |
| 957 |
|
| 958 |
|
| 959 |
|
| 960 |
You can shift the main text block from right to left using the |
| 961 |
\optname{offset} set of options: |
| 962 |
\begin{tabbing} |
| 963 |
\optname{lessishoffset} \= \optname{moreoffset} \= \optname{moreishoffset} \kill |
| 964 |
\optname{mostoffset} \> \optname{moreoffset} \> \optname{moreishoffset}\\ |
| 965 |
\optname{normaloffset}\\ |
| 966 |
\optname{lessishoffset} \> \optname{lessoffset} \> \optname{leastoffset}\\ |
| 967 |
\end{tabbing} |
| 968 |
These options change the difference between the inside and outside |
| 969 |
margin: \optname{leastoffset} gives you centred printing, with equal |
| 970 |
inside and outside margins. \optname{mostoffset} produces inside and |
| 971 |
outside margins in the proportions $87\% : 13\%$. |
| 972 |
|
| 973 |
These options produce a particular ratio between the inside and |
| 974 |
outside margins. If you have asked for a very wide |
| 975 |
\comname{textwidth} which is limited by the non-printing margin of |
| 976 |
your printer, \comname{textwidth} might be reduced to produce margins |
| 977 |
in the requested proportions. If you have symmetrical left and right |
| 978 |
non-printing margins on your printer, you can only completely fill the |
| 979 |
available width if you request centred printing with the |
| 980 |
\optname{centre} or \optname{leastoffset} options. |
| 981 |
|
| 982 |
Be sure you only use one of the main options above at a time. The |
| 983 |
\optname{touch} options below can be used with any of the main options. |
| 984 |
|
| 985 |
The options: |
| 986 |
\begin{tabbing} |
| 987 |
\optname{touchmoreoffset} \= \optname{touchlessoffset} \\ |
| 988 |
\optname{t@uchmoreoffset} \> \optname{t@uchlessoffset} |
| 989 |
\end{tabbing} |
| 990 |
give an offset one third of the way towards the next main option. The |
| 991 |
\optname{t@uch} options can only be used in a class or package file. |
| 992 |
|
| 993 |
An oddity to watch out for is this: \optname{leastoffset} produces the |
| 994 |
least offset between the left and right margins, namely none. If you |
| 995 |
use the \optname{leastoffset} and the \optname{touchlessoffset} |
| 996 |
options together, you get what I call a negative offset. That is, if |
| 997 |
you've asked for \optname{stdmargins}, you'll end up with a larger |
| 998 |
inside margin than outside, and if you've asked for |
| 999 |
\optname{notstdmargins}, you get a larger outside margin than inside. |
| 1000 |
\rmpage will draw your attention to this is it happens. |
| 1001 |
|
| 1002 |
\subsection{Marginal paragraphs} |
| 1003 |
\label{use:marginalparapgraphs} |
| 1004 |
|
| 1005 |
Marginal paragraphs begin a distance \comname{marginparsep} away from |
| 1006 |
the side of the main text block, and extend to a distance |
| 1007 |
\comname{RM@mparclearance} from the edge of the paper. The maximum |
| 1008 |
width of a marginal paragraph is given by \comname{RM@maxmparwidth}. |
| 1009 |
|
| 1010 |
With a conventional layout on paper similar to A4, marginal paragraphs |
| 1011 |
usually fill the space from \comname{marginparsep} (about 4\units{mm}) |
| 1012 |
away from the main text block, to \comname{RM@mparclearance} (about |
| 1013 |
10\units{mm}) in from the edge of the paper. |
| 1014 |
\comname{RM@maxmparwidth} (about 50\units{mm}) is not usually a limit. |
| 1015 |
|
| 1016 |
All of these parameters can be controlled by options. |
| 1017 |
\comname{marginparsep} is a standard \LaTeX\ length which is initially |
| 1018 |
set by the class file; the other two are \rmpage commands, and are |
| 1019 |
initially set to a fraction of \comname{paperwidth}. |
| 1020 |
|
| 1021 |
The options: |
| 1022 |
\begin{tabbing} |
| 1023 |
\optname{leastmparsep} \= \optname{moremparsep} \= |
| 1024 |
\optname{moreishmparsep} \kill |
| 1025 |
\optname{mostmparsep} \> \optname{moremparsep} \> |
| 1026 |
\optname{moreishmparsep} \\ |
| 1027 |
\optname{normalmparsep} \\ |
| 1028 |
\optname{leastmparsep} \> \optname{lessmparsep} \> |
| 1029 |
\optname{lessishmparsep} |
| 1030 |
\end{tabbing} |
| 1031 |
control the size of the gap between the marginal paragraph and the |
| 1032 |
main text block. |
| 1033 |
|
| 1034 |
Be sure you only use one of the main options above at a time. The |
| 1035 |
\optname{touch} options below can be used with any of the main options. |
| 1036 |
|
| 1037 |
The options: |
| 1038 |
\begin{tabbing} |
| 1039 |
\optname{touchmoremparsep} \= \optname{touchlessmparsep} \\ |
| 1040 |
\optname{t@uchmoremparsep} \> \optname{t@uchlessmparsep} |
| 1041 |
\end{tabbing} |
| 1042 |
give an offset one third of the way towards the next main option. The |
| 1043 |
\optname{t@uch} options can only be used in a class or package file. |
| 1044 |
|
| 1045 |
The options: |
| 1046 |
\begin{tabbing} |
| 1047 |
\optname{lessmparclearance} \= \optname{lessishmparclearance} \= |
| 1048 |
\optname{moreishmparclearance}\kill |
| 1049 |
\optname{mostmparclearance} \> \optname{moremparclearance} \> |
| 1050 |
\optname{moreishmparclearance}\\ |
| 1051 |
\optname{normalmparclearance} \\ |
| 1052 |
\optname{lessmparclearance} \> \optname{lessishmparclearance} \> |
| 1053 |
\optname{leastmparclearance} |
| 1054 |
\end{tabbing} |
| 1055 |
control the size of the gap between the marginal paragraph and the |
| 1056 |
edge of the paper. |
| 1057 |
|
| 1058 |
Be sure you only use one of the main options above at a time. The |
| 1059 |
\optname{touch} options below can be used with any of the main options. |
| 1060 |
|
| 1061 |
The options: |
| 1062 |
\begin{tabbing} |
| 1063 |
\optname{touchmoremparclearance} \= \optname{touchlessmparclearance} \\ |
| 1064 |
\optname{t@uchmoremparclearance} \> \optname{t@uchlessmparclearance} |
| 1065 |
\end{tabbing} |
| 1066 |
give an offset one third of the way towards the next main option. The |
| 1067 |
\optname{t@uch} options can only be used in a class or package file. |
| 1068 |
|
| 1069 |
The options: |
| 1070 |
\begin{tabbing} |
| 1071 |
\optname{lessmaxmparwidth} \= \optname{lessishmaxmparwidth} \= |
| 1072 |
\optname{moreishmaxmparwidth}\kill |
| 1073 |
\optname{mostmaxmparwidth} \> \optname{moremaxmparwidth} \> |
| 1074 |
\optname{moreishmaxmparwidth}\\ |
| 1075 |
\optname{normalmaxmparwidth} \\ |
| 1076 |
\optname{lessmaxmparwidth} \> \optname{lessishmaxmparwidth} \> |
| 1077 |
\optname{leastmaxmparwidth} |
| 1078 |
\end{tabbing} |
| 1079 |
control the maximum size of marginal paragraphs; marginal paragraphs |
| 1080 |
usually stop \comname{RM@mparclearance} away from the edge of the |
| 1081 |
paper, but there is the additional limit that marginal paragraphs |
| 1082 |
cannot be larger than {RM@maxmparwidth}. |
| 1083 |
|
| 1084 |
Be sure you only use one of the main options above at a time. The |
| 1085 |
\optname{touch} options below can be used with any of the main options. |
| 1086 |
|
| 1087 |
The options: |
| 1088 |
\begin{tabbing} |
| 1089 |
\optname{touchmoremaxmparwidth} \= \optname{touchlessmaxmparwidth} \\ |
| 1090 |
\optname{t@uchmoremaxmparwidth} \> \optname{t@uchlessmaxmparwidth} |
| 1091 |
\end{tabbing} |
| 1092 |
give an offset one third of the way towards the next main option. The |
| 1093 |
\optname{t@uch} options can only be used in a class or package file. |
| 1094 |
|
| 1095 |
If you want an unusual layout with a very much larger than usual |
| 1096 |
maximum marginal paragraph width, or a very much larger than usual gap |
| 1097 |
between the marginal paragraph and the edge of the paper, the |
| 1098 |
\optname{largebase} options will double the initial size of these |
| 1099 |
parameters. This means that all the sizes produced by the |
| 1100 |
corresponding options above are doubled. The \optname{normalbase} |
| 1101 |
options give the default size. |
| 1102 |
|
| 1103 |
The additional options: |
| 1104 |
|
| 1105 |
\noindent\begin{tabularx}{\textwidth}{lX} |
| 1106 |
&\\ |
| 1107 |
\optname{normalbasemaxmparwidth} & Normal maximum size marginal |
| 1108 |
paragraphs \\ |
| 1109 |
\optname{largebasemaxmparwidth} & Double sized maximum size marginal |
| 1110 |
paragraphs \\ |
| 1111 |
\optname{normalbasemparclear} & Normal gap between the edge of the paper |
| 1112 |
and the end of marginal paragraphs. \\ |
| 1113 |
\optname{largebasemparclear}& Double sized gap between the edge of the paper |
| 1114 |
and the end of marginal paragraphs. \\ |
| 1115 |
&\\ |
| 1116 |
\end{tabularx} |
| 1117 |
are intended to be used only when the range of sizes |
| 1118 |
given by the conventional options aren't enough; \optname{more} and |
| 1119 |
\optname{touchmore} combine to double the size of any of the marginal |
| 1120 |
paragraph parameters (the precise factor is 2.0394). |
| 1121 |
|
| 1122 |
\subsection{Multiple columns} |
| 1123 |
\label{use:multiplecolumns} |
| 1124 |
|
| 1125 |
There are two things to consider with a multiple column layout: the |
| 1126 |
text columns themselves, and the gap in between. |
| 1127 |
|
| 1128 |
\subsubsection{The width of text columns} |
| 1129 |
|
| 1130 |
If you are producing a layout with more than one column, \rmpage |
| 1131 |
usually needs to know how many columns, because it takes into account |
| 1132 |
the width of each text column, measured against the width of the |
| 1133 |
average character. |
| 1134 |
|
| 1135 |
If you're using \LaTeX's standard \optname{onecolumn} or |
| 1136 |
\optname{twocolumn} options, \rmpage takes note: |
| 1137 |
\begin{tabbing} |
| 1138 |
\optname{onecolumn} \= Default. Produce a layout assuming one text column \\ |
| 1139 |
\optname{twocolumn} \> Produce a layout assuming two text columns |
| 1140 |
\end{tabbing} |
| 1141 |
You must pass these options to the class file by placing them in the |
| 1142 |
optional argument to the \comname{documentclass} command, or your text |
| 1143 |
will not be set in the number of columns you expect. |
| 1144 |
|
| 1145 |
You might be producing a multiple column layout using the |
| 1146 |
\packname{multicol} package. If so, you should use different options |
| 1147 |
passed to \rmpage to tell it how many text columns your document will |
| 1148 |
be set in. The following options---\optname{onecolumnwidth} is the |
| 1149 |
default---tell \rmpage to calculate a layout |
| 1150 |
assuming the text body will be set in the named number of text columns: |
| 1151 |
\par |
| 1152 |
\vspace{\baselineskip} |
| 1153 |
\begin{raggedright} |
| 1154 |
\optname{tencolumnwidth} |
| 1155 |
\optname{ninecolumnwidth} |
| 1156 |
\optname{eightcolumnwidth} |
| 1157 |
\optname{sevencolumnwidth} |
| 1158 |
\optname{sixcolumnwidth} |
| 1159 |
\optname{fivecolumnwidth} |
| 1160 |
\optname{fourcolumnwidth} |
| 1161 |
\optname{threecolumnwidth} |
| 1162 |
\optname{twocolumnwidth} |
| 1163 |
\optname{onecolumnwidth} |
| 1164 |
\end{raggedright} |
| 1165 |
\vspace{\baselineskip} |
| 1166 |
|
| 1167 |
% \begin{tabbing} |
| 1168 |
% \optname{sevencolumnwidth} \= \kill |
| 1169 |
% \optname{tencolumnwidth} \> Produce a layout assuming ten text columns\\ |
| 1170 |
% \optname{ninecolumnwidth} \> Produce a layout assuming nine text |
| 1171 |
% columns\\ |
| 1172 |
% \optname{eightcolumnwidth} \> Produce a layout assuming eight text |
| 1173 |
% columns\\ |
| 1174 |
% \optname{sevencolumnwidth} \> Produce a layout assuming seven text |
| 1175 |
% columns\\ |
| 1176 |
% \optname{sixcolumnwidth} \> Produce a layout assuming six text columns\\ |
| 1177 |
% \optname{fivecolumnwidth} \> Produce a layout assuming five text columns\\ |
| 1178 |
% \optname{fourcolumnwidth} \> Produce a layout assuming four text |
| 1179 |
% columns\\ |
| 1180 |
% \optname{threecolumnwidth} \>Produce a layout assuming three text columns \\ |
| 1181 |
% \optname{twocolumnwidth} \> Produce a layout assuming two text columns\\ |
| 1182 |
% \optname{onecolumnwidth} \> Default. Produce a layout assuming one text column |
| 1183 |
% \end{tabbing} |
| 1184 |
Make sure you only use one of the twelve options above at a time. |
| 1185 |
|
| 1186 |
If you are producing a document with different numbers of columns in |
| 1187 |
different places, try starting out by telling \rmpage that you are |
| 1188 |
using the smallest number of columns in your document. For example, |
| 1189 |
if your document has three columns in some places and four columns in |
| 1190 |
others, pass the \optname{threecolumnwidth} option to \rmpage. If the |
| 1191 |
width needs changing after that, begin by trying the \optname{width} |
| 1192 |
options in section~\ref{use:width} on page~\pageref{use:width}. |
| 1193 |
|
| 1194 |
\subsubsection{The space between columns} |
| 1195 |
|
| 1196 |
The main options: |
| 1197 |
\begin{tabbing} |
| 1198 |
\optname{lessishcolsep} \= \optname{morecolsep} \= |
| 1199 |
\optname{moreishcolsep} \kill |
| 1200 |
\optname{mostcolsep} \> \optname{morecolsep} \> |
| 1201 |
\optname{moreishcolsep} \\ |
| 1202 |
\optname{normalcolsep} \\ |
| 1203 |
\optname{lessishcolsep} \> \optname{lesscolsep} \> \optname{leastcolsep} |
| 1204 |
\end{tabbing} |
| 1205 |
increase or decrease the separation between the columns---they scale |
| 1206 |
the standard \LaTeX\ \comname{columnsep} parameter. The default |
| 1207 |
\optname{normalcolsep} option does nothing---you get \LaTeX's standard |
| 1208 |
column separation. Make sure you only use one of these main options |
| 1209 |
above at a time. |
| 1210 |
|
| 1211 |
The \optname{touch} options below are meant to be used with any of the |
| 1212 |
main options, and increase or decrease the gap between the columns one |
| 1213 |
third of the way towards the next main option. |
| 1214 |
\begin{tabbing} |
| 1215 |
\optname{touchmorecolsep} \= \optname{touchlesscolsep} \\ |
| 1216 |
\optname{t@uchmorecolsep} \> \optname{t@uchlesscolsep}\\ |
| 1217 |
\end{tabbing} |
| 1218 |
|
| 1219 |
If you don't like \LaTeX's standard \comname{columnsep}, the options |
| 1220 |
below calculate a different default value: |
| 1221 |
|
| 1222 |
\noindent |
| 1223 |
\begin{tabularx}{\textwidth}{lX} |
| 1224 |
&\\ |
| 1225 |
\optname{adaptivecolumnsep} & Calculates a normal \comname{columnsep} |
| 1226 |
which is 2.3 times the average character width of the selected |
| 1227 |
fount---a 0.1\units{pt} increase for 10\units{pt} Computer Modern |
| 1228 |
Roman; quite a bit different for other founts.\\ |
| 1229 |
\optname{noadaptivecolumnsep} & Default: gives you the standard |
| 1230 |
\comname{columnsep}, which can be changed by any of the |
| 1231 |
\optname{colsep} options above\\ |
| 1232 |
&\\ |
| 1233 |
\end{tabularx} |
| 1234 |
|
| 1235 |
The \comname{columnsep} produced by the \optname{adaptivecolumnsep} |
| 1236 |
option can be scaled by any of the \optname{colsep} options. |
| 1237 |
|
| 1238 |
|
| 1239 |
\subsection{Paper size} |
| 1240 |
\label{use:papersize} |
| 1241 |
|
| 1242 |
\rmpage knows about three types of paper size options: main size, long |
| 1243 |
size, and orientation. |
| 1244 |
|
| 1245 |
\subsubsection{Orientation---landscape or portrait} |
| 1246 |
\label{use:orientation} |
| 1247 |
|
| 1248 |
There are two options to select the paper orientation: |
| 1249 |
\begin{tabbing} |
| 1250 |
\optname{landscape} \= Ensures that the longest side is horizontal\\ |
| 1251 |
\optname{portrait} \> Default. Ensures that the shortest side is |
| 1252 |
horizontal |
| 1253 |
\end{tabbing} |
| 1254 |
Make sure you only use one of these at a time. |
| 1255 |
|
| 1256 |
\subsubsection{Long sizes} |
| 1257 |
\label{use:longpapersizes} |
| 1258 |
|
| 1259 |
A long paper size is based on a larger paper size; it formed by |
| 1260 |
cutting off the specified fraction of a parent paper size, divided |
| 1261 |
along the longer edge. For example, the common long size 2/3~A4 is |
| 1262 |
$210\units{mm} \times 2/3 297\units{mm} = 210\units{mm} \times |
| 1263 |
198\units{mm}$. |
| 1264 |
|
| 1265 |
These sizes are only formally defined for ISO A and B sizes. \rmpage |
| 1266 |
will make any main paper size into a long size with one of these |
| 1267 |
options: |
| 1268 |
\begin{tabbing} |
| 1269 |
notlongpaper \= Default. Does nothing.\\ |
| 1270 |
7/8longpaper \> Multiply the parent paper size length by 7/8 \\ |
| 1271 |
3/4longpaper \> Multiply the parent paper size length by 3/4 \\ |
| 1272 |
2/3longpaper \> Multiply the parent paper size length by 2/3 \\ |
| 1273 |
5/8longpaper \> Multiply the parent paper size length by 5/8 \\ |
| 1274 |
1/2longpaper \> Multiply the parent paper size length by 1/2 \\ |
| 1275 |
3/8longpaper \> Multiply the parent paper size length by 3/8 \\ |
| 1276 |
1/3longpaper \> Multiply the parent paper size length by 1/3 \\ |
| 1277 |
1/4longpaper \> Multiply the parent paper size length by 1/4 \\ |
| 1278 |
1/8longpaper \> Multiply the parent paper size length by 1/8 |
| 1279 |
\end{tabbing} |
| 1280 |
Make sure you only use one of these options at a time. They must be |
| 1281 |
used with a main paper size option; the \optname{letterpaper} main |
| 1282 |
paper size option is used by default. |
| 1283 |
|
| 1284 |
The resulting paper size is made \optname{portrait} by default, or |
| 1285 |
\optname{landscape} if you've used that option, and printing limits |
| 1286 |
are calculated based on the assumption that you will be printing on |
| 1287 |
the parent paper size. That is, \rmpage assumes that if you've asked |
| 1288 |
for 2/3 long A4, you'll be printing on the top 2/3 of a sheet of A4, |
| 1289 |
not a cut sheet of 2/3~A4. Or that if you've asked for 1/4 long A4, |
| 1290 |
you'll be printing 4 pages on one sheet of A4. |
| 1291 |
|
| 1292 |
See the chapters~\ref{chap:htw} and~\ref{chap:config} to find out how |
| 1293 |
and why this is done, and how to change these assumptions. |
| 1294 |
|
| 1295 |
\subsubsection{Main sizes} |
| 1296 |
\label{use:mainpapersizes} |
| 1297 |
|
| 1298 |
There's a lot more paper sizes available now; have a look at |
| 1299 |
sections~\ref{optrmp:paper-sizes} and~\ref{optcfg:papersizes} for the |
| 1300 |
full list. Any of the main paper sizes can be turned into a long paper |
| 1301 |
size (see the section on long paper sizes above), and any paper size |
| 1302 |
can be made landscape or portrait. |
| 1303 |
|
| 1304 |
The available paper sizes include: |
| 1305 |
\begin{tabbing} |
| 1306 |
\optname{dlpaper} and \optname{c7/6paper} \= \kill |
| 1307 |
\optname{letterpaper}, \optname{executivepaper}, \\ |
| 1308 |
and \optname{legalpaper}. \> US paper sizes \\ |
| 1309 |
\optname{a0paper} to \optname{a10paper} \> ISO stationery sizes \\ |
| 1310 |
\optname{b0paper} to \optname{b10paper} \> ISO poster sizes \\ |
| 1311 |
\optname{c0paper} to \optname{c7paper} \> ISO envelopes \\ |
| 1312 |
\optname{dlpaper} and \optname{c7/6paper} \> ISO envelopes \\ |
| 1313 |
\optname{no10envelopepaper} \> US envelopes \\ |
| 1314 |
\optname{foolscapefoliopaper} \> obsolete stationery \\ |
| 1315 |
\end{tabbing} |
| 1316 |
There's over 70 sizes in all---to find out how paper sizes are |
| 1317 |
declared to \rmpage, and how to add new one, see chapters~\ref{chap:htw} |
| 1318 |
and~\ref{chap:config}. |
| 1319 |
|
| 1320 |
\subsection{Founts} |
| 1321 |
\label{use:founts} |
| 1322 |
|
| 1323 |
The standard \LaTeX\ classes calculate a \comname{textwidth} on the |
| 1324 |
assumption that you will be using Computer Modern Roman as the main |
| 1325 |
body text fount. But the legibility of a line of text depends in |
| 1326 |
part on the the width of a line measured in characters, and |
| 1327 |
different founts have a different average character widths, so it's |
| 1328 |
sensible to calculate a different \comname{textwidth} if you're using |
| 1329 |
a different main body text fount. |
| 1330 |
|
| 1331 |
\rmpage will calculate an appropriate \comname{textwidth} if you use |
| 1332 |
one of the options below to tell it what you are using as your main |
| 1333 |
body text fount. |
| 1334 |
\begin{tabbing} |
| 1335 |
\optname{lucasualwidth} \= \kill |
| 1336 |
\optname{avantwidth} \> \packname{PSFNSS} Adobe Avant Garde. \\ |
| 1337 |
\optname{bookmanwidth} \> \packname{PSFNSS} Adobe Bookman. \\ |
| 1338 |
\optname{chancerywidth} \> \packname{PSFNSS} Adobe Zapf Chancery.\\ |
| 1339 |
\optname{cmrwidth} \> Default. Computer Modern Roman. \\ |
| 1340 |
\optname{concretewidth} \> Donald Knuth's Concrete Roman. \\ |
| 1341 |
\optname{courierwidth} \> \packname{PSFNSS} Adobe Courier. \\ |
| 1342 |
\optname{helvetwidth} \> \packname{PSFNSS} Adobe Helvetica. \\ |
| 1343 |
\optname{lucasualwidth} \> \packname{bh} Lucida casual. \\ |
| 1344 |
\optname{newcentwidth} \> \packname{PSFNSS} Adobe New Century Schoolbook. \\ |
| 1345 |
\optname{palatinowidth} \> \packname{PSFNSS} Adobe Palatino. \\ |
| 1346 |
\optname{timeswidth} \> \packname{PSFNSS} Adobe Times. \\ |
| 1347 |
\optname{utopiawidth} \> \packname{PSFNSS} Adobe Utopia. \\ |
| 1348 |
\optname{thisfountwidth} \> Bases \comname{textwidth} on the |
| 1349 |
currently selected fount. |
| 1350 |
\end{tabbing} |
| 1351 |
The \optname{thisfountwidth} is useful if you are using a fount not |
| 1352 |
covered by the standard options: it works by measuring the average |
| 1353 |
character width of the fount that was selected when \rmpage was |
| 1354 |
loaded. For this to work properly, you must ensure that the main body |
| 1355 |
text fount has been selected before loading \rmpage. For example, if |
| 1356 |
you are loading Adobe Baskerville in your preamble, you could ask |
| 1357 |
\rmpage to set an appropriate \comname{textwidth} like this: |
| 1358 |
\begin{verbatim} |
| 1359 |
\documentclass[thisfountwidth]{article} |
| 1360 |
\renewcommand{\rmdefault}{pgm} |
| 1361 |
\rmfamily |
| 1362 |
\usepackage{rmpage} |
| 1363 |
\begin{document} |
| 1364 |
... |
| 1365 |
\end{verbatim} |
| 1366 |
If you haven't told \rmpage to shut up with the \optname{yorkshire} |
| 1367 |
option, it will tell you which fount it's using as the basis for |
| 1368 |
\comname{textwidth}---this is useful for people like me who get |
| 1369 |
horribly confused by the details of fount selection. |
| 1370 |
|
| 1371 |
If you want to use one of the \packname{PSNFSS} packages to load a |
| 1372 |
fount as well as set a \comname{textwidth} based on this fount, you |
| 1373 |
can use one of these options: |
| 1374 |
\begin{tabbing} |
| 1375 |
\optname{loadchancery} \= \kill |
| 1376 |
\optname{loadavant} \> Requires the \packname{avant} package. \\ |
| 1377 |
\optname{loadbookman} \> Requires the \packname{bookman} package.\\ |
| 1378 |
\optname{loadchancery} \> Requires the \packname{chancery} package.\\ |
| 1379 |
\optname{loadhelvet} \> Requires the \packname{helvet} package.\\ |
| 1380 |
\optname{loadnewcent} \> Requires the \packname{newcent} package.\\ |
| 1381 |
\optname{loadpalatino} \> Requires the \packname{palatino} package.\\ |
| 1382 |
\optname{loadtimes} \> Requires the \packname{times} package.\\ |
| 1383 |
\optname{loadutopia} \> Requires the \packname{utopia} package. |
| 1384 |
\end{tabbing} |
| 1385 |
Each of these \optname{loadfount} options does three things: |
| 1386 |
\begin{enumerate} |
| 1387 |
\item Loads the named package |
| 1388 |
\item Calculates a \comname{textwidth} based on the named fount |
| 1389 |
\item Sets the typesetting parameters to looser values. |
| 1390 |
\end{enumerate} |
| 1391 |
|
| 1392 |
The typesetting parameters are only loosened a little. The change |
| 1393 |
does not affect the \LaTeX{} commands \comname{fussy} and |
| 1394 |
\comname{sloppy}, so using the \comname{onecolumn} and |
| 1395 |
\comname{twocolumn} commands will over-ride this change. You can |
| 1396 |
duplicate the effect of this loosening with the \comname{sloppiness} |
| 1397 |
command---see section~\ref{use:tightness} on |
| 1398 |
page~\pageref{use:tightness} for more details. |
| 1399 |
|
| 1400 |
If you've asked for a \optname{twocolumn} layout, you get typesetting |
| 1401 |
parameters close to the standard \LaTeX\ sloppy values, unless you |
| 1402 |
over-ride this looseness. Because the \packname{multicol} package |
| 1403 |
makes its own arrangements, you don't get the sloppy values if you |
| 1404 |
asked for \optname{twocolumnwidth} to \optname{tencolumnwidth}; |
| 1405 |
\rmpage sets the typesetting parameters as if you were using a one |
| 1406 |
column layout. Please email me if you have any thoughts on this |
| 1407 |
matter. |
| 1408 |
|
| 1409 |
The three \optname{loadfount} options below are a little different to |
| 1410 |
the \packname{PSNFSS} fount loading options above: |
| 1411 |
|
| 1412 |
\noindent |
| 1413 |
\begin{tabularx}{\textwidth}{lX} |
| 1414 |
% |
| 1415 |
&\\ |
| 1416 |
% |
| 1417 |
\optname{loadconcrete} & Requires the \packname{beton} package; |
| 1418 |
calculates \comname{textheight} based on \packname{beton}'s modified |
| 1419 |
\comname{baselineskip}; sets \comname{textwidth} for Concrete Roman; |
| 1420 |
doesn't loosen typesetting. See section~\ref{use:beton} on |
| 1421 |
page~\pageref{use:beton} for more on \packname{beton}.\\ |
| 1422 |
% |
| 1423 |
\optname{loadcourier} & Makes the default roman fount Courier, sets an |
| 1424 |
appropriate \comname{textwidth}, and asks for \optname{loose} |
| 1425 |
typesetting. I think this is ugly and crude: you might be better off |
| 1426 |
using the \packname{times} package and \comname{ttfamily}\\ |
| 1427 |
% |
| 1428 |
\optname{loadlucasual} & Requires the \packname{lucasual} package; |
| 1429 |
sets loose typesetting and a \comname{textwidth} to match Lucida |
| 1430 |
Casual. Needs the \packname{lucasual} files; |
| 1431 |
available from CTAN at \filename{fonts/psfonts/bh/lucasual/}. \\ |
| 1432 |
% |
| 1433 |
&\\ |
| 1434 |
\end{tabularx} |
| 1435 |
|
| 1436 |
|
| 1437 |
\subsection{Printers} |
| 1438 |
\label{use:printers} |
| 1439 |
|
| 1440 |
It can be useful to let \rmpage know about your intended output |
| 1441 |
device, because it can ensure that the layout it produces will fit |
| 1442 |
inside the printable region of the paper. At the moment, there |
| 1443 |
aren't very many printer options that match real printers. As I get |
| 1444 |
more information, I shall add more real printer options. |
| 1445 |
|
| 1446 |
You can add an option for your own printer, or change the way your |
| 1447 |
\rmpage installation set non-printing margins for your printer---the |
| 1448 |
details are described in section~\ref{cfg:printertype} on |
| 1449 |
page~\pageref{cfg:printertype}. |
| 1450 |
|
| 1451 |
The available printer options that I'l admit to here are: |
| 1452 |
\begin{tabbing} |
| 1453 |
\optname{pessimisticprinter} \= \kill |
| 1454 |
\optname{fullbleedprinter} \> Prints right to the edge of the paper\\ |
| 1455 |
\optname{generalprinter} \> This should be fine for anyone\\ |
| 1456 |
\optname{optimisticprinter} \> \\ |
| 1457 |
\optname{pessimisticprinter} \> Uses the largest non-printing margins |
| 1458 |
I've found\\ |
| 1459 |
\optname{dw500printer} \> Any HP 500 series inkjet\\ |
| 1460 |
\optname{dw600printer} \> Any HP 600 series inkjet\\ |
| 1461 |
\end{tabbing} |
| 1462 |
|
| 1463 |
\subsection{Date format} |
| 1464 |
\label{use:dateformat} |
| 1465 |
|
| 1466 |
You can change the way the \comname{today} command prints the date |
| 1467 |
with the options below: |
| 1468 |
\begin{tabbing} |
| 1469 |
\optname{ukdate} \= \optname{othernicedate} \= \kill |
| 1470 |
\optname{ukdate} \> \optname{nicedate} \> 5th November 1693\\ |
| 1471 |
\optname{usdate} \> \optname{othernicedate} \> Default: July 4, 1776 |
| 1472 |
\end{tabbing} |
| 1473 |
Only the \optname{ukdate} and \optname{nicedate} options make any |
| 1474 |
changes: the \optname{usdate} and \optname{othernicedate} options do |
| 1475 |
nothing. |
| 1476 |
|
| 1477 |
The options names happened like this: I once wrote a \LaTeX\ style |
| 1478 |
file called \packname{nicedate}, which produced the same effect as |
| 1479 |
\rmpage's \optname{nicedate} option---I like dates printed like that, |
| 1480 |
you see. When I included the \packname{nicedate} code in \rmpage, it |
| 1481 |
made sense to add a complementary option; hence \optname{othernicedate}. |
| 1482 |
|
| 1483 |
\optname{othernicedate} seems preferable to \optname{nastydate}, but |
| 1484 |
it's not terribly memorable, so I created the synonyms |
| 1485 |
\optname{ukdate} and \optname{usdate}. I'm not keen on these option |
| 1486 |
names, but I can at least remember them. If you can think of |
| 1487 |
something different, please let me know. |
| 1488 |
|
| 1489 |
\subsection{The \packname{beton} package} |
| 1490 |
\label{use:beton} |
| 1491 |
|
| 1492 |
The easy way of using Frank Jensen's \packname{beton} package---to use |
| 1493 |
Donald Knuth's Concrete Roman founts---with \rmpage is to pass the |
| 1494 |
\optname{loadconcrete} option to \rmpage. This will load the |
| 1495 |
\packname{beton} package, and set vertical and horizontal layout |
| 1496 |
parameters for the Concrete Roman founts: |
| 1497 |
\begin{verbatim} |
| 1498 |
\documentclass[loadconcrete,concrete-math]{article} |
| 1499 |
\usepackage{rmpage} |
| 1500 |
\end{verbatim} |
| 1501 |
The example above tells \rmpage to load the concrete founts using the |
| 1502 |
\packname{beton} package. All global options are passed to all |
| 1503 |
packages, so \packname{beton} and \rmpage are passed |
| 1504 |
\optname{loadconcrete} and \optname{concrete-math}. \rmpage ignores |
| 1505 |
\optname{concrete-math} and acts on \optname{loadconcrete}; while |
| 1506 |
\packname{beton} ignores \optname{loadconcrete} and acts on |
| 1507 |
\optname{concrete-math}. |
| 1508 |
|
| 1509 |
Because the \packname{beton} package changes \comname{baselineskip}, |
| 1510 |
but the changes don't take effect until the \verb|begin{document}| |
| 1511 |
command has been executed, and \rmpage needs to know about the value |
| 1512 |
of \comname{baselineskip} when it's setting \comname{textheight}, the |
| 1513 |
\packname{beton} package needs special support in \rmpage. |
| 1514 |
Everything's taken care of if you use the \optname{loadconcrete} |
| 1515 |
option. If you want to load \packname{beton} with a |
| 1516 |
\comname{usepackage} command, you should do this: |
| 1517 |
\begin{itemize} |
| 1518 |
\item Load \packname{beton} before \rmpage |
| 1519 |
\item Pass the \optname{beton} option to \rmpage |
| 1520 |
\item Pass the \optname{concretewidth} option to \rmpage---see |
| 1521 |
section~\ref{use:founts} on page~\pageref{use:founts}. |
| 1522 |
\end{itemize} |
| 1523 |
Like this, for example: |
| 1524 |
\begin{verbatim} |
| 1525 |
\documentclass[beton,concretewidth]{report} |
| 1526 |
\usepackage{beton} |
| 1527 |
\usepackage{rmpage} |
| 1528 |
\begin{document} |
| 1529 |
... |
| 1530 |
\end{verbatim} |
| 1531 |
There's no need to pass the \optname{beton} option to \rmpage if |
| 1532 |
you're also passing the \optname{stdbaselineskip} option to |
| 1533 |
\packname{beton}, but it will do no harm. |
| 1534 |
|
| 1535 |
\rmpage needs code that is in \packname{beton}~v1.3, 5th March 1995, |
| 1536 |
to get things right. This version of \packname{beton} was current in |
| 1537 |
August 1996. I've made \rmpage check the definition of the |
| 1538 |
\packname{beton} command it uses, but if you have any doubts that |
| 1539 |
\rmpage is doing its job properly, you can try this: |
| 1540 |
\begin{verbatim} |
| 1541 |
\documentclass[beton,chatty]{article} |
| 1542 |
\usepackage{beton} |
| 1543 |
\usepackage{rmpage} |
| 1544 |
\begin{document} |
| 1545 |
\typeout{\the\baselineskip\space according to beton} |
| 1546 |
\end{document} |
| 1547 |
\end{verbatim} |
| 1548 |
Look through the console output for the lines that look like this |
| 1549 |
(the numbers will vary depending on paper size etc): |
| 1550 |
\begin{verbatim} |
| 1551 |
\textheight is: |
| 1552 |
48 x 13.0pt + 10.0pt = 634.0pt |
| 1553 |
\end{verbatim} |
| 1554 |
This is a report of the number of lines in the text body ($48+1=49$ in |
| 1555 |
this case), and how the final \comname{textheight} is arrived at. The |
| 1556 |
second number---13\units{pt} in this case---is \comname{baselineskip} |
| 1557 |
as seen by \rmpage. If this number is the same as the |
| 1558 |
\comname{baselineskip} according to \packname{beton}---as reported on |
| 1559 |
the console---everything's probably okay. (The last term in the sum |
| 1560 |
above is \comname{topskip}). |
| 1561 |
|
| 1562 |
\subsection{Typesetting parameters} |
| 1563 |
\label{use:tightness} |
| 1564 |
|
| 1565 |
\LaTeX's \comname{sloppy} command tells \TeX\ to be less fussy about |
| 1566 |
linebreaking. It's sometimes useful to be able to tell \TeX\ to be |
| 1567 |
less fussy than normal, but not as sloppy as \comname{sloppy}. A good |
| 1568 |
example is typesetting with founts installed by Alan Jeffries's |
| 1569 |
\packname{fontInst} package----for example, the founts in the |
| 1570 |
\packname{PSNFSS} bundle of packages. Because these founts have a |
| 1571 |
tighter inter-word space to Computer Modern Roman, Alan Jeffries |
| 1572 |
recommends slightly looser typesetting parameters to usual, but not as |
| 1573 |
loose as \comname{sloppy}---the values were reported by Sebastian |
| 1574 |
Rahtz in his `Notes on setup of PostScript fonts for \LaTeX2', 14th |
| 1575 |
August 1994. Oh dear: but Rahtz reports in `\filename{PSNFSS2e.tex}' |
| 1576 |
(05/11/96) that \packname{fontinst} now produces founts with looser |
| 1577 |
inter-word spacing, and suggests that the extra looseness is no longer |
| 1578 |
required. I reckon a little extra looseness helps (the founts do seem |
| 1579 |
to be tighter than the computer modern family), so the |
| 1580 |
\optname{loadPSfount} options have been changed to use the |
| 1581 |
\optname{looseish} settings normally, or the \optname{sloppyish} |
| 1582 |
settings if you've asked for two columns. |
| 1583 |
|
| 1584 |
(What \packname{fontInst} mainly does is make \filename{vf}, |
| 1585 |
\filename{tfm}, \filename{fd}, and \filename{sty} files from |
| 1586 |
\filename{afm} files, so you can use with \LaTeX\ founts which haven't |
| 1587 |
been created with {\sffamily\scshape Metafont}. It's available from |
| 1588 |
CTAN.) |
| 1589 |
|
| 1590 |
\rmpage has an option that selects similar typesetting parameters, and |
| 1591 |
variants: two fussier and two sloppier. Each option can in effect be |
| 1592 |
selected at any point in your document, using the \comname{sloppiness} |
| 1593 |
command as shown. |
| 1594 |
\begin{tabbing} |
| 1595 |
\optname{looseish} \= \kill |
| 1596 |
\optname{tight} \> Default. Standard \LaTeX\ \comname{fussy} settings. |\sloppiness{0}|\\ |
| 1597 |
\optname{looseish} \> |\sloppiness{1}| \\ |
| 1598 |
\optname{loose} \> Similar to Jeffries's suggestion |\sloppiness{2}| \\ |
| 1599 |
\optname{looser} \> |\sloppiness{3}|\\ |
| 1600 |
\optname{loosest} \> |\sloppiness{4}|\\ |
| 1601 |
\optname{sloppyish} \> For two columns |\sloppiness{5}|\\ |
| 1602 |
\end{tabbing} |
| 1603 |
The default changes to \optname{loose} if you have use a |
| 1604 |
\optname{loadfount} option which loads a \packname{FontInst} fount. |
| 1605 |
See section~\ref{use:founts} on page~\pageref{use:founts} for more |
| 1606 |
information. |
| 1607 |
|
| 1608 |
Note that \sloppiness{0} is \emph{not} equivalent to \fussy; because |
| 1609 |
standard \LaTeX's \comname{sloppy} and \comname{fussy} commands |
| 1610 |
change fewer parameters to \rmpage's \comname{sloppiness} commands, |
| 1611 |
the \comname{fussy} command won't give you fussy typsetting if used |
| 1612 |
after one of \rmpage's typesetting commands or options. |
| 1613 |
|
| 1614 |
|
| 1615 |
\chapter{Old Using \rmpage} |
| 1616 |
|
| 1617 |
|
| 1618 |
|
| 1619 |
|
| 1620 |
|
| 1621 |
\section{Some options} |
| 1622 |
|
| 1623 |
\rmpage is more useful when you start using options: there's quite a |
| 1624 |
lot of them, grouped in fairly consistently named sets. For example, |
| 1625 |
you can select \rmpage's normal \comname{textwidth} by saying |
| 1626 |
\optname{normalwidth}. If you want a slightly larger |
| 1627 |
\comname{textwidth}, use the \optname{widish} option instead. The |
| 1628 |
\optname{wide}, \optname{wider}, and \optname{widest} options will |
| 1629 |
give you a progressively wider \comname{textwidth}. On the other |
| 1630 |
hand, you can use the \optname{narrowish} option to get a slightly |
| 1631 |
narrower \comname{textwidth} to standard, and the |
| 1632 |
\optname{narrow},\optname{narrower}, and \optname{narrowest} options |
| 1633 |
do exactly what you might expect. |
| 1634 |
|
| 1635 |
When you are dealing with a set of options like the width options |
| 1636 |
above (all 13 of them; there's four odd ones I've not mentioned), be |
| 1637 |
sure you only use one at a time. \rmpage doesn't check, and you can |
| 1638 |
get unexpected results if there's more than one option used from each |
| 1639 |
set. |
| 1640 |
|
| 1641 |
\begin{description}\shorty |
| 1642 |
|
| 1643 |
\item[Text width] |
| 1644 |
% |
| 1645 |
\optname{narrowest}, \optname{narrower}, |
| 1646 |
\optname{narrow}, \optname{narrowish}, \optname{normalwidth}, |
| 1647 |
\optname{wideish}, \optname{wide}, \optname{wider}, and |
| 1648 |
\optname{widest} |
| 1649 |
% |
| 1650 |
select a progressively larger \comname{textwidth}. |
| 1651 |
% |
| 1652 |
\optname{fullwidth} gives you the widest \comname{textwidth} that'll |
| 1653 |
fit inside the printing region; \optname{stdwidth} selects the same |
| 1654 |
width as you would get with the standard classes; |
| 1655 |
\optname{oneinchmargins} selects a \comname{textwidth} that gives you |
| 1656 |
an average margin size of one inch---the inside and outside margins |
| 1657 |
add up to two inches; \optname{halfinchmargins} is similar, but the |
| 1658 |
inside and outside margins add up to one inch rather than two. |
| 1659 |
|
| 1660 |
\rmpage looks out for the \optname{onecolumn} and \optname{twocolumn} |
| 1661 |
options, and calculates a possibly larger \comname{textwidth} if you |
| 1662 |
say \optname{twocolumn}. The class file is responsible for telling |
| 1663 |
\TeX\ to set text in two columns, so these options shouldn't be passed |
| 1664 |
to \rmpage only. |
| 1665 |
|
| 1666 |
If you're using the \packname{multicol} package, you can pass to |
| 1667 |
\rmpage the options: \optname{twocolumnwidth}, |
| 1668 |
\optname{threecolumnwidth}, \optname{fourcolumnwidth}, and so on up to |
| 1669 |
\optname{tencolumnwidth}. This will give you a \comname{textwidth} |
| 1670 |
based on that number of columns. |
| 1671 |
|
| 1672 |
\item[Text height] |
| 1673 |
% |
| 1674 |
\optname{shortest}, \optname{shorter}, \optname{short}, |
| 1675 |
\optname{shortish}, \optname{normallength}, \optname{longish}, |
| 1676 |
\optname{long}, \optname{longer}, \optname{longest} select a |
| 1677 |
progressively longer \comname{textheight}. |
| 1678 |
% |
| 1679 |
\optname{fulllength} gives you the longest \comname{textheight} that |
| 1680 |
will fit inside the printing region; \optname{stdlength} gives you |
| 1681 |
the \comname{textheight} you'd get with the standard class. |
| 1682 |
|
| 1683 |
\item[Headers and footers] |
| 1684 |
% |
| 1685 |
The \optname{headers} and \optname{footers} option leave space for |
| 1686 |
headers and footers respectively; \optname{noheaders} and |
| 1687 |
\optname{nofooters} give you page layout designed for no headers or |
| 1688 |
no footers, respectively. |
| 1689 |
|
| 1690 |
\optname{leastheadsep}, \optname{lessheadsep}, |
| 1691 |
\optname{lessishheadsep}, \optname{normalheadsep}, |
| 1692 |
\optname{moreishheadsep}, \optname{moreheadsep}, and |
| 1693 |
\optname{mostheadsep} enlarge and shrink the gap between the top of |
| 1694 |
the text body and the bottom of the header; they work by scaling the |
| 1695 |
standard value---\optname{normalheadsep} does nothing. |
| 1696 |
|
| 1697 |
\optname{leastfootskip}, \optname{lessfootskip}, |
| 1698 |
\optname{lessishfootskip}, \optname{normalfootskip}, |
| 1699 |
\optname{moreishfootskip}, \optname{morefootskip}, and |
| 1700 |
\optname{mostfootskip} enlarge and shrink the gap between the bottom of |
| 1701 |
the text body and the bottom of the footer; they work by scaling the |
| 1702 |
standard value---\optname{normalfootskip} does nothing. |
| 1703 |
|
| 1704 |
\item[Positioning the text body horizontally] |
| 1705 |
% |
| 1706 |
\rmpage looks out for the standard \LaTeX\ class options: |
| 1707 |
\optname{twoside} and \optname{oneside}. \rmpage will produce a |
| 1708 |
layout either giving you a text body intended for printing on one side |
| 1709 |
of the paper, or alternating with odd pages on a right-hand page, and |
| 1710 |
even pages on a left-hand page. |
| 1711 |
|
| 1712 |
The \optname{centre} (or \optname{center}) option places the text body |
| 1713 |
on the page with equal margins to the left and right. The |
| 1714 |
\optname{notcentre} (or \optname{notcenter}) option places the text |
| 1715 |
body with possibly unequal margins to the left and right. |
| 1716 |
|
| 1717 |
If you've asked for \optname{notcentre}, you will find that the larger |
| 1718 |
margin is on the inside (intended for ring-binding). This effect is |
| 1719 |
produced with the \optname{notstdmargins} option. The |
| 1720 |
\optname{stdmargins} options reverses this, so the larger margin is on |
| 1721 |
the outside (just like the standard classes). |
| 1722 |
|
| 1723 |
\optname{leastoffset}, \optname{lessoffset}, |
| 1724 |
\optname{lessishoffset}, \optname{normaloffset}, |
| 1725 |
\optname{moreishoffset}, \optname{moreoffset}, and |
| 1726 |
\optname{mostoffset} enlarge and shrink the difference between the |
| 1727 |
larger and smaller margin. \optname{leastoffset} gives you |
| 1728 |
\optname{centre}d printing; there are subtle differences between |
| 1729 |
\optname{leastoffset} and \optname{centre}. |
| 1730 |
|
| 1731 |
\item[Positioning the text body vertically] |
| 1732 |
% |
| 1733 |
\optname{lowest}, \optname{lower}, \optname{low}, \optname{lowish}, |
| 1734 |
\optname{normalaltitude}, \optname{highish}, \optname{high}, |
| 1735 |
\optname{higher}, and \optname{highest}, shift the text body up and |
| 1736 |
down the page---they are referred to as the altitude option set in |
| 1737 |
this document (I know, but do you have any better ideas?) |
| 1738 |
|
| 1739 |
\item[Paper and printers] |
| 1740 |
% |
| 1741 |
\optname{landscape} and \optname{portrait} force that orientation, |
| 1742 |
whatever the size paper. |
| 1743 |
|
| 1744 |
There's lots of new paper sizes: see section~\ref{gen:papersizes} on |
| 1745 |
page~\pageref{gen:papersizes}. You can ask for |
| 1746 |
\optname{7/8longpaper}, \optname{3/4longpaper}, |
| 1747 |
\optname{5/8longpaper}, and so on down to \optname{1/8longpaper}. |
| 1748 |
This calculates what's called a long paper size, based on the main |
| 1749 |
paper size selected, by dividing the main paper size into the |
| 1750 |
specified fraction along the long edge. For example, A4 is |
| 1751 |
$210\units{mm} \times 297\units{mm}$; 1/3 long A4 is $210\units{mm} |
| 1752 |
\times 99\units{mm}$. |
| 1753 |
|
| 1754 |
\optname{lj4printer} tells \rmpage you're using a Hewlett-Packard |
| 1755 |
LaserJet 4 printer, and it'll calculate your page layout using |
| 1756 |
appropriate non-printing margins. There are similar options for |
| 1757 |
several other printers; you can add your own printer if it's not |
| 1758 |
already here, and set any to be your default. For more details, see |
| 1759 |
section~\ref{optcfg:printers} on page~\pageref{optcfg:printers}. |
| 1760 |
|
| 1761 |
\end{description} |
| 1762 |
|
| 1763 |
\section{Some other options} |
| 1764 |
|
| 1765 |
|
| 1766 |
Several option sets have corresponding \optname{touch} options. These |
| 1767 |
options increase or decrease whatever the parameter is by an amount in |
| 1768 |
between the current main option and the next one. Generally, the |
| 1769 |
sequence of values is a smooth geometrical one. |
| 1770 |
|
| 1771 |
For example, passing \optname{wide,} \optname{touchwider} to \rmpage |
| 1772 |
gives you a \comname{textwidth} a third of the way up from \optname{wide} |
| 1773 |
to \optname{wider}. \optname{wider,} \optname{touchnarrower} gives |
| 1774 |
you a \comname{textwidth} a third of the way down from |
| 1775 |
\optname{wider} to \optname{wide}. |
| 1776 |
|
| 1777 |
A touch option can be used with a main option (any option which doesn't |
| 1778 |
have \optname{touch} or \optname{t@uch} in the name is a main option; |
| 1779 |
not all main options have \optname{touch} options). The |
| 1780 |
\optname{t@uch} options should only be used in class and package |
| 1781 |
files. They have exactly the same effect as a \optname{touch} |
| 1782 |
option, so saying \optname{wider,} \optname{touchnarrrower,} |
| 1783 |
\optname{t@uchnarrower} gives you the same width as \optname{wider,} |
| 1784 |
\optname{touchwider}. |
| 1785 |
|
| 1786 |
\begin{description}\shorty |
| 1787 |
|
| 1788 |
\item[Text width setting] |
| 1789 |
% |
| 1790 |
\optname{paperwidthset} makes \rmpage set the \comname{textwidth} going by |
| 1791 |
paper-based \comname{textwidth} only; \optname{characterwidthset} goes |
| 1792 |
by character-based \comname{textwith} only, but still pays attention |
| 1793 |
to the printing limits specified by the paper size and printer |
| 1794 |
selected. \optname{bothwidthset} is the default setting. |
| 1795 |
|
| 1796 |
\optname{paperwidthset} was created so I could produce a layout for a |
| 1797 |
time-table, fitting on A4 landscape paper. Paying attention to the |
| 1798 |
number of characters in a line is inappropriate for that job, hence |
| 1799 |
the option. The other two options are the natural complements. |
| 1800 |
|
| 1801 |
\end{description} |
| 1802 |
|
| 1803 |
|
| 1804 |
The \optname{touchlonger}, \optname{touchshorter}, |
| 1805 |
\optname{touchwider}, and \optname{touchnarrower} options increase or |
| 1806 |
decrease \comname{textheight} or \comname{textwidth} one third of the |
| 1807 |
way (in a geometrical sequence) towards the next main increment. That |
| 1808 |
is, if you've said \optname{wide} and \optname{touchwider}, the width |
| 1809 |
you get will be one third of the way towards the width given by |
| 1810 |
\optname{wider}. |
| 1811 |
|
| 1812 |
|
| 1813 |
\section{Layout details} |
| 1814 |
\label{gen:layout} |
| 1815 |
|
| 1816 |
The standard \LaTeX\ package, \packname{layout}, displays all the page |
| 1817 |
layout parameters and their values. This document loads the package |
| 1818 |
and uses the \comname{layout} command to display the values. You can |
| 1819 |
see the results of the \comname{layout} command in figure~\ref{fig:layout}. |
| 1820 |
|
| 1821 |
\begin{figure}[h!t] |
| 1822 |
\noindent |
| 1823 |
% dirty trick to fool \layout into producing a diagram for one page |
| 1824 |
% only, that can float where it needs to. |
| 1825 |
\begin{parbox}{\textwidth}\makeatletter |
| 1826 |
{ |
| 1827 |
\relax |
| 1828 |
\makeatletter |
| 1829 |
\if@twoside\relax |
| 1830 |
\@twosidefalse |
| 1831 |
\typeout{twoside fudge} |
| 1832 |
\layout |
| 1833 |
\makeatletter |
| 1834 |
\@twosidetrue |
| 1835 |
\makeatother |
| 1836 |
\else |
| 1837 |
\typeout{No twoside fudge} |
| 1838 |
\layout |
| 1839 |
\fi |
| 1840 |
}\makeatother |
| 1841 |
\end{parbox} |
| 1842 |
{\footnotesize |
| 1843 |
\vspace*{8\baselineskip}} |
| 1844 |
\caption{The output of the \comname{layout} command \label{fig:layout}} |
| 1845 |
\thispagestyle{plain} |
| 1846 |
\end{figure} |
| 1847 |
|
| 1848 |
Note that the layout for this document was calculated by \rmpage, |
| 1849 |
which was told to leave no space for a header with the |
| 1850 |
\optname{noheaders} option; that is why both \comname{headheight} and |
| 1851 |
\comname{headsep} have zero size. |
| 1852 |
|
| 1853 |
|
| 1854 |
\section{Paper sizes} |
| 1855 |
\label{gen:papersizes} |
| 1856 |
|
| 1857 |
\rmpage knows about lots of paper sizes, including ISO long sizes. |
| 1858 |
The ISO standard which defines the A and B series of sizes also |
| 1859 |
defines long sizes. For example, A4 paper is defined as $210 \times |
| 1860 |
297\units{mm}$. The long size $1/3\units{A4}$ is $210 \times |
| 1861 |
99\units{mm}$---the long size is the base size divided into the |
| 1862 |
specifed number of parts along the long edge. Because you can apply |
| 1863 |
this division to any piece of paper you like, \rmpage is happy to make |
| 1864 |
non-ISO sizes into ISO-style long sizes. This means that Americans |
| 1865 |
who want to print small booklets with two pages fitting on one sheet |
| 1866 |
of letter paper can produce pages very easily with \rmpage, by asking |
| 1867 |
for \optname{letterpaper} and \optname{1/2longpaper}. You can do the |
| 1868 |
same thing with A4 paper, but why not just ask for \optname{a5paper}? |
| 1869 |
One commonly-used long size is 2/3 A4, which is often used for company |
| 1870 |
invoices and commercial letters; it's often used in landscape |
| 1871 |
orientation ($210\units{mm} \times 198\units{mm}$) so it fits neatly |
| 1872 |
into a world designed for A4-wide paper. |
| 1873 |
|
| 1874 |
\begin{ikkystuff} |
| 1875 |
If you are going to print two pages on one sheet of US letter paper, |
| 1876 |
as I suggested, \rmpage standard way of deciding what to set the |
| 1877 |
non-printing margins to might be inappropriate. If so, look at |
| 1878 |
the printer paper setting code in the configuration file, and specify |
| 1879 |
clearances for the appropriate printer and paper combinations. |
| 1880 |
Section~\ref{cfg:printerpaper} on page~\pageref{cfg:printerpaper} has |
| 1881 |
more details on this. |
| 1882 |
|
| 1883 |
A good reason for not asking for \optname{a4paper} and then |
| 1884 |
\optname{1/2longpaper}, is that if the configuration file has |
| 1885 |
particular settings for A5 paper, it won't apply them to this long |
| 1886 |
paper size, even though it's the same physical size. A good reason |
| 1887 |
for doing so is that you might want that. |
| 1888 |
\end{ikkystuff} |
| 1889 |
|
| 1890 |
\rmpage accepts these paper options (and more): |
| 1891 |
|
| 1892 |
\begin{tabbing} |
| 1893 |
\optname{a0paper} \= to \= \optname{a10paper}, \\ |
| 1894 |
\optname{b0paper} \> to \> \optname{b10paper}, \\ |
| 1895 |
\optname{c0paper} \> \optname{c7paper},\= \optname{c7/6paper},\= \optname{dlpaper}, |
| 1896 |
\optname{no10envelopepaper},\\ |
| 1897 |
etc\\ |
| 1898 |
\end{tabbing} |
| 1899 |
|
| 1900 |
Options not listed here include some non-ISO envelope sizes, old |
| 1901 |
British book sizes and so on: the odder sizes are kept in the |
| 1902 |
configuration file. See section~\ref{optcfg:papersizes} on |
| 1903 |
page~\pageref{optcfg:papersizes} for more details. |
| 1904 |
|
| 1905 |
You can get a long size by passing one of these options along with a |
| 1906 |
paper size option: \optname{notlongpaper}, \optname{7/8longpaper}, |
| 1907 |
\optname{3/4longpaper}, \optname{2/3longpaper}, |
| 1908 |
\optname{5/8longpaper}, \optname{1/2longpaper}, |
| 1909 |
\optname{3/8longpaper}, \optname{1/3longpaper}, |
| 1910 |
\optname{1/4longpaper}, or \optname{1/8longpaper}. |
| 1911 |
|
| 1912 |
\rmpage makes an honest attempt to work out how you'll be printing |
| 1913 |
these long sizes out (see section \ref{htw:paperprinter}), but its |
| 1914 |
decision might apply limits that aren't what you want. If so, you'll |
| 1915 |
have to add some code to the configuration file to over-ride its |
| 1916 |
guess. Section~\ref{cfg:printerpaper} on page~\pageref{cfg:printerpaper} has |
| 1917 |
more on how to do this. |
| 1918 |
|
| 1919 |
|
| 1920 |
By the way, because A3 printers aren't unheard of, and because you can |
| 1921 |
print (say) 1/3 long A2 on A3 paper, it makes perfect sense to include |
| 1922 |
an option to define A2 paper. It seemed churlish not to go all the |
| 1923 |
way up to A0. 2/3 A4 is apparently a size commonly used for printing |
| 1924 |
business invoices and the like. If anyone really does use \rmpage for |
| 1925 |
producing A3 pages, please let me know---it's something I've been |
| 1926 |
wondering about. |
| 1927 |
|
| 1928 |
If anyone would like to let me know about more US paper sizes, I'd be |
| 1929 |
happy to include them in future versions of \rmpage. |
| 1930 |
|
| 1931 |
|
| 1932 |
\section{Setting the body text size} |
| 1933 |
\label{gen:bodytextsize} |
| 1934 |
|
| 1935 |
There's more detail on how this works in |
| 1936 |
sections~\ref{htw:textheightcalculation} |
| 1937 |
and~\ref{htw:textwidthcalculation}. |
| 1938 |
|
| 1939 |
The range of values available for \comname{textwidth} and |
| 1940 |
\comname{textheight} is a compromise. I wanted to keep the number of |
| 1941 |
options down, produce a wide spread of values, with a small minimum |
| 1942 |
step size. |
| 1943 |
|
| 1944 |
The way things have turned out, the step size from one length option |
| 1945 |
to the next is, in general, different to the step size from one width |
| 1946 |
option to the next. So you can't maintain a particular balance of |
| 1947 |
top:outside and bottom:inside margins (or whatever) by moving up to |
| 1948 |
the next width and length option. There's no easy way round this---I |
| 1949 |
wrote \rmpage to set \comname{textheight} and \comname{textwidth} |
| 1950 |
independently, because that seemed most sensible at the time. To |
| 1951 |
ensure a fixed aspect ratio would mean I would have to re-write it to |
| 1952 |
include code to scale up and down through a range of aspect ratios, |
| 1953 |
which might have to be related to the aspect ratio of the paper, and |
| 1954 |
allow you to scale the overall size of the text body up and down. |
| 1955 |
This is a big job. I'd like to be able to set the text size that way |
| 1956 |
as well as the way \rmpage does it at the moment, but it'll have to |
| 1957 |
wait---I suspect I'll have to re-structure the entire package to be |
| 1958 |
able to support both ways of doing things without getting completely |
| 1959 |
mixed up. |
| 1960 |
|
| 1961 |
I decided to set both the width and height of the text body by scaling |
| 1962 |
up and down geometric series. The \comname{textheight} series was |
| 1963 |
chosen by deciding that the \optname{longest} length should fill an |
| 1964 |
ordinary page of A4, assuming a 6\units{mm} non-printing border. The |
| 1965 |
\optname{normallength} length was set to the standard value (this is |
| 1966 |
only strictly true if you're using headers and footers), which defined |
| 1967 |
the geometric series. The \optname{shortest} length on A4 is about |
| 1968 |
163\units{mm}, just over half the page. It turns out that the series |
| 1969 |
produces a central minimum step (\optname{normallength} plus |
| 1970 |
\optname{touchlonger}) that is about one line (13\units{pt}, near |
| 1971 |
enough), so I think it's appropriate. |
| 1972 |
|
| 1973 |
The \comname{textwidth} paper-based width series was derived |
| 1974 |
similarly; the final values give a spread based on a \optname{widest} |
| 1975 |
value that fills an A4 page to within about 7\units{mm} of the edge, |
| 1976 |
and down to just over half the page. The \comname{textwidth} |
| 1977 |
character-based width series has been more of a headache; the current |
| 1978 |
(\filename{rmpwnorm.pko v 0.52}) version gives a spread from about 75 |
| 1979 |
characters in the middle, to about 98 and 57 characters at the |
| 1980 |
extremes. The central minimum step (\optname{normalwidth} plus |
| 1981 |
\optname{touchlonger}) is just under 2~characters, which seems |
| 1982 |
suitably small. The problem with the character-based width setting is |
| 1983 |
that the standard \comname{textwidth} is at the upper limit for easy |
| 1984 |
reading; the widest available width, being wider than this, is far, |
| 1985 |
far, far too wide for easy reading; but the minimum |
| 1986 |
\comname{textwidth} doesn't get close to the minimum |
| 1987 |
\comname{textwidth} for easy reading. But that probably won't matter |
| 1988 |
too much; the minimum width is less than half an A4 page if you're |
| 1989 |
using 11\units{pt} Computer Modern Roman in one column, which seems |
| 1990 |
small enough for most things I can think of (you might want a layout |
| 1991 |
which places figures and extensive side notes in the margin; if most |
| 1992 |
of the marginal note space were to be filled, having a very large |
| 1993 |
margin and small \comname{textwidth} makes sense.) |
| 1994 |
|
| 1995 |
|
| 1996 |
\section{Founts-} |
| 1997 |
\label{gen:founts} |
| 1998 |
|
| 1999 |
|
| 2000 |
\section{Marginal paragraphs-} |
| 2001 |
\label{gen:mpars} |
| 2002 |
|
| 2003 |
\rmpage looks at the everything including the sunspot cycle and the |
| 2004 |
phase of the moon when it calculates the width of marginal paragraphs. |
| 2005 |
Section~\ref{optcfg:mpars} on page~\pageref{optcfg:mpars} lists all the |
| 2006 |
options that control marginal paragraph size, and has some more |
| 2007 |
information. |
| 2008 |
|
| 2009 |
Note this: the default margin for marginal notes is the outside |
| 2010 |
margin for twosided printing, and the right-hand margin for one sided |
| 2011 |
printing. The standard \LaTeX\ command \comname{reversemarginpar} |
| 2012 |
will reverse the marginal note placement; \comname{normalmarginpar} |
| 2013 |
will put it back to normal. If you are printing twocolumn, the |
| 2014 |
marginal notes end up in the nearest margin. |
| 2015 |
|
| 2016 |
\rmpage pays attention to all of this, and makes the marginal notes as |
| 2017 |
large as possible given the margin they will appear in. The size is |
| 2018 |
constrained by various parameters, controlled by the |
| 2019 |
\optname{maxmparwidth}, \optname{mparsep}, and \optname{mparclearance} |
| 2020 |
sets of options. |
| 2021 |
|
| 2022 |
The |clearance| parameter---the length \comname{RM@mparclearance}---is |
| 2023 |
the minimum gap between the marginal note and the edge of the paper, |
| 2024 |
subject to the additional restraint of the available printing area. |
| 2025 |
It's hardwired to 0.4\units{in} in standard \LaTeXe; \rmpage sets it |
| 2026 |
to be a fraction of \comname{paperwidth} which works out to be |
| 2027 |
0.4\units{in} if you're using US letter paper. The |sep| |
| 2028 |
parameter---the length \comname{marginparsep}---is the gap between the |
| 2029 |
marginal note and the body text---this is a standard \LaTeX\ |
| 2030 |
parameter. The |maxwidth| parameter---the length |
| 2031 |
\comname{RM@maxmparwidth}---is the maximum allowed width: 2\units{in} |
| 2032 |
in standard \LaTeX, a fraction of \comname{paperwidth} which works out |
| 2033 |
to 2\units{in} if you're using US letter paper with \rmpage. There |
| 2034 |
are also the \optname{small} and \optname{large} |
| 2035 |
\optname{basemparclear} and \optname{basemaxmparwidth} options. The |
| 2036 |
large versions of these options set the normal parameter size to twice |
| 2037 |
the usual default value. |
| 2038 |
|
| 2039 |
So if you're going to switch to \comname{reversemarginpar} in your |
| 2040 |
document, do so \emph{before} you load \rmpage. If you're going to |
| 2041 |
switch from one to the other, before you load \rmpage select the one |
| 2042 |
which allows the least space for marginal paragraphs. |
| 2043 |
|
| 2044 |
If you're deeply interested in the workings of marginal paragraph size |
| 2045 |
and placement, have a look at the \filename{dtx} files: I think the |
| 2046 |
basic idea is obvious. Note that the parameters |
| 2047 |
\verb|\RM@mparclearance| \verb|\RM@maxmparwidth| can be set to any |
| 2048 |
positive value by one of the hooks (\verb|\RM@PrinterPaperSettings| |
| 2049 |
might be a good one to use) in your configuration file: negative |
| 2050 |
values are used by way of flags to set initial values. |
| 2051 |
|
| 2052 |
|
| 2053 |
\section{The configuration files} |
| 2054 |
|
| 2055 |
\rmpage uses a configuration file to do lots of stuff. The way it |
| 2056 |
works is this: if you're \LaTeX ing with \rmpage a file called |
| 2057 |
\filename{ermintrude.tex}, and a file \filename{ermintrude.rmp} exists |
| 2058 |
on the \TeX\ search path, then \filename{ermintrude.rmp} is used by |
| 2059 |
\rmpage as the configuration file for that run. If not, then \rmpage |
| 2060 |
looks for a file given by the command \comname{\RMconfigfile}. If |
| 2061 |
that file exists (if the command hasn't been defined before \rmpage is |
| 2062 |
loaded, it's set to \filename{rmplocal}; the file is searched for with |
| 2063 |
and without the \filename{cfg} extension added). If that file can't |
| 2064 |
be found, \rmpage looks for \filename{rmpgen.cfg}, which is a |
| 2065 |
standard configuration file with everything enabled. |
| 2066 |
|
| 2067 |
The file \filename{rmplocal.gfc} is meant to be renamed |
| 2068 |
\filename{rmplocal.cfg} and changed locally. Have a read of the |
| 2069 |
comments in the file first, and change the optional argument to the |
| 2070 |
\comname{ProvidesFile} command to say that the file's been changed by |
| 2071 |
you. |
| 2072 |
|
| 2073 |
The idea is that you don't change \filename{rmpgen.cfg}; it exists so |
| 2074 |
everyone has a standard configuration file that will produce identical |
| 2075 |
results. You can tell \rmpage to use it in any given document by |
| 2076 |
saying: |
| 2077 |
\begin{verbatim} |
| 2078 |
|\newcommand{\RMconfigfile}{rmpgen.cfg}| |
| 2079 |
... |
| 2080 |
\usepackage{rmpage} |
| 2081 |
\end{verbatim} |
| 2082 |
in the preamble of the document, \emph{before} loading \rmpage. But please |
| 2083 |
do change \filename{rmplocal.cfg}, if you like. |
| 2084 |
|
| 2085 |
The configuration file exists for these things: |
| 2086 |
\begin{itemize} |
| 2087 |
|
| 2088 |
\item Declare additional standard options |
| 2089 |
|
| 2090 |
\item Declare user options |
| 2091 |
|
| 2092 |
\item Set local defaults |
| 2093 |
|
| 2094 |
\item Place code in various hooks to be executed inside \rmpage, for |
| 2095 |
supporting local classes, particular combinations of printer and |
| 2096 |
paper, and so on. |
| 2097 |
|
| 2098 |
\end{itemize} |
| 2099 |
|
| 2100 |
Every installation of \rmpage should have a modified configuration |
| 2101 |
file for at least one reason: option processing is slow, and the fewer |
| 2102 |
options you have, the faster it works. Folk with twin 225MHz |
| 2103 |
PPC604e processors, or something huge and humming with the word `Sun' |
| 2104 |
on the front probably don't care about \LaTeX ing speed, but I do. |
| 2105 |
|
| 2106 |
The idea is this: edit \filename{rmpgen.cfg} and comment out all |
| 2107 |
the options you think you won't often use. You can always uncomment |
| 2108 |
them later. There's quite a few of these standard options that are |
| 2109 |
commented out to begin with; you might want to uncomment some of them |
| 2110 |
(if, for example, you're in the habit of printing on crown folio |
| 2111 |
paper). By the way, don't add or delete anything anywhere above the |
| 2112 |
local option declaration section; if you do, upgrading to a new |
| 2113 |
version of \rmpage might turn out to be more awkward than you'd like, |
| 2114 |
and I'll come round and pester you, steal all your milk and put my |
| 2115 |
feet up on the sofa. |
| 2116 |
|
| 2117 |
Setting local defaults isn't hard either: there's an |
| 2118 |
\comname{ExecuteOptions} statement with my local defaults in it. |
| 2119 |
Take them out and replace them with what you want. If you use a |
| 2120 |
LaserJet 4 printer and US letter paper, and most of your output goes |
| 2121 |
into ring binders, say: |
| 2122 |
\begin{verbatim} |
| 2123 |
\ExecuteOptions{lj4printer,letterpaper,usdate,notstdmargins} |
| 2124 |
\end{verbatim} |
| 2125 |
Note that I've assumed someone printing on US letter paper want dates |
| 2126 |
formatted US style. If you don't want \optname{notstdmargins}, say |
| 2127 |
\optname{stdmargins}. |
| 2128 |
|
| 2129 |
There are some options that you can't specify in any |
| 2130 |
\comname{ExecuteOptions} statement seen by \rmpage: the \optname{touch} |
| 2131 |
options aren't allowed---they must be executed after their |
| 2132 |
corresponding `ordinary' options, which can't be arranged if they're |
| 2133 |
bunged in an \comname{ExecuteOptions} statement. Try it if you |
| 2134 |
like: \rmpage will whinge at you. |
| 2135 |
|
| 2136 |
If you want to declare a new printer type, for example, just copy one |
| 2137 |
of the existing option declarations to the section marked |
| 2138 |
`\textsc{begin local option declaration}', change the name and the |
| 2139 |
parameters, and there you go. |
| 2140 |
|
| 2141 |
You might want to set up particular printer/paper settings; there's a |
| 2142 |
place for that and an example of how to do it in |
| 2143 |
\filename{rmplocal.cfg}. Have a look and a fiddle: if I could do it, |
| 2144 |
it shouldn't be hard for someone as clever as you. |
| 2145 |
|
| 2146 |
Adding code to the hooks in a useful fashion is best left to those who |
| 2147 |
like fiddling around: have a look at the guts of \filename{rmpage.dtx} |
| 2148 |
and so on. Hopefully you'll get the hang of how I did things, and |
| 2149 |
you'll be able to add code to suit your installation. I intend to |
| 2150 |
document the whole thing properly eventually, but I only have 24 hours |
| 2151 |
in each day. Try to stick to the conventions I've established: it'll |
| 2152 |
make it more likely that your code will work properly with future |
| 2153 |
versions of \rmpage. My intention is to keep things more-or-less as |
| 2154 |
they are, but this is the first version on public release, and I don't |
| 2155 |
know what changes will be needed yet. |
| 2156 |
|
| 2157 |
\section{Sending \rmpage-formatted documents elsewhere} |
| 2158 |
|
| 2159 |
There's a few potential problems with sending to other people |
| 2160 |
documents that you've formatted with the help of \rmpage. One is that |
| 2161 |
they might not have \rmpage, and another is that even if they do have |
| 2162 |
\rmpage, it is possible that you have specified options that produce |
| 2163 |
layout parameters that are dependent on your particular printer, which |
| 2164 |
your recipient might not have, and even if they do have that |
| 2165 |
particular printer, they might have local configuration |
| 2166 |
code---particularly printer/paper specific settings---that produces a |
| 2167 |
slightly different result. |
| 2168 |
|
| 2169 |
There's several different things you might do, depending on the |
| 2170 |
circumstances---the thing to do is think about where your document's |
| 2171 |
going, what's going to happen to it, and how you want it formatted. |
| 2172 |
|
| 2173 |
In the usual run of things, a document that's been formatted with |
| 2174 |
\LaTeX\ and intended for general release is likely to be printed on A4 |
| 2175 |
paper and US letter paper, so you have installation-dependent |
| 2176 |
differences\footnote{A4 paper is $210\units{mm} \times 297\units{mm}$ |
| 2177 |
or $8.27\units{inches} \times 11.69\units{inches}$; US letter paper |
| 2178 |
is $8.5\units{inches} \times 11\units{inches}$ or $215.9\units{mm} |
| 2179 |
\times 279.4\units{mm}$} even without \rmpage---it's always worth |
| 2180 |
checking that this difference won't cause a problem (so US authors: |
| 2181 |
check that your document works on A4 paper, and everyone else in the |
| 2182 |
world make an effort for those isolated Americans. Look, just go |
| 2183 |
metric, will you? I read maps in miles and drink beer in |
| 2184 |
pints\footnote{real pints, not your sawn-off US version}, but really, |
| 2185 |
metric units make life so much easier. If us \emph{and} the Italians |
| 2186 |
have made the switch, so can you. Italians? Yes, Italians: just |
| 2187 |
which empire do you think is referred to in the phrase `Imperial |
| 2188 |
units' Yes, that's right, the Roman Empire. How about advancing into |
| 2189 |
the 19th century before the 21st begins, eh? Sorry, a minor rant, but |
| 2190 |
one that I think should be made occasionally.) |
| 2191 |
|
| 2192 |
Ignoring paper sizes for the moment, if your recipent has a copy of |
| 2193 |
\rmpage, format your document with the \optname{pessimisticprinter} |
| 2194 |
option, ensure that the result is acceptable, and send the thing. |
| 2195 |
|
| 2196 |
If your local configuration file has non-printer-specific settings |
| 2197 |
that affect the output, you might send a copy of it (included in the |
| 2198 |
preamble of your file before the |\usepackage{rmpage}| command, |
| 2199 |
using the \envname{filecontents} environment) under the name |
| 2200 |
\filename{jobname.rmp}. That is, if the document is in a file called |
| 2201 |
\filename{canes-venaciti.tex}, call the configuration file |
| 2202 |
\filename{canes-venaciti.rmp} and it will be used as the |
| 2203 |
configuration file for that document only. |
| 2204 |
|
| 2205 |
Or you could run \LaTeX\ with the \optname{chatty} option specified to |
| 2206 |
\rmpage, and copy all the page layout parameters from the console |
| 2207 |
window and paste them into the preamble of your document. If your |
| 2208 |
version of \LaTeX\ doesn't allow you to copy text from the console |
| 2209 |
window (\OzTeX~2.0 for the Macintosh does; I don't know about other |
| 2210 |
versions), copy the text from the \filename{log} file. Then comment |
| 2211 |
out the call to \rmpage. The problem with this is that it fixes |
| 2212 |
everything, including paper sizes, so a recipient who uses A4 paper |
| 2213 |
won't be impressed if they\footnote{A useful way of avoiding he/she |
| 2214 |
that has an ancient history} get a document hard-formatted for US |
| 2215 |
letter paper, and vice-versa. Of course, you could provide two sets |
| 2216 |
of page layout parameters, with a note to the recipient to choose one |
| 2217 |
or the other. This is messy, but it might produce the most reliable and |
| 2218 |
legible results. |
| 2219 |
|
| 2220 |
A possible way round the paper problem is to assume that no-one will |
| 2221 |
be printing on anything other than US letter or A4 paper, and the |
| 2222 |
people receiving the document won't mind if the layout isn't very |
| 2223 |
good. That way, you might use the \optname{letter4paper} paper size. |
| 2224 |
This paper size is $210\units{mm} \times 8.5\units{inches}$, and |
| 2225 |
documents formatted with it will fit on A4 and US letter paper without |
| 2226 |
formatting changes. Mind you, the results won't be very nice, and |
| 2227 |
worse on US letter paper than on A4---\optname{letter4paper} pages |
| 2228 |
printed on A4 will be a little too short, which enlarges the gap at |
| 2229 |
the bottom. Very often, this isn't too noticeable. But |
| 2230 |
\optname{letter4paper} pages printed on US letter paper will have the |
| 2231 |
text body too far to the left, which tends to look very awkward. |
| 2232 |
|
| 2233 |
\section{Speed and what to do about it} |
| 2234 |
|
| 2235 |
\rmpage chews up a lot of processor time when it is being processed at |
| 2236 |
the start of a \LaTeX\ run, but adds nothing to subsequent processing |
| 2237 |
time---all it does is change page layout parameters. Narrow columns |
| 2238 |
or short pages give \TeX\ a harder time in line and page breaking, |
| 2239 |
which might increase processing time, but I wouldn't worry about that |
| 2240 |
if I were you---the underfull \comname{hbox}es and \comname{vbox}es |
| 2241 |
will cause you more problems that the extra 0.2s time. |
| 2242 |
|
| 2243 |
One verion of \rmpage (v0.65) added 18.5\units{s} to a \LaTeX\ run on |
| 2244 |
my Mac. The same version of \rmpage added 19.1s to the processing |
| 2245 |
time when I used it with the comments left in (before being processed |
| 2246 |
by \packname{docstrip}). This is an increase of 0.6s or 3\%. |
| 2247 |
Version~0.86 added 16\units{s} with comments, or 15\units{s} without, |
| 2248 |
an increase of 7\%. In this case, file size was reduced from |
| 2249 |
200\units{K} to 85\units{K}. It seems that, on my computer, the main |
| 2250 |
benefit of using \packname{docstrip} to remove comments from an input |
| 2251 |
file is reduced file size, not reduced processing time. A |
| 2252 |
not-terribly-formal test concluded that each character in the first |
| 2253 |
argument to each \comname{DeclareOption} command added about |
| 2254 |
10\units{ms} to processing time---I saved 1.6\units{s} with |
| 2255 |
version~0.72 by commenting-out eight options containing 176 |
| 2256 |
characters. |
| 2257 |
|
| 2258 |
My computer is a Macintosh Performa 475 12/160 with a 25MHz 68LC040 |
| 2259 |
microprocessor; I am told this processor is roughly equivalent to a |
| 2260 |
40MHz 80486SX. For the tests noted above I used OzTeX version 2.0.1 |
| 2261 |
and 2.1 under system B1 7.1 P5 SU3. |
| 2262 |
|
| 2263 |
You can speed up \rmpage quite a lot. A large amount of the time |
| 2264 |
taken by \rmpage is in processing options---\LaTeXe's option |
| 2265 |
processing mechanism is very slow. Commenting out options in the |
| 2266 |
config file is very effective at reducing processing time (it's the |
| 2267 |
length of the option names, not the amount of code, that increases |
| 2268 |
this processing time). |
| 2269 |
|
| 2270 |
For example, \rmpage version~0.66 increased the time to process a |
| 2271 |
document by 21.2s; with 73 options commented out, \rmpage only added |
| 2272 |
12.1s. This is an improvement of nearly 60\%. This is why there are |
| 2273 |
two config files supplied with \rmpage: a slow one with all the |
| 2274 |
options enabled, and a faster one with some options commented out. |
| 2275 |
|
| 2276 |
You can make \rmpage work faster by commenting out (don't delete |
| 2277 |
them---you never know when you might need them) all the options you |
| 2278 |
think you won't use very often. If you do want to use one of these |
| 2279 |
commented-out options, uncomment it (and all the options in the same |
| 2280 |
group---you'll see what this means when you look at the file) and |
| 2281 |
leave it uncommented. The Alpha text editor for Macintoshes can |
| 2282 |
comment out a group of lines if you select the lines and press |
| 2283 |
\keypress{cmd-D}; it can reverse the process if you press |
| 2284 |
\keypress{cmd-opt-D}. I expect other text editors can do the same job |
| 2285 |
somehow: it might be worth finding out how to do this with your text |
| 2286 |
editor if you don't already know |
| 2287 |
|
| 2288 |
Some versions of \TeX\ under some operating systems take quite a time |
| 2289 |
to find files to be input. If this is the case on your computer, you |
| 2290 |
might be able to reduce processing time quite a lot by placing |
| 2291 |
frequently-used files in a place that is searched early on. I have a |
| 2292 |
list of folders in my \filename{TeX-inputs} folder that looks a bit |
| 2293 |
like this: |
| 2294 |
|
| 2295 |
\begin{verbatim} |
| 2296 |
aa LaTeX |
| 2297 |
ab Rat2e <--- rmpage is in here |
| 2298 |
ab tools |
| 2299 |
ac mfnfss |
| 2300 |
ac other 2e <--- other people's packages |
| 2301 |
ac other fd |
| 2302 |
ac PSNFSS |
| 2303 |
ba .cfg files etc |
| 2304 |
ba other 2.09 |
| 2305 |
ba Rat old |
| 2306 |
bb chicken <--- Liverpool John Moore's University logo |
| 2307 |
bb new fds |
| 2308 |
bb other LaTeX |
| 2309 |
bb some AMS-LaTeX |
| 2310 |
za afm |
| 2311 |
za fontinst |
| 2312 |
za fontinst examples |
| 2313 |
za fontinst inputs |
| 2314 |
zz Graphics |
| 2315 |
zz Plain |
| 2316 |
zz Rat ex + tmp |
| 2317 |
\end{verbatim} |
| 2318 |
|
| 2319 |
It's a compromise between speed and ease of management: I can change |
| 2320 |
parts of my \LaTeX\ system without getting a headache, and it's not |
| 2321 |
too slow for me. The commonly-used folders are prefixed |
| 2322 |
\filename{aa}, \filename{ab}, end so on; the rarely used ones are |
| 2323 |
prefixed \filename{zz}. My version of \LaTeX\ is set up to search the |
| 2324 |
folders early on in the alphabet first: this is not necessarily the |
| 2325 |
case with any other version of \LaTeX, even versions of \OzTeX\ with |
| 2326 |
the \filename{tex-inputs} list specified differently. |
| 2327 |
|
| 2328 |
Some \TeX\ implementations take a lot of time to search multiple |
| 2329 |
directories, and are faster with fewer directories to search. If this |
| 2330 |
is the case with your implementation, putting your input files into |
| 2331 |
fewer directories might help. The only way I know to find if this is |
| 2332 |
the case is to sit down and do lots of tests: it might be quicker in |
| 2333 |
the long run not to bother. |
| 2334 |
|
| 2335 |
|
| 2336 |
\chapter{A brief lecture on typography} |
| 2337 |
|
| 2338 |
I'm not a professional typographer, and this won't turn you into one. |
| 2339 |
Caveat emptor\footnote{buyer beware}, and remember how much this cost |
| 2340 |
you. If you want to learn about typography, do the sensible thing and |
| 2341 |
get some books out of the library. But given that I'm giving you |
| 2342 |
typographical controls, I'd better give you some idea how to use them |
| 2343 |
intelligently. If you have any expertise in typography and think you |
| 2344 |
can do better than this, please do! You've got my email address\ldots |
| 2345 |
|
| 2346 |
The notes below are what I think are the main points of ordinary |
| 2347 |
typography the average \LaTeX\ user needs to know about, dealing with |
| 2348 |
the areas of typography that \rmpage gives you new control over; this |
| 2349 |
had no pretensions to being a course in typography---visit that |
| 2350 |
library! |
| 2351 |
|
| 2352 |
\section{Introduction} |
| 2353 |
|
| 2354 |
The usual reason for writing something is so that people can read and |
| 2355 |
digest the content---the reader is usually not interested in the form |
| 2356 |
of written work, just the words themselves. It follows that the form |
| 2357 |
in which your words are presented should usually be un-noticed by the |
| 2358 |
reader: easy to read, conventional, and pleasing to the eye. The |
| 2359 |
eye-catching typography used by advertisers does have its |
| 2360 |
place, but this short piece concentrates on mundane typography: |
| 2361 |
setting chunks of text, one word after another, line after line, to |
| 2362 |
form a document which is unobtrusive to read. After all, if you were |
| 2363 |
battling with the mathematics of elastohydrodynamics, you wouldn't |
| 2364 |
appreciate a layout that was as hard to decipher as the content. |
| 2365 |
|
| 2366 |
First thing is this: it's easy to make a right mess of things when you |
| 2367 |
can control the layout of a page, but many of the mistakes one can |
| 2368 |
make are in setting the paragraph indentation, vertical space around |
| 2369 |
displayed material, headings, and the like. \rmpage doesn't touch |
| 2370 |
these, so you can forget about fouling up that area of design for |
| 2371 |
now. As for the things you can control: don't stray too far from the |
| 2372 |
normal settings, and the results should be fine. |
| 2373 |
|
| 2374 |
The easiest mistake to make is in setting the width of the body |
| 2375 |
text---\comname{textwidth} in \LaTeX\ terms. Typography texts warn |
| 2376 |
that the most common fault is making the body text too narrow (less |
| 2377 |
than about 45 average characters); but my experience is that the |
| 2378 |
average non-typographer is more likely to make the body text too wide |
| 2379 |
(more than about 75 average characters). |
| 2380 |
|
| 2381 |
The best advice to begin with is follow convention---most books on |
| 2382 |
typography make the point that your design has succeeded if no-one |
| 2383 |
notices it, so stick with the conventional. Of course, you've got to |
| 2384 |
find out what conventional is. Look at professionally designed |
| 2385 |
typography: at how the text body sits on the page of a book, and in |
| 2386 |
magazines and newspapers---is the text high, low, or in the middle? |
| 2387 |
closer to the binding edge or the outside edge? How big, in visual |
| 2388 |
relationship to each other and the text body, are the margins top, |
| 2389 |
bottom, inside and outside? What about columns of text in magazines and |
| 2390 |
newspapers---how wide are they, what's the gap between columns like |
| 2391 |
in relationship to the column width, the size of the average word |
| 2392 |
space, and the page margins? How does the column width affect |
| 2393 |
readability---think about the effect of column width on line-breaking |
| 2394 |
and the flow of reading. |
| 2395 |
|
| 2396 |
You'll notice that conventionally, lines of text longer than about 75 |
| 2397 |
characters are avoided, as are lines less than about 45 characters; |
| 2398 |
and the outside margin is usually larger than the inside margin, for |
| 2399 |
the very straighforward reason that the outside margin is the one |
| 2400 |
that's most delicate and most handled. If it's big, damage to the |
| 2401 |
paper is less likely to deface the text. The bottom margin is usually |
| 2402 |
bigger than the top margin for the same reason---and even though this |
| 2403 |
reason is a sound practical one, if you produce a page with a smaller |
| 2404 |
bottom margin than top margin, it looks very odd to most people. It's |
| 2405 |
also fairly conventional for the aspect ratio of the text to match the |
| 2406 |
aspect ratio of the paper---if the text is half the width of the |
| 2407 |
paper, it'll be half the height as well. |
| 2408 |
|
| 2409 |
The standard \LaTeX\ classes produce a page layout that's generally in |
| 2410 |
line with those conventions, so if you don't pass extreme options to |
| 2411 |
\rmpage, you can't go far wrong. Of course, if you're aiming for a |
| 2412 |
particular effect for a good reason, such as filling a page with a |
| 2413 |
time-table, you might want the longest and widest text area possible. |
| 2414 |
If you find that you \emph{are} using an extreme option (\optname{longest}, |
| 2415 |
for example), think very carefully about why you are doing it, what |
| 2416 |
effect this option produces, and whether this is desirable. If you're |
| 2417 |
just trying to cram that much text on one page, two columns is |
| 2418 |
probably better. |
| 2419 |
|
| 2420 |
Because typography is to some extent an artistic endeavour, there is |
| 2421 |
no such thing as an ideal layout, although some are clearly |
| 2422 |
inappropriate. But after a few hours at the keyboard, it's easy to |
| 2423 |
lose the ability to judge the passing of time, let alone the effect a |
| 2424 |
design has on a new reader. I find that it often pays to trust |
| 2425 |
initial reactions, especially when comparing a set of alternatives. |
| 2426 |
So, if you're in doubt about which of your final two choices to use, |
| 2427 |
ask someone else what they think of them. |
| 2428 |
|
| 2429 |
\section{Positioning the text body} |
| 2430 |
|
| 2431 |
Convention has it that the outside margin is larger than the inside |
| 2432 |
margin, and that the bottom margin is larger than the top margin. |
| 2433 |
It's not unusual to match the sizes of the outside margin and the top |
| 2434 |
margin. The \packname{Koma-script} documentation reports that Jan |
| 2435 |
Tschichold recommends that the bottom margin should be twice the size |
| 2436 |
of the top margin, and the outside margin should be twice the size of |
| 2437 |
the inside margin. |
| 2438 |
|
| 2439 |
The reason \rmpage defaults to having the inside margin larger than |
| 2440 |
the outside margin is this: most of what I typeset ends up in |
| 2441 |
ring-binders, where you need a large inside margin to avoid punching |
| 2442 |
holes in the text. You can change this default setting by editing an |
| 2443 |
\comname{ExecuteOptions} statement in the configuration file---see |
| 2444 |
chapter~\ref{chap:config}. You can change this default in the |
| 2445 |
\filename{rmplocal.cfg} file by putting the \optname{stdmargins} |
| 2446 |
option in the default \comname{ExecuteOptions} statement. If you |
| 2447 |
don't like the amount by which the inside margin is bigger than the |
| 2448 |
outside margin---bearing in mind that one convention has the outside |
| 2449 |
margin matching the top margin---you can change it with the |
| 2450 |
\optname{offset} option set. |
| 2451 |
|
| 2452 |
If the top margin looks bigger than the bottom margin, the page looks |
| 2453 |
`bottom heavy' and rather odd. It is possible that the only reason |
| 2454 |
for this is that everyone lays out pages with a smaller top margin, |
| 2455 |
but follow this convention to begin with. \rmpage actually makes the |
| 2456 |
top and bottom margins the same size, just as the standard classes do; |
| 2457 |
the bottom margin looks larger because the bottom margin |
| 2458 |
\emph{appears} to begin at the bottom of the text body; \LaTeX\ |
| 2459 |
measures it from the bottom of the footer. |
| 2460 |
|
| 2461 |
i couldn't figure out a reliable way of getting \rmpage to calculate |
| 2462 |
\emph{apparent} ratios of top and bottom margins, so you'll have to |
| 2463 |
balance this by eye. The \optname{altitude}, \optname{long}, and |
| 2464 |
\optname{short} option sets can help. |
| 2465 |
|
| 2466 |
\section{Size of the text body} |
| 2467 |
|
| 2468 |
Conventionally, one text column is 1.5 to 2.5 alphabets wide; the |
| 2469 |
standard \LaTeX\ widths give you about 2.5 alphabets wide (which is |
| 2470 |
about the average width of 75 characters of normal prose, hence |
| 2471 |
Lamport's comment in the \LaTeX\ book. 1.5 alphabets is about 44 |
| 2472 |
average characters, but \rmpage warns when you get below 39 characters |
| 2473 |
wide---\TeX's a better line breaker than a human typesetter. \rmpage |
| 2474 |
warns you if you exceed the 75---39 character limits; too wide and too |
| 2475 |
narrow are both awkward to read, and too narrow makes for rotten line |
| 2476 |
breaks.\footnote{I'm lying: \rmpage warns when you exceed the |
| 2477 |
standard number of characters per line, which is 78.5 characters for |
| 2478 |
10pt, 74.8 for 11pt, and 75.5 characters for 12pt.} \rmpage does |
| 2479 |
report the final \comname{textwidth} in terms of what it thinks are |
| 2480 |
average characters, which should help to give you an idea of what's |
| 2481 |
going on. |
| 2482 |
|
| 2483 |
If you must fill a very wide space, try using multiple columns. If |
| 2484 |
you must use narrow columns, ragged right setting sometimes looks |
| 2485 |
better, although a multiple-column narrow-columned layout might need |
| 2486 |
to have \comname{columnsep} adjusted with \rmpage's \optname{colsep} |
| 2487 |
options---look at a newspaper to get the idea. |
| 2488 |
|
| 2489 |
The problem with long lines is this: when you get to the end of one |
| 2490 |
line, you need to find the start of the next one. If the lines are |
| 2491 |
too long, this job is made harder. The problem with short lines is |
| 2492 |
twofold: the job of finding the start of a line is a bother, so the |
| 2493 |
less you have to do it the better; and short lines make for rotten |
| 2494 |
line breaks, which makes it harder to follow the text. |
| 2495 |
|
| 2496 |
Tschichold recommends that the aspect ratio of the text body be made |
| 2497 |
to match the aspect ratio of the paper. This refers to the |
| 2498 |
\emph{apparent} aspect ratios---apparent paper size depends on the |
| 2499 |
binding used, and apparent text body size depends on the nature of the |
| 2500 |
headers and footers. I couldn't come up with a reliable way of |
| 2501 |
calculating the comparative apparent aspect ratios, so if you want |
| 2502 |
these aspect ratios matched, you'll have to do it by eye. The |
| 2503 |
\optname{altitude}, \optname{offset}, \optname{long}, \optname{short}, |
| 2504 |
\optname{wide}, \optname{narrow} option sets can help. Note that to |
| 2505 |
my eye at least, matching aspect ratios often matters less than |
| 2506 |
matching top and outside margins, which does appear often to make a |
| 2507 |
big difference to my comfort with a layout on small (A5 or so) pages. |
| 2508 |
And in any case, the match need not be spot on---but quite what near |
| 2509 |
enough is can't be specified exactly. Sometimes an |
| 2510 |
almost-but-not-quite match is fine, sometimes it looks awful and |
| 2511 |
you're better off with a deliberate `I'm clearly not trying to match |
| 2512 |
these dimensions' layout. |
| 2513 |
|
| 2514 |
\section{Typefaces} |
| 2515 |
|
| 2516 |
The main thing the average \LaTeX\ user is concerned with is |
| 2517 |
legibility, and the computer modern typefaces score highly here. I |
| 2518 |
have just seen a volume of conference proceedings (Proceedings of the |
| 2519 |
Applied Optics Divisional Conference of The Insitute of Physics, held |
| 2520 |
at Reading 16--19 September 1996) in which most papers were produced |
| 2521 |
with \LaTeX, using the publisher's style file. To my eye, the papers |
| 2522 |
typeset in Times look most legible at a glance; the papers typeset in |
| 2523 |
Computer Modern feel easier to read when you get down to it. I |
| 2524 |
mention this to make the point that just because something looks |
| 2525 |
right, doesn't mean that it's easier to read---not that Times is |
| 2526 |
anything but a famously legible typeface. |
| 2527 |
|
| 2528 |
As a general rule, serif typefaces are easier to read in blocks of |
| 2529 |
text, and sans serif typefaces are easier to read as isolated words |
| 2530 |
or phrases. This explains the choice of typeface on road signs and in |
| 2531 |
newspapers. Typefaces with a heavy emphasis on vertical strokes---such |
| 2532 |
as the Bodoni beloved of US newspaper headlines---disrupt the |
| 2533 |
left-right flow of reading, whereas typefaces with a more horizontal |
| 2534 |
emphasis, such as Times or Baskerville, ease the left-right flow of |
| 2535 |
reading. |
| 2536 |
|
| 2537 |
Choosing founts is a tricky thing---read those typography books! But |
| 2538 |
there are some rules which can help you produce pleasant, legible |
| 2539 |
pages. Before a real expert shoots me down in flames, I don't claim |
| 2540 |
that the list below is `rules for the correct use of typefaces'---it's |
| 2541 |
just, erm, `received wisdom', sort of. |
| 2542 |
|
| 2543 |
\begin{itemize} |
| 2544 |
|
| 2545 |
\item Always use a serif typeface for your body text. |
| 2546 |
|
| 2547 |
\item Keep the number of type faces and type families in a design to a |
| 2548 |
minimum---use bold, italic, different sized, and maybe slanted |
| 2549 |
type faces from the one family where appropriate. |
| 2550 |
|
| 2551 |
\item Always follow convention---don't invent a new convention |
| 2552 |
unless you really need to. |
| 2553 |
|
| 2554 |
\item Don't mix similar but different typefaces---Times for the body |
| 2555 |
copy and New Century Schoolbook for captions looks awful. |
| 2556 |
|
| 2557 |
\item But do mix very different typefaces---Times for the body copy |
| 2558 |
and Helvetica (which I personally loath with a deep loathing) for |
| 2559 |
captions or headings, for example, can be very effective. |
| 2560 |
|
| 2561 |
\item Use a body text size from 9\units{pt} to 12\units{pt}; some |
| 2562 |
books suggest no more than 11\units{pt} for body text, and I reckon |
| 2563 |
10\units{pt} is a bit too small at 300\unit{dpi}, but fine at |
| 2564 |
600\unit{dpi}. |
| 2565 |
|
| 2566 |
\item Never, ever, underline unless you absolutely have to on pain of |
| 2567 |
severe dandruff. |
| 2568 |
|
| 2569 |
\item And George Orwell said in his rules for good English, |
| 2570 |
break any of these rules rather than do anything outright barbarous. |
| 2571 |
|
| 2572 |
\end{itemize} |
| 2573 |
|
| 2574 |
|
| 2575 |
\chapter{All the options (rmpage v0.69 and rmplocal.cfg v0.11)} |
| 2576 |
|
| 2577 |
\label{chap:alltheoptions} |
| 2578 |
|
| 2579 |
Most of the options in \rmpage work by setting an internal paramters, |
| 2580 |
which is later used to decide what value to set something to as part |
| 2581 |
of a more involved calculation. Sometimes more than one parameter is |
| 2582 |
used in this decision. The description of each option tells you what |
| 2583 |
this parameter is set to, and what effect the option has. |
| 2584 |
|
| 2585 |
|
| 2586 |
|
| 2587 |
|
| 2588 |
\section{Options in \rmpage} |
| 2589 |
|
| 2590 |
This is a list of the options contained in the file \rmpage; there's |
| 2591 |
lots more in the configuration file. None of the options in \rmpage |
| 2592 |
are commented out, nor are any of the options in the configuration |
| 2593 |
file \filename{rmpgen.cfg}. Some of the options in the configuration file |
| 2594 |
\filename{rmplocal.gfc} have been commented out for speed's sake; this file |
| 2595 |
will be used by \rmpage if you rename it \filename{rmplocal.cfg} |
| 2596 |
|
| 2597 |
\subsection{Reporting dimensions and tracing calculations} |
| 2598 |
|
| 2599 |
|
| 2600 |
These options control the amount of stuff that \rmpage litters your |
| 2601 |
console window with. They do this by setting the \verb|\RM@chatlevel| |
| 2602 |
parameter, which is looked at by a bunch of reporting commands---look |
| 2603 |
at \rmpage for the details about these. The default is |
| 2604 |
\optname{taciturn}; you get a handful of dimensions and warnings get |
| 2605 |
printed on the console. I expect that most people won't find |
| 2606 |
\optname{garrulous} useful. The \optname{yorkshire} causes \rmpage to |
| 2607 |
print nought: this is a British regional joke that I'm allowed to make |
| 2608 |
because I live in Lancashire, which is another British regional joke. |
| 2609 |
(C.f. Ian MacMillan on `4th Column', BBC R4 6/10/96: ``'Ey oop. All |
| 2610 |
right. That should be enough for a column. Y'see, I'm from South |
| 2611 |
Yorkshire, and we don't talk a lot.') |
| 2612 |
|
| 2613 |
\begin{description}\shorty\squish |
| 2614 |
\awakeoption{garrulous} \rmpage reports everything I thought might be |
| 2615 |
useful someday. It used to be worse. Sets \verb|\RM@chatlevel| to 0 |
| 2616 |
|
| 2617 |
\awakeoption{chatty} \rmpage reports all \LaTeX\ layout parameters that |
| 2618 |
it changes, plenty of \rmpage's own parameters, and some information |
| 2619 |
about what's going on as it caluculates them. Sets \verb|\RM@chatlevel| to 1 |
| 2620 |
|
| 2621 |
\awakeoption{taciturn} Default. \rmpage reports the height and width of the |
| 2622 |
text and paper, the width of the text in characters, and a few other |
| 2623 |
things. Warnings are also printed. Sets \verb|\RM@chatlevel| to 2. |
| 2624 |
|
| 2625 |
\awakeoption{yorkshire} Allows \rmpage to print errors only, although |
| 2626 |
warnings are put in the log file with a few other bits. Sets |
| 2627 |
\verb|\RM@chatlevel| to 3 |
| 2628 |
\end{description} |
| 2629 |
|
| 2630 |
\subsection{Paper sizes} |
| 2631 |
\label{optrmp:paper-sizes} |
| 2632 |
|
| 2633 |
More paper types are defined in the configuration file, as are the |
| 2634 |
long paper sizes. Each paper size is given a code number, because |
| 2635 |
it's easier and faster to check for a number than a name. If you want |
| 2636 |
to define your own paper sizes, I suggest you use code numbers above |
| 2637 |
1000 so that future versions of \rmpage don't have standard sizes than |
| 2638 |
conflict with your sizes. The paper size number 0 doesn't have much of a |
| 2639 |
role in life yet, but I'm working on it. |
| 2640 |
|
| 2641 |
The \optname{landscape} and \optname{portrait} options force the paper |
| 2642 |
size to be in that orientation; the standard class swap |
| 2643 |
\comname{textheight} and \comname{textwidth} when you ask for |
| 2644 |
landscape. Landscape orientation is defined as the long side being |
| 2645 |
horizontal; portrait orientation is defined as the short side |
| 2646 |
horizontal. 2/3 A4 is usually used in landscape orientation ($210 |
| 2647 |
\times 198\units{mm}$, as are DL envelopes. Some printer drivers, |
| 2648 |
when dealing with DL envelopes, call `landscape', `portrait', and |
| 2649 |
vice-versa. |
| 2650 |
|
| 2651 |
\rmpage knows about lots of sizes; some of them are large, obsolete, or |
| 2652 |
untrimmed paper sizes which I don't expect will be directly useful to |
| 2653 |
anyone. It just seemed inelegant to leave them out. Perhaps |
| 2654 |
I have a warped sense of \ae sthetics. If you have a Macintosh with |
| 2655 |
QuickDraw~GX, you can tell your printer driver about any paper size |
| 2656 |
that your printer is physically able to deal with, so these odd sizes |
| 2657 |
might be more useful than I think. |
| 2658 |
|
| 2659 |
If any Americans would like to send me the dimensions of some more US |
| 2660 |
paper sizes (including envelopes), I'll include them in future |
| 2661 |
versions. The only places I could find US paper size data were |
| 2662 |
\LaTeX\ classes and my printer's manual. |
| 2663 |
|
| 2664 |
According to BS4000: |
| 2665 |
\begin{quotation} |
| 2666 |
The ISO A series is based on A0, with a surface |
| 2667 |
area of $1\units{m}^{2}$. Each ISO B paper size is a geometric mean between |
| 2668 |
adjacent A sizes, with sides in the same proportions. |
| 2669 |
|
| 2670 |
Each size shall be acheived by dividing the size immediately above it |
| 2671 |
into two equal parts, the division being parallel to the shorter |
| 2672 |
side. Consequently, the areas of two successive sizes shall be in the |
| 2673 |
ratio $2:1$. |
| 2674 |
|
| 2675 |
All the size in each series shall be geometrically similar to one |
| 2676 |
another. |
| 2677 |
\end{quotation} |
| 2678 |
|
| 2679 |
What this means is that the ratio of the sides must be $1:\sqrt{2}$, |
| 2680 |
so that A0 is $841\units{mm} \times 1189\units{mm}$. |
| 2681 |
|
| 2682 |
Tolerances are specified thus: |
| 2683 |
|
| 2684 |
\begin{tabbing} |
| 2685 |
$150\mathrm{mm}<\mathrm{sizes}\leq 600\mathrm{mm}$ \= $\pm2 \mathrm{mm}$\kill |
| 2686 |
$\mathrm{sizes}\leq 150 \mathrm{mm}$ \> $\pm1.5 \mathrm{mm}$ \\ |
| 2687 |
$150\mathrm{mm}<\mathrm{sizes}\leq 600\mathrm{mm}$ \> $\pm2 \mathrm{mm}$\\ |
| 2688 |
$600\mathrm{mm}<\mathrm{sizes}\mathrm{mm}$ \> $\pm3 \mathrm{mm}$\\ |
| 2689 |
\end{tabbing} |
| 2690 |
|
| 2691 |
Long ISO sizes are created by dividing ordinary ISO sizes into slices, |
| 2692 |
cutting parallel to the short edge, e.g., |
| 2693 |
|
| 2694 |
\begin{tabbing} |
| 2695 |
1/3 A4 \= $99 \times 210$ \\ |
| 2696 |
1/4 A4 \> $74 \times 210$ \\ |
| 2697 |
1/8 A8 \> $13 \times 74 $ \\ |
| 2698 |
\end{tabbing} |
| 2699 |
|
| 2700 |
2/3 A4 is apparently a common size commercially, used for invoices and |
| 2701 |
the like. It is defined as $198 \times 210 \mathrm{mm}$. Note that |
| 2702 |
the standard defines sizes to the nearest millimetre, but \rmpage does |
| 2703 |
\emph{not} round the calculated long sizes, nor does it ensure that |
| 2704 |
only ISO sizes are processed by the `long' options. |
| 2705 |
|
| 2706 |
\rmpage does not limit you to making long sizes out of ISO paper only |
| 2707 |
because you can chop up any bit of paper you like. The reason \rmpage |
| 2708 |
does not round long sizes to the nearest millimetre is that if you are |
| 2709 |
printing on a piece of ready-cut long paper, \rmpage's maximum |
| 2710 |
deviation from the specified size, 0.5\unit{mm}, is within tolerance; |
| 2711 |
and if you are making your own long paper by cutting up a straight |
| 2712 |
size, rounding to the nearest millimetre on a 1/8 size could result in |
| 2713 |
a 4\unit{mm} error by the time you cut the strip furthest from your |
| 2714 |
datum edge, which is outside the specified tolerance for the size of |
| 2715 |
the sheet you are cutting. The fact that not rounding is easier to |
| 2716 |
code is, of course, entirely co-incidental and played no part in the |
| 2717 |
design decision. |
| 2718 |
|
| 2719 |
Data source for the old British book sizes: Pears Cyclopedia, 68th |
| 2720 |
edition, 1959-1960. Pelham Books Ltd., 1959. (General Compendium, |
| 2721 |
page N13). A, B, and other untrimmed sizes taken from BS4000. C3, |
| 2722 |
C4, C5, C6, DL, and non-ISO envelope sizes taken from BS4264. C0, C1, |
| 2723 |
C2, C7, and C7/6 taken from The Cambridge Factfinder, Cambridge |
| 2724 |
University Press, 1993. |
| 2725 |
|
| 2726 |
|
| 2727 |
Each paper type is given a number: |
| 2728 |
|
| 2729 |
\begin{tabbing} |
| 2730 |
0=undefined, 1=letter, 2=legal, 3=executive,\\ |
| 2731 |
9=letter4paper\\ |
| 2732 |
10=a0, \= \ldots , \= 20=a10 (a4=14, a5=15)\\ |
| 2733 |
30=b0, \> \ldots , \> 40=b10\\ |
| 2734 |
50=c0, \> \ldots , \> 57=c7, 58=dl, 59=c7/6,\\ |
| 2735 |
64=bslargelegalenvelope, \= 65=bscalendarenvelope\kill |
| 2736 |
60=bspopseedenvelope, \> 61=bspopnonisoenvelope, \\ |
| 2737 |
62=bsbrochureenvelope, \> 63=bslegalenvelope,\\ |
| 2738 |
64=bslargelegalenvelope, \> 65=bscalendarenvelope\\ |
| 2739 |
66=no10envelopepaper\\ |
| 2740 |
85=medium quarto, \= 80=imperial quarto, \= 81=imperial octavo\kill |
| 2741 |
70=foolscap folio, \> 71=foolscap quarto, \> 72=foolscap octavo\\ |
| 2742 |
73=crown folio, \> 74=crown quarto, \> 75=crown octavo\\ |
| 2743 |
76=royal folio, \> 77=royal quarto, \> 78=royal octavo\\ |
| 2744 |
79=imperial folio, \> 80=imperial quarto, \> 81=imperial octavo\\ |
| 2745 |
82=large crown octavo\\ |
| 2746 |
83=demy quarto, \> 84=demy octavo\\ |
| 2747 |
85=medium quarto, \> 86=medium octavo\\ |
| 2748 |
93=sra0, \= 94=sra1, \= 95=sra2\kill |
| 2749 |
90=ra0, \> 91=ra1, \> 92=ra2,\\ |
| 2750 |
93=sra0, \> 94=sra1, \> 95=sra2\\ |
| 2751 |
98=metric large quad crown paper, \= 99=metric quad demy paper\kill |
| 2752 |
96=metric double crown paper, \> 97=metric quad crown paper\\ |
| 2753 |
98=metric large quad crown paper, \> 99=metric quad demy paper\\ |
| 2754 |
100=metric small quad royal paper\\ |
| 2755 |
\end{tabbing} |
| 2756 |
|
| 2757 |
The paper types are divided up like this: |
| 2758 |
\begin{tabbing} |
| 2759 |
10 \= C sizes plus dlpaper defined by 10 options: for envelopes, etc. |
| 2760 |
\= (50-59)\kill |
| 2761 |
3 \> US sizes recognised by 3 options \> (1-3)\\ |
| 2762 |
1 \> bodge size recognised by 1 option \> (9)\\ |
| 2763 |
11 \> A sizes defined by 11 options: for writing paper, books, etc. \> |
| 2764 |
(10-20)\\ |
| 2765 |
11 \> B sizes defined by 11 options: for posters, etc. \> (30-40)\\ |
| 2766 |
10 \> C sizes plus dlpaper defined by 10 options: for envelopes, etc. |
| 2767 |
\> (50-59)\\ |
| 2768 |
6 \> BS4264 envelope sizes defined by 6 options: \> (60-65)\\ |
| 2769 |
1 \> US envelope size defined by 1 option: \> (66)\\ |
| 2770 |
17 \> old British sizes defined by 18 options. \> (70-86)\\ |
| 2771 |
11 \> BS4000 untrimmed sizes defined by 11 options \> (90-100)\\ |
| 2772 |
\\ |
| 2773 |
71 \> different paper sizes defined by 72 options. |
| 2774 |
\end{tabbing} |
| 2775 |
|
| 2776 |
|
| 2777 |
|
| 2778 |
\begin{description}\shorty\squish |
| 2779 |
|
| 2780 |
\awakeoption{letterpaper} Sets |\RM@papertype| to 1 |
| 2781 |
-- 11in by 8.5in |
| 2782 |
|
| 2783 |
\awakeoption{legalpaper} Sets |\RM@papertype| to 2 |
| 2784 |
-- 14in by 8.5in |
| 2785 |
|
| 2786 |
\awakeoption{executivepaper} Sets |\RM@papertype| to 3 |
| 2787 |
-- 10.5in by 7.25in |
| 2788 |
|
| 2789 |
\awakeoption{a4paper} Sets |\RM@papertype| to 14 |
| 2790 |
-- 297mm by 210mm |
| 2791 |
|
| 2792 |
\awakeoption{a5paper} Sets |\RM@papertype| to 15 |
| 2793 |
-- 210mm by 148mm |
| 2794 |
|
| 2795 |
\awakeoption{b5paper} Sets |\RM@papertype| to 35 |
| 2796 |
-- 250mm by 176mm |
| 2797 |
|
| 2798 |
\awakeoption{c6paper} Sets |\RM@papertype| to 56 |
| 2799 |
-- 162mm by 114mm |
| 2800 |
|
| 2801 |
\awakeoption{dlpaper} Sets |\RM@papertype| to 58 |
| 2802 |
220mm by 110mm. Ordinary envelopes. |
| 2803 |
|
| 2804 |
\awakeoption{no10envelopepaper} Sets |\RM@papertype| to 66 |
| 2805 |
9.5in by 4.12in. Ordinary US envelopes. |
| 2806 |
|
| 2807 |
\end{description} |
| 2808 |
|
| 2809 |
% long paper type numbers: |
| 2810 |
% |
| 2811 |
% 0 = not long (or 1) |
| 2812 |
% 1 = 7/8 2 = 3/4 3 = 2/3 4 = 5/8 5 = 1/2 |
| 2813 |
% 6 = 3/8 7 = 1/3 8 = 1/4 9 = 1/8 |
| 2814 |
% |
| 2815 |
% long paper options in rmplocal.cfg |
| 2816 |
|
| 2817 |
\subsection{Typesetting tightness} |
| 2818 |
\label{optrmp:tightness} |
| 2819 |
|
| 2820 |
These options only exists because \rmpage can load the |
| 2821 |
\packname{PSNFSS} founts, and Karl Berry says that these founts |
| 2822 |
(produced with \packname{FontInst}) have too little slack in the |
| 2823 |
inter-word space for \TeX\ to be able to form paragraphs well with the |
| 2824 |
standard typesetting parameters. |
| 2825 |
|
| 2826 |
These options must be executed before the \optname{load<fount>} |
| 2827 |
options. That's inevitable if I have these option declarations before |
| 2828 |
the \optname{load<fount>} option declarations, and use |
| 2829 |
\comname{ProcessOptions} rather than \comname{ProcessOptions*}. This |
| 2830 |
is so that these options can over-ride the default typesetting |
| 2831 |
tightness (\optname{looseish}) requested by the \optname{load<fount>} |
| 2832 |
options. |
| 2833 |
|
| 2834 |
\begin{description}\shorty\squish |
| 2835 |
\awakeoption{tight} Default. Leaves the typesetting parameters alone. Defines |
| 2836 |
\verb|\RM@looseoption| to be 0. |
| 2837 |
|
| 2838 |
\awakeoption{looseish} Changes the typesetting parameters to be |
| 2839 |
something in between the adjacent options. Defines |
| 2840 |
\verb|\RM@looseoption| to be 1 |
| 2841 |
|
| 2842 |
\awakeoption{loose} Changes the typesetting parameters to something |
| 2843 |
close to Alan Jeffries's recommendations. Defines \verb|\RM@looseoption| |
| 2844 |
to be 2 |
| 2845 |
|
| 2846 |
\awakeoption{looser} Changes the typesetting parameters to be |
| 2847 |
something in between the adjacent options. Defines |
| 2848 |
\verb|\RM@looseoption| to be 3 |
| 2849 |
|
| 2850 |
\awakeoption{loosest} Changes the typesetting parameters to something |
| 2851 |
close to twice as sloppy as Karl Berry's recommendations. Defines |
| 2852 |
\verb|\RM@looseoption| to be 4 |
| 2853 |
|
| 2854 |
\awakeoption{sloppyish} Changes the typesetting parameters to be even |
| 2855 |
looser than \verb|\sloppy|, for two column typesetting with |
| 2856 |
\packname{PSFNSS} founts. Defines \verb|\RM@looseoption| to be 5. |
| 2857 |
|
| 2858 |
\end{description} |
| 2859 |
|
| 2860 |
|
| 2861 |
\subsection{Textheight setting} |
| 2862 |
\label{optrmp:textheight} |
| 2863 |
|
| 2864 |
These request a \comname{textheight} shorter or longer than normal. |
| 2865 |
If you allow space for headers and footers with the \optname{headers} |
| 2866 |
and \optname{footers} options, \optname{normallength} gives you the |
| 2867 |
same \comname{textheight} as you'd get with the standard classes. The |
| 2868 |
other lengths are scaled up and down from the normal value in a |
| 2869 |
geometrical sequence. (Actually, the total space above and below the |
| 2870 |
text body including headers and footers is the dimension that's scaled |
| 2871 |
in a geometrical sequence, but that shouldn't bother you too much.) |
| 2872 |
|
| 2873 |
The \optname{touchlength} options add or subtract one from the value |
| 2874 |
set here. |
| 2875 |
|
| 2876 |
There are also \optname{stdlength} and \optname{fulllength} options in |
| 2877 |
the configuration file; see section~\ref{optcfg:odd-lengths} on |
| 2878 |
page~\pageref{optcfg:odd-lengths}. |
| 2879 |
|
| 2880 |
\begin{description}\shorty\squish |
| 2881 |
\awakeoption{shortest} Sets |\RM@lengthoption=3|; this |
| 2882 |
number gives you: $|\RM@totalheadfootclearance|=0.5200|\paperheight|$ |
| 2883 |
\awakeoption{shorter} Sets |\RM@lengthoption=6| |
| 2884 |
\awakeoption{short} Sets |\RM@lengthoption=9| |
| 2885 |
\awakeoption{shortish} Sets |\RM@lengthoption=12| |
| 2886 |
\awakeoption{normallength} Default. Sets |\RM@lengthoption=15|; this |
| 2887 |
number gives you: $|\RM@totalheadfootclearance|=0.2130|\paperheight|$ |
| 2888 |
\awakeoption{longish} Sets |\RM@lengthoption=18| |
| 2889 |
\awakeoption{long} Sets |\RM@lengthoption=21| |
| 2890 |
\awakeoption{longer} Sets |\RM@lengthoption=24| |
| 2891 |
\awakeoption{longest} Sets |\RM@lengthoption=27|; this |
| 2892 |
number gives you: $|\RM@totalheadfootclearance|=0.0872|\paperheight|$ |
| 2893 |
\end{description} |
| 2894 |
% |
| 2895 |
% |
| 2896 |
\subsection{Headers and footers} |
| 2897 |
|
| 2898 |
These options only deal with the gap between text body and the header |
| 2899 |
(or footer). See section~\ref{optrmp:hfonoff} on |
| 2900 |
page~\pageref{optrmp:hfonoff} for options to turn the headers and footers |
| 2901 |
on and off. |
| 2902 |
|
| 2903 |
The way these options work is by setting a parameter which is passed |
| 2904 |
to the |\RM@scalebyoption| command, to scale the required page layout |
| 2905 |
parameter by a value in a geometric sequence. Have a look at the |
| 2906 |
command in \rmpage for the details. |
| 2907 |
|
| 2908 |
\comname{headsep} is just multiplied by the requested value. |
| 2909 |
\comname{footskip} is the distance from the bottom of the text body to |
| 2910 |
the bottom of the footer. To approximate a scaling of the distance |
| 2911 |
between the top of the footer and the bottom of the text, \rmpage |
| 2912 |
assumes that the footer is a single line that is \comname{baselineskip} |
| 2913 |
high, and subtracts \comname{baselineskip} from \comname{footskip} |
| 2914 |
before scaling, and adds it back afterwards. This seems to work well |
| 2915 |
enough. |
| 2916 |
|
| 2917 |
The value set by the options below can be modified by the |
| 2918 |
\optname{touchheadsep} and \optname{touchfootskip} options, which add |
| 2919 |
or subtract one from the appropriate parameter. |
| 2920 |
|
| 2921 |
% Headsep is scaled by option |
| 2922 |
% |
| 2923 |
\begin{description}\shorty\squish |
| 2924 |
\awakeoption{leastheadsep} Sets |\RM@headsepoption=3| |
| 2925 |
\awakeoption{lessheadsep} Sets |\RM@headsepoption=6| |
| 2926 |
\awakeoption{lessishheadsep} Sets |\RM@headsepoption=9| |
| 2927 |
\awakeoption{normalheadsep} Default. Sets |\RM@headsepoption=12| |
| 2928 |
\awakeoption{moreishheadsep} Sets |\RM@headsepoption=15| |
| 2929 |
\awakeoption{moreheadsep} Sets |\RM@headsepoption=18| |
| 2930 |
\awakeoption{mostheadsep} Sets |\RM@headsepoption=21| |
| 2931 |
% |
| 2932 |
% Footskip is scaled by option |
| 2933 |
% |
| 2934 |
\awakeoption{leastfootskip} Sets |\RM@footskipoption=3| |
| 2935 |
\awakeoption{lessfootskip} Sets |\RM@footskipoption=6| |
| 2936 |
\awakeoption{lessishfootskip} Sets |\RM@footskipoption=9| |
| 2937 |
\awakeoption{normalfootskip} Default. Sets |\RM@footskipoption=12| |
| 2938 |
\awakeoption{moreishfootskip} Sets |\RM@footskipoption=15| |
| 2939 |
\awakeoption{morefootskip} Sets |\RM@footskipoption=18| |
| 2940 |
\awakeoption{mostfootskip} Sets |\RM@footskipoption=21| |
| 2941 |
\end{description} |
| 2942 |
% |
| 2943 |
% The marginpar setting options are now in rmplocal.cfg |
| 2944 |
|
| 2945 |
\subsection{Columnsep} |
| 2946 |
\label{optrmp:columnsep} |
| 2947 |
|
| 2948 |
\comname{columnsep} is a standard \LaTeX\ parameter: it is the space |
| 2949 |
in between columns of text on a multiple column page. The |
| 2950 |
\optname{colsep} options scale \comname{columnsep} using the internal |
| 2951 |
\comname{RM@scalebyoption} command: see |
| 2952 |
section~\ref{htw:headfootmpar} on page~\pageref{htw:headfootmpar} |
| 2953 |
for details. Briefly, \optname{normalcolsep} does nothing; |
| 2954 |
\optname{mostcolsep} multiplies \comname{colsep} by 2.5; |
| 2955 |
\optname{leastcolsep} divides \comname{columnsep} by 2.5; and |
| 2956 |
intermediate options use a factor in between along a geometrical |
| 2957 |
sequence. |
| 2958 |
|
| 2959 |
There are corresponding \optname{touchcolsep} options. They must be |
| 2960 |
executed after these main options, which is easily arranged---see |
| 2961 |
section~\ref{optcfg:touchoptions} on page~\pageref{optcfg:touchoptions} for |
| 2962 |
the details. |
| 2963 |
|
| 2964 |
\begin{description}\shorty\squish |
| 2965 |
\awakeoption{leastcolsep} Sets \comname{RM@columnsepoption} to 3 |
| 2966 |
\awakeoption{lesscolsep} Sets \comname{RM@columnsepoption} to 6 |
| 2967 |
\awakeoption{lessishcolsep} Sets \comname{RM@columnsepoption} to 9 |
| 2968 |
\awakeoption{normalcolsep} Default. Sets \comname{RM@columnsepoption} to 12 |
| 2969 |
\awakeoption{moreishcolsep} Sets \comname{RM@columnsepoption} to 15 |
| 2970 |
\awakeoption{morecolsep} Sets \comname{RM@columnsepoption} to 18 |
| 2971 |
\awakeoption{mostcolsep} Sets \comname{RM@columnsepoption} to 21 |
| 2972 |
\end{description} |
| 2973 |
|
| 2974 |
|
| 2975 |
If \comname{RM@adaptivecolseptrue}, then \comname{columnsep} is set to |
| 2976 |
be a fraction of the number of points per character. This isn't |
| 2977 |
always appropriate, and the flag is set to false by default. |
| 2978 |
|
| 2979 |
\begin{description}\shorty\squish |
| 2980 |
\awakeoption{adaptivecolsep} \comname{columnsep} is set to be 2.3 |
| 2981 |
times the width of one average character, according to \rmpage's |
| 2982 |
reckoning. This new value can be scaled by the |
| 2983 |
\optname{mostcolsep} to \optname{leastcolsep} options. |
| 2984 |
|
| 2985 |
The standard \comname{columnsep} is 2.03 times the width of one |
| 2986 |
average 10\units{pt} Computer Modern Roman character. This is a |
| 2987 |
useful option if you are creating a style based on a fount size larger |
| 2988 |
than 12\units{pt}. Otherwise, it seems to be a good idea on Mondays, |
| 2989 |
Wednesdays, and Fridays; not so good on Tuesdays, Thursdays, and |
| 2990 |
Saturdays; and on Sundays, I write Ogham on tree bark. |
| 2991 |
|
| 2992 |
\awakeoption{noadaptivecolsep} Default. \comname{columnsep} is not |
| 2993 |
changed from its default value, although it might be scaled by the |
| 2994 |
\optname{mostcolsep} to \optname{leastcolsep} options. |
| 2995 |
|
| 2996 |
\end{description} |
| 2997 |
% |
| 2998 |
% stdmargins: large margin outside, small margin inside. |
| 2999 |
% notdstdmargins: large margin inside, small margin outside. |
| 3000 |
% |
| 3001 |
% |
| 3002 |
% Note that the width option setting options need to be executed in |
| 3003 |
% the order they are declared here: so that you can increment or |
| 3004 |
% decrement narrowest---widest; but stdwidth, half and one inchmargins, |
| 3005 |
% and fullwidth are all fixed options. |
| 3006 |
% |
| 3007 |
% One easy way of ensuring this is to keep these options declared in |
| 3008 |
% this order and use \ProcessOptions rather than \ProcessOptions* |
| 3009 |
% |
| 3010 |
\subsection{Width of the text body} |
| 3011 |
\label{optrmp:textwidth} |
| 3012 |
|
| 3013 |
The width options let you ask for a larger or smaller |
| 3014 |
\comname{textwidth}. Following the basic idea of the standard |
| 3015 |
classes, \rmpage calculates two different \comname{textwidths}: one |
| 3016 |
is based on the number of characters in a line; the other is based on |
| 3017 |
the size of the paper. The smaller of these two guesses is used as |
| 3018 |
the basis for the final \comname{textwidth}---\comname{textwidth} is |
| 3019 |
also constrained by \comname{RM@mintextwidth}, |
| 3020 |
\comname{RM@maxtextwidth}, \comname{RM@mininsidemargin}, |
| 3021 |
\comname{RM@minoutsidemargin}, \comname{RM@minleftclearance}, and |
| 3022 |
\comname{RM@minrightclearance}. |
| 3023 |
|
| 3024 |
\rmpage is inclined to print out warnings if it has to change its |
| 3025 |
preferred \comname{textwidth} because of one of the above |
| 3026 |
restrictions---the \optname{yorkshire} option will silence these |
| 3027 |
warnings if you find them irritating. |
| 3028 |
|
| 3029 |
The \optname{normalwidth} option gives a \comname{textwidth} close to |
| 3030 |
the standard \LaTeX\ width on US letter or A4 paper, where the |
| 3031 |
character-based width is usually used (wide founts like Lucida Casual |
| 3032 |
are the exception to this). \comname{textwidth} is larger than usual |
| 3033 |
if you print on smaller paper, where the paper-based |
| 3034 |
\comname{textwidth} is used. The options ranging out to |
| 3035 |
\optname{widest} and \optname{narrowest} request a |
| 3036 |
\comname{textwidth} varying in a smooth geometrical sequence, but |
| 3037 |
remember that the smaller of the two widths (character-based and |
| 3038 |
paper-based) is used, and there are several other restrictions on |
| 3039 |
\comname{textwidth}, so this smooth progression may not be apparent |
| 3040 |
as you step up or down through the options. The gory details are in |
| 3041 |
the file \filename{rmpnorm}. |
| 3042 |
|
| 3043 |
You can control which of the two widths---character-based or |
| 3044 |
paper-based---is used as the final \comname{textwidth}. See the next |
| 3045 |
section (section~\ref{gen:widthsettingcontrol}) for details. |
| 3046 |
|
| 3047 |
The \optname{stdwidth} option forces \rmpage to calculate the |
| 3048 |
\comname{textwidth} in the same way as the standard classes, except |
| 3049 |
that the final value is still subject to the restrictions listed |
| 3050 |
above. So it is possible to ask for \optname{stdwidth} and get a |
| 3051 |
\comname{textwidth} that is not what you'd've got with the a standard |
| 3052 |
class. \rmpage will warn you if this happens. |
| 3053 |
|
| 3054 |
\begin{description}\shorty\squish |
| 3055 |
|
| 3056 |
\awakeoption{widest} Paper-based textwidth is set to 1.3096 times the |
| 3057 |
\optname{normalwidth} value; character-based textwidth is set to 1.9761 |
| 3058 |
times the \optname{normalwidth} value. Sets \comname{RM@widthoption} to 26 |
| 3059 |
|
| 3060 |
\awakeoption{wider} Sets \comname{RM@widthoption} to 23 |
| 3061 |
|
| 3062 |
\awakeoption{wide} Sets \comname{RM@widthoption} to 20 |
| 3063 |
|
| 3064 |
\awakeoption{wideish} Sets \comname{RM@widthoption} to 17 |
| 3065 |
|
| 3066 |
\awakeoption{normalwidth} Default. Paper-based \comname{textwidth} is |
| 3067 |
set to |0.7138\paperwidth|; character-based \comname{textwidth} is set |
| 3068 |
to 78.5 characters (10\units{pt}), 74.8 characters (11\units{pt}), or |
| 3069 |
75.5 characters (12\units{pt})---this produces a character-based |
| 3070 |
\comname{textwidth} very close to the standard width setting code. |
| 3071 |
Sets \comname{RM@widthoption} to 14 |
| 3072 |
|
| 3073 |
\awakeoption{narrowish} Sets \comname{RM@widthoption} to 11 |
| 3074 |
|
| 3075 |
\awakeoption{narrow} Sets \comname{RM@widthoption} to 8 |
| 3076 |
|
| 3077 |
\awakeoption{narrower} Sets \comname{RM@widthoption} to 5 |
| 3078 |
|
| 3079 |
\awakeoption{narrowest} Paper-based textwidth is set to 0.7636 times the |
| 3080 |
\optname{normalwidth} value; character-based textwidth is set to 0.5061 |
| 3081 |
times the \optname{normalwidth} value. Sets \comname{RM@widthoption} to 2 |
| 3082 |
|
| 3083 |
% |
| 3084 |
% The touchwidth options are in rmplocal.cfg now. |
| 3085 |
% |
| 3086 |
\awakeoption{stdwidth} Attempts to produce a page with the same |
| 3087 |
\comname{textwidth} as the standard classes would give. Sets |
| 3088 |
\comname{RM@widthoption} to 32 |
| 3089 |
|
| 3090 |
\awakeoption{halfinchmargins} Attempts to produce a page with a total |
| 3091 |
horizontal margin space of one inch. If you have asked for |
| 3092 |
\optname{centre}d printing, \rmpage will try to produce half inch |
| 3093 |
margins either side. |
| 3094 |
Sets \comname{RM@widthoption} to 31 |
| 3095 |
|
| 3096 |
\awakeoption{oneinchmargins} Attempts to produce a page with a total |
| 3097 |
horizontal margin space of two inches. If you have asked for |
| 3098 |
\optname{centre}d printing, \rmpage will try to produce one inch |
| 3099 |
margins either side. |
| 3100 |
Sets \comname{RM@widthoption} to 30 |
| 3101 |
|
| 3102 |
\awakeoption{fullwidth} Produces the widest possible |
| 3103 |
\comname{textwidth} given all other restrictions. Sets |
| 3104 |
\comname{RM@widthoption} to 29 |
| 3105 |
% |
| 3106 |
\end{description} |
| 3107 |
|
| 3108 |
\subsection{Width setting control} |
| 3109 |
\label{gen:widthsettingcontrol} |
| 3110 |
|
| 3111 |
These control which dimensions \rmpage takes notice of when setting |
| 3112 |
\comname{textwidth}---\rmpage can look at the size of the paper and |
| 3113 |
the number of characters when it's setting \comname{textwidth}. |
| 3114 |
Normally it looks at both, and picks the one that results in the |
| 3115 |
smallest \comname{textwidth}. The code that does this is in the width |
| 3116 |
setting \filename{pko} file; it works out what to do based on the |
| 3117 |
value of the |\RM@setwidthby| command. |
| 3118 |
|
| 3119 |
If you ask for one of these widths: \optname{oneinchmargin}, |
| 3120 |
\optname{halfinchmargin}, and \optname{fullwidth}, you shouldn't also |
| 3121 |
ask for \optname{characterwidthset}, because the width options ask |
| 3122 |
for widths that are inherently based on the size of the paper. |
| 3123 |
\rmpage will point out this mistake if you make it, and carry on as if |
| 3124 |
you'd not said \optname{characterwidthset}. |
| 3125 |
|
| 3126 |
I'm not that keen on these option names, especially |
| 3127 |
\optname{bothwidthset} which is formed in a regular sequence with the |
| 3128 |
other two, and ends up both ugly and not very descriptive; if you can |
| 3129 |
come up with something better, please let me know. |
| 3130 |
|
| 3131 |
% |
| 3132 |
% 0 = set width by character and paper-based widths (default) |
| 3133 |
% 1 = set width by character-based width only |
| 3134 |
% 2 = set width by paper-based width only |
| 3135 |
% |
| 3136 |
% The bothwidth option is redundant, which is a good thing because I |
| 3137 |
% really don't like the name |
| 3138 |
|
| 3139 |
\begin{description}\shorty\squish |
| 3140 |
\awakeoption{bothwidthset} Default. Use both paper and character |
| 3141 |
based \comname{textwidth} requests to set \comname{textwidth}. |
| 3142 |
Defines|\RM@setwidthby| to be 0 |
| 3143 |
|
| 3144 |
\awakeoption{characterwidthset} Use the character based \comname{textwidth} |
| 3145 |
request only to set \comname{textwidth}. Defines |\RM@setwidthby| to be 1 |
| 3146 |
|
| 3147 |
\awakeoption{paperwidthset} Use the paper based \comname{textwidth} |
| 3148 |
request only to set \comname{textwidth}. Defines |\RM@setwidthby| to be 2 |
| 3149 |
\end{description} |
| 3150 |
% |
| 3151 |
|
| 3152 |
|
| 3153 |
\subsection{Margins} |
| 3154 |
\label{optrmp:margins} |
| 3155 |
|
| 3156 |
The options in this section control the horizontal position of the |
| 3157 |
text body. The \optname{twoside} and \optname{oneside} options are |
| 3158 |
standard options that \rmpage understand; the rest of them are new in |
| 3159 |
\rmpage. |
| 3160 |
|
| 3161 |
It's probably best to read about all of these options, not just some |
| 3162 |
of them, because they all interact to some extent. |
| 3163 |
|
| 3164 |
|
| 3165 |
\begin{description}\shorty\squish |
| 3166 |
|
| 3167 |
\awakeoption{twoside} Places the text body for printing on both sides |
| 3168 |
of the paper, taking into account the requested offest and which |
| 3169 |
margin you want to be the larger one (inside or out). |
| 3170 |
|
| 3171 |
Sets \verb|\RM@twosidetrue| and \verb|\@mparswitchtrue|; the latter |
| 3172 |
step is performed by the standard classes. I'm not certain this is |
| 3173 |
the right thing to do; it means you get the standard classes' effect |
| 3174 |
if you pass this option to \rmpage only. But you might want to avoid |
| 3175 |
the standard classes' effect\ldots{} But if you're that clever, you |
| 3176 |
can reset the switch yourself. |
| 3177 |
|
| 3178 |
|
| 3179 |
\awakeoption{oneside} Default. Places the text body for printing on |
| 3180 |
both sides of the paper, taking into account the requested offest and |
| 3181 |
which margin you want to be the larger one (inside or out). Sets |
| 3182 |
\verb|\RM@twosidefalse| |
| 3183 |
|
| 3184 |
\awakeoption{centre} Forces the left and right margins to be the same |
| 3185 |
size. Sets \verb|\RM@centretrue|. |
| 3186 |
|
| 3187 |
\awakeoption{notcentre} Default. Allows the left and right margins |
| 3188 |
to be different sizes. Sets \verb|\RM@centrefalse| |
| 3189 |
|
| 3190 |
\end{description} |
| 3191 |
|
| 3192 |
|
| 3193 |
The options in the list below control which margin is the larger one. |
| 3194 |
Conventional book typesetting and \LaTeX\ makes the outside margin the |
| 3195 |
larger one; \rmpage makes the inside margin the larger one. This is |
| 3196 |
because most of what I produce is bound in loose-leaf ring-binders, |
| 3197 |
where having a small inside margin often results in a holes in the |
| 3198 |
text. |
| 3199 |
|
| 3200 |
You can change this default setting by changing the |
| 3201 |
\optname{notstdmargins} option to \optname{stdmargins} in the default |
| 3202 |
\comname{ExecuteOptions} statement in your local configuration file. |
| 3203 |
You will find this statement just below the line in the configuration |
| 3204 |
file that reads: \textsc{change this line to match your local |
| 3205 |
preferences}. |
| 3206 |
|
| 3207 |
\begin{description}\shorty\squish |
| 3208 |
|
| 3209 |
\awakeoption{stdmargins} Default. Outside margin is the larger one. Sets |
| 3210 |
\comname{RM@stdmarginstrue} |
| 3211 |
|
| 3212 |
\awakeoption{notstdmargins} Inside margin in the larger |
| 3213 |
one. Sets \comname{RM@stdmarginsfalse} |
| 3214 |
|
| 3215 |
\end{description} |
| 3216 |
|
| 3217 |
|
| 3218 |
You can control the relative proportions of the inside and outside |
| 3219 |
margins with the \optname{offset} options. |
| 3220 |
These offset options don't do anything if the centre option has been |
| 3221 |
specified. |
| 3222 |
|
| 3223 |
The default offset is 60\% of the total horizontal margin space in the |
| 3224 |
larger margin, 40\% in the smaller. This the the standard \LaTeXe\ |
| 3225 |
offset. \optname{leastoffset} gives you equal margins; |
| 3226 |
\optname{touchlessoffset} and \optname{leastoffset} together makes the |
| 3227 |
nominally larger margin into the smaller one, by a small amount. |
| 3228 |
\rmpage will warn you if this happens. \optname{mostoffset} puts |
| 3229 |
87\% of the total horizontal margin space into the larger margin; this |
| 3230 |
is about as far over to one side as your printer is likely to be able |
| 3231 |
to print. |
| 3232 |
|
| 3233 |
There are \optname{touchoffset} options in the standard configuration |
| 3234 |
files---see section~\ref{optcfg:touchoptions} on page~\pageref{optcfg:touchoptions} |
| 3235 |
|
| 3236 |
Have a look at \filename{rmpnorm} for more details if you need them. |
| 3237 |
|
| 3238 |
|
| 3239 |
\begin{description}\shorty\squish |
| 3240 |
\awakeoption{leastoffset} 50\% larger margin. Sets \comname{RM@offsetoption} to 2 |
| 3241 |
\awakeoption{lessoffset} 53\% larger margin. Sets \comname{RM@offsetoption} to 5 |
| 3242 |
\awakeoption{lessishoffset} 56\% larger margin. Sets \comname{RM@offsetoption} to 8 |
| 3243 |
\awakeoption{normaloffset} Default. 60\% larger margin. Sets \comname{RM@offsetoption} to 11 |
| 3244 |
\awakeoption{moreishoffset} 68\% larger margin. Sets \comname{RM@offsetoption} to 14 |
| 3245 |
\awakeoption{moreoffset} 77\% larger margin. Sets \comname{RM@offsetoption} to 17 |
| 3246 |
\awakeoption{mostoffset} 87\% larger margin. Sets \comname{RM@offsetoption} to 20 |
| 3247 |
\end{description} |
| 3248 |
|
| 3249 |
The touchoffset options must be executed after the offset options. |
| 3250 |
This is easy to arrange: just declare the options with the |
| 3251 |
\optname{touch} options after the main options, and use |
| 3252 |
\comname{ProcessOptions} rather than \comname{ProcessOptions*} (that |
| 3253 |
is, these options must be processed in the order of declaration, |
| 3254 |
rather than the order given in the calling commands). |
| 3255 |
|
| 3256 |
\subsection{Number of columns} |
| 3257 |
|
| 3258 |
Note that the standard classes set the \comname{@twocolumn} flag true |
| 3259 |
or false, depending. \rmpage doesn't, and works quite happily without |
| 3260 |
it. |
| 3261 |
|
| 3262 |
The config file has \optname{onecolumnwidth} to |
| 3263 |
\optname{tencolumnwidth} options, which change \comname{textwidth} but |
| 3264 |
don't change the number of columns that \LaTeX\ typesets text in. You |
| 3265 |
can use the \packname{multicol} package to do that. |
| 3266 |
|
| 3267 |
\begin{description}\shorty\squish |
| 3268 |
|
| 3269 |
\awakeoption{onecolumn} Default. This standard option is recognised |
| 3270 |
by \rmpage. This option makes the standard classes typeset one column |
| 3271 |
to a page; \rmpage\ calculates a character-based \comname{textwidth} |
| 3272 |
based on this. Defines \comname{RM@textcols} to be 1. |
| 3273 |
|
| 3274 |
\awakeoption{twocolumn} This standard option is recognised by \rmpage. |
| 3275 |
This option makes the standard classes typeset two columns to a page; |
| 3276 |
\rmpage\ calculates a character-based \comname{textwidth} based on |
| 3277 |
this. Defines \comname{RM@textcols} to be 2. |
| 3278 |
|
| 3279 |
\end{description} |
| 3280 |
|
| 3281 |
\subsection{Paper orientation} |
| 3282 |
|
| 3283 |
These options really do force the appropriate orientation; the |
| 3284 |
standard classes just swap \comname{textheight} and |
| 3285 |
\comname{textwidth} when asked for \optname{landscape}. Remember that |
| 3286 |
you'll most likely want to print your envelopes landscape, even if |
| 3287 |
your printer driver thinks you mean portrait (Hewlett Packard's |
| 3288 |
DeskWriter series 6.0 printer driver gets this wrong. Oops.) And |
| 3289 |
2/3~A4 is usually used in landscape orientation, even though you'll |
| 3290 |
probably think it's portrait---I know I did. |
| 3291 |
|
| 3292 |
\begin{description}\shorty\squish |
| 3293 |
|
| 3294 |
\awakeoption{portrait} Default. Forces \comname{textwidth} to be less |
| 3295 |
than \comname{textheight}. Sets |\RM@portraittrue| |
| 3296 |
|
| 3297 |
\awakeoption{landscape} Forces \comname{textwidth} to be more than |
| 3298 |
\comname{textheight}. Sets |\RM@portraitfalse| |
| 3299 |
|
| 3300 |
\end{description} |
| 3301 |
|
| 3302 |
\subsection{Headers and footers} |
| 3303 |
\label{optrmp:hfonoff} |
| 3304 |
|
| 3305 |
Allows space for headers and footers, or not, as you wish. These |
| 3306 |
options \emph{do not} affect the contents of headers and footers in |
| 3307 |
any way: if you want to change the \LaTeX\ \comname{pagestyle}, you |
| 3308 |
must do that separately. |
| 3309 |
|
| 3310 |
Turning headers and footers on and off changes \comname{textheight}: |
| 3311 |
this is because of the way \rmpage calculates \comname{textheight}. |
| 3312 |
|
| 3313 |
\rmpage first calculates the sum of the blank space above and below |
| 3314 |
all the text on the page; this is a constant fraction of |
| 3315 |
\comname{paperheight} for any given length option. What is left over |
| 3316 |
after space has been allowed for headers and footers is |
| 3317 |
\comname{textheight} |
| 3318 |
|
| 3319 |
\begin{description}\shorty\squish |
| 3320 |
\awakeoption{noheaders} Produce a layout for pages without headers. |
| 3321 |
Sets |\RM@headersfalse|; this results in \comname{headheight} and |
| 3322 |
\comname{headsep} being set to 0\units{pt}. |
| 3323 |
|
| 3324 |
\awakeoption{headers} Default. Produce a layout for pages with |
| 3325 |
headers. Sets |\RM@headerstrue|; this results in \comname{headheight} |
| 3326 |
being set to \comname{baselineskip}. |
| 3327 |
|
| 3328 |
\awakeoption{nofooters} Produce a layout for pages without footers. |
| 3329 |
Sets |\RM@footersfalse|; this results in \comname{footskip} being set |
| 3330 |
to 0\units{pt} |
| 3331 |
|
| 3332 |
\awakeoption{footers} Default. Produce a layout for pages with |
| 3333 |
footers. Sets |\RM@footerstrue|. |
| 3334 |
|
| 3335 |
\end{description} |
| 3336 |
|
| 3337 |
\subsection{Positioning the text body vertically} |
| 3338 |
\label{optrmp:altitude} |
| 3339 |
|
| 3340 |
These options affect the ratio between the gap below all the text and |
| 3341 |
the gap above all the text. The \optname{touchaltitude} |
| 3342 |
options change this ratio in increments of $1/24$. |
| 3343 |
|
| 3344 |
\begin{description}\shorty\squish |
| 3345 |
|
| 3346 |
\awakeoption{highest} Top:bottom space = 0:8. Sets |
| 3347 |
|\RM@headfootbalance=0| |
| 3348 |
|
| 3349 |
\awakeoption{higher} Top:bottom space = 1:8. Sets |
| 3350 |
|\RM@headfootbalance=3| |
| 3351 |
|
| 3352 |
\awakeoption{high} Top:bottom space = 2:8. Sets |
| 3353 |
|\RM@headfootbalance=6| |
| 3354 |
|
| 3355 |
\awakeoption{highish} Top:bottom space = 3:8. Sets |
| 3356 |
|\RM@headfootbalance=9| |
| 3357 |
|
| 3358 |
\awakeoption{normalaltitude} Default. Top:bottom space = 4:8. Sets |
| 3359 |
|\RM@headfootbalance=12| |
| 3360 |
|
| 3361 |
\awakeoption{lowish} Top:bottom space = 5:8. Sets |
| 3362 |
|\RM@headfootbalance=15| |
| 3363 |
|
| 3364 |
\awakeoption{low} Top:bottom space = 6:8. Sets |
| 3365 |
|\RM@headfootbalance=18| |
| 3366 |
|
| 3367 |
\awakeoption{lower} Top:bottom space = 7:8. Sets |
| 3368 |
|\RM@headfootbalance=21| |
| 3369 |
|
| 3370 |
\awakeoption{lowest} Top:bottom space = 8:8. Sets |
| 3371 |
|\RM@headfootbalance=24| |
| 3372 |
|
| 3373 |
\end{description} |
| 3374 |
|
| 3375 |
\subsection{Changing the date format} |
| 3376 |
|
| 3377 |
|
| 3378 |
\begin{description}\shorty\squish |
| 3379 |
|
| 3380 |
\awakeoption{usdate} Default. Sets |\RM@nicedatefalse|, which causes |
| 3381 |
nothing to happen; the \comname{today} command is unmolested. |
| 3382 |
|
| 3383 |
\awakeoption{ukdate} Sets |\RM@nicedatetrue|, which causes the |
| 3384 |
\comname{today} command to be re-defined to produce a date of the form |
| 3385 |
`4th April 1984'. This is the setting I use as a default; I do this |
| 3386 |
by putting the \optname{ukdate} option in the local settings |
| 3387 |
\comname{ExecuteOptions} statement in my local configuration file. |
| 3388 |
|
| 3389 |
\end{description} |
| 3390 |
% |
| 3391 |
% The option to load founts and set textwidth by fount size are now |
| 3392 |
% in rmplocal.cfg |
| 3393 |
% |
| 3394 |
% Printer types were: |
| 3395 |
% 0=fullbleed, 1=general, 2=dw520, 3=dw600, 4=pessimistic |
| 3396 |
% |
| 3397 |
% all printer options are now in rmplocal.cfg |
| 3398 |
% |
| 3399 |
% Printer types are: |
| 3400 |
% 0=fullbleed, 1=general, 2=pessimistic, 3=optimistic |
| 3401 |
% 10=dw300 11=dw500 12=dw600 (HP deskwriter inkjet series) |
| 3402 |
% 20=lj2 21=lj3 22=lj4 (HP laserjet laser printer series) |
| 3403 |
% 30=canonbjx bubblejet something (Canon bubblejet inkjet series) |
| 3404 |
% 40+ whatever else comes up |
| 3405 |
% |
| 3406 |
% The figures for all these printers are guesses, except for the DW500 |
| 3407 |
% and DW600: any data on printing margins for the printers above or |
| 3408 |
% other commonly-used printers would be gratefully received. I need to |
| 3409 |
% know about printing limits at the top, bottom, left, and right for |
| 3410 |
% portrait and landscape modes, and whether the data is what the book |
| 3411 |
% says or what you measured (preferrably both, but anything'll help). |
| 3412 |
% If anyone really uses LaTeX with an A3 printer, do tell: it's |
| 3413 |
% something I've been wondering about. |
| 3414 |
% |
| 3415 |
% |
| 3416 |
\subsection{Dealing with the \packname{beton} package} |
| 3417 |
\label{optrmp:beton} |
| 3418 |
|
| 3419 |
The code to let \rmpage work with \packname{beton} felt rather |
| 3420 |
complicated to write. The thing about the \packname{beton} package |
| 3421 |
is that it changes \comname{baselineskip} to something non-standard. |
| 3422 |
\rmpage needs to know what \comname{baselineskip} is so that it can |
| 3423 |
set \comname{textheight}, but \packname{beton}'s changes aren't made |
| 3424 |
until the \comname{AtBeginDocument} hook is executed by \LaTeX, which |
| 3425 |
is after \rmpage has been loaded. I had to steal code from |
| 3426 |
\packname{beton}~v1.3 to deal with this, which might cause problems if you |
| 3427 |
try to use \rmpage with other versions of \packname{beton}. |
| 3428 |
|
| 3429 |
|
| 3430 |
The result is that if you are using the \packname{beton} package |
| 3431 |
without passing it the \optname{standard-baselineskips} option, you should |
| 3432 |
specify either the \optname{beton} or the \optname{nobeton} option to |
| 3433 |
\rmpage: the first option uses \packname{beton}'s modified |
| 3434 |
\comname{baselineskip} to set \comname{textheight}; the second option |
| 3435 |
uses the standard \comname{baselineskip}, and can be ommitted if you |
| 3436 |
have specified the \optname{standard-baselineskips} option to |
| 3437 |
\packname{beton}. |
| 3438 |
|
| 3439 |
|
| 3440 |
The problem with the \optname{beton} option is that if you specify it, |
| 3441 |
\rmpage uses code stolen from the guts of \packname{beton}~version~1.3 |
| 3442 |
to set the appropriate \comname{baselineskip}. There is no guarantee |
| 3443 |
that this code will work with other versions of \packname{beton}. |
| 3444 |
|
| 3445 |
\begin{description}\shorty\squish |
| 3446 |
\awakeoption{beton} calculate a \comname{textheight} |
| 3447 |
based on the \packname{beton} package's \comname{baselineskip} |
| 3448 |
|
| 3449 |
\awakeoption{nobeton} calculate a \comname{textheight} |
| 3450 |
based on the standard \comname{baselineskip} |
| 3451 |
|
| 3452 |
Both these options set the |\RM@ifbeton| command to a number. It's |
| 3453 |
played about with before and after here. The final value of the |
| 3454 |
|\RM@ifbeton| command is given these meanings within \rmpage: |
| 3455 |
\end{description} |
| 3456 |
|
| 3457 |
\noindent |
| 3458 |
\begin{tabularx}{\textwidth}{lX} |
| 3459 |
|
| 3460 |
0&\packname{beton} package loaded and the \optname{beton} option |
| 3461 |
specified\\ |
| 3462 |
|
| 3463 |
1&The \packname{beton} package has been loaded with neither the |
| 3464 |
\optname{beton} nor the \optname{nobeton} option specified\\ |
| 3465 |
|
| 3466 |
2&\packname{beton} package loaded and the \optname{beton} option not specified\\ |
| 3467 |
|
| 3468 |
3& The \packname{beton} package not loaded with neither the |
| 3469 |
\optname{beton} nor the \optname{nobeton} option specified\\ |
| 3470 |
|
| 3471 |
4& The \packname{beton} package not loaded and the \optname{nobeton} |
| 3472 |
option specified. |
| 3473 |
|
| 3474 |
\end{tabularx} |
| 3475 |
|
| 3476 |
|
| 3477 |
|
| 3478 |
|
| 3479 |
\section{From the configuration file} |
| 3480 |
|
| 3481 |
The following options are all from the configuration file. There's |
| 3482 |
nothing magical about this: they could all just as easily be in |
| 3483 |
\filename{rmpage.sty} at the point where the configuration file is |
| 3484 |
loaded. But the idea is that you can change the configuration file, |
| 3485 |
but not \rmpage, and \rmpage works faster with fewer option. So |
| 3486 |
comment out any of these options that you don't use very often (please |
| 3487 |
don't delete them: you never know when you might need them). |
| 3488 |
|
| 3489 |
The distributed configuration file \filename{rmpgen.cfg} has no |
| 3490 |
options commented out; this means it's quite slow. The distributed |
| 3491 |
configuration file \filename{rmplocal.gfc} does have some options |
| 3492 |
commented out---\rmpage works faster using this file. \rmpage will |
| 3493 |
not use \filename{rmplocal.gfc} as a configuration file unless you |
| 3494 |
tell it to. The most straightforward way to get \rmpage to use this faster |
| 3495 |
configuration file is to rename it \filename{rmplocal.cfg}. |
| 3496 |
|
| 3497 |
The idea is that you don't change \filename{rmpgen.cfg} at all: it's |
| 3498 |
intended to be a standard configuration file that any document can use |
| 3499 |
to produce identical output on any system by saying |
| 3500 |
|\newcommand{\RMconfigfile}{rmpgen.cfg}| in the preamble before the |
| 3501 |
|\usepackage{rmpage}| command. |
| 3502 |
|
| 3503 |
If you are short of disc space, you could delete |
| 3504 |
\filename{rmpgen.cfg}, but you might find you have to re-install it |
| 3505 |
one day to process a file that requires it. |
| 3506 |
|
| 3507 |
\filename{rmplocal.cfg} is intended to be changed by anyone. Please |
| 3508 |
read the comments in the file first, add a comment at the start of the |
| 3509 |
file to identify it as yours, and a note to the same effect in the |
| 3510 |
optional argument of the \comname{ProvidesFile}: life can get very |
| 3511 |
confused otherwise. Don't add or delete anything except comment |
| 3512 |
characters between the \comname{ProvidesFile} command and the line |
| 3513 |
\texttt{LOCAL CODE BELOW HERE PLEASE}. Make sensible changes below |
| 3514 |
the line \texttt{LOCAL CODE BELOW HERE PLEASE}; read the comments in |
| 3515 |
the configuration file and \filename{rmpage.dtx}, and use the commands |
| 3516 |
I use for doing things. If you do this, your code should work |
| 3517 |
perfectly with future versions of \rmpage. |
| 3518 |
|
| 3519 |
In the list below, options that look like this: {\asleepfount |
| 3520 |
obscurefunction}, are commented out in \filename{rmplocal.gfc}, whilst |
| 3521 |
options that look like this: {\awakefount usefulfunction}, are not |
| 3522 |
commented out. |
| 3523 |
|
| 3524 |
|
| 3525 |
\subsection{Other paper sizes} |
| 3526 |
\label{optcfg:papersizes} |
| 3527 |
|
| 3528 |
There are some notes on paper sizes in section~\ref{optrmp:paper-sizes} |
| 3529 |
on page~\pageref{optrmp:paper-sizes}. I suspect that the larger sizes |
| 3530 |
and untrimmed sizes will be useless, but it seemed churlish to leave |
| 3531 |
them out. |
| 3532 |
|
| 3533 |
|
| 3534 |
\begin{description}\shorty\squish |
| 3535 |
\asleepoption{undefinedpaper} Sets |\RM@papertype| to 0 -- does |
| 3536 |
nothing to \comname{paperheight} or \comname{paperwidth}. This paper |
| 3537 |
type has no purpose in life, yet. |
| 3538 |
|
| 3539 |
\asleepoption{letter4paper} Sets |\RM@papertype| to 9; this paper size |
| 3540 |
is an unholy bodge with the width of A4 and the height of US |
| 3541 |
letter. Documents typeset with this paper size will fit on A4 and US |
| 3542 |
letter paper, and look terrible on both. Size is 210mm by 8.5in. |
| 3543 |
|
| 3544 |
\asleepoption{a0paper} Sets |\RM@papertype| to 10 |
| 3545 |
-- 1189mm by 841mm |
| 3546 |
|
| 3547 |
\asleepoption{a1paper} Sets |\RM@papertype| to 11 |
| 3548 |
-- 841mm by 594mm |
| 3549 |
|
| 3550 |
\asleepoption{a2paper} Sets |\RM@papertype| to 12 |
| 3551 |
-- 594mm by 420mm |
| 3552 |
|
| 3553 |
\awakeoption{a3paper} Sets |\RM@papertype| to 13 |
| 3554 |
-- 420mm by 297mm |
| 3555 |
|
| 3556 |
|
| 3557 |
\awakeoption{a6paper} Sets |\RM@papertype| to 16 |
| 3558 |
-- 148mm by 105mm |
| 3559 |
|
| 3560 |
\asleepoption{a7paper} Sets |\RM@papertype| to 17 |
| 3561 |
-- 105mm by 74mm |
| 3562 |
|
| 3563 |
\asleepoption{a8paper} Sets |\RM@papertype| to 18 |
| 3564 |
-- 74mm by 52mm |
| 3565 |
|
| 3566 |
\asleepoption{a9paper} Sets |\RM@papertype| to 19 |
| 3567 |
-- 52mm by 37mm |
| 3568 |
|
| 3569 |
\asleepoption{a10paper} Sets |\RM@papertype| to 20 |
| 3570 |
-- 37mm by 26mm |
| 3571 |
|
| 3572 |
\asleepoption{b0paper} Sets |\RM@papertype| to 30 |
| 3573 |
-- 1414mm by 1000mm |
| 3574 |
|
| 3575 |
\asleepoption{b1paper} Sets |\RM@papertype| to 31 |
| 3576 |
-- 1000mm by 707mm |
| 3577 |
|
| 3578 |
\asleepoption{b2paper} Sets |\RM@papertype| to 32 |
| 3579 |
-- 707mm by 500mm |
| 3580 |
|
| 3581 |
\asleepoption{b3paper} Sets |\RM@papertype| to 33 |
| 3582 |
-- 500mm by 353mm |
| 3583 |
|
| 3584 |
\awakeoption{b4paper} Sets |\RM@papertype| to 34 |
| 3585 |
-- 353mm by 250mm |
| 3586 |
|
| 3587 |
|
| 3588 |
\awakeoption{b6paper} Sets |\RM@papertype| to 36 |
| 3589 |
-- 176mm by 125mm |
| 3590 |
|
| 3591 |
\awakeoption{b7paper} Sets |\RM@papertype| to 37 |
| 3592 |
-- 125mm by 88mm |
| 3593 |
|
| 3594 |
\asleepoption{b8paper} Sets |\RM@papertype| to 38 |
| 3595 |
-- 88mm by 62mm |
| 3596 |
|
| 3597 |
\asleepoption{b9paper} Sets |\RM@papertype| to 39 |
| 3598 |
-- 62mm by 44mm |
| 3599 |
|
| 3600 |
\asleepoption{b10paper} Sets |\RM@papertype| to 40 |
| 3601 |
-- 44mm by 31mm |
| 3602 |
|
| 3603 |
\asleepoption{c0paper} Sets |\RM@papertype| to 50 |
| 3604 |
-- 1297mm by 917mm |
| 3605 |
|
| 3606 |
\asleepoption{c1paper} Sets |\RM@papertype| to 51 |
| 3607 |
-- 917mm by 648mm |
| 3608 |
|
| 3609 |
\asleepoption{c2paper} Sets |\RM@papertype| to 52 |
| 3610 |
-- 648mm by 458mm |
| 3611 |
|
| 3612 |
\asleepoption{c3paper} Sets |\RM@papertype| to 53 |
| 3613 |
-- 458mm by 324mm |
| 3614 |
|
| 3615 |
\asleepoption{c4paper} Sets |\RM@papertype| to 54 |
| 3616 |
-- 324mm by 229mm |
| 3617 |
|
| 3618 |
\awakeoption{c5paper} Sets |\RM@papertype| to 55 |
| 3619 |
-- 229mm by 162mm |
| 3620 |
|
| 3621 |
\asleepoption{c7paper} Sets |\RM@papertype| to 57 |
| 3622 |
-- 114mm by 81mm |
| 3623 |
|
| 3624 |
\asleepoption{c7/6paper} Sets |\RM@papertype| to 59 |
| 3625 |
-- 162mm by 81mm |
| 3626 |
|
| 3627 |
\asleepoption{bspopseedenvelopepaper} Sets |\RM@papertype| to 60 |
| 3628 |
-- 152mm by 102mm. BS4264 UK post office preferred envelope: seed packets, |
| 3629 |
wage slips, general packaging. The name is one I invented. |
| 3630 |
|
| 3631 |
\asleepoption{bspopnonisoenvelopepaper} Sets |\RM@papertype| to 61 -- |
| 3632 |
229mm by 102mm. BS4264 UK post office preferred envelope: gen |
| 3633 |
commercial, non iso sizes. The name is one I invented. |
| 3634 |
|
| 3635 |
\asleepoption{bsbrochureenvelopepaper} Sets |\RM@papertype| to 62 -- |
| 3636 |
254mm by 178mm. BS4264 envelope; bulky A5, catalogues, brochures. |
| 3637 |
The name is one I invented. |
| 3638 |
|
| 3639 |
\asleepoption{bslegalenvelopepaper} Sets |\RM@papertype| to 63 -- |
| 3640 |
270mm by 216mm.\newline%Horrid bodge |
| 3641 |
BS4264 envelope; legal docs, catalogues, photos. The |
| 3642 |
name is one I invented. |
| 3643 |
|
| 3644 |
\asleepoption{bslargelegalenvelopepaper} Sets |\RM@papertype| to 64 -- |
| 3645 |
305mm by 127mm. BS4264 envelope; insurance policies, legal docs. The |
| 3646 |
name is one I invented. |
| 3647 |
|
| 3648 |
\asleepoption{bscalendarenvelopepaper} Sets |\RM@papertype| to 65 -- |
| 3649 |
381mm by 254mm. BS4264 envelope; bulky docs, calendars. The name is |
| 3650 |
one I invented. |
| 3651 |
|
| 3652 |
\awakeoption{foolscapfoliopaper} Sets |\RM@papertype| to 70 |
| 3653 |
-- 13.5in by 8.5in |
| 3654 |
|
| 3655 |
\asleepoption{foolscappaper} Sets |\RM@papertype| to 70 |
| 3656 |
-- 13.5in by 8.5in |
| 3657 |
|
| 3658 |
\asleepoption{foolscapquartopaper} Sets |\RM@papertype| to 71 |
| 3659 |
-- 8.5in by 6.75in |
| 3660 |
|
| 3661 |
\asleepoption{foolscapoctavopaper} Sets |\RM@papertype| to 72 |
| 3662 |
-- 6.75in by 4.25in |
| 3663 |
|
| 3664 |
\asleepoption{crownfoliopaper} Sets |\RM@papertype| to 73 |
| 3665 |
-- 15in by 10in |
| 3666 |
|
| 3667 |
\asleepoption{crownquartopaper} Sets |\RM@papertype| to 74 |
| 3668 |
-- 10in by 7.5in |
| 3669 |
|
| 3670 |
\asleepoption{crownoctavopaper} Sets |\RM@papertype| to 75 |
| 3671 |
-- 7.5in by 5in |
| 3672 |
|
| 3673 |
\asleepoption{royalfoliopaper} Sets |\RM@papertype| to 76 |
| 3674 |
-- 20in by 12.5in |
| 3675 |
|
| 3676 |
\asleepoption{royalquartopaper} Sets |\RM@papertype| to 77 |
| 3677 |
-- 12.5in by 10in |
| 3678 |
|
| 3679 |
\asleepoption{royaloctavopaper} Sets |\RM@papertype| to 78 |
| 3680 |
-- 10in by 6.25in |
| 3681 |
|
| 3682 |
\asleepoption{imperialfoliopaper} Sets |\RM@papertype| to 79 |
| 3683 |
-- 22in by 15.5in |
| 3684 |
|
| 3685 |
\asleepoption{imperialquartopaper} Sets |\RM@papertype| to 80 |
| 3686 |
-- 15in by 11in |
| 3687 |
|
| 3688 |
\asleepoption{imperialoctavopaper} Sets |\RM@papertype| to 81 |
| 3689 |
-- 11in by 7.5in |
| 3690 |
|
| 3691 |
\asleepoption{largecrownoctavopaper} Sets |\RM@papertype| to 82 |
| 3692 |
-- 8in by 5.25in |
| 3693 |
|
| 3694 |
\asleepoption{demyoquartopaper} Sets |\RM@papertype| to 83 |
| 3695 |
-- 11.25in by 8.75in |
| 3696 |
|
| 3697 |
\asleepoption{demyoctavopaper} Sets |\RM@papertype| to 84 |
| 3698 |
-- 8.75in by 5.625in |
| 3699 |
|
| 3700 |
\asleepoption{mediumquartopaper} Sets |\RM@papertype| to 85 |
| 3701 |
-- 12in by 9.5in |
| 3702 |
|
| 3703 |
\asleepoption{mediumoctavopaper} Sets |\RM@papertype| to 86 |
| 3704 |
-- 9.5in by 6in |
| 3705 |
|
| 3706 |
\asleepoption{ra0paper} Sets |\RM@papertype| to 90 |
| 3707 |
-- 1270mm by 960mm |
| 3708 |
|
| 3709 |
\asleepoption{ra1paper} Sets |\RM@papertype| to 91 |
| 3710 |
-- 1270mm by 960mm |
| 3711 |
|
| 3712 |
\asleepoption{ra2paper} Sets |\RM@papertype| to 92 |
| 3713 |
-- 1270mm by 960mm |
| 3714 |
|
| 3715 |
\asleepoption{sra0paper} Sets |\RM@papertype| to 93 |
| 3716 |
-- 1280mm by 900mm |
| 3717 |
|
| 3718 |
\asleepoption{sra1paper} Sets |\RM@papertype| to 94 |
| 3719 |
-- 900mm by 840mm |
| 3720 |
|
| 3721 |
\asleepoption{sra2paper} Sets |\RM@papertype| to 95 |
| 3722 |
-- 640mm by 450mm |
| 3723 |
|
| 3724 |
\asleepoption{metricdoublecrownpaper} Sets |\RM@papertype| to 96 |
| 3725 |
-- 770mm by 505mm |
| 3726 |
|
| 3727 |
\asleepoption{metricquadcrownpaper} Sets |\RM@papertype| to 97 |
| 3728 |
-- 1010mm by 770mm |
| 3729 |
|
| 3730 |
\asleepoption{metriclargequadcrownpaper} Sets |\RM@papertype| to 98 |
| 3731 |
-- 1060mm by 820mm |
| 3732 |
|
| 3733 |
\asleepoption{metricquaddemypaper} Sets |\RM@papertype| to 99 |
| 3734 |
-- 1030mm by 890mm |
| 3735 |
|
| 3736 |
\asleepoption{metricsmallquadroyalpaper} Sets |\RM@papertype| to 100 |
| 3737 |
--\newline%Horrid bodge |
| 3738 |
1270mm by 960mm |
| 3739 |
|
| 3740 |
\end{description} |
| 3741 |
|
| 3742 |
The long paper sizes are described in detail in |
| 3743 |
section~\ref{optrmp:paper-sizes} on page~\pageref{optrmp:paper-sizes}. |
| 3744 |
|
| 3745 |
\begin{description}\shorty\squish |
| 3746 |
|
| 3747 |
\asleepoption{notlongpaper} Sets |\RM@longpapertypelong| to 0; not |
| 3748 |
long---the default. |
| 3749 |
|
| 3750 |
\asleepoption{7/8longpaper} Sets |\RM@longpapertypelong| to 1; 7/8 |
| 3751 |
long. The selected paper size has its longest dimension multiplied by |
| 3752 |
7/8. |
| 3753 |
|
| 3754 |
\awakeoption{3/4longpaper}Sets |\RM@longpapertypelong| to 2; 3/4 |
| 3755 |
long. The selected paper size has its longest dimension multiplied by |
| 3756 |
3/4. |
| 3757 |
|
| 3758 |
\awakeoption{2/3longpaper}Sets |\RM@longpapertypelong| to 3; 2/3 |
| 3759 |
long. The selected paper size has its longest dimension multiplied by |
| 3760 |
2/3. |
| 3761 |
|
| 3762 |
\asleepoption{5/8longpaper}Sets |\RM@longpapertypelong| to 4; 5/8 |
| 3763 |
long. The selected paper size has its longest dimension multiplied by |
| 3764 |
2/3. |
| 3765 |
|
| 3766 |
\asleepoption{1/2longpaper}Sets |\RM@longpapertypelong| to 5; 1/2 long. |
| 3767 |
The selected paper size has its longest dimension multiplied by 1/2. |
| 3768 |
This is slightly different for asking for the next size down in an ISO |
| 3769 |
series; these long sizes are not rounded to the nearest millimetre, as |
| 3770 |
are standard ISO paper sizes, and code which sets things up for |
| 3771 |
particular printer/paper combinations does not recognize 1/2 long A3 |
| 3772 |
as A4 (for example). |
| 3773 |
|
| 3774 |
\asleepoption{3/8longpaper}Sets |\RM@longpapertypelong| to 6; 3/8 |
| 3775 |
long. The selected paper size has its longest dimension multiplied by |
| 3776 |
3/8. |
| 3777 |
|
| 3778 |
\awakeoption{1/3longpaper}Sets |\RM@longpapertypelong| to 7; 1/3 |
| 3779 |
long. The selected paper size has its longest dimension multiplied by |
| 3780 |
1/3. |
| 3781 |
|
| 3782 |
\awakeoption{1/4longpaper}Sets |\RM@longpapertypelong| to 8; 1/4 |
| 3783 |
long. The selected paper size has its longest dimension multiplied by |
| 3784 |
1/4. |
| 3785 |
|
| 3786 |
\asleepoption{1/8longpaper}Sets |\RM@longpapertypelong| to 9; 1/8 |
| 3787 |
long. The selected paper size has its longest dimension multiplied by |
| 3788 |
1/8. |
| 3789 |
|
| 3790 |
\end{description} |
| 3791 |
%% |
| 3792 |
%% |
| 3793 |
\subsection{Marginal paragraph options} |
| 3794 |
\label{optcfg:mpars} |
| 3795 |
|
| 3796 |
The width of a marginal paragraph is set to the space left in the |
| 3797 |
appropriate margin, taking into account all the limits. \rmpage |
| 3798 |
thinks the appropriate margin is this: in the case of multi-column |
| 3799 |
printing, the smallest margin; in the case of one sided printing, |
| 3800 |
normal marginal paragraph placement, in the outside margin; in the |
| 3801 |
case of one sided printing, reverse marginal paragraph placement, in |
| 3802 |
the inside margin; in the case of two sided printing, normal marginal |
| 3803 |
paragraph placement, in the outside margin; and in the case of two |
| 3804 |
sided printing, reverse marginal pragraph placement, in the inside |
| 3805 |
margin. |
| 3806 |
|
| 3807 |
The size is calculated on this basis: the standard \LaTeX\ length |
| 3808 |
\comname{margin\-par\-sep} gives the space between the text body and the |
| 3809 |
marginal paragraph. The new length \comname{RM@mparclearance} gives |
| 3810 |
the minimum space between the outside edge of the marginal paragraph |
| 3811 |
and the edge of the paper (subject to the additional restrictions of |
| 3812 |
\comname{RM@minrightclearance} and \comname{RM@minleftclearance} (but |
| 3813 |
not \comname{RM@mininsidemargin} or \comname{RM@minoutsidemargin}; |
| 3814 |
these apply to the text body only). Within these limits, |
| 3815 |
\comname{marginparwidth} cannot be set to greater than the length |
| 3816 |
\comname{RM@maxmparwidth}. |
| 3817 |
|
| 3818 |
This way of setting marginal paragraphs is derived from the standard |
| 3819 |
\LaTeXe\ method, which uses 2\units{in} as the largest allowed size, |
| 3820 |
and 0.4\units{in} as the minimum gap to the edge of the paper. |
| 3821 |
\rmpage's equivalent parameters |
| 3822 |
|
| 3823 |
You can scale the size of \comname{marginparsep}, |
| 3824 |
\comname{RM@mparclearance}, and \comname{RM@max\-mpar\-width} using the |
| 3825 |
\optname{mparsep}, \optname{mparclearance}, and |
| 3826 |
\optname{maxmparwidth} option sets. Look at section~\ref{gen:mpars} on |
| 3827 |
page~\pageref{gen:mpars} for more on marginal paragraphs. |
| 3828 |
|
| 3829 |
If you think that the base value of any of these lengths is too small, |
| 3830 |
you can do something about it. With \comname{marginparsep}, you could |
| 3831 |
use the \comname{setlength} command to set it to a different value |
| 3832 |
before loading \rmpage. For example, |
| 3833 |
\begin{verbatim} |
| 3834 |
\setlength{\marginparsep}{2\marginparsep} |
| 3835 |
\usepackage{rmpage} |
| 3836 |
\end{verbatim} |
| 3837 |
|
| 3838 |
Because the other two parameters are given their initial values in |
| 3839 |
\rmpage, this technique won't work. The initial values of |
| 3840 |
\comname{RM@mparclearance} and \comname{RM@max\-mpar\-width} are |
| 3841 |
calculated as a certain fraction of \comname{paperwidth}; the initial |
| 3842 |
value of the appropriate parameter is doubled if you specify the |
| 3843 |
\optname{largebasemparclear} or \optname{largebasemaxmparwidth} |
| 3844 |
options. You can set either of these parameters in the configuration |
| 3845 |
file---the values -666\units{pt} and -667\units{pt} are reserved by |
| 3846 |
\rmpage as flag values; any positive length that's not too long is |
| 3847 |
okay. Read the source and consider setting these parameters on a |
| 3848 |
class-by-class basis if you do need to change them. |
| 3849 |
|
| 3850 |
|
| 3851 |
%% |
| 3852 |
%% marginparsep is scaled by option |
| 3853 |
The \comname{mparsep} options scale the \comname{marginparsep} length |
| 3854 |
using \comname{RM@scale\-by\-option}. See section~\ref{htw:headfootmpar} |
| 3855 |
on page~\pageref{htw:headfootmpar} for the details. |
| 3856 |
|
| 3857 |
\begin{description}\shorty\squish |
| 3858 |
\awakeoption{leastmparsep} Sets \comname{RM@mparsepoption} to 3 |
| 3859 |
\awakeoption{lessmparsep} Sets \comname{RM@mparsepoption} to 6 |
| 3860 |
\awakeoption{lessishmparsep} Sets \comname{RM@mparsepoption} to 9 |
| 3861 |
\awakeoption{normalmparsep} Default. Sets \comname{RM@mparsepoption} to 12 |
| 3862 |
\awakeoption{moreishmparsep} Sets \comname{RM@mparsepoption} to 15 |
| 3863 |
\awakeoption{moremparsep} Sets \comname{RM@mparsepoption} to 18 |
| 3864 |
\awakeoption{mostmparsep} Sets \comname{RM@mparsepoption} to 21 |
| 3865 |
\end{description} |
| 3866 |
%% |
| 3867 |
|
| 3868 |
The \optname{...basemparclear} options need to be executed after |
| 3869 |
\comname{paperwidth} has been set. Easily done with |
| 3870 |
\comname{ProcessOptions} rather than \comname{ProcessOptions*}, and |
| 3871 |
the papersize setting options declared above rather than below. The |
| 3872 |
\comname{small\-base\-mpar\-clear} value is set after option processing if |
| 3873 |
no other value has been set. If \comname{RM@mpar\-clear\-ance} is |
| 3874 |
-666\unit{pt}, the normalbasemparclear value is set; if it's |
| 3875 |
-667\unit{pt}, the largebaselinemparclear value is set. The larger |
| 3876 |
value is double the smaller value. This setting is done just |
| 3877 |
after the \comname{RM@PrinterPaperSettings} hook is executed, which is |
| 3878 |
well after \comname{paperwidth} is set. This value is scaled by |
| 3879 |
option (using the \comname{RM@mparclearoption} passed to the |
| 3880 |
\comname{RM@scalebyoption} command) just before it's used, so one can |
| 3881 |
use the \comname{RM@BeforeWidthSetting} hook to change things. |
| 3882 |
|
| 3883 |
\begin{description}\shorty\squish |
| 3884 |
\asleepoption{normalbasemparclear} Default. Sets \comname{RM@mparclearance} |
| 3885 |
to -666pt. |
| 3886 |
\asleepoption{largebasemparclear} Sets \comname{RM@mparclearance} to -667pt |
| 3887 |
%% |
| 3888 |
\asleepoption{normalbasemaxmparwidth} Default. Sets \comname{RM@maxmparwidth} to -666pt |
| 3889 |
\asleepoption{largebasemaxmparwidth} Sets \comname{RM@maxmparwidth} to -667pt |
| 3890 |
\end{description} |
| 3891 |
|
| 3892 |
The gap between the edge of the paper and the edge of a marginal |
| 3893 |
paragraph is 0.4\units{in} (10.16\units{mm}) with \LaTeX's standard |
| 3894 |
classes. \rmpage changes this by introducing a new parameter, |
| 3895 |
\comname{RM@mparclearance}, which is calculated as a fraction of |
| 3896 |
\comname{paperwidth}. Normal \comname{RM@mparclearance} with A4 |
| 3897 |
portrait paper is 9.88\units{mm}; 0.4\unit{in} with US letter paper). |
| 3898 |
|
| 3899 |
Touch options for \comname{RM@mparclearance} and |
| 3900 |
\comname{RM@maxmparwidth} have been added now. |
| 3901 |
|
| 3902 |
\begin{description}\shorty\squish |
| 3903 |
\awakeoption{leastmparclearance} Sets \comname{RM@mparclearoption} to 3 |
| 3904 |
\awakeoption{lessmparclearance} Sets \comname{RM@mparclearoption} to 6 |
| 3905 |
\awakeoption{lessishmparclearance} Sets \comname{RM@mparclearoption} to 9 |
| 3906 |
\awakeoption{normalmparclearance} Default. Sets \comname{RM@mparclearoption} to 12 |
| 3907 |
\awakeoption{moreishmparclearance} Sets \comname{RM@mparclearoption} to 15 |
| 3908 |
\awakeoption{moremparclearance} Sets \comname{RM@mparclearoption} to 18 |
| 3909 |
\awakeoption{mostmparclearance} Sets \comname{RM@mparclearoption} to 21 |
| 3910 |
\end{description} |
| 3911 |
|
| 3912 |
\comname{RM@maxmparwidth} is set as a fraction of |
| 3913 |
\comname{paperwidth}, such that with portrait US letter paper, you get |
| 3914 |
2\units{in} as standard, just like the standard classes. It's scaled |
| 3915 |
by option (see section~\ref{htw:headfootmpar} on |
| 3916 |
page~\pageref{htw:headfootmpar} for the details). If you want to |
| 3917 |
change the default base value of \comname{RM@maxmparwidth}, the |
| 3918 |
\comname{RM@BeforeWidthSetting} hook is an ideal place to do it. |
| 3919 |
|
| 3920 |
\begin{description}\shorty\squish |
| 3921 |
\awakeoption{leastmaxmparwidth} Sets \comname{RM@maxmparwidthoption} to 3 |
| 3922 |
\awakeoption{lessmaxmparwidth} Sets \comname{RM@maxmparwidthoption} to 6 |
| 3923 |
\awakeoption{lessishmaxmparwidth} Sets \comname{RM@maxmparwidthoption} to 9 |
| 3924 |
\awakeoption{normalmaxmparwidth} Default. Sets \comname{RM@maxmparwidthoption} to 12 |
| 3925 |
\awakeoption{moreishmaxmparwidth} Sets \comname{RM@maxmparwidthoption} to 15 |
| 3926 |
\awakeoption{moremaxmparwidth} Sets \comname{RM@maxmparwidthoption} to 18 |
| 3927 |
\awakeoption{mostmaxmparwidth} Sets \comname{RM@maxmparwidthoption} to 21 |
| 3928 |
\end{description} |
| 3929 |
%% |
| 3930 |
%% |
| 3931 |
\subsection{Touch options} |
| 3932 |
\label{optcfg:touchoptions} |
| 3933 |
|
| 3934 |
All the \optname{touch} options add or subtract one from a counter |
| 3935 |
that is used to control the size of a page layout parameter. The |
| 3936 |
effect of this is to give the layout parameter a size in between the |
| 3937 |
`main' sizes. That is, if you ask for \optname{wide} and |
| 3938 |
\optname{touchwider}, \comname{textwidth} is set to a value 1/3 of |
| 3939 |
the way (in a geometrical sequence) from \optname{wide} to |
| 3940 |
\optname{wider}. This results in even step sizes: \optname{wide}, |
| 3941 |
\optname{touchwider}, and \optname{t@uchwider} give a width the same |
| 3942 |
as \optname{wider} and \optname{touchnarrower}. |
| 3943 |
|
| 3944 |
The \optname{touch} options are intended to be used in documents; the |
| 3945 |
\optname{t@uch} options are intended to be used in class files. The |
| 3946 |
reason is this: a class designer can develop a suitable layout by |
| 3947 |
passing options to \rmpage. When this is done, the options passed to |
| 3948 |
\rmpage can be passed using the \comname{PassOptionsToPackage} |
| 3949 |
command in a class file. Any \optname{touch} options should be |
| 3950 |
turned into \optname{t@uch} options, so that the controlled parameter |
| 3951 |
can be incremented or decremented by a \optname{touch} option in a |
| 3952 |
document. Whether this is a good thing is unclear, but it's |
| 3953 |
certainly deliberate. |
| 3954 |
|
| 3955 |
Note that all the \optname{touch} options need to be executed after |
| 3956 |
their corresponding `straight' options. To ensure this, none of the |
| 3957 |
\optname{touch} can be allowed in an \comname{ExecuteOptions} |
| 3958 |
statement. The \comname{RM@notinexecuteoptions} is used in each of |
| 3959 |
these option declarations: it produces an error message if used before |
| 3960 |
the \comname{RM@donewithoptions} flag is set true, which is |
| 3961 |
immediately before the \comname{ProcessOptions} statement. |
| 3962 |
|
| 3963 |
You can find out more about the affected layout parameters by looking |
| 3964 |
at the documentation for the main options corresponding to the |
| 3965 |
\optname{touch} options listed here. |
| 3966 |
|
| 3967 |
\begin{description}\shorty\squish |
| 3968 |
\asleepoption{t@uchlonger} Adds 1 to \comname{RM@lengthoption} |
| 3969 |
\asleepoption{t@uchshorter} Adds -1 to \comname{RM@lengthoption} |
| 3970 |
\awakeoption{touchlonger} Adds 1 to \comname{RM@lengthoption} |
| 3971 |
\awakeoption{touchshorter} Adds -1 to \comname{RM@lengthoption}. |
| 3972 |
See section~\ref{optrmp:textheight}. |
| 3973 |
%% |
| 3974 |
\awakeoption{touchmorecolsep} Adds 1 to \comname{RM@columnsepoption} |
| 3975 |
\awakeoption{touchlesscolsep} Adds -1 to \comname{RM@columnsepoption} |
| 3976 |
\asleepoption{t@uchmorecolsep} Adds 1 to \comname{RM@columnsepoption} |
| 3977 |
\asleepoption{t@uchlesscolsep} Adds -1 to \comname{RM@columnsepoption}. |
| 3978 |
See section~\ref{optrmp:columnsep}. |
| 3979 |
%% |
| 3980 |
\awakeoption{touchmoremparsep} Adds 1 to \comname{RM@mparsepoption} |
| 3981 |
\awakeoption{touchlessmparsep} Adds -1 to \comname{RM@mparsepoption} |
| 3982 |
\asleepoption{t@uchmoremparsep} Adds 1 to \comname{RM@mparsepoption} |
| 3983 |
\asleepoption{t@uchlessmparsep} Adds -1 to \comname{RM@mparsepoption}. |
| 3984 |
See section~\ref{optcfg:mpars}. |
| 3985 |
%% |
| 3986 |
\awakeoption{touchmorefootskip} Adds 1 to \comname{RM@footskipoption} |
| 3987 |
\awakeoption{touchlessfootskip} Adds -1 to \comname{RM@footskipoption} |
| 3988 |
\asleepoption{t@uchmorefootskip} Adds 1 to \comname{RM@footskipoption} |
| 3989 |
\asleepoption{t@uchlessfootskip} Adds -1 to \comname{RM@footskipoption}. |
| 3990 |
See section~\ref{optrmp:hfonoff}. |
| 3991 |
%% |
| 3992 |
\awakeoption{touchmoreheadsep} Adds 1 to \comname{RM@headsepoption} |
| 3993 |
\awakeoption{touchlessheadsep} Adds -1 to \comname{RM@headsepoption} |
| 3994 |
\asleepoption{t@uchmoreheadsep} Adds 1 to \comname{RM@headsepoption} |
| 3995 |
\asleepoption{t@uchlessheadsep} Adds -1 to \comname{RM@headsepoption}. |
| 3996 |
See section~\ref{optrmp:hfonoff}. |
| 3997 |
%% |
| 3998 |
\awakeoption{t@uchwider} Adds 1 to \comname{RM@widthoption} |
| 3999 |
\asleepoption{t@uchnarrower} Adds -1 to \comname{RM@widthoption} |
| 4000 |
\awakeoption{touchwider} Adds 1 to \comname{RM@widthoption} |
| 4001 |
\awakeoption{touchnarrower} Adds -1 to \comname{RM@widthoption}. |
| 4002 |
See section~\ref{optrmp:textwidth}. |
| 4003 |
%% |
| 4004 |
\asleepoption{t@uchmoreoffset} Adds 1 to \comname{RM@offsetoption} |
| 4005 |
\asleepoption{t@uchlessoffset} Adds -1 to \comname{RM@offsetoption} |
| 4006 |
\awakeoption{touchmoreoffset} Adds 1 to \comname{RM@offsetoption} |
| 4007 |
\awakeoption{touchlessoffset} Adds -1 to \comname{RM@offsetoption}. |
| 4008 |
See section~\ref{optrmp:margins}. |
| 4009 |
%% |
| 4010 |
\asleepoption{t@uchhigher} Adds -1 to \comname{RM@headfootbalance} |
| 4011 |
\asleepoption{t@uchlower} Adds 1 to \comname{RM@headfootbalance} |
| 4012 |
\awakeoption{touchhigher} Adds -1 to \comname{RM@headfootbalance} |
| 4013 |
\awakeoption{touchlower} Adds 1 to \comname{RM@headfootbalance}. |
| 4014 |
See section~\ref{optrmp:altitude}. |
| 4015 |
%% |
| 4016 |
\asleepoption{t@uchlessmparclearance} Adds -1 to \comname{RM@mparclearoption} |
| 4017 |
\asleepoption{t@uchmoremparclearance} Adds 1 to \comname{RM@mparclearoption} |
| 4018 |
\asleepoption{touchlessmparclearance} Adds -1 to \comname{RM@mparclearoption} |
| 4019 |
\asleepoption{touchmoremparclearance} Adds 1 to \comname{RM@mparclearoption}. |
| 4020 |
\newline% Horrid bodge |
| 4021 |
See section~\ref{optcfg:mpars}. |
| 4022 |
%% |
| 4023 |
\asleepoption{t@uchlessmaxmparwidth} Adds -1 to \comname{RM@maxmparwidthoption} |
| 4024 |
\asleepoption{t@uchmoremaxmparwidth} Adds 1 to \comname{RM@maxmparwidthoption} |
| 4025 |
\asleepoption{touchlessmaxmparwidth} Adds -1 to \comname{RM@maxmparwidthoption} |
| 4026 |
\asleepoption{touchmoremaxmparwidth} Adds 1 to \comname{RM@maxmparwidthoption}. |
| 4027 |
\newline% Horrid bodge |
| 4028 |
See section~\ref{optcfg:mpars}. |
| 4029 |
%% |
| 4030 |
\end{description} |
| 4031 |
|
| 4032 |
\subsection{More length options} |
| 4033 |
\label{optcfg:odd-lengths} |
| 4034 |
|
| 4035 |
These options need to be executed after the \optname{touchlength} |
| 4036 |
options; otherwise, they'd be in \filename{rmpage.sty}. |
| 4037 |
|
| 4038 |
|
| 4039 |
Most of the \comname{textheight} setting options are in \rmpage |
| 4040 |
proper; see \ref{optrmp:textheight} on page~\pageref{optrmp:textheight}. |
| 4041 |
|
| 4042 |
\begin{description}\shorty\squish |
| 4043 |
\awakeoption{fulllength} Sets |\RM@lengthoption=30|. Makes |
| 4044 |
\comname{textheight} as long as possible, taking into account the |
| 4045 |
various restrictions and the need to keep \comname{textheight} to an |
| 4046 |
integer number times \comname{baselineskip} plus \comname{topskip}. |
| 4047 |
|
| 4048 |
\awakeoption{stdlength} Sets |\RM@lengthoption=0|. Makes |
| 4049 |
\comname{textheight} the size it would be if you were using the |
| 4050 |
standard \LaTeX\ classes. I'm not sure I've checked everything that |
| 4051 |
needs to be checked to ensure that this option always does what you'd |
| 4052 |
expect, but I think I have. Note that \rmpage still takes notice of |
| 4053 |
footers and headers when you use this option, so you can get the |
| 4054 |
standard \comname{textheight} with different vertical positioning of |
| 4055 |
the text body. |
| 4056 |
|
| 4057 |
\end{description} |
| 4058 |
|
| 4059 |
\subsection{Number of columns} |
| 4060 |
|
| 4061 |
If you are typesetting text in more than one column, \rmpage needs to |
| 4062 |
know so that it can set \comname{textwidth} appropriately. |
| 4063 |
|
| 4064 |
The standard \LaTeX\ options \optname{onecolumn} and \optname{twocolumn} |
| 4065 |
are recognized by \rmpage. |
| 4066 |
|
| 4067 |
The \optname{...columnwidth} options tell \rmpage that you will be |
| 4068 |
typesetting your text in that number of columns, but the only effect |
| 4069 |
of the options is to change the \comname{textwidth} calculation. If |
| 4070 |
you want to change the number of columns that your text is set in, you |
| 4071 |
can use a package like \packname{multicol}. |
| 4072 |
|
| 4073 |
\begin{ikkystuff} |
| 4074 |
These options affect only the character-based \comname{textwidth} |
| 4075 |
calculation---for any given width option (\optname{normalwidth}, |
| 4076 |
\optname{narrower}, or whatever) one text column is allowed to be a |
| 4077 |
certain number of characters wide. Use the \optname{...columnwidth} |
| 4078 |
options to tell \rmpage how many columns wide your text is, so it can |
| 4079 |
calculate \comname{textwidth} appropriately. |
| 4080 |
|
| 4081 |
\rmpage makes the character-based \comname{textwidth} guess equal to a |
| 4082 |
certain number of characters times the number of columns, plus |
| 4083 |
\comname{columnsep} times one less than the number of columns. |
| 4084 |
\end{ikkystuff} |
| 4085 |
|
| 4086 |
If your text is something like a single large table (for example, a |
| 4087 |
timetable), it might be more appropriate to use the |
| 4088 |
\optname{paperwidthset} option to set \comname{textwidth} using the |
| 4089 |
paper-based \comname{textwidth} only. |
| 4090 |
|
| 4091 |
\begin{description}\shorty\squish |
| 4092 |
|
| 4093 |
\awakeoption{onecolumnwidth} Default. |
| 4094 |
Defines \comname{RM@textcols} to 1 |
| 4095 |
|
| 4096 |
\awakeoption{twocolumnwidth} Defines \comname{RM@textcols} to 2 |
| 4097 |
|
| 4098 |
\awakeoption{threecolumnwidth} Defines \comname{RM@textcols} to 3 |
| 4099 |
|
| 4100 |
\asleepoption{fourcolumnwidth} Defines \comname{RM@textcols} to 4 |
| 4101 |
|
| 4102 |
\asleepoption{fivecolumnwidth} Defines \comname{RM@textcols} to 5 |
| 4103 |
|
| 4104 |
\asleepoption{sixcolumnwidth} Defines \comname{RM@textcols} to 6 |
| 4105 |
|
| 4106 |
\asleepoption{sevencolumnwidth} Defines \comname{RM@textcols} to 7 |
| 4107 |
|
| 4108 |
\asleepoption{eightcolumnwidth} Defines \comname{RM@textcols} to 8 |
| 4109 |
|
| 4110 |
\asleepoption{ninecolumnwidth} Defines \comname{RM@textcols} to 9 |
| 4111 |
|
| 4112 |
\asleepoption{tencolumnwidth} \packname{multicol}'s limit. |
| 4113 |
Defines \comname{RM@textcols} to 10 |
| 4114 |
|
| 4115 |
\end{description} |
| 4116 |
%% |
| 4117 |
%% |
| 4118 |
\subsection{Loading founts} |
| 4119 |
|
| 4120 |
All the options below change how \comname{textwidth} is set, and the |
| 4121 |
options with \optname{load} in their name also call one of the |
| 4122 |
standard \packname{PSNFSS} packages to load the fount (aside from |
| 4123 |
Lucida Casual and Concrete, which aren't \packname{PSFNSS} founts, |
| 4124 |
and Courier, which is handled anomalously). |
| 4125 |
|
| 4126 |
\begin{ikkystuff} |
| 4127 |
The only Lucida typeface I have is Lucida Casual, so that's the only |
| 4128 |
Lucida typeface that \rmpage deals with explicitly. If you do use |
| 4129 |
others, you can have an appropriate \comname{textwidth} set using the |
| 4130 |
\optname{thisfountwidth} option. |
| 4131 |
|
| 4132 |
Given that the \packname{PSFNSS} distribution has support for all the |
| 4133 |
Lucida founts, I could be persuaded to include explicit support for |
| 4134 |
them in \rmpage if anyone's interested. |
| 4135 |
\end{ikkystuff} |
| 4136 |
|
| 4137 |
Remember that \comname{textwidth} is usually set to be a certain |
| 4138 |
number of character wide. Well, not all founts have the same number |
| 4139 |
of characters per inch. If you say \optname{timeswidth} to \rmpage, |
| 4140 |
it will calculate a \comname{textwidth} based on the measured average |
| 4141 |
width of one character in Times of the specified size. |
| 4142 |
|
| 4143 |
This means that while the standard \LaTeX\ classes would give you a |
| 4144 |
\comname{text\-width} that is far too wide for the Times fount (which is |
| 4145 |
generally narrower than Computer Modern Roman), \rmpage will give you |
| 4146 |
a \comname{textwidth} that is pretty much the same number of |
| 4147 |
characters across, which means you retain good legibility (as well as |
| 4148 |
similar line and page breaks). |
| 4149 |
|
| 4150 |
If you say \optname{loadtimes}, \rmpage changes its \comname{textwidth} |
| 4151 |
calculation, loads the \packname{PSNFSS} package that loads the Times |
| 4152 |
fount family, and (very important, this is) changes the typesetting |
| 4153 |
parameters to similar values to the ones suggested by Karl Berry, the |
| 4154 |
chap who wrote the \packname{fontinst} program that generated the |
| 4155 |
virtual founts used to typeset the \packname{PSNFSS} founts. |
| 4156 |
|
| 4157 |
If you specify a looseness option yourself---see |
| 4158 |
section~\ref{optrmp:tightness} on page~\pageref{optrmp:tightness}---it will |
| 4159 |
over-ride the standard looseness set by a \optname{loadfount} option. |
| 4160 |
The \optname{load\-concrete} option requests standard tight typesetting, |
| 4161 |
and is anyway not recommended: if you want to use the concrete founts, |
| 4162 |
try the \packname{beton} package, which does a very good job of |
| 4163 |
setting up \LaTeX\ to use these founts. \rmpage can work happily with |
| 4164 |
\packname{beton}: see section~\ref{optrmp:beton} on |
| 4165 |
page~\pageref{optrmp:beton}. |
| 4166 |
|
| 4167 |
You can tell \rmpage to set the \comname{textwidth} based on the width |
| 4168 |
of a fount it doesn't know about with the \optname{thisfountwidth} |
| 4169 |
option. If you use this option, \rmpage will calculate a |
| 4170 |
\comname{textwidth} based on the size of the fount that is current |
| 4171 |
when \rmpage is loaded. So if you want a \comname{textwidth} based on, say, |
| 4172 |
Grunge Update (family name fgr on my computer), you could say: |
| 4173 |
\begin{verbatim} |
| 4174 |
\documentclass[thisfountwidth,12pt]{article} |
| 4175 |
\renewcommand{\rmdefault}{fgr} |
| 4176 |
\rmfamily |
| 4177 |
\usepackage{rmpage} |
| 4178 |
|
| 4179 |
\begin{document} |
| 4180 |
|
| 4181 |
... |
| 4182 |
|
| 4183 |
\end{verbatim} |
| 4184 |
|
| 4185 |
\rmpage will tell you which fount it is working with, and the results |
| 4186 |
of its calculations. If you get confused by \LaTeX's fount selection |
| 4187 |
scheme, read the manual; it confuses me too. |
| 4188 |
|
| 4189 |
The fount options work like this: each option sets the |
| 4190 |
\comname{RM@fountfamily} command to a particular value. Any option |
| 4191 |
which sets the \comname{RM@loadfount} flag true forces code later on |
| 4192 |
in \rmpage to load the appropriate fount, most of them using one of |
| 4193 |
the standard \packname{PSNFSS} packages. The fount loading code is |
| 4194 |
written specially for each fount; there's no easy way to add more |
| 4195 |
founts to the list that's already dealt with. But you could add code to |
| 4196 |
the \comname{RM@AfterProcessOptions} hook if you want to do this; I |
| 4197 |
suggest that this code loads the fount, selects it, and defines |
| 4198 |
\comname{RM@fountfamily} to be 12, to make the width setting code |
| 4199 |
measure its width. There are no hooks in \filename{rmpwnorm.pko} to |
| 4200 |
add this sort of thing. |
| 4201 |
|
| 4202 |
\begin{ikkystuff} |
| 4203 |
The thing about using the \optname{loadfount} options is that the |
| 4204 |
standard \packname{PSNFSS} packages don't always set the default main |
| 4205 |
document typeface (the one you get when you ask for |
| 4206 |
\comname{rmfamily}) to be the fount you've asked for. So if you say |
| 4207 |
\optname{loadhelvet}, you'll get a \comname{textwidth} based on the |
| 4208 |
width of the Helvetica typeface, but Helvetica is the fount you get |
| 4209 |
when you ask for \comname{sffamily}, which might not be what you want. |
| 4210 |
|
| 4211 |
The thing to do is be sure which typeface will be the main document |
| 4212 |
face, and ask \rmpage to set the \comname{textwidth} accordingly. You |
| 4213 |
might use the appropriate \optname{loadfount} option for this, or load |
| 4214 |
the founts you want with separate calls to the appropriate packages in |
| 4215 |
your document's preamble. |
| 4216 |
\end{ikkystuff} |
| 4217 |
|
| 4218 |
If you don't have the file needed to load the requested fount |
| 4219 |
family, \rmpage complains. |
| 4220 |
|
| 4221 |
Fount families are set like this: |
| 4222 |
\begin{verbatim} |
| 4223 |
0=cmr |
| 4224 |
1=avant garde 2=bookman 3=zapf chancery 4=helvetica |
| 4225 |
5=new century schoolbook 6=palatino 7=times 8=utopia |
| 4226 |
9=lucida casual 10=courier 11=concrete 12=this fount width |
| 4227 |
13=lucida casual dirty trick |
| 4228 |
\end{verbatim} |
| 4229 |
|
| 4230 |
The dirty trick works like this: if you ask for |
| 4231 |
\optname{loadlucidacasual}, rather than \optname{loadluccasua} |
| 4232 |
(\comname{RM@fountfamily} 13), the fount loading code later on does a |
| 4233 |
|\RequirePackage{lucida-casual}|, and then sets |
| 4234 |
\comname{RM@fountfamily} to 9. This lets Rowland use his own |
| 4235 |
\filename{.fd} files for Lucida Casual, and allows access to the |
| 4236 |
standard \filename{.fd} files. The option to do this is in Rowland's |
| 4237 |
curious option section of the configuration file. |
| 4238 |
|
| 4239 |
|
| 4240 |
\begin{description}\shorty\squish |
| 4241 |
|
| 4242 |
\asleepoption{cmrwidth} Computer modern roman; redundant |
| 4243 |
options.\newline% horrid bodge |
| 4244 |
Defines \comname{RM@fountfamily} to 0 |
| 4245 |
|
| 4246 |
\asleepoption{loadcmr} Loads nothing; does whinge a little. |
| 4247 |
|
| 4248 |
\awakeoption{avantwidth} Avant Garde. Defines \comname{RM@fountfamily} to 1 |
| 4249 |
|
| 4250 |
\awakeoption{loadavant} Requires the \packname{avant} package. |
| 4251 |
|
| 4252 |
\awakeoption{bookmanwidth} Bookman. Defines \comname{RM@fountfamily} to 2 |
| 4253 |
|
| 4254 |
\awakeoption{loadbookman} Requires the \packname{bookman} package. |
| 4255 |
|
| 4256 |
\awakeoption{chancerywidth} Zapf Chancery. Defines \comname{RM@fountfamily} to 3 |
| 4257 |
|
| 4258 |
\awakeoption{loadchancery} Requires the \packname{chancery} package. |
| 4259 |
|
| 4260 |
\awakeoption{helvetwidth} Helvetica. Defines \comname{RM@fountfamily} to 4 |
| 4261 |
|
| 4262 |
\awakeoption{loadhelvet} Requires the \packname{helvet} package. |
| 4263 |
|
| 4264 |
\awakeoption{newcentwidth} New Century Schoolbook. Defines \comname{RM@fountfamily} to 5 |
| 4265 |
|
| 4266 |
\awakeoption{loadnewcent} Requires the \packname{newcent} package. |
| 4267 |
|
| 4268 |
\awakeoption{palatinowidth} Palatino. Defines \comname{RM@fountfamily} to 6 |
| 4269 |
|
| 4270 |
\awakeoption{loadpalatino} Requires the \packname{palatino} package. |
| 4271 |
|
| 4272 |
\awakeoption{timeswidth} Times. Defines \comname{RM@fountfamily} to 7 |
| 4273 |
|
| 4274 |
\awakeoption{loadtimes} Requires the \packname{times} package. |
| 4275 |
|
| 4276 |
\awakeoption{utopiawidth} Utopia. Defines \comname{RM@fountfamily} to 8 |
| 4277 |
|
| 4278 |
\awakeoption{loadutopia} Requires the \packname{utopia} package. |
| 4279 |
|
| 4280 |
\awakeoption{lucasualwidth} Lucida casual. Defines \comname{RM@fountfamily} to 9 |
| 4281 |
|
| 4282 |
\awakeoption{loadlucasual} Requires the \packname{lucasual} package. |
| 4283 |
%% lucida-casual option is now in rmplocal.cfg |
| 4284 |
%% |
| 4285 |
|
| 4286 |
\awakeoption{courierwidth} Courier. Defines \comname{RM@fountfamily} to 10 |
| 4287 |
|
| 4288 |
\asleepoption{loadcourier} This option makes the default roman fount |
| 4289 |
Courier. I think this is ugly and crude: you might be better off |
| 4290 |
using the times package and \comname{ttfamily} |
| 4291 |
|
| 4292 |
\awakeoption{concretewidth} Concrete. Defines \comname{RM@fountfamily} to 11 |
| 4293 |
|
| 4294 |
\asleepoption{loadconcrete} This option loads the \packname{beton} |
| 4295 |
package and sets \comname{textwidth} for the Concrete Roman founts. |
| 4296 |
|
| 4297 |
\awakeoption{thisfountwidth} Bases \comname{textwidth} on the current |
| 4298 |
fount.\newline% horrid bodge |
| 4299 |
Defines \comname{RM@fountfamily} to 12 |
| 4300 |
|
| 4301 |
%% |
| 4302 |
\end{description} |
| 4303 |
|
| 4304 |
\subsection{Stuff for beton support} |
| 4305 |
|
| 4306 |
\begin{description}\shorty\squish |
| 4307 |
\awakeoption{standard-baselineskips} Passes this option to |
| 4308 |
\packname{beton} so \rmpage can detect whether this option's been |
| 4309 |
passed to \packname{beton}. |
| 4310 |
\asleepoption{oldstyle-equation-numbers} Passes this option to |
| 4311 |
\packname{beton}. |
| 4312 |
\asleepoption{concrete-math} Passes this option to |
| 4313 |
\packname{beton}. |
| 4314 |
\end{description} |
| 4315 |
%% |
| 4316 |
%% |
| 4317 |
\subsection{Other synonyms for some options} |
| 4318 |
|
| 4319 |
Why oh why oh why do I have to make my package speak US English? |
| 4320 |
(mutter mumble grumble). Yes, all right, it's how the convention's |
| 4321 |
worked out. And I've put the original options to change the |
| 4322 |
\comname{today} command here too. (It's like this: I once had a |
| 4323 |
\LaTeX~2.09 style file called \packname{nicedate} that changed the |
| 4324 |
\comname{today} command into something I liked. Then I wrote \rmpage, |
| 4325 |
and included the \packname{nicedate} code, activated by the |
| 4326 |
\optname{nicedate} option. Obviously, the \optname{nicedate} option |
| 4327 |
needed a complementary option, and the obvious name for this option |
| 4328 |
was \optname{nastydate}, which eventually got turned into |
| 4329 |
\optname{othernicedate}. After I started turning \rmpage into |
| 4330 |
something for the rest of the world to look at (which it wasn't |
| 4331 |
originally), I added the \optname{ukdate} and \optname{usdate} |
| 4332 |
options. But I still like \optname{nicedate}, so I've kept it. So |
| 4333 |
there.) |
| 4334 |
|
| 4335 |
\begin{description}\shorty\squish |
| 4336 |
|
| 4337 |
\awakeoption{othernicedate} The same as \optname{usdate}; does nothing |
| 4338 |
|
| 4339 |
\awakeoption{nicedate} The same as \optname{ukdate}; changes date |
| 4340 |
format. |
| 4341 |
|
| 4342 |
\asleepoption{verbose} Synonym for chatty |
| 4343 |
\asleepoption{silent} Synonym for yorkshire |
| 4344 |
\asleepoption{errorshow} Synonym for yorkshire |
| 4345 |
\asleepoption{warningshow} Synonym for taciturn |
| 4346 |
\asleepoption{infoshow} Synonym for chatty |
| 4347 |
\asleepoption{debugshow} Synonym for garrulous |
| 4348 |
|
| 4349 |
|
| 4350 |
%% |
| 4351 |
%% And I object to this, I really do. Why can't people learn to |
| 4352 |
%% spell properly? |
| 4353 |
%% |
| 4354 |
|
| 4355 |
\asleepoption{center} The same as \optname{centre} |
| 4356 |
|
| 4357 |
\asleepoption{notcenter} The same as \optname{notcentre} |
| 4358 |
|
| 4359 |
\end{description} |
| 4360 |
%% |
| 4361 |
\subsection{Margin options} |
| 4362 |
\label{optcfg:margins} |
| 4363 |
|
| 4364 |
\begin{description}\shorty\squish |
| 4365 |
|
| 4366 |
\awakeoption{ringbinding} This option sets the minimum allowed inside |
| 4367 |
margin to be at least 15\units{mm} if you are printing in portrait |
| 4368 |
orientation. It's in the config file because it must be executed |
| 4369 |
after the \optname{landscape} and \optname{portrait} options. It does |
| 4370 |
nothing but warn you if you use it in landscape orientation. |
| 4371 |
|
| 4372 |
Beware that this option takes no notice of long paper sizes at all, |
| 4373 |
and is likely to give iffy results if you combine it with them. If |
| 4374 |
you have any thoughts about this option, please email me---I'm not |
| 4375 |
terribly happy with it. |
| 4376 |
|
| 4377 |
\end{description} |
| 4378 |
|
| 4379 |
\subsection{Printer options} |
| 4380 |
\label{optcfg:printers} |
| 4381 |
|
| 4382 |
Each printer option must set these ten parameters: |
| 4383 |
|
| 4384 |
\begin{description}\shorty\squish |
| 4385 |
|
| 4386 |
\item[\comname{RM@printertype}] A code number, defined below. This |
| 4387 |
number is used by \rmpage to keep track of the printer used; you can |
| 4388 |
tell \rmpage to do things for certain printers and not for others. |
| 4389 |
|
| 4390 |
\item[\comname{RM@ptrrportclear}] The non-printing margin on the |
| 4391 |
right-hand side in portrait orientation |
| 4392 |
|
| 4393 |
\item[\comname{RM@ptrlportclear}] The non-printing margin on the |
| 4394 |
left-hand side in portrait orientation |
| 4395 |
|
| 4396 |
\item[\comname{RM@ptrtportclear}] The non-printing margin at the |
| 4397 |
top in portrait orientation |
| 4398 |
|
| 4399 |
\item[\comname{RM@ptrbportclear}] The non-printing margin at the |
| 4400 |
bottom in portrait orientation |
| 4401 |
|
| 4402 |
\item[\comname{RM@ptrrlandclear}] The non-printing margin on the |
| 4403 |
right-hand side in landscape orientation |
| 4404 |
|
| 4405 |
\item[\comname{RM@ptrllandclear}] The non-printing margin on the |
| 4406 |
left-hand side in landscape orientation |
| 4407 |
|
| 4408 |
\item[\comname{RM@ptrtlandclear}] The non-printing margin at the |
| 4409 |
top in landscape orientation |
| 4410 |
|
| 4411 |
\item[\comname{RM@ptrblandclear}] The non-printing margin at the |
| 4412 |
bottom in landscape orientation |
| 4413 |
|
| 4414 |
\item[\comname{RM@ptrpostol}] Nominally, the amount you expect the |
| 4415 |
position of the paper to vary. The value of this command is added to |
| 4416 |
each of the \comname{ptr...clear} parameters before they are used. |
| 4417 |
|
| 4418 |
\end{description} |
| 4419 |
|
| 4420 |
Printer types are: |
| 4421 |
\par |
| 4422 |
\noindent |
| 4423 |
\begin{tabbing} |
| 4424 |
0=fullbleed \= 1=general \= 2=pessimistic \= 3=optimistic\\ |
| 4425 |
10=dw300 \> 11=dw500 \> 12=dw600 \> (HP deskwriter inkjet series)\\ |
| 4426 |
20=lj2 \> 21=lj3 \> 22=lj4 \> (HP laserjet laser printer series)\\ |
| 4427 |
30=canonbjx (Canon bubblejet flurble) \\ |
| 4428 |
40+ others (whatever comes up)\\ |
| 4429 |
1000+ local printers to avoid clashes\\ |
| 4430 |
\end{tabbing} |
| 4431 |
|
| 4432 |
The figures for all these printers are guesses, except for the DW500 |
| 4433 |
and DW600: any data on printing margins for the printers above or |
| 4434 |
other commonly-used printers would be gratefully received. I need to |
| 4435 |
know about printing limits at the top, bottom, left, and right for |
| 4436 |
portrait and landscape modes, and whether the data is what the book |
| 4437 |
says or what you measured (preferrably both, but anything'll help). |
| 4438 |
If anyone really uses \LaTeX\ with an A3 printer, do tell: it's |
| 4439 |
something I've been wondering about. |
| 4440 |
|
| 4441 |
When I've got a better idea of what's going on, I'll define more |
| 4442 |
printer options. |
| 4443 |
|
| 4444 |
\comname{RM@ptrpostol} generally set to 1\unit{mm} (paper sizes are to |
| 4445 |
$\pm2$\unit{mm}), except for our DW520 which I keep a careful eye on. |
| 4446 |
|
| 4447 |
\begin{description}\shorty\squish |
| 4448 |
|
| 4449 |
\awakeoption{fullbleedprinter} Lets you print all the way to the |
| 4450 |
edge of the paper. |
| 4451 |
\begin{verbatim} |
| 4452 |
\def\RM@printertype{0} |
| 4453 |
\def\RM@ptrrportclear{0mm} \def\RM@ptrrlandclear{0mm} |
| 4454 |
\def\RM@ptrlportclear{0mm} \def\RM@ptrllandclear{0mm} |
| 4455 |
\def\RM@ptrtportclear{0mm} \def\RM@ptrtlandclear{0mm} |
| 4456 |
\def\RM@ptrbportclear{0mm} \def\RM@ptrblandclear{0mm} |
| 4457 |
\def\RM@ptrpostol{0mm} |
| 4458 |
\end{verbatim} |
| 4459 |
|
| 4460 |
\awakeoption{generalprinter} Arbitrary settings that probably ensure |
| 4461 |
a layout inside the printing area on most A4 printers. |
| 4462 |
\begin{verbatim} |
| 4463 |
\def\RM@printertype{1} |
| 4464 |
\def\RM@ptrrportclear{8mm} \def\RM@ptrrlandclear{8mm} |
| 4465 |
\def\RM@ptrlportclear{8mm} \def\RM@ptrllandclear{8mm} |
| 4466 |
\def\RM@ptrtportclear{8mm} \def\RM@ptrtlandclear{8mm} |
| 4467 |
\def\RM@ptrbportclear{15mm} \def\RM@ptrblandclear{15mm} |
| 4468 |
\def\RM@ptrpostol{1mm} |
| 4469 |
\end{verbatim} |
| 4470 |
|
| 4471 |
\asleepoption{pessimisticprinter} This uses the worst limits I can remember |
| 4472 |
meeting, so it force documents inside the printing area on any printer. |
| 4473 |
\begin{verbatim} |
| 4474 |
\def\RM@printertype{2} |
| 4475 |
\def\RM@ptrrportclear{10mm} \def\RM@ptrrlandclear{19mm} |
| 4476 |
\def\RM@ptrlportclear{10mm} \def\RM@ptrllandclear{10mm} |
| 4477 |
\def\RM@ptrtportclear{10mm} \def\RM@ptrtlandclear{10mm} |
| 4478 |
\def\RM@ptrbportclear{19mm} \def\RM@ptrblandclear{10mm} |
| 4479 |
\def\RM@ptrpostol{1mm} |
| 4480 |
\end{verbatim} |
| 4481 |
|
| 4482 |
\asleepoption{optimisticprinter} This uses the best limits I'd expect |
| 4483 |
from a real printer. |
| 4484 |
\begin{verbatim} |
| 4485 |
\def\RM@printertype{3} |
| 4486 |
\def\RM@ptrrportclear{3mm} \def\RM@ptrrlandclear{3mm} |
| 4487 |
\def\RM@ptrlportclear{3mm} \def\RM@ptrllandclear{3mm} |
| 4488 |
\def\RM@ptrtportclear{3mm} \def\RM@ptrtlandclear{3mm} |
| 4489 |
\def\RM@ptrbportclear{3mm} \def\RM@ptrblandclear{3mm} |
| 4490 |
\def\RM@ptrpostol{0.5mm} |
| 4491 |
\end{verbatim} |
| 4492 |
|
| 4493 |
\asleepoption{dw300printer} A guess. |
| 4494 |
\begin{verbatim} |
| 4495 |
\def\RM@printertype{11} |
| 4496 |
\def\RM@ptrrportclear{6mm} \def\RM@ptrrlandclear{15mm} |
| 4497 |
\def\RM@ptrlportclear{6mm} \def\RM@ptrllandclear{7mm} |
| 4498 |
\def\RM@ptrtportclear{7mm} \def\RM@ptrtlandclear{6mm} |
| 4499 |
\def\RM@ptrbportclear{15mm} \def\RM@ptrblandclear{6mm} |
| 4500 |
\def\RM@ptrpostol{1mm} |
| 4501 |
\end{verbatim} |
| 4502 |
|
| 4503 |
\asleepoption{dw500printer} Hewlett-Packard's specification for its |
| 4504 |
DeskWriter and DeskJet 500/510/520/540 printers. |
| 4505 |
\begin{verbatim} |
| 4506 |
\def\RM@printertype{11} |
| 4507 |
\def\RM@ptrrportclear{6mm} \def\RM@ptrrlandclear{15mm} |
| 4508 |
\def\RM@ptrlportclear{6mm} \def\RM@ptrllandclear{7mm} |
| 4509 |
\def\RM@ptrtportclear{7mm} \def\RM@ptrtlandclear{6mm} |
| 4510 |
\def\RM@ptrbportclear{15mm} \def\RM@ptrblandclear{6mm} |
| 4511 |
\def\RM@ptrpostol{1mm} |
| 4512 |
\end{verbatim} |
| 4513 |
|
| 4514 |
\awakeoption{dw600printer} Measured from a particular HP 600 series |
| 4515 |
inkjet printer, with a bit added. |
| 4516 |
\begin{verbatim} |
| 4517 |
\def\RM@printertype{12} |
| 4518 |
\def\RM@ptrrportclear{5mm} \def\RM@ptrrlandclear{15mm} |
| 4519 |
\def\RM@ptrlportclear{5mm} \def\RM@ptrllandclear{2mm} |
| 4520 |
\def\RM@ptrtportclear{2mm} \def\RM@ptrtlandclear{5mm} |
| 4521 |
\def\RM@ptrbportclear{15mm} \def\RM@ptrblandclear{5mm} |
| 4522 |
\def\RM@ptrpostol{1mm} |
| 4523 |
\end{verbatim} |
| 4524 |
|
| 4525 |
\asleepoption{lj2printer} an arbitrary guess |
| 4526 |
\begin{verbatim} |
| 4527 |
\def\RM@printertype{20} |
| 4528 |
\def\RM@ptrrportclear{7mm} \def\RM@ptrrlandclear{7mm} |
| 4529 |
\def\RM@ptrlportclear{7mm} \def\RM@ptrllandclear{7mm} |
| 4530 |
\def\RM@ptrtportclear{7mm} \def\RM@ptrtlandclear{7mm} |
| 4531 |
\def\RM@ptrbportclear{7mm} \def\RM@ptrblandclear{7mm} |
| 4532 |
\def\RM@ptrpostol{1mm} |
| 4533 |
\end{verbatim} |
| 4534 |
|
| 4535 |
\asleepoption{lj3printer} an arbitrary guess |
| 4536 |
\begin{verbatim} |
| 4537 |
\def\RM@printertype{21} |
| 4538 |
\def\RM@ptrrportclear{6mm} \def\RM@ptrrlandclear{6mm} |
| 4539 |
\def\RM@ptrlportclear{6mm} \def\RM@ptrllandclear{6mm} |
| 4540 |
\def\RM@ptrtportclear{6mm} \def\RM@ptrtlandclear{6mm} |
| 4541 |
\def\RM@ptrbportclear{6mm} \def\RM@ptrblandclear{6mm} |
| 4542 |
\def\RM@ptrpostol{1mm} |
| 4543 |
\end{verbatim} |
| 4544 |
|
| 4545 |
\asleepoption{lj4printer} an arbitrary guess |
| 4546 |
\begin{verbatim} |
| 4547 |
\def\RM@printertype{22} |
| 4548 |
\def\RM@ptrrportclear{5mm} \def\RM@ptrrlandclear{5mm} |
| 4549 |
\def\RM@ptrlportclear{5mm} \def\RM@ptrllandclear{5mm} |
| 4550 |
\def\RM@ptrtportclear{5mm} \def\RM@ptrtlandclear{5mm} |
| 4551 |
\def\RM@ptrbportclear{5mm} \def\RM@ptrblandclear{5mm} |
| 4552 |
\def\RM@ptrpostol{1mm} |
| 4553 |
\end{verbatim} |
| 4554 |
|
| 4555 |
\asleepoption{canonbjxprinter} an arbitrary guess |
| 4556 |
\begin{verbatim} |
| 4557 |
\def\RM@printertype{22} |
| 4558 |
\def\RM@ptrrportclear{7mm} \def\RM@ptrrlandclear{12mm} |
| 4559 |
\def\RM@ptrlportclear{7mm} \def\RM@ptrllandclear{7mm} |
| 4560 |
\def\RM@ptrtportclear{7mm} \def\RM@ptrtlandclear{7mm} |
| 4561 |
\def\RM@ptrbportclear{12mm} \def\RM@ptrblandclear{7mm} |
| 4562 |
\def\RM@ptrpostol{1mm} |
| 4563 |
\end{verbatim} |
| 4564 |
|
| 4565 |
\end{description} |
| 4566 |
|
| 4567 |
\subsection{Rowland's curious options} |
| 4568 |
|
| 4569 |
|
| 4570 |
These are curious options, defined by me (RJMM) to perform dark and |
| 4571 |
eldritch deeds. These aren't intended for hoi polloi, mainly 'cos |
| 4572 |
they're a bit iffy in places, but I like them and they might give |
| 4573 |
you some ideas. |
| 4574 |
|
| 4575 |
|
| 4576 |
Our DW520 isn't quite to spec. |
| 4577 |
|
| 4578 |
\begin{description}\shorty\squish |
| 4579 |
|
| 4580 |
\awakeoption{R+R-dw520printer} |
| 4581 |
\begin{verbatim} |
| 4582 |
\def\RM@printertype{2} |
| 4583 |
\def\RM@ptrrportclear{7mm} \def\RM@ptrrlandclear{15mm} |
| 4584 |
\def\RM@ptrlportclear{6mm} \def\RM@ptrllandclear{7mm} |
| 4585 |
\def\RM@ptrtportclear{7mm} \def\RM@ptrtlandclear{7mm} |
| 4586 |
\def\RM@ptrbportclear{15mm} \def\RM@ptrblandclear{6mm} |
| 4587 |
\def\RM@ptrpostol{0.5mm} |
| 4588 |
\end{verbatim} |
| 4589 |
|
| 4590 |
\awakeoption{lucidacasualwidth} Lucida casual |
| 4591 |
Defines \comname{RM@fountfamily} to 9 |
| 4592 |
|
| 4593 |
\awakeoption{loadlucidacasual} A dirty trick to load my .fd version of |
| 4594 |
lucida casual rather than the PSNFSS version. If you |
| 4595 |
\optname{loadlucidacasual}, \comname{RM@fountfamily} is set to 9 after |
| 4596 |
the \packname{lucida-casual} package has been |
| 4597 |
\comname{RequirePackage}d. That's done by code further on in rmpage, |
| 4598 |
specially written for this dirty trick. |
| 4599 |
\end{description} |
| 4600 |
|
| 4601 |
I have written packages that do the same job as the standard |
| 4602 |
\filename{size10.clo} etc., files, but for larger sizes. Because the |
| 4603 |
standard \LaTeX\ \comname{@ptsize} parameter is intended to be a |
| 4604 |
single digit, and I want to use several different sizes, I have |
| 4605 |
defined a new parameter that holds the point size of the main body |
| 4606 |
type, the command \comname{RM@ptsize}. This parameter is only |
| 4607 |
defined for my larger sizes. |
| 4608 |
|
| 4609 |
Because my size packages can be loaded before or after \rmpage, and |
| 4610 |
because both need to know about the point size, \rmpage says |
| 4611 |
\begin{verbatim} |
| 4612 |
\providecommand{\RM@ptsize}{666} |
| 4613 |
\end{verbatim} |
| 4614 |
before the extra size options are executed. The options set |
| 4615 |
\comname{RM@ptsize} to the appropriate value if this hasn't already |
| 4616 |
been done. All my other packages that recognize the larger point size |
| 4617 |
options do something similar. |
| 4618 |
|
| 4619 |
The other thing that \rmpage does with these larger point size |
| 4620 |
options is set \comname{@ptsize} to the 12\unit{pt} value; this is to |
| 4621 |
fool sections of \rmpage into thinking that it's dealing with a |
| 4622 |
12\units{pt} fount. |
| 4623 |
|
| 4624 |
\begin{description}\shorty\squish |
| 4625 |
\awakeoption{14pt} Sets \comname{RM@ptsize} to |14| if needed and |
| 4626 |
sets \comname{@ptsize} to 2 (meaning 12\units{12}, to fool \rmpage) |
| 4627 |
\awakeoption{24pt} Sets \comname{RM@ptsize} to |24| if needed and |
| 4628 |
sets \comname{@ptsize} to 2 (meaning 12\units{12}, to fool \rmpage) |
| 4629 |
|
| 4630 |
\awakeoption{36pt} Sets \comname{RM@ptsize} to |36| if needed and |
| 4631 |
sets \comname{@ptsize} to 2 (meaning 12\units{12}, to fool \rmpage) |
| 4632 |
|
| 4633 |
\end{description} |
| 4634 |
|
| 4635 |
|
| 4636 |
|
| 4637 |
|
| 4638 |
|
| 4639 |
|
| 4640 |
\chapter{How things work} |
| 4641 |
\label{chap:htw} |
| 4642 |
|
| 4643 |
\section{\comname{textheight} calculation} |
| 4644 |
\label{htw:textheightcalculation} |
| 4645 |
|
| 4646 |
The way \rmpage decides on the value of \comname{textheight} is this: |
| 4647 |
the length options set a length called |
| 4648 |
\comname{RM@totalheadfootclearance} to be certain fraction of the |
| 4649 |
\comname{paperheight}. The value of this command will be the sum of |
| 4650 |
the blank space above the header and below footer, after it has been |
| 4651 |
checked against several restrictions. |
| 4652 |
|
| 4653 |
\begin{ikkystuff} |
| 4654 |
If the \optname{noheaders} option has used, \comname{headheight} and |
| 4655 |
\comname{headsep} are both set to 0\units{pt}; if the |
| 4656 |
\optname{nofooters} option has been used, \comname{footskip} is set |
| 4657 |
to 0\units{pt}. So a given length option will fill the page to the |
| 4658 |
same extent whether or not headers or footers are used; turning |
| 4659 |
headers and footers off will increase \comname{textheight}. |
| 4660 |
\end{ikkystuff} |
| 4661 |
|
| 4662 |
The first check that's made is that the \comname{textheight} produced |
| 4663 |
by this value of \comname{RM@totalheadfootclearance} will not exceed |
| 4664 |
the bounds set by \comname{RM@mintextheight} and |
| 4665 |
\comname{RM@maxtextheight}. These two commands are intended to be set |
| 4666 |
by local code on a class-by-class basis in the configuration file, |
| 4667 |
using the \comname{RM@OnClassType} command in the |
| 4668 |
\comname{RM@AfterProcessOptions} hook, and define the allowed range of |
| 4669 |
\comname{textheight}. |
| 4670 |
% |
| 4671 |
This check defines the commands: |
| 4672 |
\begin{verbatim} |
| 4673 |
\RM@maxpractextheight and \RM@mintotalheadfootclearance |
| 4674 |
\RM@minpractextheight and \RM@maxtotalheadfootclearance |
| 4675 |
\end{verbatim} |
| 4676 |
They are calculated from the user supplied limits; they are based on the |
| 4677 |
largest and smallest values that \comname{textheight} is allowed to |
| 4678 |
have, given the limits of the discrete values it is allowed to take. |
| 4679 |
The \comname{practextheight} parameters are unused at the moment; |
| 4680 |
they might come in handy one day. |
| 4681 |
|
| 4682 |
The total space above and below the footer is divided into two: a |
| 4683 |
certain fraction of this space to the gap at the top, the rest to the |
| 4684 |
gap at the bottom. These two lengths are saved in |
| 4685 |
\comname{RM@totalheadclearance} and \comname{RM@totalfootclearance}. |
| 4686 |
The \optname{altitude} options control this division of space---see |
| 4687 |
section~\ref{optrmp:altitude} on page~\pageref{optrmp:altitude}. |
| 4688 |
|
| 4689 |
Checks are then made to ensure that nothing will be printed outside |
| 4690 |
the allowed printing region along the vertical axis. This is defined |
| 4691 |
by the lengths \comname{RM@minheadclearance} and |
| 4692 |
\comname{RM@minfootclearance}, which are initially set to the |
| 4693 |
non-printing margin top and bottom. \rmpage ensures that these two |
| 4694 |
lengths are at least as large as either \comname{RM@mintopmargin} or |
| 4695 |
\comname{RM@minbottommargin}, as appropriate---these two parameters |
| 4696 |
are intended to be set class-by-class, so you can ensure that your |
| 4697 |
layout meets regulations, for example. |
| 4698 |
|
| 4699 |
\rmpage issues warnings if it decides to make either the top or bottom |
| 4700 |
gap larger to fit the text inside the printing region. The warnings |
| 4701 |
are issued because changing the top or bottom gap changes the |
| 4702 |
\comname{textheight} and vertical position of the text on the page; |
| 4703 |
you might have been expecting a smooth increment from the last |
| 4704 |
\optname{altitude} or \comname{length} option, or a particular balance |
| 4705 |
of space above and below the text given by a particular |
| 4706 |
\optname{altitude} option, and it might be useful to know that you've |
| 4707 |
not got what you might expect. |
| 4708 |
|
| 4709 |
|
| 4710 |
Finally, \comname{textheight} is set to a value such that: |
| 4711 |
\begin{displaymath} |
| 4712 |
|\textheight| = \mathrm{integer} \times |\baselineskip| + |\topskip| |
| 4713 |
\end{displaymath} |
| 4714 |
|
| 4715 |
The values of the three \comname{[email protected]} parameters are |
| 4716 |
increased to match the reduction in the size of \comname{textheight}, |
| 4717 |
and \comname{topmargin} is set to whatever it needs to be. |
| 4718 |
|
| 4719 |
The apparently special case of \optname{stdlength} is handled by |
| 4720 |
setting \comname{RM@totalheadfootclearance} to a value that will |
| 4721 |
yield the same \comname{textheight} as the standard classes; the |
| 4722 |
\classname{book}, \classname{article}, \classname{report}, and |
| 4723 |
\classname{letter} classes use one value; the \classname{slides} |
| 4724 |
class another. Have a look at \filename{rmpage.dtx} and the standard |
| 4725 |
class files to see how this is done. Note that \rmpage gives you the |
| 4726 |
same \comname{textheight} as the standard classes whether or not you |
| 4727 |
are using headers or footers---the number of text body lines on the |
| 4728 |
page is always the same (at least, it always has been in testing). |
| 4729 |
There are exceptions to this: it is possible to ask \rmpage to |
| 4730 |
position a \optname{stdlength} page on the paper in such a fashion |
| 4731 |
that the text would end up outside the printable region. In this |
| 4732 |
case, \rmpage will issue a warning and reduce \comname{textheight} to |
| 4733 |
fit inside the allowed area. |
| 4734 |
|
| 4735 |
\begin{ikkystuff} |
| 4736 |
The parameters that define the available printing region along the |
| 4737 |
vertical axis are \comname{RM@minheadclearance} and |
| 4738 |
\comname{RM@minfootclearance}. The values of these |
| 4739 |
\comname{[email protected]} parameters are set printer by printer, and |
| 4740 |
possibly paper-size by paper-size. \rmpage ensure that they are at |
| 4741 |
least as large as either {RM@mintopmargin} or |
| 4742 |
\comname{RM@minbottommargin}, as appropriate. |
| 4743 |
|
| 4744 |
If the particular combination of printer and paper has set the flag |
| 4745 |
\comname{RM@jackup} to be true, \rmpage will lift the printing region |
| 4746 |
to clear an over-large non-printing margin at the bottom of the page. |
| 4747 |
This is useful for people with Hewlett-Packard inkjet printers. There |
| 4748 |
is no similar facility for automatically lowering the printing region |
| 4749 |
or shifting it sideways. This is because a larger than expected |
| 4750 |
space at the bottom of the page is rarely a problem, but lower than |
| 4751 |
normal or shifted sidedways is usually a problem. These effects may |
| 4752 |
be achieved, but you have to do it by using options to have the |
| 4753 |
specific effect you want. |
| 4754 |
|
| 4755 |
Each printer option must define the commands: |
| 4756 |
\begin{center} |
| 4757 |
\begin{tabular}{lll} |
| 4758 |
\comname{RM@ptrrportclear}&\comname{RM@ptrlportclear}&\comname{RM@ptrtportclear}\\ |
| 4759 |
\comname{RM@ptrbportclear}&\comname{RM@ptrrlandclear}&\comname{RM@ptrllandclear}\\ |
| 4760 |
\comname{RM@ptrtlandclear}&\comname{RM@ptrblandclear}&\comname{RM@ptrpostol}\\ |
| 4761 |
\end{tabular} |
| 4762 |
\end{center} |
| 4763 |
|
| 4764 |
They define the non-printing clearances in |
| 4765 |
landscape and portrait orientation, and the assumed maximum positional |
| 4766 |
error. Code can be added in the \comname{RM@PrinterPaperSettings} |
| 4767 |
hook to set particular clearances for particular combinations of |
| 4768 |
printer and paper (to cope with, for example, the 19\units{mm} |
| 4769 |
non-printing margin at the bottom of an envelope fed into an HP |
| 4770 |
DeskWriter 520, which is much larger than the 15\units{mm} |
| 4771 |
non-printing margin at the bottom of a normal bit of paper). |
| 4772 |
|
| 4773 |
|
| 4774 |
The \packname{beton} package changes \comname{baselineskip}, but does |
| 4775 |
so at the start of the document, using the \comname{AtBeginDocument} |
| 4776 |
hook provided by standard \LaTeX. \rmpage needs to know what the |
| 4777 |
\comname{baselineskip} of the main document fount will be. To get |
| 4778 |
round this problem, \rmpage steals some code from \packname{beton} so |
| 4779 |
it can set \comname{baselineskip} to the value it will have after |
| 4780 |
\comname{AtBeginDocument}. When the vertical page parameters have |
| 4781 |
been calculated, \rmpage puts \comname{baselineskip} back to its |
| 4782 |
initial value. |
| 4783 |
|
| 4784 |
None of this happens unless you load the \packname{beton} package, and |
| 4785 |
specify the \packname{beton} option to \rmpage. If you don't want |
| 4786 |
\rmpage to use \packname{beton}'s \comname{baselineskip}, specify the |
| 4787 |
\optname{nobeton} option to \rmpage. Note that you must load the |
| 4788 |
\packname{beton} package before you load \rmpage. Sorry. |
| 4789 |
\end{ikkystuff} |
| 4790 |
|
| 4791 |
\section{\comname{textwidth} calculation} |
| 4792 |
\label{htw:textwidthcalculation} |
| 4793 |
|
| 4794 |
The way \comname{textwidth} is worked out is this: two different |
| 4795 |
\comname{textwidth} initial guesses are calculated---one based on the |
| 4796 |
width of a certain number of characters allowed in each column, the |
| 4797 |
other based on a certain fraction of \comname{paperwidth}---and the |
| 4798 |
smaller one is used as the basis for the final \comname{textwidth}. |
| 4799 |
The particular number of characters and fraction of \comname{paperwidth} |
| 4800 |
is set by the \optname{width} option specified. The default |
| 4801 |
\optname{normalwidth} option gives a character-based width very close |
| 4802 |
to standard, but the paper-based width is quite a bit larger than |
| 4803 |
standard. This is only significant when \rmpage uses the paper-based |
| 4804 |
width, as it usually does when you are printing on A5 paper. |
| 4805 |
|
| 4806 |
\begin{ikkystuff} |
| 4807 |
The technique of choosing the smaller of two \comname{textwidth}s: |
| 4808 |
one based on the number of characters, and the other based on the |
| 4809 |
size of the paper, was derived from the standard classes' way of doing |
| 4810 |
things---a fixed width (different for each size) is compared to |
| 4811 |
$\mbox{\comname{paperwidth}}-2\units{in}$, and the smaller is used. The |
| 4812 |
fixed width is different for each size; the conventional classes use |
| 4813 |
hardwired sizes, and the \classname{slides} class uses $65/2 \times |
| 4814 |
\mbox{width of (|\hbox{\rmfamily im}|)}$. |
| 4815 |
|
| 4816 |
\rmpage asks for a normal text-based width based on the same number of |
| 4817 |
characters as the standard widths, and compares this to a paper-based |
| 4818 |
width that is calculated as $0.7138 \times \mbox{\comname{paperwidth}}$. The |
| 4819 |
fraction used gives a larger \comname{textwidth} than the standard |
| 4820 |
classes when typesetting on A5 paper, but a smaller \comname{textwidth} |
| 4821 |
when typesetting large founts on A4 paper. |
| 4822 |
|
| 4823 |
The normal character-based \comname{textwidth} calculated by \rmpage |
| 4824 |
is different to that calculated by the standard classes because the |
| 4825 |
standard classes round calculated dimensions down to the next lowest |
| 4826 |
integer number of points. I think this is a mistake, because it |
| 4827 |
introduces an unnecessary error in margin sizes, so \rmpage doesn't do |
| 4828 |
it (unless you're asking for \optname{stdwidth}, which does truncates |
| 4829 |
the calculated value of \comname{textwidth} only). |
| 4830 |
|
| 4831 |
The special widths: \optname{oneinchmargins}, |
| 4832 |
\optname{halfinchmargins}, and \optname{fullwidth}, all set the |
| 4833 |
paper-based textwidth to a fixed value to leave the specified amount |
| 4834 |
of space either side, assuming that you have asked for |
| 4835 |
\optname{centre}d printing (\optname{fullwidth} leaves no space).If |
| 4836 |
you haven't, the total space either side will add up to what you'd |
| 4837 |
expect, but you can get 1.5\units{in} on one side, and 0.5\units{in} |
| 4838 |
on the other, for example, if you're using \optname{oneinchmargins}. |
| 4839 |
|
| 4840 |
\optname{stdwidth} sets both the paper and character-based initial |
| 4841 |
guesses to the same value as the standard classes. If the selected |
| 4842 |
initial \comname{textwidth} value isn't reduced, the result will be |
| 4843 |
the same as the standard classes' calculations (insert standard |
| 4844 |
disclaimer here---not because I'm afraid of being sued, but because I |
| 4845 |
think you should check that the value of \comname{textwidth} is what |
| 4846 |
it should be if it's really important. This is because I think this |
| 4847 |
is a complicated piece of software because \TeX's piggin' awful for |
| 4848 |
doing maths, and I've not verified the algorithm to my own |
| 4849 |
satisfaction. I have tested it, and it appears to work the way I |
| 4850 |
want, so that'll have to do for now.) |
| 4851 |
|
| 4852 |
\end{ikkystuff} |
| 4853 |
|
| 4854 |
The first check ensures that this first guess is within the bounds of |
| 4855 |
\comname{RM@mintextwidth} or \comname{RM@maxtextwidth}. If it's not, |
| 4856 |
it's made big or small enough. |
| 4857 |
|
| 4858 |
\begin{ikkystuff} |
| 4859 |
If you've asked for \optname{characterwidthset}, then the paper-based |
| 4860 |
\comname{textwidth} is set to a large value; similarly, if you've |
| 4861 |
asked for \optname{paperwidthset}, the character-based |
| 4862 |
\comname{textwidth} is set to a large value. If you've asked for an |
| 4863 |
inherently paper-based width like \optname{oneinchmargins}, both the |
| 4864 |
paper and character-based \comname{textwidth}s are set to the |
| 4865 |
appropriate value. So if you also ask for |
| 4866 |
\optname{characterwidthset}, \rmpage will give you |
| 4867 |
\optname{oneinchmargins} anyway, and a complaint. |
| 4868 |
\end{ikkystuff} |
| 4869 |
|
| 4870 |
Now the smallest of the two \comname{textwidth}s is selected as the |
| 4871 |
one to use for real, and \rmpage calculates \comname{evensidemargin} |
| 4872 |
based on the requested offset---the proportions in which the available |
| 4873 |
horizontal space is divided between the larger and smaller margins |
| 4874 |
(see section~\ref{optrmp:margins} on page~\pageref{optrmp:margins} for the |
| 4875 |
details). |
| 4876 |
|
| 4877 |
\begin{ikkystuff} |
| 4878 |
When \rmpage checks \comname{textwidth}, it takes into account |
| 4879 |
whether you're printing two sided or not. The checking code looks a |
| 4880 |
bit complicated, because there are two sets of limits that apply to |
| 4881 |
the horizontal extent of the text: \comname{RM@minrightclearance} and |
| 4882 |
\comname{RM@minleftclearance}; and \comname{RM@minoutsidemargin} and |
| 4883 |
\comname{RM@mininsidemargin}. \rmpage looks at the appropriate limits. |
| 4884 |
|
| 4885 |
The \comname{left} and \comname{right} \comname{minclearance} |
| 4886 |
parameters define the possible printing region, as set for the |
| 4887 |
requested printer and paper combination; all text must fit inside |
| 4888 |
these limits. The \comname{inside} and \comname{outside} |
| 4889 |
\comname{minmargin} parameters define the permitted extent of the main |
| 4890 |
body text, excluding marginal paragraphs. The \comname{minmargin} |
| 4891 |
parameters are defined to be |0pt| by default; they were introduced so |
| 4892 |
that I could write a thesis class which had to ensure particular |
| 4893 |
minimum margins to meet the regulations. You can see how I used them |
| 4894 |
in the \comname{RM@AfterProcessOptions} hook definition in the |
| 4895 |
configuration file. |
| 4896 |
\end{ikkystuff} |
| 4897 |
|
| 4898 |
If \comname{evensidemargin} is too small to allow the text to print |
| 4899 |
on the page, it is increased, and \comname{textwidth} decreased to |
| 4900 |
maintain the requested offset proportions. |
| 4901 |
|
| 4902 |
Then the right-hand edge of \comname{textwidth} is checked to ensure |
| 4903 |
that it is within the allowed printing region. If it's not, |
| 4904 |
\comname{textwidth} is reduced. If so, \comname{evensidemargin} must |
| 4905 |
be increased to maintain the requested offset proportions, and |
| 4906 |
\comname{textwidth} reduced by the same amount to keep the right-hand |
| 4907 |
margin the same size. |
| 4908 |
|
| 4909 |
|
| 4910 |
\begin{ikkystuff} |
| 4911 |
If you've asked for \comname{fullwidth}, \rmpage won't attempt to |
| 4912 |
retain the offset proportions, nor will it issue as many warnings |
| 4913 |
about decreasing things to fit. |
| 4914 |
\end{ikkystuff} |
| 4915 |
|
| 4916 |
When that's done, \comname{oddsidemargin} is set to the appropriate |
| 4917 |
value: equal to \comname{evensidemargin} if you've asked for one sided |
| 4918 |
or centred printing; or equal to the right-hand margin on an |
| 4919 |
even-numbered page if you're printing two sided and not centred. |
| 4920 |
|
| 4921 |
And finally, \rmpage checks that the final value of |
| 4922 |
\comname{textwidth} is still larger than \comname{RM@mintextwidth}. |
| 4923 |
If it's not, \rmpage can't do anything about it, so just issues an |
| 4924 |
error message. |
| 4925 |
|
| 4926 |
|
| 4927 |
\section{Hooks} |
| 4928 |
\label{htw:hooks} |
| 4929 |
|
| 4930 |
There's five hooks: |
| 4931 |
|
| 4932 |
\begin{tabbing} |
| 4933 |
\comname{RM@BeforeProcessOptions}, \= \comname{RM@AfterProcessOptions},\\ |
| 4934 |
\comname{RM@PrinterPaperSettings}, \\ |
| 4935 |
\comname{RM@BeforeWidthSetting}, \> \comname{RM@AfterWidthSetting}.\\ |
| 4936 |
\end{tabbing} |
| 4937 |
|
| 4938 |
\begin{description}\shorty |
| 4939 |
|
| 4940 |
\item[\comname{RM@BeforeProcessOptions}] This hook is executed just |
| 4941 |
before \comname{ProcessOptions}, and before the \comname{RM@donewithoptions} |
| 4942 |
flag has been set to true, so options which can only be |
| 4943 |
specified in an \comname{ExecuteOptions} statement can be requested. |
| 4944 |
|
| 4945 |
\item[\comname{RM@AfterProcessOptions}] This hook is executed well after |
| 4946 |
\comname{ProcessOptions}. It is executed after most of the fiddling |
| 4947 |
about prior to working out page parameters has been done, just after |
| 4948 |
the current class has been identified, but before class-specific code |
| 4949 |
is executed. This is the hook to use if you want to add a new class: |
| 4950 |
you should preferably set \comname{RM@classtype} with a new option, |
| 4951 |
declared either directly in the config file, or by using the |
| 4952 |
\comname{RM@BeforeProcessOptions} hook. Then put class-specific code in |
| 4953 |
the \comname{RM@AfterProcessOptions} hook; use the \comname{RM@OnClassType} |
| 4954 |
command. |
| 4955 |
|
| 4956 |
\item[\comname{RM@PrinterPaperSettings}] This hook is executed after the |
| 4957 |
standard printer/paper specific code has been executed. Use the |
| 4958 |
\comname{RM@OnPrinterType}, \comname{RM@OnPortraitPaperType}, |
| 4959 |
\comname{RM@OnLandscapePaperType}, and \comname{RM@On\-Paper\-Type} commands |
| 4960 |
here. |
| 4961 |
|
| 4962 |
\item[\comname{RM@BeforeWidthSetting}] If you want to use a different |
| 4963 |
file for width setting, define \comname{RM@widthsetter} to be the name of the |
| 4964 |
file in this hook. The \comname{RM@OnClassType} command can be used to |
| 4965 |
select which class this file should be used for. This hook is |
| 4966 |
executed after the \comname{RM@OnClassType} command has been set by the |
| 4967 |
standard code, and just before the width setting file is loaded. |
| 4968 |
|
| 4969 |
\item[\comname{RM@AfterWidthSetting}] This hook is executed on returning |
| 4970 |
from the width setting file. It's here for \ae sthetic reasons. |
| 4971 |
|
| 4972 |
\end{description} |
| 4973 |
|
| 4974 |
\section{Marginal paragraphs} |
| 4975 |
\label{htw:mpars} |
| 4976 |
|
| 4977 |
There is more on setting the size of marginal paragraphs in |
| 4978 |
section~\ref{htw:headfootmpar} on page~\pageref{htw:headfootmpar}. |
| 4979 |
|
| 4980 |
If you are going to use marginal notes in your document, ensure that |
| 4981 |
you specify \comname{normalmarginpar} or \comname{reversemarginpar} |
| 4982 |
\emph{before} loading \rmpage. This is because \rmpage calculates the |
| 4983 |
size of marginal paragraphs based on the space available, and if |
| 4984 |
\rmpage thinks you're going to put marginal notes in the margin which |
| 4985 |
is largest, and you really put them in the margin that is smallest, |
| 4986 |
it'll get the calculation wrong and you'll have marginal notes that |
| 4987 |
don't fit on the page. |
| 4988 |
|
| 4989 |
If you're going to switch between \comname{normalmarginpar} and |
| 4990 |
\comname{reversemarginpar} in your document, select whichever one puts |
| 4991 |
the marginal notes in the smallest margin before you load \rmpage. |
| 4992 |
Messy, I know---sorry. |
| 4993 |
|
| 4994 |
The standard \LaTeX\ classes, report and article, create marginal |
| 4995 |
paragraphs that are a fixed distance away from the text, with a |
| 4996 |
minimum clearance from the edge of the paper of 0.8in (one sided |
| 4997 |
printing), or 0.4in (two sided printing), and a maximum |
| 4998 |
width of 2in. |
| 4999 |
|
| 5000 |
\rmpage says yah boo sucks to all this. |
| 5001 |
|
| 5002 |
\section{Dealing with different classes} |
| 5003 |
|
| 5004 |
\rmpage gives each class a number; the number of the current class is |
| 5005 |
stored in the command \comname{RM@classtype}. Classes are detected in |
| 5006 |
\rmpage, and in the config file. More than one class can have been |
| 5007 |
loaded; the idea is that the first loaded class is defined as the |
| 5008 |
current class. |
| 5009 |
|
| 5010 |
\section{Different paper types and printers} |
| 5011 |
\label{htw:paperprinter} |
| 5012 |
|
| 5013 |
\rmpage knows about non-printing margins, and about different paper |
| 5014 |
sizes and orientations. Each printer has its own defined |
| 5015 |
non-printing margins, which are used to calculate the non-printing |
| 5016 |
margins for each paper size. |
| 5017 |
|
| 5018 |
The non-printing margins for the selected paper size are calculated and |
| 5019 |
stored in the commands: |
| 5020 |
|
| 5021 |
\begin{tabbing} |
| 5022 |
\comname{RM@minrightclearance} \= \comname{RM@mintopclearance} \\ |
| 5023 |
\comname{RM@minleftclearance} \> \comname{RM@minbottomclearance} \\ |
| 5024 |
\end{tabbing} |
| 5025 |
|
| 5026 |
Each printer option must define nine commands so that \rmpage can |
| 5027 |
calculate the non-printing margins for each paper size. These |
| 5028 |
commands to define the non-printing margins for each printer are: |
| 5029 |
|
| 5030 |
\begin{tabbing} |
| 5031 |
Portrait orientation non-printing margins:\\ |
| 5032 |
\comname{RM@ptrrportclear} \= right-hand side\\ |
| 5033 |
\comname{RM@ptrlportclear} \> left-hand side\\ |
| 5034 |
\comname{RM@ptrbportclear} \> bottom edge \\ |
| 5035 |
\comname{RM@ptrtportclear} \> top edge \\ |
| 5036 |
Landscape orientation non-printing margins: |
| 5037 |
\comname{RM@ptrrlandclear} \> right-hand side\\ |
| 5038 |
\comname{RM@ptrllandclear} \> left-hand side\\ |
| 5039 |
\comname{RM@ptrblandclear} \> bottom edge \\ |
| 5040 |
\comname{RM@ptrtlandclear} \> top edge \\ |
| 5041 |
Assumed maximum positional error: |
| 5042 |
\comname{RM@ptrpostol} \\ |
| 5043 |
\end{tabbing} |
| 5044 |
|
| 5045 |
The \comname{RM@ptrpostol} command holds a length which is added to |
| 5046 |
the \comname{RM@minclearance} values right at the end of the |
| 5047 |
non-printing margin calculations, \emph{after} the |
| 5048 |
\comname{RM@PrinterPaperSettings} hook has been executed. Properly |
| 5049 |
speaking, there should be four of these: one for left-right error and |
| 5050 |
one for up-down error in both portrait and landscape orientation, but |
| 5051 |
I think that one is probably adequate. The standard printer types set |
| 5052 |
\comname{RM@ptrpostol} to 1\units{mm}. |
| 5053 |
|
| 5054 |
\rmpage works out which printer clearance parameters to use as the |
| 5055 |
non-printing margins like this; |
| 5056 |
|
| 5057 |
\begin{enumerate} |
| 5058 |
|
| 5059 |
\item The flag \comname{RM@portrait} is set true if you are printing |
| 5060 |
in portrait orientation, false if you are printing landscape. |
| 5061 |
|
| 5062 |
\item The flag \comname{RM@portlandinvert} is set true if you are |
| 5063 |
using a long paper size which reduces the length of the parent paper |
| 5064 |
size to less than the width of the parent paper size. |
| 5065 |
|
| 5066 |
\item |
| 5067 |
\begin{tabbing} |
| 5068 |
if \= (|\RM@portrait| and not |\RM@portlandinvert|) \\ |
| 5069 |
\> or (not |\RM@portrait| and |\RM@portlandinvert|)\\ |
| 5070 |
then use the |portclear| parameters \\ |
| 5071 |
\end{tabbing} |
| 5072 |
|
| 5073 |
\item |
| 5074 |
\begin{tabbing} |
| 5075 |
if \= (|\RM@portrait| and |\RM@portlandinvert|) \\ |
| 5076 |
\> or (not |\RM@portrait| and not |\RM@portlandinvert|)\\ |
| 5077 |
then use the |landclear| parameters\\ |
| 5078 |
\end{tabbing} |
| 5079 |
|
| 5080 |
\item If you are using a long paper size that is greater than half the |
| 5081 |
parent size, set to 0\unit{pt} the non-printing margin at the edge |
| 5082 |
where you cut the parent size to create the long size (assumed to be |
| 5083 |
either the right-hand or bottom edge). |
| 5084 |
|
| 5085 |
\item Execute the \comname{RM@PrinterPaperSettings} hook |
| 5086 |
|
| 5087 |
\item Add the value of the command \comname{RM@ptrpostol} to the |
| 5088 |
non-printing margins |
| 5089 |
|
| 5090 |
\end{enumerate} |
| 5091 |
|
| 5092 |
|
| 5093 |
\section{Headers, footers, and marginal paragraphs} |
| 5094 |
\label{htw:headfootmpar} |
| 5095 |
|
| 5096 |
This section looks at how to control the size of the gap between the |
| 5097 |
main body text and: headers, footers, and marginal paragraphs, as well |
| 5098 |
as the gap between marginal paragraphs and the edge of the paper, the |
| 5099 |
maximum width of marginal paragraphs, and the gap between columns of |
| 5100 |
text in a multiple-column layout. |
| 5101 |
|
| 5102 |
The details of how the size of marginal paragraphs is calculated are |
| 5103 |
in section~\ref{htw:mpars} on page~\pageref{htw:mpars}. |
| 5104 |
|
| 5105 |
Some lengths used as page layout parameters are set to their final |
| 5106 |
values by the command: |
| 5107 |
\begin{verbatim} |
| 5108 |
\RM@scalebyoption{<length to be scaled>}{<option number>} |
| 5109 |
\end{verbatim} |
| 5110 |
The |<length to be scaled>| is multiplied by a factor controlled the |
| 5111 |
the |<option number>|. The option number is set to 12 by |
| 5112 |
default (which means multiply by one), and is allowed to range from 1 |
| 5113 |
to 23. The multipliers are in a geometrical sequence from 0.3263 to |
| 5114 |
3.0646. The option |least...| sets the option number to 3, and gives |
| 5115 |
a multiplier of 0.4. The option |most...| set the option number to |
| 5116 |
21, and gives a multiplier of 2.5. The |touchmore...| and |
| 5117 |
|touchless...| options add or subtract one from the option number, as |
| 5118 |
do the |t@uchmore...| and |t@uchless...| options (which are reserved |
| 5119 |
for use by class files). |
| 5120 |
|
| 5121 |
These following lengths are scaled by option; the name of the counter |
| 5122 |
storing the controlling option number is given in each case. |
| 5123 |
|
| 5124 |
\begin{enumerate} |
| 5125 |
\item \comname{headsep}---the gap between the top of the text and the |
| 5126 |
box containing the head. Controlled by \comname{RM@headsepoption}. |
| 5127 |
|
| 5128 |
\item \comname{footskip}---the gap between the bottom of the text and |
| 5129 |
the baseline of the foot. \rmpage scales the length |
| 5130 |
($\mbox{\comname{footskip}}-\mbox{\comname{baselineskip}}$), to scale the |
| 5131 |
apparent gap between the (assumed one line) footer and the bottom of |
| 5132 |
the text body. Controlled by \comname{RM@footskipoption}. |
| 5133 |
|
| 5134 |
\item \comname{columnsep}---the gap between columns on a multi-column |
| 5135 |
page (nothing to do with tables). Controlled by |
| 5136 |
\comname{RM@columnsepoption}. |
| 5137 |
|
| 5138 |
\item \comname{marginparsep}---the gap between the text body and |
| 5139 |
marginal paragraphs. Controlled by \comname{RM@mparsepoption}. |
| 5140 |
|
| 5141 |
\item \comname{RM@mparclearance}---the minimum gap between the edge of |
| 5142 |
the paper and marginal paragraphs. Controlled by \comname{RM@mparclearoption}. |
| 5143 |
|
| 5144 |
\item \comname{RM@maxmparwidth}---the maximum width of marginal paragraphs. |
| 5145 |
Controlled by \comname{RM@maxmparwidthoption}. |
| 5146 |
|
| 5147 |
\end{enumerate} |
| 5148 |
|
| 5149 |
The first four are standard \LaTeX\ lengths, and the only change \rmpage |
| 5150 |
makes to them is with \comname{RM@scalebyoption}. The fifth and sixth |
| 5151 |
lengths are new parameters set by \rmpage. |
| 5152 |
|
| 5153 |
You can play about with all of these parameters by passing options to |
| 5154 |
\rmpage. |
| 5155 |
|
| 5156 |
If the spread of values given by the standard options isn't enough, |
| 5157 |
you can say: |
| 5158 |
\begin{verbatim} |
| 5159 |
\setlength\columnsep{3\columnsep} |
| 5160 |
\end{verbatim} |
| 5161 |
or some such in your preamble, \textbf{before} loading \rmpage. This |
| 5162 |
only works for the standard \LaTeX\ parameters. |
| 5163 |
|
| 5164 |
If you want to do something like this for \comname{RM@mparclearance} |
| 5165 |
or \comname{RM@maxmparwidth}, you can use the |
| 5166 |
\optname{largebasemparclear} or \optname{largebasemaxmparwidth} |
| 5167 |
options. These multiply the corresponding parameter by 2 if it has |
| 5168 |
not been set by a configuration file. |
| 5169 |
|
| 5170 |
\chapter{Configuring \rmpage} |
| 5171 |
\label{chap:config} |
| 5172 |
|
| 5173 |
The configuration file exists so you can tailor your installation of |
| 5174 |
\rmpage to your preferences. Some obvious things to set are the |
| 5175 |
default printer type, the default paper type, the default date style, |
| 5176 |
whether you want the inside or the outside margin larger. |
| 5177 |
|
| 5178 |
\section{Setting up a new installation} |
| 5179 |
\label{optcfg:settingup} |
| 5180 |
|
| 5181 |
\rmpage will work entirely happily without local configuration, but |
| 5182 |
you might want to customize its behaviour, for example to speed it up. |
| 5183 |
This chapter explains how. |
| 5184 |
|
| 5185 |
For the sake of compatibility with everyone else and future versions, |
| 5186 |
please keep the file \filename{rmpgen.cfg} unchanged in your \TeX{} |
| 5187 |
search path, and make changes only to a copy of one of the standard |
| 5188 |
configuration files that came with \rmpage. I suggest you make a copy |
| 5189 |
called \filename{rmplocal.cfg}, from either \filename{rmpgen.cfg} |
| 5190 |
(everything active) or \filename{rmplocal.gfc} (fastest). |
| 5191 |
|
| 5192 |
When you create your local configuration file, begin by doing two |
| 5193 |
things: add a comment on the top line identifying this file as yours; |
| 5194 |
and change the \comname{ProvidesFile} command to match the new name |
| 5195 |
and identify the file as yours---don't forget to change the date and |
| 5196 |
version number: |
| 5197 |
\begin{verbatim} |
| 5198 |
\ProvidesFile{rmplocal.cfg} |
| 5199 |
[1381/04/01 v0.1 Wat Tylers's |
| 5200 |
local configuration file for the rmpage package.] |
| 5201 |
\end{verbatim} |
| 5202 |
|
| 5203 |
It's okay to comment out and uncomment options, but don't make any |
| 5204 |
other changes above the line in the configuration file that says: |
| 5205 |
{\ttfamily\scshape local code below here please}. I won't complain |
| 5206 |
if you do, but you'll find it harder to upgrade to new versions of |
| 5207 |
\rmpage. |
| 5208 |
|
| 5209 |
\section{Configuration basics} |
| 5210 |
|
| 5211 |
I assume that you have made a copy called \filename{rmplocal.cfg} of |
| 5212 |
either \filename{rmplocal.gfc} or \filename{rmpgen.cfg}, and that |
| 5213 |
you've changed the \comname{ProvidesFile} command. If not, read the |
| 5214 |
start of this chapter again. I will refer to \filename{rmplocal.cfg} |
| 5215 |
as the config file in this chapter; there are other names a local |
| 5216 |
configuation file might have. |
| 5217 |
|
| 5218 |
Please don't change your config file above the line that says: |
| 5219 |
{\ttfamily\scshape local code below here please}. I won't complain if |
| 5220 |
you do, but you'll find it harder to upgrade to new versions of |
| 5221 |
\rmpage. |
| 5222 |
|
| 5223 |
\subsection{Unknown option error} |
| 5224 |
|
| 5225 |
If you are using a copy of \filename{rmplocal.gfc} and \LaTeX{} |
| 5226 |
complains about an unknown option, edit your config file and |
| 5227 |
uncomment the option you need. The more options that are |
| 5228 |
uncommented, the slower \rmpage will work. |
| 5229 |
|
| 5230 |
\subsection{Default options} |
| 5231 |
|
| 5232 |
Look through your config file for the line \textsc{change the command |
| 5233 |
below to match your local preferences}. There's an |
| 5234 |
\comname{ExecuteOptions} statement just below it. This statement sets |
| 5235 |
your default options---my default settings are below. I have a |
| 5236 |
special printer type, because my printer is old, tired, and |
| 5237 |
out-of-spec; I usually print on A4 paper with a large inside margin so |
| 5238 |
I can put my printouts in a ring binder, and I like my dates like |
| 5239 |
this: 5th November 1996. You can change the argument of this |
| 5240 |
statement to match your preferences: if you're an American with a |
| 5241 |
LaserJet 4, replace the printer option with \optname{lj4printer}, |
| 5242 |
change the paper type to \optname{letterpaper}, and the date to |
| 5243 |
\optname{usdate}. If most of your output goes in ring-binders, keep |
| 5244 |
the \optname{notstdmargins} option; otherwise, change it to |
| 5245 |
\optname{stdmargins} to give a conventional large outside margin. |
| 5246 |
|
| 5247 |
\begin{verbatim} |
| 5248 |
%% CHANGE THE COMMAND BELOW TO MATCH YOUR LOCAL PREFERENCES |
| 5249 |
%% -------------------------------------------------------- |
| 5250 |
%% |
| 5251 |
\ExecuteOptions{R+R-dw520printer,a4paper,notstdmargins,nicedate} |
| 5252 |
%% |
| 5253 |
%% -------------------------------------------------------- |
| 5254 |
\end{verbatim} |
| 5255 |
|
| 5256 |
You can add almost any option you like to this statement: it sets the |
| 5257 |
defaults for everything you typeset with \rmpage. Some of the options |
| 5258 |
in \filename{rmplocal} have been commented out to speed things up, so |
| 5259 |
you might need to uncomment them to allow them to work. You can tell |
| 5260 |
whether an option needs uncommenting from the list of all the options |
| 5261 |
in chapter~\ref{chap:alltheoptions} on |
| 5262 |
page~\pageref{chap:alltheoptions}: options that look like this: |
| 5263 |
{\asleepfount obscureoption} are commented out; options that look like |
| 5264 |
this: {\awakefount usefuloption} are not commented out. None of the |
| 5265 |
options in \rmpage are commented out---you only need to edit the |
| 5266 |
configuration file. |
| 5267 |
|
| 5268 |
You can have additional default options for particular classes. |
| 5269 |
Because the options for particular classes are executed after the |
| 5270 |
general defaults, they can over-ride the general defaults. So it's |
| 5271 |
quite all right to say \optname{a4paper} in the |
| 5272 |
\optname{ExecuteOptions} statement above if you normally print out |
| 5273 |
slides on B5~paper, because the \optname{b5paper} option executed |
| 5274 |
later on will over-ride the original \optname{a4paper} option. |
| 5275 |
|
| 5276 |
If you want different default options for different classes, or if you |
| 5277 |
intend to use the slides class, read the next section which explains |
| 5278 |
all. |
| 5279 |
|
| 5280 |
\section{Configuring \rmpage for particular classes} |
| 5281 |
\label{cfg:classes} |
| 5282 |
|
| 5283 |
Just below the \comname{ExecuteOptions} statement which sets the |
| 5284 |
global defaults, there's a section headed \textsc{default options for |
| 5285 |
particular classes}. This is the place intended for your |
| 5286 |
class-specific default settings. \rmpage provides a command to do |
| 5287 |
this: |
| 5288 |
\begin{verbatim} |
| 5289 |
\RM@OnClassExecuteOptions{<class name>}{<comma separated options>} |
| 5290 |
\end{verbatim} |
| 5291 |
It's just an \comname{ExecuteOptions} command that is only executed |
| 5292 |
for the named class. For example, my configuration file has the |
| 5293 |
statement: |
| 5294 |
\begin{verbatim} |
| 5295 |
\RM@OnClassExecuteOptions{slides} |
| 5296 |
{centre,ukdate,R+R-dw520printer} |
| 5297 |
\end{verbatim} |
| 5298 |
Which executes the given options only when I'm using the |
| 5299 |
\classname{slides} class. You might like to change this statement to |
| 5300 |
match your preferences. |
| 5301 |
|
| 5302 |
You can have as many of these \comname{RM@OnClassExecuteOptions} |
| 5303 |
statements as you like, although one statement for each class is |
| 5304 |
probably best. If you are creating a class of your own, say a thesis |
| 5305 |
class based on \classname{report}, it's probably best to make sure |
| 5306 |
that the default options for your thesis class are executed after the |
| 5307 |
default options for the \classname{report} class. That way, the |
| 5308 |
\classname{report} class's defaults don't over-ride your thesis |
| 5309 |
class's defaults. |
| 5310 |
|
| 5311 |
If you want to create a new class with the help of \rmpage, read |
| 5312 |
section~\ref{cfg:newclass} on page~\pageref{cfg:newclass} for more |
| 5313 |
details. |
| 5314 |
|
| 5315 |
\section{Defining a new printer type} |
| 5316 |
\label{cfg:printertype} |
| 5317 |
|
| 5318 |
\section{Dealing with particular combinations of printer |
| 5319 |
and paper} |
| 5320 |
\label{cfg:printerpaper} |
| 5321 |
|
| 5322 |
|
| 5323 |
|
| 5324 |
\section{Telling \rmpage about a new class} |
| 5325 |
\label{cfg:newclass} |
| 5326 |
|
| 5327 |
If you are going to define a new class type, there are two obvious |
| 5328 |
ways of doing it: either declare a new option which sets the |
| 5329 |
\comname{RM@classtype} command to your new class number (above 100, |
| 5330 |
please), or put a line in the \comname{RM@DefineNewClasses} hook: |
| 5331 |
% |
| 5332 |
\begin{verbatim} |
| 5333 |
\DeclareOption{nuthesisclass}{\def\RM@classtype{101}} |
| 5334 |
\end{verbatim} |
| 5335 |
or |
| 5336 |
\begin{verbatim} |
| 5337 |
\newcommand*{\RM@DefineNewClasses}{ |
| 5338 |
\RM@SetClassType{nuthesis}{101} |
| 5339 |
}% endRM@DefineNewClasses |
| 5340 |
\end{verbatim} |
| 5341 |
|
| 5342 |
The advantage of not using an option is greater speed. The advantage |
| 5343 |
of using an option is that you can pass the option to \rmpage, and be |
| 5344 |
sure that your particular settings are acted upon, even if you change |
| 5345 |
the name of your class. |
| 5346 |
|
| 5347 |
|
| 5348 |
You can set default options for a particular class in the config file: |
| 5349 |
the \textsc{default options for particular classes} section is for you |
| 5350 |
to add: |
| 5351 |
\begin{verbatim} |
| 5352 |
\RM@ClassExecuteOptions{<class name>}{<options list>} |
| 5353 |
\end{verbatim} |
| 5354 |
statements for each class you want to \comname{ExecuteOptions} for. |
| 5355 |
make sure that if you are building one class upon another (e.g., |
| 5356 |
building nuthesis on report), that you execute the options for the |
| 5357 |
base class first (e.g., do report before nuthesis). |
| 5358 |
|
| 5359 |
|
| 5360 |
The \comname{RM@AfterProcessOptions} hook is the ideal place to use |
| 5361 |
the \comname{RM@OnClassType} command to set up things for particular |
| 5362 |
classes. You can set things like minimum margins, maximum textwidth, |
| 5363 |
and the like there. See the config file for some examples. |
| 5364 |
|
| 5365 |
\subsection{Dealing with options} |
| 5366 |
|
| 5367 |
If you want to build a new class by modifying a standard class with |
| 5368 |
the help of \rmpage, you need to think about what's going to happen |
| 5369 |
to options. |
| 5370 |
|
| 5371 |
You can tell your new class, let's call it the \classname{nuthesis} class, |
| 5372 |
to pass options on to \rmpage quite happily, by including a |
| 5373 |
line: |
| 5374 |
\begin{verbatim} |
| 5375 |
\DeclareOption*{\PassOptionsToPackage{rmpage} |
| 5376 |
{\CurrentOption}} |
| 5377 |
\end{verbatim} |
| 5378 |
in the option declaration section of your class file to pass all |
| 5379 |
options you don't deal with to \rmpage (not forgetting to say: |
| 5380 |
\begin{verbatim} |
| 5381 |
\ProcessOptions |
| 5382 |
... |
| 5383 |
\RequirePackage{rmpage} |
| 5384 |
\end{verbatim} |
| 5385 |
later on). |
| 5386 |
|
| 5387 |
The problem with this is that any options you have set up explicitly |
| 5388 |
(for example, you might have pass the \optname{wide} option to rmpage |
| 5389 |
to get a particular \comname{textwidth}, and the user might have asked |
| 5390 |
for \optname{narrow}. Do \emph{you} know which one takes precendent?) |
| 5391 |
might be over-ridden by the user. |
| 5392 |
|
| 5393 |
The safest way to deal with this is to decide which of \rmpage's options |
| 5394 |
you will allow the user to use. You might stick with the |
| 5395 |
\begin{verbatim} |
| 5396 |
\DeclareOption*{\PassOptionsToPackage{rmpage} |
| 5397 |
{\CurrentOption}} |
| 5398 |
\end{verbatim} |
| 5399 |
statement in your class file and prepare a special \rmpage |
| 5400 |
config file for your new class, which has all other options commented |
| 5401 |
out. If you call this config file \filename{rmpage-nuthesis.cfg}, |
| 5402 |
include the line |
| 5403 |
\begin{verbatim} |
| 5404 |
\newcommand*{\RMconfigfile}{rmpage-nuthesis.cfg} |
| 5405 |
\end{verbatim} |
| 5406 |
in your class |
| 5407 |
file before loading \rmpage. Or you might use: |
| 5408 |
\begin{verbatim} |
| 5409 |
\DeclareOption{<option name>} |
| 5410 |
{\PassOptionsToPackage{rmpage}{<option name>}} |
| 5411 |
\end{verbatim} |
| 5412 |
to pass each allowed option on to \rmpage, and ensure that you're not |
| 5413 |
passing options to \rmpage with \comname{DeclareOption*}. |
| 5414 |
|
| 5415 |
If you have used \rmpage to help you get printing dimensions right for |
| 5416 |
a fixed format and you don't want the user to change anything, you |
| 5417 |
might find it best to set the various parameters directly in your |
| 5418 |
class file, and forget about using \rmpage entirely. You can find out |
| 5419 |
what they were set to by looking in the \filename{log} file; by the |
| 5420 |
time I've released \rmpage, everything that \rmpage changes damned |
| 5421 |
well ought to be noted there, and if not you can curse me for a |
| 5422 |
careless fool, and specify the \optname{garrulous} option to \rmpage |
| 5423 |
which will print everything and then some in your \TeX\ console |
| 5424 |
window. Don't try this if you're going to keep using \rmpage to build |
| 5425 |
your class---I have no idea what'll happen. |
| 5426 |
|
| 5427 |
|
| 5428 |
|
| 5429 |
\subsection{Things you can do with your new class number} |
| 5430 |
|
| 5431 |
\subsubsection{Changing textheight setting} |
| 5432 |
|
| 5433 |
You can define the command \comname{RM@textheightgroup} to any number |
| 5434 |
you like. It's probably best to do this in the |
| 5435 |
\comname{RM@AfterProcessOptions} hook. |
| 5436 |
|
| 5437 |
Currently, the initial value of textheight is set by one of two blocks |
| 5438 |
of code: one is executed if \comname{RM@textheightgroup} is 0 |
| 5439 |
(default); the other is executed if \comname{RM@textheightgroup} is 1 |
| 5440 |
(slides only). |
| 5441 |
|
| 5442 |
If you set \comname{RM@textheightgroup} to anything other than 0 or 1 |
| 5443 |
for any of your classes, you will need to add some code to set |
| 5444 |
textheight! Put your new code in the |
| 5445 |
\comname{RM@BeforeTextheightSetting} hook; have a look at \rmpage to |
| 5446 |
see how I did it. |
| 5447 |
|
| 5448 |
\subsubsection{Changing textwidth setting} |
| 5449 |
|
| 5450 |
ALL THIS IS WRONG NOW! |
| 5451 |
|
| 5452 |
You can also define the command \comname{RM@widthsetter} to be any |
| 5453 |
filename you like, using any of the hooks executed before the width |
| 5454 |
setting code is used. If the command is not defined just before the |
| 5455 |
\comname{RM@BeforeWidthSetting} hook is executed, it is defined to be |
| 5456 |
rmpwnorm.pko (the extension stands for package option). If the class |
| 5457 |
type is 5 (\classname{slides}), the command is then defined to be |
| 5458 |
rmpwslid.pko. This filename is the file loaded to set the various |
| 5459 |
horizontal parameters. By default, \filename{rmpwnorm.pko} is loaded |
| 5460 |
for all classes expect slides, which uses \filename{rmpwslid}. An |
| 5461 |
example of this sort of thing is this fragment of config file code: |
| 5462 |
|
| 5463 |
\noindent |
| 5464 |
{\footnotesize |
| 5465 |
\begin{verbatim} |
| 5466 |
\newcommand*{\RM@AfterProcessOptions}{ |
| 5467 |
\RM@OnClassType{101}{% class 101 = nightmare university thesis class |
| 5468 |
% Use different textheight setting code to everything else. |
| 5469 |
\def\RM@textheightgroup{2} |
| 5470 |
% Set minimum margins as specified in the regulations. |
| 5471 |
% Everything else is done by the class file. These commands |
| 5472 |
% are defined to be 1742pt at the start of rmpage, so they |
| 5473 |
% can't be set in the class file. |
| 5474 |
\def\RM@minoutsidemargin{15mm} |
| 5475 |
\def\RM@mininsidemargin{40mm} |
| 5476 |
\def\RM@mintopmargin{15mm} |
| 5477 |
\def\RM@minbottommargin{15mm} |
| 5478 |
% set minimum and maximum textwidth, as defined by the regs |
| 5479 |
\def\RM@mintextwidth{130mm} |
| 5480 |
\def\RM@maxtextwidth{160mm} |
| 5481 |
% load custom width setting code in file vulture-widths.jkl |
| 5482 |
\def\RM@widthsetter{vulture-widths.jkl} |
| 5483 |
}{} |
| 5484 |
} |
| 5485 |
% |
| 5486 |
% |
| 5487 |
% |
| 5488 |
\newcommand*{\RM@DefineNewClasses}{ |
| 5489 |
\RM@SetClassType{rmcv}{20} |
| 5490 |
\RM@SetClassType{rmletter}{21} |
| 5491 |
\RM@SetClassType{bithesis}{22} |
| 5492 |
\RM@SetClassType{ljmueepexam}{23} |
| 5493 |
\RM@SetClassType{nuthesis}{101} |
| 5494 |
}% endRM@DefineNewClasses |
| 5495 |
% |
| 5496 |
% |
| 5497 |
% nightmare u. thesis uses fixed total text area height of 7in |
| 5498 |
\newcommand*{\RM@BeforeTextheightSetting}{ |
| 5499 |
\RM@OnTextheightGroup{2}{% |
| 5500 |
\setlength\RM@totalheadfootclearance{\paperheight} |
| 5501 |
\addtolength\RM@totalheadfootclearance{-7in} |
| 5502 |
} |
| 5503 |
}% endRM@BeforeTextheightSetting |
| 5504 |
% |
| 5505 |
\end{verbatim} |
| 5506 |
} |
| 5507 |
|
| 5508 |
The code fragment above defines a new class type, |
| 5509 |
\classname{nuthesis}, number 101, which is a class for preparing |
| 5510 |
theses for Nightmare University. This class uses textheight setting |
| 5511 |
code that asks for a total text body height of as near to 7\units{in} |
| 5512 |
as possible no matter what textheight options are specified, and |
| 5513 |
horizontal text parameters are set by the file called |
| 5514 |
\filename{vulture-widths.jkl}. The other limits on the printing |
| 5515 |
region specified by the university's regulations are placed in the |
| 5516 |
\comname{RM@AfterProcessOptions} hook. What I have typed above is in |
| 5517 |
addition to any code which might be in those hooks anyway; don't |
| 5518 |
remove anything unless you've got a good reason---who knows what might |
| 5519 |
go wrong? |
| 5520 |
|
| 5521 |
|
| 5522 |
|
| 5523 |
|
| 5524 |
\end{document} |
| 5525 |
|
| 5526 |
|
| 5527 |
|
| 5528 |
|