| 1 |
% layman.tex User Manual for layouts.sty |
| 2 |
%% Copyright 1998--2004 Peter R. Wilson |
| 3 |
%% All rights reserved |
| 4 |
%% |
| 5 |
|
| 6 |
\documentclass[11pt]{article} |
| 7 |
\usepackage{layouts} |
| 8 |
|
| 9 |
% pdfetex (which might become the base system) defines \pdfoutput |
| 10 |
% Thomas Esser (of teTeX fame) asked for the following to be removed (2004/04/03) |
| 11 |
%\newif\ifpdf |
| 12 |
%\makeatletter |
| 13 |
%\@ifundefined{pdfoutput}{\pdffalse}{\pdftrue} |
| 14 |
%\makeatother |
| 15 |
%\ifpdf |
| 16 |
% \pdfoutput=1 |
| 17 |
%\fi |
| 18 |
|
| 19 |
|
| 20 |
\setlength{\textheight}{8.0in} |
| 21 |
\setlength{\textwidth}{6.0in} |
| 22 |
\setlength{\oddsidemargin}{0.25in} |
| 23 |
\setlength{\evensidemargin}{0.25in} |
| 24 |
\setlength{\marginparwidth}{0.6in} |
| 25 |
\setlength{\parskip}{5pt} |
| 26 |
\setcounter{secnumdepth}{4} |
| 27 |
\setcounter{tocdepth}{4} |
| 28 |
|
| 29 |
\setlength{\columnsep}{30pt} |
| 30 |
|
| 31 |
\setcounter{topnumber}{2} |
| 32 |
\setcounter{bottomnumber}{2} |
| 33 |
\setcounter{totalnumber}{4} |
| 34 |
\renewcommand{\topfraction}{0.9} |
| 35 |
\renewcommand{\bottomfraction}{0.6} |
| 36 |
\renewcommand{\textfraction}{0.1} |
| 37 |
|
| 38 |
|
| 39 |
\newlength{\figrulesep} |
| 40 |
\setlength{\figrulesep}{0.5\textfloatsep} |
| 41 |
|
| 42 |
\newcommand{\topfigrule}{\vspace*{-1pt}% |
| 43 |
\noindent\rule[-\figrulesep]{\columnwidth}{1pt}} |
| 44 |
|
| 45 |
\newcommand{\botfigrule}{\vspace*{-2pt}% |
| 46 |
\noindent\rule[\figrulesep]{\columnwidth}{2pt}} |
| 47 |
|
| 48 |
\makeatletter |
| 49 |
|
| 50 |
\renewcommand{\subsubsection}{\@startsection% |
| 51 |
{subsubsection}% |
| 52 |
{3}% |
| 53 |
{0mm}% |
| 54 |
{-\baselineskip}% |
| 55 |
{0.5\baselineskip}% |
| 56 |
{\large\itshape}} |
| 57 |
|
| 58 |
|
| 59 |
\newcommand{\fref}[1]{Figure~\ref{#1}} |
| 60 |
\newcommand{\tref}[1]{Table~\ref{#1}} |
| 61 |
\newcommand{\T}{\texttt{true}} |
| 62 |
\newcommand{\F}{\texttt{false}} |
| 63 |
\newcommand{\TF}{\textit{true/false}} |
| 64 |
|
| 65 |
|
| 66 |
%%%% the \meta command |
| 67 |
\begingroup |
| 68 |
\obeyspaces% |
| 69 |
\catcode`\^^M\active% |
| 70 |
\gdef\meta{\begingroup\obeyspaces\catcode`\^^M\active% |
| 71 |
\let^^M\do@space\let \do@space% |
| 72 |
\def\-{\egroup\discretionary{-}{}{}\hbox\bgroup\it}% |
| 73 |
\m@ta}% |
| 74 |
\endgroup |
| 75 |
\def\m@ta#1{\leavevmode\hbox\bgroup$\langle$\it#1\/$\rangle$\egroup |
| 76 |
\endgroup} |
| 77 |
\def\do@space{\egroup\space |
| 78 |
\hbox\bgroup\it\futurelet\next\sp@ce} |
| 79 |
\def\sp@ce{\ifx\next\do@space\expandafter\sp@@ce\fi} |
| 80 |
\def\sp@@ce#1{\futurelet\next\sp@ce} |
| 81 |
|
| 82 |
\newcommand{\marg}[1]{\texttt{\{}\meta{#1}\texttt{\}}} |
| 83 |
|
| 84 |
\newcommand{\file}[1]{\textsf{#1}} |
| 85 |
%%%%%% indexing commands |
| 86 |
%\@ifundefined{bs}{\newcommand{\bs}{\textbackslash}}% |
| 87 |
% {\renewcommand{\bs}{\textbackslash}} |
| 88 |
\@ifundefined{bs}{\newcommand{\bs}{\char '134}}% |
| 89 |
{\renewcommand{\bs}{\char '134}} |
| 90 |
\newcommand{\tat}{@} |
| 91 |
|
| 92 |
\newcommand{\ixcom}[1]{\index{#1/ @\texttt{\protect\bs #1}}} % command |
| 93 |
\newcommand{\pixcom}[1]{\texttt{\bs #1}\index{#1/ @\texttt{\protect\bs #1}}} |
| 94 |
\newcommand{\ixatcom}[1]{\index{?#1/ @\texttt{\protect\bs\protect\tat #1}}} |
| 95 |
\newcommand{\pixatcom}[1]{\texttt{\bs\tat #1}\index{?#1/ @\texttt{\protect\bs\protect\tat #1}}} |
| 96 |
\newcommand{\ixenv}[1]{\index{#1 @\texttt{#1} (environment)}} |
| 97 |
\newcommand{\pixenv}[1]{\texttt{#1}\index{#1 @\texttt{#1} (environment)}} |
| 98 |
\newcommand{\ixpack}[1]{\index{#1 @\file{#1} (package)}} |
| 99 |
\newcommand{\pcom}[1]{\texttt{\bs #1}} |
| 100 |
\newcommand{\pixfile}[1]{\file{#1}\index{#1 @{\file{#1} (file)}}} |
| 101 |
\newcommand{\pixcount}[1]{\texttt{#1}\index{#1 @\texttt{#1} (counter)}} |
| 102 |
\newcommand{\ixsbox}[1]{\index{#1 @\texttt{#1} (save box)}} |
| 103 |
|
| 104 |
\providecommand{\indexfill}{} |
| 105 |
\providecommand{\sindexfill}{} |
| 106 |
\providecommand{\ssindexfill}{} |
| 107 |
\providecommand{\otherindexspace}[1]{} |
| 108 |
\providecommand{\alphaindexspace}[1]{\indexspace{\bfseries #1}} |
| 109 |
|
| 110 |
%%% \setlength{\parindent}{-4em} |
| 111 |
\makeatother |
| 112 |
|
| 113 |
\title{The \file{layouts} package: User manual} |
| 114 |
\author{ |
| 115 |
Author: Peter Wilson, Herries Press \\ |
| 116 |
Maintainer: Will Robertson \\ |
| 117 |
\texttt{will dot robertson at latex-project dot org} |
| 118 |
} |
| 119 |
\date{October 2004\thanks{Previous versions were dated |
| 120 |
November 2003, July 2002, March 2002, November 2001, July 2001 and January 1999.}} |
| 121 |
|
| 122 |
\makeindex |
| 123 |
|
| 124 |
\begin{document} |
| 125 |
%%% \setuplayouts |
| 126 |
\bibliographystyle{alpha} |
| 127 |
\pagenumbering{roman} |
| 128 |
\maketitle |
| 129 |
\begin{abstract} |
| 130 |
The \LaTeX{} \file{layouts} package enables the display of various |
| 131 |
elements of a document's layout. The elements include the positioning |
| 132 |
of text on a page, the disposition of floats on a page, the geometrical |
| 133 |
layout of lists and footnotes, the design of section headers and their |
| 134 |
display in a table of contents. It also enables document designers to |
| 135 |
experiment with potential layout designs. |
| 136 |
\end{abstract} |
| 137 |
\tableofcontents |
| 138 |
\listoftables |
| 139 |
\listoffigures |
| 140 |
\clearpage |
| 141 |
\pagenumbering{arabic} |
| 142 |
|
| 143 |
|
| 144 |
\section{Introduction} |
| 145 |
|
| 146 |
\LaTeX{} has several pre-defined styles for the layout of typeset |
| 147 |
documents~\cite{LAMPORT94}. Authors using \LaTeX{} sometimes wish to |
| 148 |
understand how these layouts are parameterised (or controlled). The |
| 149 |
\texttt{layouts} package enables the display of certain of these |
| 150 |
parameterised layouts, showing what the parameters control. It also |
| 151 |
provides facilities for experimenting with different values of the |
| 152 |
typesetting parameters, showing the results graphically. |
| 153 |
|
| 154 |
The \file{layouts} package was developed as an aid to the author |
| 155 |
when he was developing a new \LaTeX{} class for typsetting ISO standards. |
| 156 |
The development of the package has benefitted from |
| 157 |
Kent McPherson's \pixfile{layout.sty}~\cite{MCPHERSON88}. |
| 158 |
|
| 159 |
\subsection{Command types} |
| 160 |
|
| 161 |
The majority of the commands provided fall into one of several categories. |
| 162 |
\begin{description} |
| 163 |
\item[Drawing] Commands of the form \pcom{draw}\textit{L}, |
| 164 |
\pcom{}\textit{L}\texttt{diagram}, and |
| 165 |
\pcom{}\textit{L}\texttt{design} |
| 166 |
generate a \LaTeX{} \texttt{picture} of the layout \textit{L}. |
| 167 |
|
| 168 |
\item[Current layout] Commands of the form \pcom{current}\textit{L} collect, |
| 169 |
as far as possible, the values of the layout parameters for the current |
| 170 |
\textit{L} layout environment for use by the corresponding |
| 171 |
\pcom{draw}\textit{L} command. If a parameter value is not directly |
| 172 |
accessible, then a typical value is provided. |
| 173 |
|
| 174 |
\item[Layout values] Commands of the form \pcom{}\textit{L}\texttt{values} |
| 175 |
produce a tabular listing of the current values of the parameters |
| 176 |
controlling |
| 177 |
the layout \textit{L}. As far as possible these are the actual values. |
| 178 |
In some cases the values are hard-wired in the body of a macro, and in these |
| 179 |
cases reasonable guesstimates are made of a `typical' value. |
| 180 |
In the printed |
| 181 |
table, guesstimates are indicated by appending two question marks (??) |
| 182 |
to the printed value. Note that the tabular listing produced by a |
| 183 |
\pcom{}\textit{L}\texttt{values} command is not the same as a listing |
| 184 |
that might be produced by the corresponding \pcom{draw}\textit{L} command. |
| 185 |
The appearance of the table may be controlled as follows. |
| 186 |
\begin{itemize} |
| 187 |
\item The declaration \pixcom{printheadingstrue} will cause a short title |
| 188 |
to be placed above the tabular; the tabular is untitled when |
| 189 |
\pixcom{printheadingsfalse} is in effect. |
| 190 |
\item The font size used for the table is specified via the |
| 191 |
\pixcom{setvaluestextsize}\marg{fontsize} macro, where |
| 192 |
\meta{fontsize} is one of LaTeX's font size commands (e.g., |
| 193 |
\pixcom{footnotesize}, which is the default value.). |
| 194 |
\end{itemize} |
| 195 |
|
| 196 |
\item[User-specified parameter values] Commands of the form |
| 197 |
\pcom{try}\textit{P} can be used to change the value of the layout |
| 198 |
parameter \textit{P}. Note that these commands do \emph{not} affect the |
| 199 |
the layout of the document, they only modify the values used in |
| 200 |
displaying a layout. |
| 201 |
|
| 202 |
\item[Control] Commands of the form \verb|\|\textit{C}\texttt{true} or |
| 203 |
\verb|\|\textit{C}\texttt{false} control certain aspects of the kinds of |
| 204 |
layouts pictured. |
| 205 |
|
| 206 |
\end{description} |
| 207 |
|
| 208 |
\subsection{General facilities} |
| 209 |
|
| 210 |
In order to initialize the \file{layouts} package correctly for your |
| 211 |
document, the command \pixcom{setuplayouts} |
| 212 |
must be issued immediately |
| 213 |
after the \verb|\begin{document}|, or at least before any following command |
| 214 |
that changes font sizes or suchlike. Fortunately you don't have to concern |
| 215 |
youself with this as it is called automatically by the \file{layouts} |
| 216 |
package. However, you may call it yourself at some later point in the |
| 217 |
document to pick up the current value of the \pixcom{baselineskip} |
| 218 |
or \pixcom{parskip} if these have been modified. The \pixcom{setuplayouts} |
| 219 |
command also sets the \pixcom{setlayoutscale} to its default value of |
| 220 |
$0.5$. |
| 221 |
|
| 222 |
\subsubsection{Scaling} |
| 223 |
|
| 224 |
A few layout pictures are drawn full size. Most are drawn less than |
| 225 |
full size, typically to half-scale. To make the pictures fit your |
| 226 |
document neatly, you may wish to change the scale. The command |
| 227 |
\verb|\setlayoutscale{|\meta{frac}\verb|}|,\ixcom{setlayoutscale} |
| 228 |
where \meta{frac} is a decimal number (e.g., $0.75$) sets the scaling. |
| 229 |
For example, \verb|\setlayoutscale{0.5}| will produce pictures at |
| 230 |
half full size, and \verb|\setlayoutscale{1.0}| will make the pictures |
| 231 |
full size. |
| 232 |
|
| 233 |
\subsubsection{Layout types} |
| 234 |
|
| 235 |
In general, two kinds of layout pictures can be produced. |
| 236 |
|
| 237 |
\begin{enumerate} |
| 238 |
\item A picture showing a generic layout and its controlling parameters |
| 239 |
is produced by a command of the form \pcom{}\textit{L}\texttt{diagram}. |
| 240 |
The same effect may be achieved by using a \pcom{draw}\textit{L} after |
| 241 |
the declaration \pixcom{drawparameterstrue}. |
| 242 |
\item A picture showing an `actual' layout is produced by a command |
| 243 |
of the form \pcom{}\textit{L}\texttt{design}. |
| 244 |
The same effect may be achieved by using a \pcom{draw}\textit{L} after |
| 245 |
the declaration \\ |
| 246 |
\pixcom{drawparametersfalse}. |
| 247 |
|
| 248 |
\begin{quote} |
| 249 |
\textbf{Warning:} If an actual layout differs too much |
| 250 |
from a `normal' layout then LaTeX may hiccup a time or two. The |
| 251 |
typical problem is when a dimension that is expected to be positive |
| 252 |
is actually negative; LaTeX will respond |
| 253 |
with an error message like `Bad \pcom{line} or \pcom{vector} argument'. |
| 254 |
\end{quote} |
| 255 |
|
| 256 |
\end{enumerate} |
| 257 |
|
| 258 |
\begin{quote} |
| 259 |
\textbf{Note:} The \pcom{}\textit{L}\texttt{diagram} and |
| 260 |
\pcom{}\textit{L}\texttt{design} commands were introduced in version 2.5 of |
| 261 |
the package. The previous method of generating pictures (via \pcom{draw}\textit{L} |
| 262 |
and \verb?\drawparameters...?) is mainly retained for compatibility reasons. |
| 263 |
\end{quote} |
| 264 |
|
| 265 |
Examples of both kinds of layout are shown later. |
| 266 |
|
| 267 |
Some aspects of the appearance of the pictures can be controlled. |
| 268 |
The following apply to both generic and actual layouts. |
| 269 |
\begin{itemize} |
| 270 |
\item The size of the font used for displaying the parameters is specified |
| 271 |
via the command: \\ |
| 272 |
\pixcom{setparameterstextsize}\marg{size}, |
| 273 |
where \meta{size} is |
| 274 |
one of LaTeX's font size commands. \\ |
| 275 |
The initial setting is |
| 276 |
\verb|\setparameterstextsize{\footnotesize}|. |
| 277 |
|
| 278 |
\item Some parts of the layouts are labelled, for example the footer area |
| 279 |
in the page layout is labelled `footer'. The macro |
| 280 |
\pixcom{setlabelfont}\marg{font} can be used to control the font used for |
| 281 |
typesetting these labels. The default is \verb|\setlabelfont{\normalsize}|, |
| 282 |
but can be, for example, \verb|\setlabelfont{\large\itshape}| to use |
| 283 |
a large italic font instead. Note that \meta{font} must be specified as |
| 284 |
a declaration(s). |
| 285 |
\end{itemize} |
| 286 |
|
| 287 |
The following controls only apply to actual layouts (i.e., |
| 288 |
when using \pcom{}\textit{L}\texttt{design}, or the earlier |
| 289 |
\pixcom{drawparametersfalse} \pcom{draw}\textit{L} pairing is in effect). |
| 290 |
\begin{itemize} |
| 291 |
\item Some layouts have some explanatory header text. Putting |
| 292 |
\pixcom{printheadingsfalse} prohibits these while |
| 293 |
\pixcom{printheadingstrue} lets them be printed. |
| 294 |
|
| 295 |
\item In the generic layouts, the lengths controlled by the various |
| 296 |
parameters are indicated by dimension lines; these are not |
| 297 |
normally shown in actual layouts. Using \pixcom{drawdimensionstrue} |
| 298 |
will let these be shown in actual layouts. The default |
| 299 |
setting is \pixcom{drawdimensionsfalse}. |
| 300 |
|
| 301 |
\begin{quote} |
| 302 |
\textbf{Warning:} If you draw actual layouts with \pixcom{drawdimensionstrue} |
| 303 |
the drawings may be overburdened and if the layout differs too much |
| 304 |
from a `normal' layout then LaTeX may hiccup a time or two (typically |
| 305 |
with an error message like `Bad \pcom{line} or \pcom{vector} argument'). |
| 306 |
\end{quote} |
| 307 |
|
| 308 |
\item When \pixcom{printparameterstrue} is in effect, a table of the parameter |
| 309 |
values will be printed below the layout. Unsurprisingly, |
| 310 |
\pixcom{printparametersfalse} prohibits the table. The default is |
| 311 |
\pixcom{printparameterstrue}. |
| 312 |
|
| 313 |
\end{itemize} |
| 314 |
|
| 315 |
\subsubsection{Length units} |
| 316 |
|
| 317 |
The tabular listings of the parameter length values produced by |
| 318 |
the \pcom{}\textit{L}\texttt{values} macros give the lengths in TeX |
| 319 |
points by default. The length units may be set by the |
| 320 |
\pixcom{printinunitsof}\marg{unit} command. The \meta{unit} argument |
| 321 |
may be any of TeX's length units, except for scaled point. That is, the |
| 322 |
allowable values are \texttt{pt}, \texttt{pc}, \texttt{in}, \texttt{mm}, |
| 323 |
\texttt{cm}, \texttt{bp}, \texttt{dd}, or \texttt{cc}; an unkown unit is |
| 324 |
treated as though it were \texttt{pt}. When printing in pt units any |
| 325 |
stretch or shrink values are printed as well; using \texttt{PT} instead |
| 326 |
of \texttt{pt} eliminates these `rubber' values. The initial setting |
| 327 |
is \verb|\printinunitsof{pt}|. |
| 328 |
|
| 329 |
The macro \pixcom{prntlen}\marg{length} prints the value of |
| 330 |
\meta{length}, where \meta{length} is a LaTeX length, using the units |
| 331 |
specified by \pixcom{printinunitsof}. For example, the following code |
| 332 |
\begin{verbatim} |
| 333 |
The textwidth is \printinunitsof{pt}\prntlen{\textwidth} which is also |
| 334 |
\printinunitsof{in}\prntlen{\textwidth} or |
| 335 |
\printinunitsof{mm}\prntlen{\textwidth}. |
| 336 |
\end{verbatim} |
| 337 |
prints out: \\ |
| 338 |
\begingroup |
| 339 |
The textwidth is \printinunitsof{pt}\prntlen{\textwidth} which is also |
| 340 |
\printinunitsof{in}\prntlen{\textwidth} or |
| 341 |
\printinunitsof{mm}\prntlen{\textwidth}. |
| 342 |
\endgroup |
| 343 |
|
| 344 |
\subsection{Usage} |
| 345 |
|
| 346 |
The drawing commands (i.e., \verb|\...diagram|, \verb|\...design| |
| 347 |
and \verb|\draw...|) |
| 348 |
are typically used within a |
| 349 |
\pixenv{figure} environment, although they can be used in |
| 350 |
running text. Internally they generate a \pixenv{picture} |
| 351 |
and \pixenv{tabular} environment, both enclosed in their |
| 352 |
own \pixenv{center} environments. |
| 353 |
|
| 354 |
The \pixcom{setlayoutscale} command can be used anywhere in a document |
| 355 |
after the initial \pixcom{setuplayouts} command. Used in running text it |
| 356 |
will alter the scale factor for all succeeding drawing commands. |
| 357 |
However, if \pixcom{setlayoutscale} is called within an environment, such |
| 358 |
as the \pixenv{figure} environment, it will only affect |
| 359 |
the scale factors for succeeding drawing commands in that |
| 360 |
environment. |
| 361 |
|
| 362 |
The \file{layouts} package uses many \LaTeX{} counters and lengths. |
| 363 |
If it is used with too many other packages, the available number of |
| 364 |
counters and lengths may be exhausted. Essentially, the \file{layouts} |
| 365 |
package is intended to be used in short documents as an exploratory tool |
| 366 |
when designing the typesetting rules to be embodied in a new package or |
| 367 |
class file. |
| 368 |
|
| 369 |
\section{Page spread} |
| 370 |
\suppressfloats[t] |
| 371 |
|
| 372 |
Book designers often start by determining the proportions of a page, |
| 373 |
the proportions of the text block, and the position of the text block on |
| 374 |
the page. Often the width of a page is taken as the starting point. |
| 375 |
|
| 376 |
In the following let $w$ be the width of a single page; that is, |
| 377 |
the distance from the |
| 378 |
spine to the outside of the fore edge. I also use the other symbols given in |
| 379 |
\tref{tab:spread}. |
| 380 |
\begin{table} |
| 381 |
\centering |
| 382 |
\caption{Page spread symbols} \label{tab:spread} |
| 383 |
\begin{tabular}{|c|l|} \hline |
| 384 |
Symbol & Meaning \\ \hline |
| 385 |
$w$ & Page width \\ |
| 386 |
$P$ & Ratio of page height to width \\ |
| 387 |
$T$ & Ratio of text block height to width \\ |
| 388 |
$S$ & Ratio of spine width to page width \\ |
| 389 |
$H$ & Ratio of top margin height to spine width \\ |
| 390 |
$E$ & Ratio of fore edge margin width to spine width \\ |
| 391 |
$F$ & Ratio of bottom margin height to spine width \\ |
| 392 |
$G$ & Ratio of width of two-column gutter to spine width \\ \hline |
| 393 |
\end{tabular} |
| 394 |
\end{table} |
| 395 |
|
| 396 |
Given values for $w$, $P$, $T$, $S$, and any two of $H$, $E$ and $F$, it |
| 397 |
is possible to calculate the page size, the text block size and the position |
| 398 |
of the text. The command \\ |
| 399 |
\verb|\drawaspread[|\meta{F}\verb|]{|% |
| 400 |
\meta{w}\verb|}{|% |
| 401 |
\meta{P}\verb|}{|% |
| 402 |
\meta{T}\verb|}{|% |
| 403 |
\meta{S}\verb|}{|% |
| 404 |
\meta{H}\verb|}{|% |
| 405 |
\meta{E}\verb|}{|% |
| 406 |
\meta{G}\verb|}|\ixcom{drawaspread} \\ |
| 407 |
where the first parameter is optional, draws a two page spread with the given |
| 408 |
page width and proportions. If the optional \meta{F} is not provided, then the |
| 409 |
bottom margin is calculated from the values of other parameters. If \meta{G} |
| 410 |
is zero or negative, then a single column layout is shown, otherwise a double |
| 411 |
column layout is presented. |
| 412 |
|
| 413 |
\newlength{\pwlayi} |
| 414 |
\setlength{\pwlayi}{0.4375\textwidth} |
| 415 |
\newlength{\pwlayii} |
| 416 |
\setlength{\pwlayii}{0.5\pwlayi} |
| 417 |
|
| 418 |
\begin{figure} |
| 419 |
\centering |
| 420 |
\begin{minipage}[b]{\pwlayi} |
| 421 |
\drawaspread{\pwlayii}{1.294}{1.618}{0.176}{1.037}{1.685}{0} |
| 422 |
\end{minipage} |
| 423 |
\hfill |
| 424 |
\begin{minipage}[b]{\pwlayi} |
| 425 |
\drawaspread{\pwlayii}{1.5}{1.5}{0.111}{1.5}{2.0}{0} |
| 426 |
\end{minipage} |
| 427 |
\caption{(Left) The \LaTeX{} book spread; |
| 428 |
(Right) Spread for many of Gutenberg's books} |
| 429 |
\label{fig:spread} |
| 430 |
\end{figure} |
| 431 |
|
| 432 |
|
| 433 |
Figure~\ref{fig:spread} shows two different spreads. This was produced |
| 434 |
from the code below: |
| 435 |
\begin{verbatim} |
| 436 |
\newlength{\pwlayi} |
| 437 |
\setlength{\pwlayi}{0.4375\textwidth} |
| 438 |
\newlength{\pwlayii} |
| 439 |
\setlength{\pwlayii}{0.5\pwlayi} |
| 440 |
|
| 441 |
\begin{figure} |
| 442 |
\centering |
| 443 |
\begin{minipage}[b]{\pwlayi} |
| 444 |
\drawaspread{\pwlayii}{1.294}{1.618}{0.176}{1.037}{1.685}{0} |
| 445 |
\end{minipage} |
| 446 |
\hfill |
| 447 |
\begin{minipage}[b]{\pwlayi} |
| 448 |
\drawaspread{\pwlayii}{1.5}{1.5}{0.111}{1.5}{2.0}{0} |
| 449 |
\end{minipage} |
| 450 |
\caption{(Left) The \LaTeX{} book spread; |
| 451 |
(Right) Spread for many of Gutenberg's books} |
| 452 |
\label{fig:spread} |
| 453 |
\end{figure} |
| 454 |
\end{verbatim} |
| 455 |
|
| 456 |
The \pixcom{drawaspread} command does not scale via the |
| 457 |
\pixcom{setlayoutscale} command. The size of the illustration is controlled |
| 458 |
by the value given for the width of the page. |
| 459 |
|
| 460 |
|
| 461 |
%%%%%%%%%%%%%%% |
| 462 |
\clearpage |
| 463 |
\section{Page layout} |
| 464 |
\suppressfloats[t] |
| 465 |
|
| 466 |
%%\drawmarginparsfalse |
| 467 |
|
| 468 |
%%%%%%%%%%%%%%%%%%%%% |
| 469 |
%%\printheadingstrue |
| 470 |
%\printheadingsfalse |
| 471 |
%%\printparameterstrue |
| 472 |
%\printparametersfalse |
| 473 |
%\drawdimensionstrue |
| 474 |
%%\drawdimensionsfalse |
| 475 |
%%%%%%%%%%%%%%%%%%%%% |
| 476 |
|
| 477 |
The layout of a single page is produced by the |
| 478 |
\pixcom{pagediagram} or \pixcom{pagedesign} (or \pixcom{drawpage}) command. |
| 479 |
The kind of page drawn is |
| 480 |
specified via three control commands\footnote{Remember that all drawing |
| 481 |
commands of the form \pcom{draw...}, except for \pcom{drawaspread}, are also controlled |
| 482 |
by the \pcom{drawparameters...} command.}. |
| 483 |
|
| 484 |
Right- or left-hand page layouts are specified by the commands |
| 485 |
\pcom{oddpagelayout}\TF{} (\pixcom{oddpagelayouttrue} |
| 486 |
for an odd-numbered (i.e., right-hand) page, or |
| 487 |
\pixcom{oddpagelayoutfalse} for an even-numbered |
| 488 |
(i.e., left-hand or verso) page). The default is |
| 489 |
\pixcom{oddpagelayouttrue}. |
| 490 |
|
| 491 |
Double or single column layouts are controlled by the commands |
| 492 |
\pcom{twocolumnlayout}\TF. |
| 493 |
Using \pixcom{twocolumnlayouttrue} |
| 494 |
will result in a picture of a double column page layout and |
| 495 |
using \pixcom{twocolumnlayoutfalse} |
| 496 |
will result in a picture of a single column page layout. The default |
| 497 |
is \pixcom{twocolumnlayoutfalse}. |
| 498 |
|
| 499 |
The display of marginal notes is controlled by the commands |
| 500 |
\pcom{drawmarginpars}\TF. |
| 501 |
Using \pixcom{drawmarginparstrue} rusults in representations of |
| 502 |
marginal notes being drawn and using \pixcom{drawmarginparsfalse} |
| 503 |
hides the marginal notes. The default is |
| 504 |
\pixcom{drawmarginparstrue}. |
| 505 |
|
| 506 |
Normally \LaTeX{} places any marginal notes in the outside margin; |
| 507 |
the standard \LaTeX{} command \pixcom{reversemarginpar} causes notes |
| 508 |
to be placed in the opposite margin to the default one, and |
| 509 |
\pixcom{normalmarginpar} causes the notes to be put in the default |
| 510 |
margin. The package commands \pcom{reversemarginpar}\TF{} may be used |
| 511 |
to control the marginal note locations in the pictures. |
| 512 |
\pixcom{reversemarginpartrue} corresponds to \pixcom{reversemarginpar} |
| 513 |
and \pixcom{reversemarginparfalse} corresponds to \pixcom{normalmarginpar}. |
| 514 |
The package default is \pixcom{reversemarginparfalse}. |
| 515 |
|
| 516 |
A \LaTeX{} class may always place marginal notes into the same margin. |
| 517 |
The package command \pcom{marginparswitch}\TF, is supplied to control |
| 518 |
the placement in the diagrams. \pixcom{marginparswitchtrue} will place marginal notes |
| 519 |
according to the class desires, while \pixcom{marginparswitchfalse} will |
| 520 |
always draw marginal notes in one margin. |
| 521 |
|
| 522 |
|
| 523 |
As an example, \fref{fig:pplt} is produced by the following code. |
| 524 |
\begin{verbatim} |
| 525 |
\begin{figure} |
| 526 |
\oddpagelayoutfalse |
| 527 |
\twocolumnlayouttrue |
| 528 |
\pagediagram |
| 529 |
\caption{Left-hand two-column page layout parameters} \label{fig:pplt} |
| 530 |
\end{figure} |
| 531 |
\end{verbatim} |
| 532 |
|
| 533 |
\begin{figure} |
| 534 |
\oddpagelayoutfalse |
| 535 |
\twocolumnlayouttrue |
| 536 |
%\drawpage |
| 537 |
\pagediagram |
| 538 |
\caption{Left-hand two-column page layout parameters} \label{fig:pplt} |
| 539 |
\end{figure} |
| 540 |
|
| 541 |
The two lines forming an inverted `L' represent the left-hand and |
| 542 |
top of the printed sheet. |
| 543 |
By default, \LaTeX{} makes all page layout measurements from a point |
| 544 |
located one inch in from the left-hand side of the printed sheet and one |
| 545 |
inch down from the top of the sheet. This point is marked with a circle. |
| 546 |
The dashed lines correspond to the vertical and horizontal offsets from |
| 547 |
this point. |
| 548 |
|
| 549 |
|
| 550 |
The command \pixcom{currentpage} collects together the page parameter |
| 551 |
settings for the current document for the page on which it is issued. |
| 552 |
For example, it determines whether the current page is odd or even and |
| 553 |
in which margin any marginal notes would be placed. |
| 554 |
\fref{fig:ptrs} shows the odd page |
| 555 |
layout for the document you are now reading. It was produced by the |
| 556 |
following commands: |
| 557 |
\begin{verbatim} |
| 558 |
\begin{figure} |
| 559 |
\currentpage |
| 560 |
\oddpagelayouttrue |
| 561 |
\pagedesign |
| 562 |
\caption{Odd page layout for this document} \label{fig:ptrs} |
| 563 |
\end{figure} |
| 564 |
\end{verbatim} |
| 565 |
The resulting picture is correctly proportioned, both horizontally and |
| 566 |
vertically. |
| 567 |
|
| 568 |
\begin{figure} |
| 569 |
\currentpage |
| 570 |
%\drawparametersfalse \drawpage |
| 571 |
\pagedesign |
| 572 |
\caption{Page layout for this document} \label{fig:ptrs} |
| 573 |
\end{figure} |
| 574 |
|
| 575 |
When layouts are drawn with \verb|...diagram|\footnote{Or longhandedly |
| 576 |
with \pcom{drawparametersfalse} and \pcom{draw...}.} |
| 577 |
the actual values |
| 578 |
of the parameters used to produce the layout are normally |
| 579 |
listed at the bottom of the |
| 580 |
picture. This can be used, as in \fref{fig:ptrs}, to find out what the |
| 581 |
settings are for the current document. |
| 582 |
|
| 583 |
Among other parameters that are set by |
| 584 |
\pixcom{currentpage} are values for the page width and |
| 585 |
height. If these have been specified by the |
| 586 |
\pixcom{paperwidth} and \pixcom{paperheight} |
| 587 |
commands, these values are used. Otherwise the width and height are set to |
| 588 |
the size of American letter paper, which is eight by eleven and a half inches. |
| 589 |
|
| 590 |
\begin{table} |
| 591 |
\centering |
| 592 |
\caption{Commands for setting trial page parameters}\label{tab:tpage} |
| 593 |
\begin{tabular}{|l|l|} \hline |
| 594 |
Command & Parameter \\ \hline |
| 595 |
\pixcom{trypaperwidth} & sets the \pixcom{paperwidth} value \\ |
| 596 |
\pixcom{trypaperheight} & sets the \pixcom{paperheight} value \\ |
| 597 |
\pixcom{tryhoffset} & sets the \pixcom{hoffset} value (usually 0pt) \\ |
| 598 |
\pixcom{tryvoffset} & sets the \pixcom{voffset} value (usually 0pt) \\ |
| 599 |
\pixcom{tryoddsidemargin} & sets the \pixcom{oddsidemargin} (usually 21--63pt) \\ |
| 600 |
\pixcom{tryevensidemargin} & sets the \pixcom{evensidemargin} value (usually 39--82pt) \\ |
| 601 |
\pixcom{trymarginparwidth} & sets the \pixcom{marginparwidth} value (usually 68--107pt) \\ |
| 602 |
\pixcom{trymarginparsep} & sets the \pixcom{marginparsep} value (usually 10--11pt) \\ |
| 603 |
\pixcom{trymarginparpush} & sets the \pixcom{marginparpush} value (usually 5--7pt) \\ |
| 604 |
\pixcom{trytopmargin} & sets the \pixcom{topmargin} value (usually 27pt) \\ |
| 605 |
\pixcom{tryheadheight} & sets the \pixcom{headheight} value (usually 12pt) \\ |
| 606 |
\pixcom{tryheadsep} & sets the \pixcom{headsep} value (usually 25pt) \\ |
| 607 |
\pixcom{tryfootskip} & sets the \pixcom{footskip} value (usually 30pt) \\ |
| 608 |
\pixcom{trytextheight} & sets the \pixcom{textheight} value (usually 36--43 times the \pixcom{baselineskip}) \\ |
| 609 |
\pixcom{trytextwidth} & sets the \pixcom{textwidth} value (usually 345--390pt) \\ |
| 610 |
\pixcom{trycolumnsep} & sets the \pixcom{columnsep} value (usually 10pt) \\ |
| 611 |
\pixcom{trycolumnseprule} & sets the \pixcom{columnseprule} value (usually 0pt) \\ |
| 612 |
\hline |
| 613 |
\end{tabular} |
| 614 |
\end{table} |
| 615 |
|
| 616 |
There are a set of commands for experimenting with the page layout |
| 617 |
parameters. They are listed in \tref{tab:tpage}. Each of these commands |
| 618 |
takes one argument which is a length value. There is, in addition, an odd |
| 619 |
command, |
| 620 |
\pixcom{setfootbox}\verb|{|\meta{height}\verb|}{|\meta{depth}\verb|}|, |
| 621 |
which may be used |
| 622 |
to specify the expected \meta{height} and \meta{depth} of the footer. Footers |
| 623 |
are typically a single line but may require more space than that. Note that |
| 624 |
there is no way to actually specify the vertical size of the footer in LaTeX, |
| 625 |
which will use as much space as it needs. If a footer is given a \meta{depth} |
| 626 |
then a dashed line is drawn at \pixcom{footskip} below the main text box. |
| 627 |
|
| 628 |
The following code provides an example of the use of some of these |
| 629 |
commands when trying an experimental page layout. The result is shown |
| 630 |
in \fref{fig:pudf}. Note that |
| 631 |
\pixcom{currentpage} is used to initialize all the appropriate |
| 632 |
parameter values before setting any trial values. |
| 633 |
\begin{verbatim} |
| 634 |
\begin{figure} |
| 635 |
\currentpage |
| 636 |
\trypaperwidth{11in} |
| 637 |
\trypaperheight{8.5in} |
| 638 |
\trytextwidth{500pt} |
| 639 |
\trycolumnsep{40pt} |
| 640 |
\trycolumnseprule{3pt} |
| 641 |
\tryhoffset{-0.5in} |
| 642 |
\tryvoffset{0.5in} |
| 643 |
\printheadingsfalse |
| 644 |
\drawdimensionstrue |
| 645 |
\twocolumnlayouttrue |
| 646 |
\pagedesign |
| 647 |
\caption{An experimental page layout}\label{fig:pudf} |
| 648 |
\end{figure} |
| 649 |
\end{verbatim} |
| 650 |
|
| 651 |
\begin{figure} |
| 652 |
\currentpage |
| 653 |
\trypaperwidth{11in} |
| 654 |
\trypaperheight{8.5in} |
| 655 |
\trytextwidth{500pt} |
| 656 |
\trycolumnsep{40pt} |
| 657 |
\trycolumnseprule{3pt} |
| 658 |
\tryhoffset{-0.5in} |
| 659 |
\tryvoffset{0.5in} |
| 660 |
\printheadingsfalse |
| 661 |
\drawdimensionstrue |
| 662 |
\twocolumnlayouttrue |
| 663 |
%\drawparametersfalse \drawpage |
| 664 |
\pagedesign |
| 665 |
\caption{An experimental page layout}\label{fig:pudf} |
| 666 |
\end{figure} |
| 667 |
|
| 668 |
As can be seen, the resulting layout runs off the bottom of the |
| 669 |
specified physical page; either because the page dimensions were incorrectly |
| 670 |
set (the designer getting a landscape page when a portrait page was desired), |
| 671 |
or because the text height and width parameters were set incorrectly |
| 672 |
for the physical page (probably |
| 673 |
satisfactory for a portrait page but certainly wrong for the landscape page). |
| 674 |
|
| 675 |
Note that \pixcom{printheadingsfalse} was used to delete the |
| 676 |
explanatory heading text, and dimensions were drawn because of |
| 677 |
\pixcom{drawdimensionstrue}. |
| 678 |
|
| 679 |
\clearpage |
| 680 |
|
| 681 |
\subsection{Changing the page layout in your document} |
| 682 |
|
| 683 |
You can only specify the page layout in a document's preamble. That is, |
| 684 |
it is set by the class, or by a package or per document via code you write |
| 685 |
in the preamble. To be on the safe side and avoid strange error messages |
| 686 |
like \texttt{You can't use `\bs spacefactor'\ixcom{spacefactor} |
| 687 |
in vertical mode}, enclose all |
| 688 |
your preamble commands within the command pair \pixcom{makeatletter} |
| 689 |
and \pixcom{makeatother}. |
| 690 |
|
| 691 |
The page layout parameters can all be changed using the \LaTeX{} |
| 692 |
\pixcom{setlength} command. For example, to set the width of the text to |
| 693 |
3~inches, put this into the preamble: |
| 694 |
\begin{verbatim} |
| 695 |
\makeatletter |
| 696 |
\setlength{\textwidth}{3in} |
| 697 |
\makeatother |
| 698 |
\end{verbatim} |
| 699 |
|
| 700 |
|
| 701 |
The \pixcom{pagevalues} command can be used to produce a table, |
| 702 |
as shown here, of the values of the current document's page layout |
| 703 |
parameters. This is the default tabulation. |
| 704 |
|
| 705 |
\begin{verbatim} |
| 706 |
\pagevalues |
| 707 |
\end{verbatim} |
| 708 |
|
| 709 |
\pagevalues |
| 710 |
|
| 711 |
\begin{quote} |
| 712 |
\textbf{Note:} Prior to version 2.5 the tabulations were set in a |
| 713 |
\pixenv{center} environment. |
| 714 |
Starting with version 2.5 there is no surrounding environment. |
| 715 |
\end{quote} |
| 716 |
|
| 717 |
%%%%%%%%%%%%%%% |
| 718 |
\clearpage |
| 719 |
\section{The \file{memoir} class page layout} |
| 720 |
\suppressfloats[t] |
| 721 |
|
| 722 |
%%\drawmarginparsfalse |
| 723 |
|
| 724 |
The \file{memoir} class~\cite{MEMOIR} provides a different set |
| 725 |
of page layout parameters than the standard LaTeX classes. |
| 726 |
|
| 727 |
The layout of a single page for this class is produced by the |
| 728 |
\pixcom{stockdiagram} and \pixcom{stockdesign} (or \pixcom{drawstock}) |
| 729 |
commands. The kind of page drawn is |
| 730 |
specified via the same control commands that are used by |
| 731 |
the page drawing commands. That is: \\ |
| 732 |
\pcom{oddpagelayout}\TF, \\ |
| 733 |
\pcom{twocolumnlayout}\TF, \\ |
| 734 |
\pcom{drawmarginpars}\TF, \\ |
| 735 |
\pcom{reversemarginpar}\TF, and \\ |
| 736 |
\pcom{marginparswitch}\TF. |
| 737 |
|
| 738 |
Generally speaking, the commands for displaying and experimenting |
| 739 |
with the layout of a \file{memoir} |
| 740 |
class page are the same as, or analagous to, those for a standard page |
| 741 |
layout. |
| 742 |
|
| 743 |
As an example, \fref{fig:mempplt} is produced by the following code. |
| 744 |
\begin{verbatim} |
| 745 |
\begin{figure} |
| 746 |
\oddpagelayouttrue |
| 747 |
\twocolumnlayoutfalse |
| 748 |
\stockdiagram |
| 749 |
\caption{Right-hand page major layout parameters for |
| 750 |
the \file{memoir} class} \label{fig:mempplt} |
| 751 |
\end{figure} |
| 752 |
\end{verbatim} |
| 753 |
|
| 754 |
\begin{figure} |
| 755 |
\oddpagelayouttrue |
| 756 |
\twocolumnlayoutfalse |
| 757 |
%\drawmarginparsfalse \drawstock |
| 758 |
\stockdiagram |
| 759 |
\caption{Right-hand page major layout parameters for |
| 760 |
the \file{memoir} class} \label{fig:mempplt} |
| 761 |
\end{figure} |
| 762 |
|
| 763 |
|
| 764 |
Like the \pixcom{currentpage} command, \pixcom{currentstock} collects |
| 765 |
together the page parameter |
| 766 |
settings for the current \file{memoir} class document. |
| 767 |
|
| 768 |
For information on how to design a page layout the class |
| 769 |
documentation provides all the details~\cite{MEMOIR} (and uses the |
| 770 |
\file{layouts} package to illustrate them). |
| 771 |
|
| 772 |
\begin{table} |
| 773 |
\centering |
| 774 |
\caption{Commands for setting trial \file{memoir} page parameters}\label{tab:tmempage} |
| 775 |
\begin{tabular}{|l|l|} \hline |
| 776 |
Command & Parameter \\ \hline |
| 777 |
\pixcom{trystockwidth} & sets the \pixcom{stockwidth} value \\ |
| 778 |
\pixcom{trystockheight} & sets the \pixcom{stockheight} value \\ |
| 779 |
\pixcom{trypaperwidth} & sets the \pixcom{paperwidth} value \\ |
| 780 |
\pixcom{trypaperheight} & sets the \pixcom{paperheight} value \\ |
| 781 |
\pixcom{trytrimedge} & sets the \pixcom{trimedge} value \\ |
| 782 |
\pixcom{trytrimtop} & sets the \pixcom{trimtop} value \\ |
| 783 |
\pixcom{tryspinemargin} & sets the \pixcom{spinemargin} (usually 21--63pt) \\ |
| 784 |
\pixcom{trymarginparwidth} & sets the \pixcom{marginparwidth} value (usually 68--107pt) \\ |
| 785 |
\pixcom{trymarginparsep} & sets the \pixcom{marginparsep} value (usually 10--11pt) \\ |
| 786 |
\pixcom{trymarginparpush} & sets the \pixcom{marginparpush} value (usually 5--7pt) \\ |
| 787 |
\pixcom{tryuppermargin} & sets the \pixcom{uppermargin} value (usually 27pt) \\ |
| 788 |
\pixcom{tryheadheight} & sets the \pixcom{headheight} value (usually 12pt) \\ |
| 789 |
\pixcom{tryheadsep} & sets the \pixcom{headsep} value (usually 25pt) \\ |
| 790 |
\pixcom{tryfootskip} & sets the \pixcom{footskip} value (usually 30pt) \\ |
| 791 |
\pixcom{trytextheight} & sets the \pixcom{textheight} value (usually 36--43 times the \pixcom{baselineskip}) \\ |
| 792 |
\pixcom{trytextwidth} & sets the \pixcom{textwidth} value (usually 345--390pt) \\ |
| 793 |
\pixcom{trycolumnsep} & sets the \pixcom{columnsep} value (usually 10pt) \\ |
| 794 |
\pixcom{trycolumnseprule} & sets the \pixcom{columnseprule} value (usually 0pt) \\ |
| 795 |
\hline |
| 796 |
\end{tabular} |
| 797 |
\end{table} |
| 798 |
|
| 799 |
There are a set of commands for experimenting with the page layout |
| 800 |
parameters. They are listed in \tref{tab:tmempage}. Each of these commands |
| 801 |
takes one argument which is a length value. The \pixcom{setfootbox} command |
| 802 |
may be used as well. |
| 803 |
|
| 804 |
The following code provides an example of the use of some of these |
| 805 |
commands when trying an experimental page layout. The result is shown |
| 806 |
in \fref{fig:pmemudf}. |
| 807 |
\begin{verbatim} |
| 808 |
\begin{figure} |
| 809 |
\currentstock |
| 810 |
\trystockheight{11in} |
| 811 |
\trystockwidth{8.5in} |
| 812 |
\trytrimtop{1in} |
| 813 |
\trytrimedge{1in} |
| 814 |
\trypaperheight{10in} |
| 815 |
\trypaperwidth{7.5in} |
| 816 |
\tryspinemargin{0.75in} |
| 817 |
\tryuppermargin{1.0in} |
| 818 |
\tryheadheight{12pt} |
| 819 |
\tryheadsep{24pt} |
| 820 |
\trytextwidth{5in} |
| 821 |
\trytextheight{7in} |
| 822 |
\tryfootskip{24pt} |
| 823 |
\setfootbox{50pt}{50pt} |
| 824 |
\trymarginparsep{17pt} |
| 825 |
\trymarginparwidth{62pt} |
| 826 |
\trymarginparpush{12pt} |
| 827 |
\setlabelfont{\small} |
| 828 |
\stockdesign |
| 829 |
\caption{An experimental \file{memoir} class page layout}\label{fig:pmemudf} |
| 830 |
\end{figure} |
| 831 |
\end{verbatim} |
| 832 |
|
| 833 |
\begin{figure} |
| 834 |
\currentstock |
| 835 |
\trystockheight{11in} |
| 836 |
\trystockwidth{8.5in} |
| 837 |
\trytrimtop{1in} |
| 838 |
\trytrimedge{1in} |
| 839 |
\trypaperheight{10in} |
| 840 |
\trypaperwidth{7.5in} |
| 841 |
\tryspinemargin{0.75in} |
| 842 |
\tryuppermargin{1.0in} |
| 843 |
\tryheadheight{12pt} |
| 844 |
\tryheadsep{24pt} |
| 845 |
\trytextwidth{5in} |
| 846 |
\trytextheight{7in} |
| 847 |
\tryfootskip{24pt} |
| 848 |
\setfootbox{50pt}{50pt} |
| 849 |
\trymarginparsep{17pt} |
| 850 |
\trymarginparwidth{62pt} |
| 851 |
\trymarginparpush{12pt} |
| 852 |
\printheadingsfalse |
| 853 |
%%\twocolumnlayouttrue |
| 854 |
%%\oddpagelayoutfalse |
| 855 |
\setlabelfont{\small} |
| 856 |
%\drawparametersfalse \drawstock |
| 857 |
\stockdesign |
| 858 |
\caption{An experimental \file{memoir} class page layout}\label{fig:pmemudf} |
| 859 |
\end{figure} |
| 860 |
|
| 861 |
There is also a \pixcom{stockvalues} command to print a tabulation of the |
| 862 |
current stock specifications. |
| 863 |
% As this manual does not use the \file{memoir} |
| 864 |
% class, calling it would only result in errors. |
| 865 |
|
| 866 |
|
| 867 |
%%%%%%%%%% |
| 868 |
\clearpage |
| 869 |
\section{Paragraph layout} |
| 870 |
\suppressfloats[t] |
| 871 |
|
| 872 |
The commands \pixcom{paragraphdiagram} and \pixcom{paragraphdesign} |
| 873 |
(or \pixcom{drawparagraph} ) |
| 874 |
can be used to visualize the parameters |
| 875 |
that affect paragraphing. This is illustrated in \fref{fig:fpara} which |
| 876 |
was produced by the following code: |
| 877 |
\begin{verbatim} |
| 878 |
\begin{figure} |
| 879 |
\paragraphdiagram |
| 880 |
\caption{Paragraph parameters}\label{fig:fpara} |
| 881 |
\end{figure} |
| 882 |
\end{verbatim} |
| 883 |
|
| 884 |
\begin{figure} |
| 885 |
%\drawparagraph |
| 886 |
\paragraphdiagram |
| 887 |
\caption{Paragraph parameters}\label{fig:fpara} |
| 888 |
\end{figure} |
| 889 |
|
| 890 |
The command \verb|\currentparagraph|\ixcom{currentparagraph} sets the |
| 891 |
drawing parameters to the settings for the current document. The commands |
| 892 |
listed in \tref{tab:para} can be used to set trial values for the |
| 893 |
relevant parameters. These commands take one argument which must be a length. |
| 894 |
|
| 895 |
\begin{table} |
| 896 |
\centering |
| 897 |
\caption{Commands for setting trial paragraph parameters}\label{tab:para} |
| 898 |
\begin{tabular}{|l|l|} \hline |
| 899 |
Command & Parameter \\ \hline |
| 900 |
\pixcom{tryparindent} & sets the \pixcom{parindent} value \\ |
| 901 |
\pixcom{tryparskip} & sets the \pixcom{parskip} value \\ |
| 902 |
\pixcom{tryparlinewidth} & sets the \pixcom{linewidth} value \\ |
| 903 |
\pixcom{tryparbaselineskip} & sets the \pixcom{baselineskip} value \\ \hline |
| 904 |
\end{tabular} |
| 905 |
\end{table} |
| 906 |
|
| 907 |
Figure~\ref{fig:dpara} shows the paragraphing as used in this document. |
| 908 |
It was produced with this code: |
| 909 |
\begin{verbatim} |
| 910 |
\currentparagraph |
| 911 |
\begin{figure} |
| 912 |
\paragraphdesign |
| 913 |
\caption{Paragraphs in this document}\label{fig:dpara} |
| 914 |
\end{figure} |
| 915 |
\end{verbatim} |
| 916 |
|
| 917 |
\currentparagraph |
| 918 |
\begin{figure} |
| 919 |
%\drawparametersfalse \drawparagraph |
| 920 |
\paragraphdesign |
| 921 |
\caption{Paragraphs in this document}\label{fig:dpara} |
| 922 |
\end{figure} |
| 923 |
|
| 924 |
\currentparagraph |
| 925 |
\begin{figure} |
| 926 |
\tryparindent{-4em} |
| 927 |
%\drawparametersfalse \drawparagraph |
| 928 |
\paragraphdesign |
| 929 |
\caption{An outset paragraph}\label{fig:mpara} |
| 930 |
\end{figure} |
| 931 |
|
| 932 |
Interestingly, I found that \LaTeX{} is happy even if \pixcom{parindent} |
| 933 |
is set to a negative value. It isn't demonstrated in this typescript but |
| 934 |
you can see the effect in \fref{fig:mpara} which was produced from: |
| 935 |
\begin{verbatim} |
| 936 |
\currentparagraph |
| 937 |
\begin{figure} |
| 938 |
\tryparindent{-4em} |
| 939 |
\paragraphdesign |
| 940 |
\caption{An outset paragraph}\label{fig:mpara} |
| 941 |
\end{figure} |
| 942 |
\end{verbatim} |
| 943 |
|
| 944 |
The \pixcom{paragraphvalues} command can be used to produce a table, |
| 945 |
shown below, of the values of the current document's paragraph layout |
| 946 |
parameters (as set at the time that the command is used). The tabulation |
| 947 |
was typeset via |
| 948 |
\begin{verbatim} |
| 949 |
\begin{center} |
| 950 |
\printinunitsof{mm} |
| 951 |
\paragraphvalues |
| 952 |
\end{center} |
| 953 |
\end{verbatim} |
| 954 |
Note the use of \pixcom{printinunitsof} to set millimetres as the unit of |
| 955 |
length. |
| 956 |
|
| 957 |
\begin{center} |
| 958 |
\printinunitsof{mm} |
| 959 |
\paragraphvalues |
| 960 |
\end{center} |
| 961 |
|
| 962 |
|
| 963 |
%%%%%%%%% |
| 964 |
\clearpage |
| 965 |
\section{Float layouts} |
| 966 |
\suppressfloats[t] |
| 967 |
|
| 968 |
Two sets of commands are provided for displaying the layouts of |
| 969 |
\LaTeX{} floats (e.g., the \pixenv{figure} and \pixenv{table} environments). |
| 970 |
One set is for a macro view of floats and the other is for a more |
| 971 |
detailed view. |
| 972 |
|
| 973 |
\subsection{Float and text page layout} |
| 974 |
|
| 975 |
This set of commands is for displaying the general parameters for |
| 976 |
the location of floats on a page and proportioning the available space |
| 977 |
between the floats and textual material. |
| 978 |
|
| 979 |
The commands \pixcom{floatpagediagram} and \pixcom{floatpagedesign} |
| 980 |
(or \pixcom{drawfloatpage}) are used to visualize the general |
| 981 |
parameters. These are illustrated in \fref{fig:fpp} which was produced |
| 982 |
by the following code: |
| 983 |
\begin{verbatim} |
| 984 |
\begin{figure} |
| 985 |
\floatpagediagram |
| 986 |
\caption{Float and text page parameters}\label{fig:fpp} |
| 987 |
\end{figure} |
| 988 |
\end{verbatim} |
| 989 |
|
| 990 |
\begin{figure} |
| 991 |
%\drawfloatpage |
| 992 |
\floatpagediagram |
| 993 |
\caption{Float and text page parameters}\label{fig:fpp} |
| 994 |
\end{figure} |
| 995 |
|
| 996 |
The command \pixcom{currentfloatpage} sets the drawing parameters to the |
| 997 |
settings for the current document. The `standard' \LaTeX{} settings are |
| 998 |
shown in \fref{fig:fpstd}, produced by the code below. |
| 999 |
\begin{verbatim} |
| 1000 |
\begin{figure} |
| 1001 |
\currentfloatpage |
| 1002 |
\trytotalnumber{3} |
| 1003 |
\trytopnumber{2} |
| 1004 |
\trytopfraction{0.7} |
| 1005 |
\trytextfraction{0.2} |
| 1006 |
\trybottomfraction{0.3} |
| 1007 |
\trybottomnumber{1} |
| 1008 |
\setlayoutscale{0.25} |
| 1009 |
\floatpagedesign |
| 1010 |
\caption{The standard \LaTeX{} float and text page settings} |
| 1011 |
\label{fig:fpstd} |
| 1012 |
\end{figure} |
| 1013 |
\end{verbatim} |
| 1014 |
|
| 1015 |
\begin{figure} |
| 1016 |
\currentfloatpage |
| 1017 |
\trytotalnumber{3} |
| 1018 |
\trytopnumber{2} |
| 1019 |
\trytopfraction{0.7} |
| 1020 |
\trytextfraction{0.2} |
| 1021 |
\trybottomfraction{0.3} |
| 1022 |
\trybottomnumber{1} |
| 1023 |
\setlayoutscale{0.25} |
| 1024 |
%\drawparametersfalse \drawfloatpage |
| 1025 |
\floatpagedesign |
| 1026 |
\caption{The standard \LaTeX{} float and text page settings} |
| 1027 |
\label{fig:fpstd} |
| 1028 |
\end{figure} |
| 1029 |
|
| 1030 |
The commands listed in \tref{tab:tfloatp} can be used to set trial values |
| 1031 |
for the relevant parameters. The commands take one argument, which is either |
| 1032 |
an integer number or a decimal fraction, depending on the particular command. |
| 1033 |
|
| 1034 |
\begin{table} |
| 1035 |
\centering |
| 1036 |
\caption{Commands for setting trial float page parameters}\label{tab:tfloatp} |
| 1037 |
\begin{tabular}{|l|l|} \hline |
| 1038 |
Command & Parameter \\ \hline |
| 1039 |
\pixcom{trytotalnumber} & (integer) sets the \pixcom{totalnumber} (usually 3) \\ |
| 1040 |
\pixcom{trytopnumber} & (integer) sets the \pixcom{topnumber} (usually 2) \\ |
| 1041 |
\pixcom{trytopfraction} & (decimal) sets the \pixcom{topfraction} (usually 0.7) \\ |
| 1042 |
\pixcom{trytextfraction} & (decimal) sets the \pixcom{textfraction} (usually 0.2) \\ |
| 1043 |
\pixcom{trybottomnumber} & (integer) sets the \pixcom{bottomnumber} (usually 1) \\ |
| 1044 |
\pixcom{trybottomfraction} & (decimal) sets the \pixcom{bottomfraction} (usually 0.3) \\ |
| 1045 |
\hline |
| 1046 |
\end{tabular} |
| 1047 |
\end{table} |
| 1048 |
|
| 1049 |
\begin{figure} |
| 1050 |
\currentfloatpage |
| 1051 |
\trytotalnumber{4} |
| 1052 |
\trytopnumber{2} |
| 1053 |
\trytopfraction{0.9} |
| 1054 |
\trytextfraction{0.1} |
| 1055 |
\trybottomnumber{2} |
| 1056 |
\trybottomfraction{0.6} |
| 1057 |
\setlayoutscale{0.25} |
| 1058 |
%\drawparametersfalse \drawfloatpage |
| 1059 |
\floatpagedesign |
| 1060 |
\caption{Float page layout for decreasing likelihood of float-only pages} |
| 1061 |
\label{fig:fpudf} |
| 1062 |
\end{figure} |
| 1063 |
|
| 1064 |
Figure~\ref{fig:fpudf} illustrates float page settings that increase |
| 1065 |
the likelihood of a float remaining on a text page without being put on |
| 1066 |
a page by itself. The figure was produced from the following code: |
| 1067 |
\begin{verbatim} |
| 1068 |
\begin{figure} |
| 1069 |
\currentfloatpage |
| 1070 |
\trytotalnumber{4} |
| 1071 |
\trytopnumber{2} |
| 1072 |
\trytopfraction{0.9} |
| 1073 |
\trytextfraction{0.1} |
| 1074 |
\trybottomnumber{2} |
| 1075 |
\trybottomfraction{0.6} |
| 1076 |
\setlayoutscale{0.25} |
| 1077 |
\floatpagedesign |
| 1078 |
\caption{Float page layout for decreasing likelihood of float-only pages} |
| 1079 |
\label{fig:fpudf} |
| 1080 |
\end{figure} |
| 1081 |
\end{verbatim} |
| 1082 |
|
| 1083 |
|
| 1084 |
%%%%%%%%% |
| 1085 |
%%%%\clearpage |
| 1086 |
\subsection{Detailed float layout} |
| 1087 |
\suppressfloats[t] |
| 1088 |
|
| 1089 |
The other view of floats concentrates on the spacing between text and |
| 1090 |
floats on a page. The \pixcom{floatdiagram} and \pixcom{floatdesign} |
| 1091 |
(or \pixcom{drawfloat}) commands are used to visualize this |
| 1092 |
aspect. |
| 1093 |
|
| 1094 |
The relevant parameters are shown in \fref{fig:flp}, produced from the |
| 1095 |
following code: |
| 1096 |
\begin{verbatim} |
| 1097 |
\begin{figure} |
| 1098 |
\setlayoutscale{0.9} |
| 1099 |
\floatdiagram |
| 1100 |
\caption{Float parameters}\label{fig:flp} |
| 1101 |
\end{figure} |
| 1102 |
\end{verbatim} |
| 1103 |
|
| 1104 |
\begin{figure} |
| 1105 |
\setlayoutscale{0.9} |
| 1106 |
%\drawfloat |
| 1107 |
\floatdiagram |
| 1108 |
\caption{Float parameters}\label{fig:flp} |
| 1109 |
\end{figure} |
| 1110 |
|
| 1111 |
As usual, the command \pixcom{currentfloat} sets the trial float parameters |
| 1112 |
to those in effect for the current document. |
| 1113 |
|
| 1114 |
\begin{figure} |
| 1115 |
\currentfloat |
| 1116 |
\tryintextsep{\intextsep} |
| 1117 |
\trytopfigrule{0.5pt} |
| 1118 |
\trybotfigrule{1pt} |
| 1119 |
\setlayoutscale{0.9} |
| 1120 |
%\drawparametersfalse \drawfloat |
| 1121 |
\floatdesign |
| 1122 |
\caption{Float layout with rules}\label{fig:fludf} |
| 1123 |
\end{figure} |
| 1124 |
|
| 1125 |
The commands listed in \tref{tab:tfloat}, all of which take a length |
| 1126 |
argument, set trial values for the float parameters. |
| 1127 |
|
| 1128 |
\begin{table} |
| 1129 |
\centering |
| 1130 |
\caption{Commands for setting trial float parameters}\label{tab:tfloat} |
| 1131 |
\begin{tabular}{|l|l|} \hline |
| 1132 |
Command & Parameter \\ \hline |
| 1133 |
\pixcom{trytextfloatsep} & sets the \pixcom{textfloatsep} value (usually 20pt) \\ |
| 1134 |
\pixcom{tryfloatsep} & sets the \pixcom{floatsep} value (usually 12pt) \\ |
| 1135 |
\pixcom{tryintextsep} & sets the \pixcom{intextsep} value (usually 12pt) \\ |
| 1136 |
\pixcom{trytopfigrule} & sets the thickness of a \pixcom{topfigrule} (usually 0pt) \\ |
| 1137 |
\pixcom{trybotfigrule} & sets the thickness of a \pixcom{botfigrule} (usually 0pt) \\ |
| 1138 |
\hline |
| 1139 |
\end{tabular} |
| 1140 |
\end{table} |
| 1141 |
|
| 1142 |
The following code, used to produce \fref{fig:fludf}, shows the use of |
| 1143 |
some of these commands: |
| 1144 |
\begin{verbatim} |
| 1145 |
\begin{figure} |
| 1146 |
\currentfloat |
| 1147 |
\tryintextsep{\intextsep} |
| 1148 |
\trytopfigrule{0.5pt} |
| 1149 |
\trybotfigrule{1pt} |
| 1150 |
\setlayoutscale{0.9} |
| 1151 |
\floatdesign |
| 1152 |
\caption{Float layout with rules}\label{fig:fludf} |
| 1153 |
\end{figure} |
| 1154 |
\end{verbatim} |
| 1155 |
|
| 1156 |
The \pixcom{topfigrule} and \pixcom{botfigrule} are little known \LaTeX{} |
| 1157 |
commands; they are not discussed by Lamport~\cite{LAMPORT94} |
| 1158 |
but are described by Goossens \emph{et al}~\cite{GOOSSENS94}. They are |
| 1159 |
like the \pixcom{footnoterule} command in that they draw a rule, or other |
| 1160 |
decoration, below floats at the top of a page (\pixcom{topfigrule}) and |
| 1161 |
above floats at the bottom of a page (\pixcom{botfigrule}). Both these |
| 1162 |
commands have been defined in the preamble to this document as: |
| 1163 |
\begin{verbatim} |
| 1164 |
\makeatletter |
| 1165 |
\newlength{\figrulesep} |
| 1166 |
\setlength{\figrulesep}{0.5\textfloatsep} |
| 1167 |
\newcommand{\topfigrule}{\vspace*{-1pt}% |
| 1168 |
\noindent\rule[-\figrulesep]{\columnwidth}{1pt}} |
| 1169 |
\newcommand{\botfigrule}{\vspace*{-2pt}% |
| 1170 |
\noindent\rule[\figrulesep]{\columnwidth}{2pt}} |
| 1171 |
\makeatother |
| 1172 |
\end{verbatim} |
| 1173 |
Their effect can be seen throughout the printed result. The typical thickness |
| 1174 |
for a \pixcom{rule} is $0.4$pt; the thickness of these rules has been |
| 1175 |
exagerated in order to make them more noticeable. The \pixcom{topfigrule} |
| 1176 |
is drawn immediately after the top floats before the \pixcom{textfloatsep} |
| 1177 |
spacing is applied. Similarly the \pixcom{botfigrule} is drawn after |
| 1178 |
the \pixcom{textfloatsep} is applied for the bottom floats. Whatever is |
| 1179 |
drawn as a \texttt{...figrule} should take no vertical space, hence the |
| 1180 |
use of negative vertical space in their definitions above. Note that the |
| 1181 |
rules have been given either positive or negative vertical offsets to ensure |
| 1182 |
some space between a float and the rule. |
| 1183 |
|
| 1184 |
\subsection{Changing the float layout in your document} |
| 1185 |
|
| 1186 |
The \verb|\...number| commands are changed with the \LaTeX{} |
| 1187 |
\pixcom{setcounter} command, while the \verb|\...fraction| commands |
| 1188 |
have to be changed via the \pixcom{renewcommand}. For example, the preamble |
| 1189 |
to this document contains the following (enclosed within |
| 1190 |
\pixcom{makeatletter} and \pixcom{makeatother} commands): |
| 1191 |
\begin{verbatim} |
| 1192 |
\setcounter{topnumber}{2} |
| 1193 |
\setcounter{bottomnumber}{2} |
| 1194 |
\setcounter{totalnumber}{4} |
| 1195 |
\renewcommand{\topfraction}{0.9} |
| 1196 |
\renewcommand{\bottomfraction}{0.6} |
| 1197 |
\renewcommand{\textfraction}{0.1} |
| 1198 |
\end{verbatim} |
| 1199 |
|
| 1200 |
Note that there are also the commands: |
| 1201 |
\begin{itemize} |
| 1202 |
\item \pixcom{dbltopnumber} for setting the maximum number of two-column |
| 1203 |
floats at the top of a two-column page (typically 2); |
| 1204 |
\item \pixcom{dbltopfraction} for setting the maximum fraction of a |
| 1205 |
two column page that can be occupied by the top two-column floats |
| 1206 |
(typically 0.7); and |
| 1207 |
\item \pixcom{dblfloatpagefraction} for setting the minimum fraction of |
| 1208 |
a page that has to be occupied by two-column floats before a `float |
| 1209 |
only' page is produced (typically 0.5). |
| 1210 |
\end{itemize} |
| 1211 |
|
| 1212 |
The \verb|\...sep| commands are changed using the \pixcom{setlength} |
| 1213 |
command. The separation values should have a little bit of give in them, |
| 1214 |
that is, they should be rubber lengths. |
| 1215 |
A typical set of values might be specified as: |
| 1216 |
\begin{verbatim} |
| 1217 |
\setlength{\floatsep}{12pt plus 2pt minus 2pt} |
| 1218 |
\setlength{\textfloatsep}{20pt plus 2pt minus 4pt} |
| 1219 |
\setlength{\intextsep}{\floatsep} |
| 1220 |
\end{verbatim} |
| 1221 |
There are corresponding separation commands for two-column floats at the |
| 1222 |
top or bottom of a page. These are \pixcom{dblfloatsep} for inter-float |
| 1223 |
separation and \pixcom{dbltextfloatsep} for spacing between a two-column |
| 1224 |
float and the text area. |
| 1225 |
|
| 1226 |
|
| 1227 |
|
| 1228 |
\floatvalues |
| 1229 |
|
| 1230 |
The \pixcom{floatvalues} command can be used to produce a table, |
| 1231 |
as shown here, of the values of the current document's float layout |
| 1232 |
parameters (as set at the time that the command is used). |
| 1233 |
|
| 1234 |
|
| 1235 |
%%%%%% |
| 1236 |
\clearpage |
| 1237 |
\section{List layout} |
| 1238 |
\suppressfloats[t] |
| 1239 |
|
| 1240 |
The commands \pixcom{listdiagram} and \pixcom{listdesign} |
| 1241 |
(or \pixcom{drawlist}), as their names suggest, display the layout |
| 1242 |
of list\ixenv{list} environments. |
| 1243 |
The list parameters are shown in \fref{fig:lstp}, |
| 1244 |
which was produced by the following code: |
| 1245 |
\begin{verbatim} |
| 1246 |
\begin{figure} |
| 1247 |
\listdiagram |
| 1248 |
\caption{List parameters} \label{fig:lstp} |
| 1249 |
\end{figure} |
| 1250 |
\end{verbatim} |
| 1251 |
|
| 1252 |
The list layout may be controlled by the \verb|\listaspara|\TF{} commands. |
| 1253 |
Use \pixcom{listasparatrue} for displaying the list when it is being |
| 1254 |
treated as a paragraph, |
| 1255 |
otherwise use \pixcom{listasparafalse}. The default is \pixcom{listasparatrue}. |
| 1256 |
|
| 1257 |
\begin{figure} |
| 1258 |
%\drawlist |
| 1259 |
\listdiagram |
| 1260 |
\caption{List parameters} \label{fig:lstp} |
| 1261 |
\end{figure} |
| 1262 |
|
| 1263 |
The command \pixcom{currentlist} extracts the list parameters from the |
| 1264 |
current environment for display via \pixcom{drawlist}. Figure~\ref{fig:lstenum} |
| 1265 |
graphically illustrates the layout for an \pixenv{enumerate} |
| 1266 |
type list. |
| 1267 |
The figure was generated by the following code: |
| 1268 |
\begin{verbatim} |
| 1269 |
\begin{enumerate} |
| 1270 |
\item Figure~\ref{fig:lstenum} illustrates the layout of an |
| 1271 |
\texttt{enumerate} list. |
| 1272 |
\currentlist |
| 1273 |
\begin{figure} |
| 1274 |
\listdesign |
| 1275 |
\caption{Layout of an \texttt{enumerate} list} \label{fig:lstenum} |
| 1276 |
\end{figure} |
| 1277 |
\end{enumerate} |
| 1278 |
\end{verbatim} |
| 1279 |
|
| 1280 |
\begin{enumerate} |
| 1281 |
\item Figure~\ref{fig:lstenum} illustrates the layout of an |
| 1282 |
\texttt{enumerate} list. |
| 1283 |
\currentlist |
| 1284 |
\begin{figure} |
| 1285 |
% \drawparametersfalse \drawlist |
| 1286 |
\listdesign |
| 1287 |
\caption{Layout of an \texttt{enumerate} list} \label{fig:lstenum} |
| 1288 |
\end{figure} |
| 1289 |
\end{enumerate} |
| 1290 |
Note that \pixcom{currentlist} was called within the list environment in |
| 1291 |
order to pick up the desired parameter values. |
| 1292 |
|
| 1293 |
Table~\ref{tab:tlist} gives a listing of the commands that are provided |
| 1294 |
for experimenting with the list layout parameters. Each of these commands |
| 1295 |
takes a length as its argument. |
| 1296 |
|
| 1297 |
\begin{table} |
| 1298 |
\centering |
| 1299 |
\caption{Commands for setting trial list parameters} \label{tab:tlist} |
| 1300 |
\begin{tabular}{|l|l|} \hline |
| 1301 |
Command & Parameter \\ \hline |
| 1302 |
\pixcom{tryitemindent} & sets the \pixcom{itemindent} value \\ |
| 1303 |
\pixcom{trylabelwidth} & sets the \pixcom{labelwidth} value \\ |
| 1304 |
\pixcom{trylabelsep} & sets the \pixcom{labelsep} value \\ |
| 1305 |
\pixcom{tryleftmargin} & sets the \pixcom{leftmargin} value \\ |
| 1306 |
\pixcom{tryrightmargin} & sets the \pixcom{rightmargin} value \\ |
| 1307 |
\pixcom{trylistparindent} & sets the \pixcom{listparindent} value \\ |
| 1308 |
\pixcom{trytopsep} & sets the \pixcom{topsep} value \\ |
| 1309 |
\pixcom{tryparskip} & sets the \pixcom{parskip} value \\ |
| 1310 |
\pixcom{trypartopsep} & sets the \pixcom{partopsep} value \\ |
| 1311 |
\pixcom{tryparsep} & sets the \pixcom{parsep} value \\ |
| 1312 |
\pixcom{tryitemsep} & sets the \pixcom{itemsep} value \\ |
| 1313 |
\hline |
| 1314 |
\end{tabular} |
| 1315 |
\end{table} |
| 1316 |
|
| 1317 |
\newenvironment{listX}% |
| 1318 |
{\begin{list}{item}% |
| 1319 |
{\setlength{\itemindent}{-30pt}% |
| 1320 |
\setlength{\labelwidth}{80pt}% |
| 1321 |
\setlength{\labelsep}{1em}% |
| 1322 |
\setlength{\leftmargin}{170pt}% |
| 1323 |
\setlength{\rightmargin}{-40pt}% |
| 1324 |
\setlength{\listparindent}{80pt}% |
| 1325 |
\setlength{\topsep}{3ex}% |
| 1326 |
\setlength{\partopsep}{\topsep}% |
| 1327 |
\setlength{\parsep}{\topsep}% |
| 1328 |
\setlength{\itemsep}{\topsep}% |
| 1329 |
}% |
| 1330 |
}% |
| 1331 |
{\end{list}} |
| 1332 |
|
| 1333 |
Figure~\ref{fig:lstudf} shows the layout of a user-defined list. |
| 1334 |
An example of the list as it would appear in a document is shown by the |
| 1335 |
list that follows this paragraph. |
| 1336 |
|
| 1337 |
\begin{listX} |
| 1338 |
\item[ListX, first item:] This is an example of a user-defined list. |
| 1339 |
The appearance is somewhat different from that normally seen in \LaTeX{} |
| 1340 |
lists. Note that the text extends into the normal right-hand margin. |
| 1341 |
Also, the body of the list text is indented from the label. |
| 1342 |
|
| 1343 |
No claim is made that there is anything aesthetic about the design |
| 1344 |
of the list. In fact, I think that it is pretty awful. It is merely |
| 1345 |
provided as an example of a non-standard list and so that the |
| 1346 |
\pixcom{drawlist} command can be shown off. |
| 1347 |
|
| 1348 |
\item[ListX, second item:] Now we will draw the layout of this list from |
| 1349 |
within itself (see \fref{fig:lstudf} for the result). The code used is: |
| 1350 |
\begin{verbatim} |
| 1351 |
\currentlist |
| 1352 |
\begin{figure} |
| 1353 |
\drawdimensionstrue |
| 1354 |
\listdesign |
| 1355 |
\caption{The layout of the \texttt{listX} environment} |
| 1356 |
\label{fig:lstudf} |
| 1357 |
\end{figure} |
| 1358 |
\end{verbatim} |
| 1359 |
|
| 1360 |
\currentlist |
| 1361 |
\begin{figure} |
| 1362 |
\drawdimensionstrue |
| 1363 |
%\drawparametersfalse \drawlist |
| 1364 |
\listdesign |
| 1365 |
\caption{The layout of the \texttt{listX} environment} |
| 1366 |
\label{fig:lstudf} |
| 1367 |
\end{figure} |
| 1368 |
|
| 1369 |
\item[ListX, third item:] The definition of this list environment is: |
| 1370 |
\begin{verbatim} |
| 1371 |
\newenvironment{listX}% |
| 1372 |
{\begin{list}{item}% |
| 1373 |
{\setlength{\itemindent}{-30pt}% |
| 1374 |
\setlength{\labelwidth}{80pt}% |
| 1375 |
\setlength{\labelsep}{1em}% |
| 1376 |
\setlength{\leftmargin}{170pt}% |
| 1377 |
\setlength{\rightmargin}{-40pt}% |
| 1378 |
\setlength{\listparindent}{80pt}% |
| 1379 |
\setlength{\topsep}{3ex}% |
| 1380 |
\setlength{\partopsep}{\topsep}% |
| 1381 |
\setlength{\parsep}{\topsep}% |
| 1382 |
\setlength{\itemsep}{\topsep}% |
| 1383 |
}% |
| 1384 |
}% |
| 1385 |
{\end{list}} |
| 1386 |
\end{verbatim} |
| 1387 |
\end{listX} |
| 1388 |
|
| 1389 |
In \LaTeX{} many display environments, such as the \pixenv{quotation} |
| 1390 |
environment, |
| 1391 |
are defined in terms of the generic \pixenv{list} environment, so |
| 1392 |
the settings for these may also be explored with \pixcom{currentlist}. |
| 1393 |
For example, the following code shows how to determine the `list' |
| 1394 |
settings for the \pixenv{thebibliography} |
| 1395 |
environment (with apologies to Leslie Lamport). |
| 1396 |
\begin{verbatim} |
| 1397 |
\begin{thebibliography}{Dillo 83} |
| 1398 |
\bibitem[Knud 66]{kn:gnus} D. E. Knudson. \emph{1996 World Gnus Almanac.} |
| 1399 |
\currentlist |
| 1400 |
\begin{figure} |
| 1401 |
\listdesign |
| 1402 |
\caption{Bibliography list} |
| 1403 |
\end{figure} |
| 1404 |
\end{thebibliography} |
| 1405 |
\end{verbatim} |
| 1406 |
Running this code is left as an exercise for the reader. |
| 1407 |
|
| 1408 |
\subsection{Changing lists} |
| 1409 |
|
| 1410 |
Many of \LaTeX's environments are defined in terms of lists, most |
| 1411 |
noticeably the \pixenv{description}, \pixenv{enumerate} and \pixenv{itemize} |
| 1412 |
environments. To change any of LaTeX's predefined list environments |
| 1413 |
it is probably best to examine their |
| 1414 |
definitions in the appropriate class file (e.g., \pixfile{classes.dtx}) and |
| 1415 |
then put your modified definitions into a package file. |
| 1416 |
|
| 1417 |
\begin{quote} |
| 1418 |
\printinunitsof{pc} |
| 1419 |
\listvalues |
| 1420 |
\end{quote} |
| 1421 |
|
| 1422 |
The \pixcom{listvalues} command can be used to produce a table, |
| 1423 |
as shown here, of the values of the current document's list layout |
| 1424 |
parameters (as set at the time that the command is used). |
| 1425 |
This table was produced by: |
| 1426 |
\begin{verbatim} |
| 1427 |
\begin{quote} |
| 1428 |
\printinunitsof{pc} |
| 1429 |
\listvalues |
| 1430 |
\end{quote} |
| 1431 |
\end{verbatim} |
| 1432 |
|
| 1433 |
|
| 1434 |
|
| 1435 |
%%%%%%%%%%%%%%%%%% |
| 1436 |
\clearpage |
| 1437 |
\section{Sectional heading layout} |
| 1438 |
\suppressfloats[t] |
| 1439 |
|
| 1440 |
In \LaTeX{} a few headings, like \pixcom{part} and \pixcom{chapter} |
| 1441 |
are defined using |
| 1442 |
special definition code. The majority, though, are defined via the internal |
| 1443 |
\LaTeX{} \pixatcom{startsection} |
| 1444 |
command. This command takes 6 arguments: \\ |
| 1445 |
\verb|\@startsection{|\meta{name}\verb|}{|% |
| 1446 |
\meta{level}\verb|}{|% |
| 1447 |
\meta{indent}\verb|}{|% |
| 1448 |
\meta{beforeskip}\verb|}{|% |
| 1449 |
\meta{afterskip}\verb|}{|% |
| 1450 |
\meta{font style}\verb|}|. |
| 1451 |
|
| 1452 |
The commands |
| 1453 |
\verb|\headingdiagram{|\meta{font style}\verb|}|\ixcom{headingdiagram} and |
| 1454 |
\verb|\headingdesign{|\meta{font style}\verb|}|\ixcom{headingdesign} |
| 1455 |
(or \verb|\drawheading{|\meta{font style}\verb|}|\ixcom{drawheading}) |
| 1456 |
draw a picture of the layout for sectional headings based on the |
| 1457 |
\pixatcom{startsection} command. Unlike the other |
| 1458 |
drawing commands it takes one parameter, which is the specification |
| 1459 |
of the size and/or font of the heading. For example, |
| 1460 |
\verb|\drawheading{\large\itshape}|. For \pixcom{headingdiagram} (or |
| 1461 |
\pixcom{drawheading} with \pixcom{drawparameterstrue} is |
| 1462 |
in effect) the parameter has no effect. |
| 1463 |
|
| 1464 |
There are two kinds of headings: |
| 1465 |
\begin{enumerate} |
| 1466 |
\item Display headings, where the heading is set off from the text body, and |
| 1467 |
\item Run-in headings, where the text body starts on the same line as |
| 1468 |
the heading. |
| 1469 |
\end{enumerate} |
| 1470 |
When \pixcom{headingdiagram} is called |
| 1471 |
(or \pixcom{drawheading} with \pixcom{drawparameterstrue} in effect) |
| 1472 |
the pair of commands \pixcom{runinheadtrue} and |
| 1473 |
\pixcom{runinheadfalse} control whether a run-in head or a display head |
| 1474 |
will be illustrated. The default is \pixcom{runinheadfalse}. |
| 1475 |
|
| 1476 |
%%%%%%%%%%%%%%%%%%%%%%% |
| 1477 |
%%\drawdimensionsfalse |
| 1478 |
%%%%%%%%%%%%%%%%%%%%%% |
| 1479 |
|
| 1480 |
Figures~\ref{fig:hdp} and~\ref{fig:hrp} show the parameters of the two |
| 1481 |
kinds of headings. They were produced by the following code: |
| 1482 |
\begin{verbatim} |
| 1483 |
\begin{figure} |
| 1484 |
\setlayoutscale{1} |
| 1485 |
\headingdiagram{ } |
| 1486 |
\caption{Display heading parameters}\label{fig:hdp} |
| 1487 |
\end{figure} |
| 1488 |
|
| 1489 |
\begin{figure} |
| 1490 |
\setlayoutscale{1} |
| 1491 |
\runinheadtrue |
| 1492 |
\headingdiagram{ } |
| 1493 |
\caption{Run-in heading parameters}\label{fig:hrp} |
| 1494 |
\end{figure} |
| 1495 |
\end{verbatim} |
| 1496 |
|
| 1497 |
\begin{figure} |
| 1498 |
\setlayoutscale{1} |
| 1499 |
%\drawheading{ } |
| 1500 |
\headingdiagram{ } |
| 1501 |
\caption{Display heading parameters}\label{fig:hdp} |
| 1502 |
\end{figure} |
| 1503 |
|
| 1504 |
\begin{figure} |
| 1505 |
\setlayoutscale{1} |
| 1506 |
\runinheadtrue |
| 1507 |
%\drawheading{ } |
| 1508 |
\headingdiagram{ } |
| 1509 |
\caption{Run-in heading parameters}\label{fig:hrp} |
| 1510 |
\end{figure} |
| 1511 |
|
| 1512 |
|
| 1513 |
The command \pixcom{currentheading} sets up default parameter values for |
| 1514 |
the illustration of a heading. These values are based on guesstimates |
| 1515 |
of the values of the arguments of the \pixatcom{startsection} |
| 1516 |
command. The commands given in \tref{tab:thead} |
| 1517 |
can be used to explicitly set heading parameters. Each of these commands |
| 1518 |
takes a length for its parameter value. |
| 1519 |
|
| 1520 |
\begin{table} |
| 1521 |
\centering |
| 1522 |
\caption{Commands for setting trial heading parameters}\label{tab:thead} |
| 1523 |
\begin{tabular}{|l|l|} \hline |
| 1524 |
Command & Parameter \\ \hline |
| 1525 |
\pixcom{trybeforeskip} & sets the \textit{beforeskip} value \\ |
| 1526 |
\pixcom{tryafterskip} & sets the \textit{afterskip} value \\ |
| 1527 |
\pixcom{tryindent} & sets the \textit{indent} value \\ |
| 1528 |
\hline |
| 1529 |
\end{tabular} |
| 1530 |
\end{table} |
| 1531 |
|
| 1532 |
The regular reader of \LaTeX{} documents will have noticed that the |
| 1533 |
\pixcom{subsubsection} headings in this manual do not conform to the |
| 1534 |
usual \LaTeX{} style. In fact, the preamble to this document contains |
| 1535 |
the following definition: |
| 1536 |
\begin{verbatim} |
| 1537 |
\makeatletter |
| 1538 |
\renewcommand{\subsubsection}{\@startsection% |
| 1539 |
{subsubsection}% name |
| 1540 |
{3}% level |
| 1541 |
{0mm}% indent |
| 1542 |
{-\baselineskip}% beforeskip |
| 1543 |
{0.5\baselineskip}% afterskip |
| 1544 |
{\large\itshape}}% style |
| 1545 |
\makeatother |
| 1546 |
\end{verbatim} |
| 1547 |
Note that the \pixcom{makeatletter} and \pixcom{makeatother} commands |
| 1548 |
are required because of the use of the \tat{} character in the |
| 1549 |
name of the \pixatcom{startsection} command. |
| 1550 |
|
| 1551 |
%%%%%%%%%%%%%%%%%%%%%%%% |
| 1552 |
%%\drawdimensionsfalse |
| 1553 |
%%%%%%%%%%%%%%%%%%%%%%% |
| 1554 |
\currentheading |
| 1555 |
\trybeforeskip{-\baselineskip} |
| 1556 |
\tryafterskip{0.5\baselineskip} |
| 1557 |
\tryindent{0mm} |
| 1558 |
\begin{figure} |
| 1559 |
\setlayoutscale{1} |
| 1560 |
%\drawparametersfalse \drawheading{\large\itshape} |
| 1561 |
\headingdesign{\large\itshape} |
| 1562 |
\caption{Subsubsection heading layout parameters for this document} |
| 1563 |
\label{fig:hdudf} |
| 1564 |
\end{figure} |
| 1565 |
|
| 1566 |
Figure~\ref{fig:hdudf} illustrates the layout for this heading, and was |
| 1567 |
produced by the code below. |
| 1568 |
\begin{verbatim} |
| 1569 |
\currentheading |
| 1570 |
\trybeforeskip{-\baselineskip} |
| 1571 |
\tryafterskip{0.5\baselineskip} |
| 1572 |
\tryindent{0mm} |
| 1573 |
\begin{figure} |
| 1574 |
\setlayoutscale{1} |
| 1575 |
\headingdesign{\large\itshape} |
| 1576 |
\caption{Subsubsection layout parameters for this document} |
| 1577 |
\label{fig:hdudf} |
| 1578 |
\end{figure} |
| 1579 |
\end{verbatim} |
| 1580 |
|
| 1581 |
\currentheading |
| 1582 |
\trybeforeskip{-\baselineskip} |
| 1583 |
\tryafterskip{-0.5\baselineskip} |
| 1584 |
\tryindent{0mm} |
| 1585 |
\begin{figure} |
| 1586 |
\setlayoutscale{1} |
| 1587 |
%\drawparametersfalse \drawheading{\large\itshape} |
| 1588 |
\headingdesign{\large\itshape} |
| 1589 |
\caption{Subsubsection layout parameters for a run-in heading} |
| 1590 |
\label{fig:hrudf} |
| 1591 |
\end{figure} |
| 1592 |
|
| 1593 |
The same heading, but specified as a run-in heading by making the |
| 1594 |
value of \textit{afterskip} negative rather than positive, is illustrated |
| 1595 |
in \fref{fig:hrudf}. |
| 1596 |
|
| 1597 |
|
| 1598 |
|
| 1599 |
%%%%%%%%%%%%%%%% |
| 1600 |
\clearpage |
| 1601 |
\section{Footnote layout} |
| 1602 |
\suppressfloats[t] |
| 1603 |
|
| 1604 |
Footnote layouts are produced by the commands |
| 1605 |
\pixcom{footnotediagram} and \pixcom{footnotedesign} |
| 1606 |
(or \pixcom{drawfootnote}). |
| 1607 |
The relevant footnote parameters are shown in \fref{fig:fp}, which was |
| 1608 |
produced by the following code: |
| 1609 |
\begin{verbatim} |
| 1610 |
\begin{figure} |
| 1611 |
\setlayoutscale{0.4} |
| 1612 |
\setlabelfont{\huge\itshape} |
| 1613 |
\footnotediagram |
| 1614 |
\caption{The footnote parameter layout} \label{fig:fp} |
| 1615 |
\end{figure} |
| 1616 |
\end{verbatim} |
| 1617 |
Note the use of \pixcom{setlabelfont} to change the font used for labelling |
| 1618 |
(the `MAIN TEXT' in this case). |
| 1619 |
|
| 1620 |
\begin{figure} |
| 1621 |
\setlayoutscale{0.4} |
| 1622 |
\setlabelfont{\huge\itshape} |
| 1623 |
%\drawfootnote |
| 1624 |
\footnotediagram |
| 1625 |
\caption{The footnote parameter layout} \label{fig:fp} |
| 1626 |
\end{figure} |
| 1627 |
|
| 1628 |
Some of the current settings for the footnote parameters are set |
| 1629 |
by the \pixcom{currentfootnote} command. Guesstimates are provided |
| 1630 |
for the likely value of the \pixcom{baselineskip} that is used within |
| 1631 |
a footnote, and also for the dimension of the footnote rule. |
| 1632 |
|
| 1633 |
Figure~\ref{fig:ftry} shows the default footnote layout, and was produced |
| 1634 |
by the following code: |
| 1635 |
\begin{verbatim} |
| 1636 |
\begin{figure} |
| 1637 |
\currentfootnote |
| 1638 |
\setlayoutscale{0.4} |
| 1639 |
\footnotedesign |
| 1640 |
\caption{The current footnote layout}\label{fig:ftry} |
| 1641 |
\end{figure} |
| 1642 |
\end{verbatim} |
| 1643 |
The resulting picture has all vertical dimensions magnified by a factor |
| 1644 |
of 4 with respect to the horizontal dimensions. |
| 1645 |
|
| 1646 |
\begin{figure} |
| 1647 |
\currentfootnote |
| 1648 |
\setlayoutscale{0.4} |
| 1649 |
%\drawparametersfalse \drawfootnote |
| 1650 |
\footnotedesign |
| 1651 |
\caption{A footnote layout}\label{fig:ftry} |
| 1652 |
\end{figure} |
| 1653 |
|
| 1654 |
Commands for individually setting trial values for footnote parameters |
| 1655 |
are given in \tref{tab:foot}. Except for \pixcom{tryfootrulefrac}, these all |
| 1656 |
take a length as their parameter. The parameter value for |
| 1657 |
\pixcom{tryfootrulefrac} is a decimal number representing a fraction of |
| 1658 |
the \pixcom{textwidth}. The trial length of the footnote rule is set to |
| 1659 |
this fraction of the width of the text block. |
| 1660 |
|
| 1661 |
\begin{table} |
| 1662 |
\centering |
| 1663 |
\caption{Commands for setting trial footnote parameter values}\label{tab:foot} |
| 1664 |
\begin{tabular}{|l|l|} \hline |
| 1665 |
Command & Parameter \\ \hline |
| 1666 |
\pixcom{tryfootins} & sets the \pixcom{skip}\pixcom{footins} value (usually 10pt) \\ |
| 1667 |
\pixcom{tryfootnotesep} & sets the \pixcom{footnotesep} value (usually 7pt) \\ |
| 1668 |
\pixcom{tryfootnotebaseline} & sets the footnote \pixcom{baselineskip} value \\ |
| 1669 |
\pixcom{tryfootruleheight} & sets the \pixcom{footnoterule} height value (usually 0.4pt) \\ |
| 1670 |
\pixcom{tryfootrulefrac} & sets the length of the \pixcom{footnoterule} \\ |
| 1671 |
\hline |
| 1672 |
\end{tabular} |
| 1673 |
\end{table} |
| 1674 |
|
| 1675 |
\begin{figure} |
| 1676 |
\currentfootnote |
| 1677 |
\tryfootins{10pt} |
| 1678 |
\tryfootnotesep{20pt} |
| 1679 |
\tryfootnotebaseline{15pt} |
| 1680 |
\tryfootruleheight{1pt} |
| 1681 |
\tryfootrulefrac{0.8} |
| 1682 |
\setlayoutscale{0.4} |
| 1683 |
%\drawparametersfalse \drawfootnote |
| 1684 |
\footnotedesign |
| 1685 |
\caption{A user-specified footnote layout} |
| 1686 |
\label{fig:fudf} |
| 1687 |
\end{figure} |
| 1688 |
|
| 1689 |
Figure~\ref{fig:fudf}, produced from the following code, shows an |
| 1690 |
experimental layout for footnotes. |
| 1691 |
\begin{verbatim} |
| 1692 |
\begin{figure} |
| 1693 |
\currentfootnote |
| 1694 |
\tryfootins{10pt} |
| 1695 |
\tryfootnotesep{20pt} |
| 1696 |
\tryfootnotebaseline{15pt} |
| 1697 |
\tryfootruleheight{1pt} |
| 1698 |
\tryfootrulefrac{0.8} |
| 1699 |
\setlayoutscale{0.4} |
| 1700 |
\footnotedesign |
| 1701 |
\caption{A user-specified footnote layout} |
| 1702 |
\label{fig:fudf} |
| 1703 |
\end{figure} |
| 1704 |
\end{verbatim} |
| 1705 |
|
| 1706 |
\subsection{Changing the footnote layout} |
| 1707 |
|
| 1708 |
The value of \pixcom{footnotesep} is changed via the \pixcom{setlength} |
| 1709 |
command. Spacing between the bottom of the text area and the first footnote |
| 1710 |
is normally a rubber length. The following is a typical set of values: |
| 1711 |
\begin{verbatim} |
| 1712 |
\setlength{\footnotesep}{7pt} |
| 1713 |
\setlength{\skip\footins}{10pt plus 4pt minus 2pt} |
| 1714 |
\end{verbatim} |
| 1715 |
|
| 1716 |
For changing other values, see the documented class file |
| 1717 |
\pixfile{classes.dtx}. |
| 1718 |
|
| 1719 |
\footnotevalues |
| 1720 |
|
| 1721 |
The \pixcom{footnotevalues} command can be used to produce a table, |
| 1722 |
as shown here, of the values of the current document's footnote layout |
| 1723 |
parameters (as set at the time that the command is used). |
| 1724 |
|
| 1725 |
|
| 1726 |
|
| 1727 |
%%%%%%%%%%%%%%% |
| 1728 |
\clearpage |
| 1729 |
\section{Table of Contents layout} |
| 1730 |
\suppressfloats[t] |
| 1731 |
|
| 1732 |
The format of an entry in the Table of Contents (ToC) is usually |
| 1733 |
specified by the internal \LaTeX{} \pixatcom{dottedtocline} command: \\ |
| 1734 |
\verb|\@dottedtocline{|% |
| 1735 |
\meta{level}\verb|}{|% |
| 1736 |
\meta{indent}\verb|}{|% |
| 1737 |
\meta{numwidth}\verb|}| \\ |
| 1738 |
where \meta{indent} and \meta{numwidth} relate to the formatting, and an |
| 1739 |
entry will be typeset only if \meta{level} is less than or equal to the |
| 1740 |
value of the \pixcount{tocdepth} counter. |
| 1741 |
|
| 1742 |
The \pixcom{tocdiagram} and \pixcom{tocdesign} (or \pixcom{drawtoc}) |
| 1743 |
commands are used for visualizing the layout of |
| 1744 |
section titles in a \textit{Table of Contents} listing based on the |
| 1745 |
\verb|\@dottedtocline| command, as shown in |
| 1746 |
\fref{fig:tocp}. This was produced by the following code: |
| 1747 |
\begin{verbatim} |
| 1748 |
\begin{figure} |
| 1749 |
\setlayoutscale{0.8} |
| 1750 |
\tocdiagram |
| 1751 |
\caption{Table of Contents entry parameters}\label{fig:tocp} |
| 1752 |
\end{figure} |
| 1753 |
\end{verbatim} |
| 1754 |
|
| 1755 |
\begin{figure} |
| 1756 |
\setlayoutscale{0.8} |
| 1757 |
%\drawtoc |
| 1758 |
\tocdiagram |
| 1759 |
\caption{Table of Contents entry parameters}\label{fig:tocp} |
| 1760 |
\end{figure} |
| 1761 |
|
| 1762 |
\begin{figure} |
| 1763 |
\setlayoutscale{0.8} |
| 1764 |
\currenttoc |
| 1765 |
%\drawparametersfalse \drawtoc |
| 1766 |
\tocdesign |
| 1767 |
\caption{Typical Table of Contents entry for this document} \label{fig:thistoc} |
| 1768 |
\end{figure} |
| 1769 |
|
| 1770 |
Figure~\ref{fig:thistoc} was produced by the following |
| 1771 |
code:\footnote{The drawing of the dotted leader is not completely accurate |
| 1772 |
due to scaling and rounding within the drawing algorithm.} |
| 1773 |
\begin{verbatim} |
| 1774 |
\begin{figure} |
| 1775 |
\setlayoutscale{0.8} |
| 1776 |
\currenttoc |
| 1777 |
\tocdesign |
| 1778 |
\caption{Typical Table of Contents entry for this document} \label{fig:thistoc} |
| 1779 |
\end{figure} |
| 1780 |
\end{verbatim} |
| 1781 |
|
| 1782 |
|
| 1783 |
The command \pixcom{currenttoc} sets values for the ToC parameters based |
| 1784 |
on those for the current document. The paramaters can all be individually |
| 1785 |
adjusted via the commands listed in \tref{tab:toc}. These commands all |
| 1786 |
require a length as their parameter, except for the \pixcom{trytocdotsep} |
| 1787 |
command which takes a number (integer or decimal) as its parameter value. |
| 1788 |
This sets the trial value for the separation between dots in the leader |
| 1789 |
between the sectional title and the page number. The parameter is the |
| 1790 |
separation value in \emph{mu} (math units).\footnote{There are \emph{18mu} |
| 1791 |
units to \emph{1em} unit.} |
| 1792 |
|
| 1793 |
\begin{table} |
| 1794 |
\centering |
| 1795 |
\caption{Commands for setting trial values for ToC parameters}\label{tab:toc} |
| 1796 |
\begin{tabular}{|l|l|} \hline |
| 1797 |
Command & Parameter \\ \hline |
| 1798 |
\pixcom{trytocindent} & sets the \textit{indent} value \\ |
| 1799 |
\pixcom{trytocnumwidth} & sets the \textit{numwidth} value \\ |
| 1800 |
\pixcom{trytoclinewidth} & sets the \pixcom{linewidth} value \\ |
| 1801 |
\pixcom{trytocrmarg} & sets the \pixatcom{tocrmarg} value \\ |
| 1802 |
\pixcom{trytocpnumwidth} & sets the \pixatcom{pnumwidth} value \\ |
| 1803 |
\pixcom{trytocdotsep} & sets the \pixatcom{dotsep} value \\ |
| 1804 |
\hline |
| 1805 |
\end{tabular} |
| 1806 |
\end{table} |
| 1807 |
|
| 1808 |
\begin{figure} |
| 1809 |
\setlayoutscale{0.8} |
| 1810 |
\currenttoc |
| 1811 |
\trytocdotsep{1000} |
| 1812 |
%\drawparametersfalse \drawtoc |
| 1813 |
\tocdesign |
| 1814 |
\caption{Table of Contents entry with a large value for \texttt{\bs @dotsep}} |
| 1815 |
\label{fig:tocudf} |
| 1816 |
\end{figure} |
| 1817 |
|
| 1818 |
Figure~\ref{fig:tocudf}, which was produced by the following code, |
| 1819 |
shows that the effect of having a large value for \pixatcom{dotsep} is to |
| 1820 |
eliminate the dotted leader line between the title text and the page number. |
| 1821 |
\begin{verbatim} |
| 1822 |
\begin{figure} |
| 1823 |
\setlayoutscale{0.8} |
| 1824 |
\currenttoc |
| 1825 |
\trytocdotsep{1000} |
| 1826 |
\tocdesign |
| 1827 |
\caption{Table of Contents entry with a large value for \texttt{\bs @dotsep}} |
| 1828 |
\label{fig:tocudf} |
| 1829 |
\end{figure} |
| 1830 |
\end{verbatim} |
| 1831 |
|
| 1832 |
\subsection{Changing the Table of Contents, etc} |
| 1833 |
|
| 1834 |
The methods of specifying the typesetting of the various entries in |
| 1835 |
a Table of Contents or a List of Figures (or Tables) varies from one kind |
| 1836 |
of entry to another. For details consult |
| 1837 |
the documented class specification file \pixfile{classes.dtx}. |
| 1838 |
|
| 1839 |
However, the \pixatcom{dotsep}, \pixatcom{pnumwidth} and |
| 1840 |
\pixatcom{tocrmarg} |
| 1841 |
values can all be set with the \pixcom{renewcommand}. For example, in the |
| 1842 |
preamble: |
| 1843 |
\begin{verbatim} |
| 1844 |
\makeatletter |
| 1845 |
\renewcommand{\@dotsep}{4.5} |
| 1846 |
\renewcommand{\@pnumwidth}{1.55em} |
| 1847 |
\renewcommand{\@tocrmarg}{2.55em} |
| 1848 |
\makeatother |
| 1849 |
\end{verbatim} |
| 1850 |
|
| 1851 |
Typically, for figure and table captions, and for sectioning commands |
| 1852 |
that are defined using the \pixatcom{startsection} command, |
| 1853 |
table entry typesetting is specified via an \verb|\l@X| command, where |
| 1854 |
\verb|X| is \verb|figure|, \verb|table|, \verb|subsection|, etc., as |
| 1855 |
appropriate. In turn, these commands call the \pixatcom{dottedtocline} |
| 1856 |
command. For example, to change the typesetting for a paragraph entry |
| 1857 |
in the Table of Contents, and for a table caption you should do something |
| 1858 |
like (changing the lengths as appropriate): |
| 1859 |
\begin{verbatim} |
| 1860 |
\makeatletter |
| 1861 |
\renewcommand*{\l@paragraph}{\@dottedtocline{4}{7em}{4em}} |
| 1862 |
\renewcommand*{\l@table}{\@dottedtocline{1}{0em}{3.0em}} |
| 1863 |
\makeatother |
| 1864 |
\end{verbatim} |
| 1865 |
|
| 1866 |
|
| 1867 |
\tocvalues |
| 1868 |
|
| 1869 |
The \pixcom{tocvalues} command can be used to produce a table, |
| 1870 |
as shown here, of the values of the current document's Table of Contents layout |
| 1871 |
parameters (as set at the time that the command is used). |
| 1872 |
|
| 1873 |
\clearpage |
| 1874 |
\section{Font boxing} |
| 1875 |
|
| 1876 |
\setlength{\unitlength}{1pt} |
| 1877 |
|
| 1878 |
Sometimes it is useful to see the size of the box enclosing some text. |
| 1879 |
Two commands are provided for this purpose. |
| 1880 |
|
| 1881 |
The \verb|\drawfontframe{|\meta{text}\verb|}|\ixcom{drawfontframe} |
| 1882 |
produces a drawing of |
| 1883 |
\meta{text} together with its surrounding box drawn. A bullet is placed |
| 1884 |
at the position of the reference point and a horizontal dotted line is drawn |
| 1885 |
along the baseline. The command can be used in normal mode |
| 1886 |
or can |
| 1887 |
be \verb|\put| in a picture environment. |
| 1888 |
\drawfontframe{\Huge\textbf{g}} |
| 1889 |
The framed g was produced by the following code: |
| 1890 |
\begin{verbatim} |
| 1891 |
\drawfontframe{\Huge\textbf{g}} |
| 1892 |
\end{verbatim} |
| 1893 |
The command places the box inside a \texttt{picture} environment that is just |
| 1894 |
big enough to enclose the box. |
| 1895 |
|
| 1896 |
Sometimes it is useful to see the size of the box enclosing some text. |
| 1897 |
Two commands are provided for this purpose. |
| 1898 |
|
| 1899 |
|
| 1900 |
|
| 1901 |
|
| 1902 |
|
| 1903 |
The \verb|\drawfontframelabel{|\meta{text}\verb|}|\ixcom{drawfontframelabel} |
| 1904 |
is similar, except |
| 1905 |
that it labels the reference point, and the width height and depth of the |
| 1906 |
box. The box is placed inside a picture environment that is just big enough |
| 1907 |
to enclose the box. This means that the labels extend beyond the |
| 1908 |
\texttt{picture}. If \verb|\printparameterstrue| is set before issuing the |
| 1909 |
command, the actual values for the width, height and depth of the box |
| 1910 |
are printed in a \texttt{center} environment following the drawing. |
| 1911 |
|
| 1912 |
Here is a simple example created by \verb|\drawfontframelabel{\Huge Q}| |
| 1913 |
with \verb|\printparametersfalse|. |
| 1914 |
\begin{center} |
| 1915 |
\printparametersfalse% |
| 1916 |
\drawfontframelabel{\Huge Q} |
| 1917 |
\end{center} |
| 1918 |
|
| 1919 |
This time with \verb|\printparameterstrue| and |
| 1920 |
\verb|\drawfontframelabel{\Huge\textbf{tangling}}| |
| 1921 |
\begin{center} |
| 1922 |
\printparameterstrue% |
| 1923 |
\drawfontframelabel{\Huge\textbf{tangling}} |
| 1924 |
\end{center} |
| 1925 |
|
| 1926 |
If either of the \verb|\drawfont...| commands are used inside a |
| 1927 |
\texttt{picture} environment, then the \verb|\unitlength| must be set |
| 1928 |
to 1pt, as the drawings are meant to be exact size and the commands |
| 1929 |
assume that all |
| 1930 |
drawing lengths are in terms of pts. |
| 1931 |
|
| 1932 |
Internally, the commands typeset their argument inside a `save box' called |
| 1933 |
\verb|\layoutsbox|\ixsbox{layoutsbox} and then perform the size |
| 1934 |
measurements on |
| 1935 |
\verb|\layoutsbox|. You can use \verb|\layoutsbox| for your own purposes, but if |
| 1936 |
you do so any subsequent use of a \verb|\drawfont...| command will |
| 1937 |
overwrite anything that you might have saved in \verb|\layoutsbox|. |
| 1938 |
|
| 1939 |
|
| 1940 |
%%\bibliography{refs,prw} |
| 1941 |
\begin{thebibliography}{GMS94} |
| 1942 |
|
| 1943 |
\bibitem[GMS94]{GOOSSENS94} |
| 1944 |
Michel Goossens, Frank Mittelbach, and Alexander Samarin. |
| 1945 |
\newblock \emph{The LaTeX Companion}. |
| 1946 |
\newblock Addison-Wesley Publishing Company, 1994. |
| 1947 |
|
| 1948 |
\bibitem[Lam94]{LAMPORT94} |
| 1949 |
Leslie Lamport. |
| 1950 |
\newblock \emph{LaTeX: A Document Preparation System}. |
| 1951 |
\newblock Addison-Wesley Publishing Company, second edition, 1994. |
| 1952 |
|
| 1953 |
\bibitem[McP88]{MCPHERSON88} |
| 1954 |
Kent McPherson. |
| 1955 |
\newblock `{Page Layout in LaTeX}'. |
| 1956 |
\newblock \emph{TUGboat}, 9(1):78--82, April 1988. |
| 1957 |
|
| 1958 |
\bibitem[Wil02]{MEMOIR} |
| 1959 |
Peter Wilson. |
| 1960 |
\newblock \emph{The memoir class for configurable book typesetting}. |
| 1961 |
\newblock November, 2002. |
| 1962 |
\newblock (Available from CTAN in |
| 1963 |
\texttt{macros/latex/contrib/memoir}) |
| 1964 |
|
| 1965 |
\end{thebibliography} |
| 1966 |
|
| 1967 |
\clearpage |
| 1968 |
%%%%%%%% THE INDEX |
| 1969 |
%\input{laymanidx} |
| 1970 |
%\end{document} |
| 1971 |
|
| 1972 |
% laymanidx.tex |
| 1973 |
% Generated by GenIndex Version 1.1 from layman.idx |
| 1974 |
% |
| 1975 |
\begin{theindex} |
| 1976 |
|
| 1977 |
|
| 1978 |
|
| 1979 |
\otherindexspace{?} |
| 1980 |
% ???? |
| 1981 |
|
| 1982 |
|
| 1983 |
\item \texttt {\bs \tat dotsep} \indexfill |
| 1984 |
44--45 |
| 1985 |
\item \texttt {\bs \tat dottedtocline} \indexfill |
| 1986 |
43, 46 |
| 1987 |
\item \texttt {\bs \tat pnumwidth} \indexfill |
| 1988 |
44--45 |
| 1989 |
\item \texttt {\bs \tat startsection} \indexfill |
| 1990 |
35, 37, 46 |
| 1991 |
\item \texttt {\bs \tat tocrmarg} \indexfill |
| 1992 |
44--45 |
| 1993 |
|
| 1994 |
\alphaindexspace{B} |
| 1995 |
% BBBB |
| 1996 |
|
| 1997 |
|
| 1998 |
\item \texttt {\bs baselineskip} \indexfill |
| 1999 |
2, 11, 16, 18, 39--40 |
| 2000 |
\item \texttt {\bs botfigrule} \indexfill |
| 2001 |
25, 27 |
| 2002 |
\item \texttt {\bs bottomfraction} \indexfill |
| 2003 |
22 |
| 2004 |
\item \texttt {\bs bottomnumber} \indexfill |
| 2005 |
22 |
| 2006 |
|
| 2007 |
\alphaindexspace{C} |
| 2008 |
% CCCC |
| 2009 |
|
| 2010 |
|
| 2011 |
\item \texttt {center} (environment) \indexfill |
| 2012 |
4, 13 |
| 2013 |
\item \texttt {\bs chapter} \indexfill |
| 2014 |
35 |
| 2015 |
\item {\textsf {classes.dtx} (file)} \indexfill |
| 2016 |
34, 42, 45 |
| 2017 |
\item \texttt {\bs columnsep} \indexfill |
| 2018 |
11, 16 |
| 2019 |
\item \texttt {\bs columnseprule} \indexfill |
| 2020 |
11, 16 |
| 2021 |
\item \texttt {\bs currentfloat} \indexfill |
| 2022 |
24 |
| 2023 |
\item \texttt {\bs currentfloatpage} \indexfill |
| 2024 |
21 |
| 2025 |
\item \texttt {\bs currentfootnote} \indexfill |
| 2026 |
39 |
| 2027 |
\item \texttt {\bs currentheading} \indexfill |
| 2028 |
35 |
| 2029 |
\item \texttt {\bs currentlist} \indexfill |
| 2030 |
29, 34 |
| 2031 |
\item \texttt {\bs currentpage} \indexfill |
| 2032 |
9, 14 |
| 2033 |
\item \texttt {\bs currentparagraph} \indexfill |
| 2034 |
18 |
| 2035 |
\item \texttt {\bs currentstock} \indexfill |
| 2036 |
14 |
| 2037 |
\item \texttt {\bs currenttoc} \indexfill |
| 2038 |
44 |
| 2039 |
|
| 2040 |
\alphaindexspace{D} |
| 2041 |
% DDDD |
| 2042 |
|
| 2043 |
|
| 2044 |
\item \texttt {\bs dblfloatpagefraction} \indexfill |
| 2045 |
28 |
| 2046 |
\item \texttt {\bs dblfloatsep} \indexfill |
| 2047 |
28 |
| 2048 |
\item \texttt {\bs dbltextfloatsep} \indexfill |
| 2049 |
28 |
| 2050 |
\item \texttt {\bs dbltopfraction} \indexfill |
| 2051 |
28 |
| 2052 |
\item \texttt {\bs dbltopnumber} \indexfill |
| 2053 |
28 |
| 2054 |
\item \texttt {description} (environment) \indexfill |
| 2055 |
34 |
| 2056 |
\item \texttt {\bs drawaspread} \indexfill |
| 2057 |
4, 6 |
| 2058 |
\item \texttt {\bs drawdimensionsfalse} \indexfill |
| 2059 |
3 |
| 2060 |
\item \texttt {\bs drawdimensionstrue} \indexfill |
| 2061 |
3, 11 |
| 2062 |
\item \texttt {\bs drawfloat} \indexfill |
| 2063 |
24 |
| 2064 |
\item \texttt {\bs drawfloatpage} \indexfill |
| 2065 |
21 |
| 2066 |
\item \texttt {\bs drawfontframe} \indexfill |
| 2067 |
47 |
| 2068 |
\item \texttt {\bs drawfontframelabel} \indexfill |
| 2069 |
47 |
| 2070 |
\item \texttt {\bs drawfootnote} \indexfill |
| 2071 |
39 |
| 2072 |
\item \texttt {\bs drawheading} \indexfill |
| 2073 |
35 |
| 2074 |
\item \texttt {\bs drawlist} \indexfill |
| 2075 |
29, 32 |
| 2076 |
\item \texttt {\bs drawmarginparsfalse} \indexfill |
| 2077 |
7 |
| 2078 |
\item \texttt {\bs drawmarginparstrue} \indexfill |
| 2079 |
7 |
| 2080 |
\item \texttt {\bs drawpage} \indexfill |
| 2081 |
7 |
| 2082 |
\item \texttt {\bs drawparagraph} \indexfill |
| 2083 |
18 |
| 2084 |
\item \texttt {\bs drawparametersfalse} \indexfill |
| 2085 |
2--3 |
| 2086 |
\item \texttt {\bs drawparameterstrue} \indexfill |
| 2087 |
2, 35 |
| 2088 |
\item \texttt {\bs drawstock} \indexfill |
| 2089 |
14 |
| 2090 |
\item \texttt {\bs drawtoc} \indexfill |
| 2091 |
43 |
| 2092 |
|
| 2093 |
\alphaindexspace{E} |
| 2094 |
% EEEE |
| 2095 |
|
| 2096 |
|
| 2097 |
\item \texttt {enumerate} (environment) \indexfill |
| 2098 |
29, 34 |
| 2099 |
\item \texttt {\bs evensidemargin} \indexfill |
| 2100 |
11 |
| 2101 |
|
| 2102 |
\alphaindexspace{F} |
| 2103 |
% FFFF |
| 2104 |
|
| 2105 |
|
| 2106 |
\item \texttt {figure} (environment) \indexfill |
| 2107 |
4, 21 |
| 2108 |
\item \texttt {\bs floatdesign} \indexfill |
| 2109 |
24 |
| 2110 |
\item \texttt {\bs floatdiagram} \indexfill |
| 2111 |
24 |
| 2112 |
\item \texttt {\bs floatpagedesign} \indexfill |
| 2113 |
21 |
| 2114 |
\item \texttt {\bs floatpagediagram} \indexfill |
| 2115 |
21 |
| 2116 |
\item \texttt {\bs floatsep} \indexfill |
| 2117 |
25 |
| 2118 |
\item \texttt {\bs floatvalues} \indexfill |
| 2119 |
28 |
| 2120 |
\item \texttt {\bs footins} \indexfill |
| 2121 |
40 |
| 2122 |
\item \texttt {\bs footnotedesign} \indexfill |
| 2123 |
39 |
| 2124 |
\item \texttt {\bs footnotediagram} \indexfill |
| 2125 |
39 |
| 2126 |
\item \texttt {\bs footnoterule} \indexfill |
| 2127 |
27, 40 |
| 2128 |
\item \texttt {\bs footnotesep} \indexfill |
| 2129 |
40--41 |
| 2130 |
\item \texttt {\bs footnotesize} \indexfill |
| 2131 |
1 |
| 2132 |
\item \texttt {\bs footnotevalues} \indexfill |
| 2133 |
42 |
| 2134 |
\item \texttt {\bs footskip} \indexfill |
| 2135 |
9, 11, 16 |
| 2136 |
|
| 2137 |
\alphaindexspace{H} |
| 2138 |
% HHHH |
| 2139 |
|
| 2140 |
|
| 2141 |
\item \texttt {\bs headheight} \indexfill |
| 2142 |
11, 16 |
| 2143 |
\item \texttt {\bs headingdesign} \indexfill |
| 2144 |
35 |
| 2145 |
\item \texttt {\bs headingdiagram} \indexfill |
| 2146 |
35 |
| 2147 |
\item \texttt {\bs headsep} \indexfill |
| 2148 |
11, 16 |
| 2149 |
\item \texttt {\bs hoffset} \indexfill |
| 2150 |
11 |
| 2151 |
|
| 2152 |
\alphaindexspace{I} |
| 2153 |
% IIII |
| 2154 |
|
| 2155 |
|
| 2156 |
\item \texttt {\bs intextsep} \indexfill |
| 2157 |
25 |
| 2158 |
\item \texttt {\bs itemindent} \indexfill |
| 2159 |
31 |
| 2160 |
\item \texttt {itemize} (environment) \indexfill |
| 2161 |
34 |
| 2162 |
\item \texttt {\bs itemsep} \indexfill |
| 2163 |
31 |
| 2164 |
|
| 2165 |
\alphaindexspace{L} |
| 2166 |
% LLLL |
| 2167 |
|
| 2168 |
|
| 2169 |
\item \texttt {\bs labelsep} \indexfill |
| 2170 |
31 |
| 2171 |
\item \texttt {\bs labelwidth} \indexfill |
| 2172 |
31 |
| 2173 |
\item {\textsf {layout.sty} (file)} \indexfill |
| 2174 |
1 |
| 2175 |
\item \texttt {layoutsbox} (save box) \indexfill |
| 2176 |
47 |
| 2177 |
\item \texttt {\bs leftmargin} \indexfill |
| 2178 |
31 |
| 2179 |
\item \texttt {\bs linewidth} \indexfill |
| 2180 |
18, 44 |
| 2181 |
\item \texttt {list} (environment) \indexfill |
| 2182 |
29, 34 |
| 2183 |
\item \texttt {\bs listasparafalse} \indexfill |
| 2184 |
29 |
| 2185 |
\item \texttt {\bs listasparatrue} \indexfill |
| 2186 |
29 |
| 2187 |
\item \texttt {\bs listdesign} \indexfill |
| 2188 |
29 |
| 2189 |
\item \texttt {\bs listdiagram} \indexfill |
| 2190 |
29 |
| 2191 |
\item \texttt {\bs listparindent} \indexfill |
| 2192 |
31 |
| 2193 |
\item \texttt {\bs listvalues} \indexfill |
| 2194 |
34 |
| 2195 |
|
| 2196 |
\alphaindexspace{M} |
| 2197 |
% MMMM |
| 2198 |
|
| 2199 |
|
| 2200 |
\item \texttt {\bs makeatletter} \indexfill |
| 2201 |
13, 27, 37 |
| 2202 |
\item \texttt {\bs makeatother} \indexfill |
| 2203 |
13, 27, 37 |
| 2204 |
\item \texttt {\bs marginparpush} \indexfill |
| 2205 |
11, 16 |
| 2206 |
\item \texttt {\bs marginparsep} \indexfill |
| 2207 |
11, 16 |
| 2208 |
\item \texttt {\bs marginparswitchfalse} \indexfill |
| 2209 |
7 |
| 2210 |
\item \texttt {\bs marginparswitchtrue} \indexfill |
| 2211 |
7 |
| 2212 |
\item \texttt {\bs marginparwidth} \indexfill |
| 2213 |
11, 16 |
| 2214 |
|
| 2215 |
\alphaindexspace{N} |
| 2216 |
% NNNN |
| 2217 |
|
| 2218 |
|
| 2219 |
\item \texttt {\bs normalmarginpar} \indexfill |
| 2220 |
7 |
| 2221 |
|
| 2222 |
\alphaindexspace{O} |
| 2223 |
% OOOO |
| 2224 |
|
| 2225 |
|
| 2226 |
\item \texttt {\bs oddpagelayoutfalse} \indexfill |
| 2227 |
7 |
| 2228 |
\item \texttt {\bs oddpagelayouttrue} \indexfill |
| 2229 |
7 |
| 2230 |
\item \texttt {\bs oddsidemargin} \indexfill |
| 2231 |
11 |
| 2232 |
|
| 2233 |
\alphaindexspace{P} |
| 2234 |
% PPPP |
| 2235 |
|
| 2236 |
|
| 2237 |
\item \texttt {\bs pagedesign} \indexfill |
| 2238 |
7 |
| 2239 |
\item \texttt {\bs pagediagram} \indexfill |
| 2240 |
7 |
| 2241 |
\item \texttt {\bs pagevalues} \indexfill |
| 2242 |
13 |
| 2243 |
\item \texttt {\bs paperheight} \indexfill |
| 2244 |
9, 11, 16 |
| 2245 |
\item \texttt {\bs paperwidth} \indexfill |
| 2246 |
9, 11, 16 |
| 2247 |
\item \texttt {\bs paragraphdesign} \indexfill |
| 2248 |
18 |
| 2249 |
\item \texttt {\bs paragraphdiagram} \indexfill |
| 2250 |
18 |
| 2251 |
\item \texttt {\bs paragraphvalues} \indexfill |
| 2252 |
20 |
| 2253 |
\item \texttt {\bs parindent} \indexfill |
| 2254 |
18, 20 |
| 2255 |
\item \texttt {\bs parsep} \indexfill |
| 2256 |
31 |
| 2257 |
\item \texttt {\bs parskip} \indexfill |
| 2258 |
2, 18, 31 |
| 2259 |
\item \texttt {\bs part} \indexfill |
| 2260 |
35 |
| 2261 |
\item \texttt {\bs partopsep} \indexfill |
| 2262 |
31 |
| 2263 |
\item \texttt {picture} (environment) \indexfill |
| 2264 |
4 |
| 2265 |
\item \texttt {\bs printheadingsfalse} \indexfill |
| 2266 |
1, 3, 11 |
| 2267 |
\item \texttt {\bs printheadingstrue} \indexfill |
| 2268 |
1, 3 |
| 2269 |
\item \texttt {\bs printinunitsof} \indexfill |
| 2270 |
3, 20 |
| 2271 |
\item \texttt {\bs printparametersfalse} \indexfill |
| 2272 |
3 |
| 2273 |
\item \texttt {\bs printparameterstrue} \indexfill |
| 2274 |
3 |
| 2275 |
\item \texttt {\bs prntlen} \indexfill |
| 2276 |
3 |
| 2277 |
|
| 2278 |
\alphaindexspace{Q} |
| 2279 |
% QQQQ |
| 2280 |
|
| 2281 |
|
| 2282 |
\item \texttt {quotation} (environment) \indexfill |
| 2283 |
34 |
| 2284 |
|
| 2285 |
\alphaindexspace{R} |
| 2286 |
% RRRR |
| 2287 |
|
| 2288 |
|
| 2289 |
\item \texttt {\bs renewcommand} \indexfill |
| 2290 |
27, 45 |
| 2291 |
\item \texttt {\bs reversemarginpar} \indexfill |
| 2292 |
7 |
| 2293 |
\item \texttt {\bs reversemarginparfalse} \indexfill |
| 2294 |
7 |
| 2295 |
\item \texttt {\bs reversemarginpartrue} \indexfill |
| 2296 |
7 |
| 2297 |
\item \texttt {\bs rightmargin} \indexfill |
| 2298 |
31 |
| 2299 |
\item \texttt {\bs rule} \indexfill |
| 2300 |
27 |
| 2301 |
\item \texttt {\bs runinheadfalse} \indexfill |
| 2302 |
35 |
| 2303 |
\item \texttt {\bs runinheadtrue} \indexfill |
| 2304 |
35 |
| 2305 |
|
| 2306 |
\alphaindexspace{S} |
| 2307 |
% SSSS |
| 2308 |
|
| 2309 |
|
| 2310 |
\item \texttt {\bs setcounter} \indexfill |
| 2311 |
27 |
| 2312 |
\item \texttt {\bs setfootbox} \indexfill |
| 2313 |
9, 14 |
| 2314 |
\item \texttt {\bs setlabelfont} \indexfill |
| 2315 |
3, 39 |
| 2316 |
\item \texttt {\bs setlayoutscale} \indexfill |
| 2317 |
2, 4, 6 |
| 2318 |
\item \texttt {\bs setlength} \indexfill |
| 2319 |
13, 28, 41 |
| 2320 |
\item \texttt {\bs setparameterstextsize} \indexfill |
| 2321 |
3 |
| 2322 |
\item \texttt {\bs setuplayouts} \indexfill |
| 2323 |
2, 4 |
| 2324 |
\item \texttt {\bs setvaluestextsize} \indexfill |
| 2325 |
1 |
| 2326 |
\item \texttt {\bs skip} \indexfill |
| 2327 |
40 |
| 2328 |
\item \texttt {\bs spacefactor} \indexfill |
| 2329 |
13 |
| 2330 |
\item \texttt {\bs spinemargin} \indexfill |
| 2331 |
16 |
| 2332 |
\item \texttt {\bs stockdesign} \indexfill |
| 2333 |
14 |
| 2334 |
\item \texttt {\bs stockdiagram} \indexfill |
| 2335 |
14 |
| 2336 |
\item \texttt {\bs stockheight} \indexfill |
| 2337 |
16 |
| 2338 |
\item \texttt {\bs stockvalues} \indexfill |
| 2339 |
16 |
| 2340 |
\item \texttt {\bs stockwidth} \indexfill |
| 2341 |
16 |
| 2342 |
\item \texttt {\bs subsubsection} \indexfill |
| 2343 |
37 |
| 2344 |
|
| 2345 |
\alphaindexspace{T} |
| 2346 |
% TTTT |
| 2347 |
|
| 2348 |
|
| 2349 |
\item \texttt {table} (environment) \indexfill |
| 2350 |
21 |
| 2351 |
\item \texttt {tabular} (environment) \indexfill |
| 2352 |
4 |
| 2353 |
\item \texttt {\bs textfloatsep} \indexfill |
| 2354 |
25, 27 |
| 2355 |
\item \texttt {\bs textfraction} \indexfill |
| 2356 |
22 |
| 2357 |
\item \texttt {\bs textheight} \indexfill |
| 2358 |
11, 16 |
| 2359 |
\item \texttt {\bs textwidth} \indexfill |
| 2360 |
11, 16, 40 |
| 2361 |
\item \texttt {thebibliography} (environment) \indexfill |
| 2362 |
34 |
| 2363 |
\item \texttt {tocdepth} (counter) \indexfill |
| 2364 |
43 |
| 2365 |
\item \texttt {\bs tocdesign} \indexfill |
| 2366 |
43 |
| 2367 |
\item \texttt {\bs tocdiagram} \indexfill |
| 2368 |
43 |
| 2369 |
\item \texttt {\bs tocvalues} \indexfill |
| 2370 |
46 |
| 2371 |
\item \texttt {\bs topfigrule} \indexfill |
| 2372 |
25, 27 |
| 2373 |
\item \texttt {\bs topfraction} \indexfill |
| 2374 |
22 |
| 2375 |
\item \texttt {\bs topmargin} \indexfill |
| 2376 |
11 |
| 2377 |
\item \texttt {\bs topnumber} \indexfill |
| 2378 |
22 |
| 2379 |
\item \texttt {\bs topsep} \indexfill |
| 2380 |
31 |
| 2381 |
\item \texttt {\bs totalnumber} \indexfill |
| 2382 |
22 |
| 2383 |
\item \texttt {\bs trimedge} \indexfill |
| 2384 |
16 |
| 2385 |
\item \texttt {\bs trimtop} \indexfill |
| 2386 |
16 |
| 2387 |
\item \texttt {\bs tryafterskip} \indexfill |
| 2388 |
36 |
| 2389 |
\item \texttt {\bs trybeforeskip} \indexfill |
| 2390 |
36 |
| 2391 |
\item \texttt {\bs trybotfigrule} \indexfill |
| 2392 |
25 |
| 2393 |
\item \texttt {\bs trybottomfraction} \indexfill |
| 2394 |
22 |
| 2395 |
\item \texttt {\bs trybottomnumber} \indexfill |
| 2396 |
22 |
| 2397 |
\item \texttt {\bs trycolumnsep} \indexfill |
| 2398 |
11, 16 |
| 2399 |
\item \texttt {\bs trycolumnseprule} \indexfill |
| 2400 |
11, 16 |
| 2401 |
\item \texttt {\bs tryevensidemargin} \indexfill |
| 2402 |
11 |
| 2403 |
\item \texttt {\bs tryfloatsep} \indexfill |
| 2404 |
25 |
| 2405 |
\item \texttt {\bs tryfootins} \indexfill |
| 2406 |
40 |
| 2407 |
\item \texttt {\bs tryfootnotebaseline} \indexfill |
| 2408 |
40 |
| 2409 |
\item \texttt {\bs tryfootnotesep} \indexfill |
| 2410 |
40 |
| 2411 |
\item \texttt {\bs tryfootrulefrac} \indexfill |
| 2412 |
40 |
| 2413 |
\item \texttt {\bs tryfootruleheight} \indexfill |
| 2414 |
40 |
| 2415 |
\item \texttt {\bs tryfootskip} \indexfill |
| 2416 |
11, 16 |
| 2417 |
\item \texttt {\bs tryheadheight} \indexfill |
| 2418 |
11, 16 |
| 2419 |
\item \texttt {\bs tryheadsep} \indexfill |
| 2420 |
11, 16 |
| 2421 |
\item \texttt {\bs tryhoffset} \indexfill |
| 2422 |
11 |
| 2423 |
\item \texttt {\bs tryindent} \indexfill |
| 2424 |
36 |
| 2425 |
\item \texttt {\bs tryintextsep} \indexfill |
| 2426 |
25 |
| 2427 |
\item \texttt {\bs tryitemindent} \indexfill |
| 2428 |
31 |
| 2429 |
\item \texttt {\bs tryitemsep} \indexfill |
| 2430 |
31 |
| 2431 |
\item \texttt {\bs trylabelsep} \indexfill |
| 2432 |
31 |
| 2433 |
\item \texttt {\bs trylabelwidth} \indexfill |
| 2434 |
31 |
| 2435 |
\item \texttt {\bs tryleftmargin} \indexfill |
| 2436 |
31 |
| 2437 |
\item \texttt {\bs trylistparindent} \indexfill |
| 2438 |
31 |
| 2439 |
\item \texttt {\bs trymarginparpush} \indexfill |
| 2440 |
11, 16 |
| 2441 |
\item \texttt {\bs trymarginparsep} \indexfill |
| 2442 |
11, 16 |
| 2443 |
\item \texttt {\bs trymarginparwidth} \indexfill |
| 2444 |
11, 16 |
| 2445 |
\item \texttt {\bs tryoddsidemargin} \indexfill |
| 2446 |
11 |
| 2447 |
\item \texttt {\bs trypaperheight} \indexfill |
| 2448 |
11, 16 |
| 2449 |
\item \texttt {\bs trypaperwidth} \indexfill |
| 2450 |
11, 16 |
| 2451 |
\item \texttt {\bs tryparbaselineskip} \indexfill |
| 2452 |
18 |
| 2453 |
\item \texttt {\bs tryparindent} \indexfill |
| 2454 |
18 |
| 2455 |
\item \texttt {\bs tryparlinewidth} \indexfill |
| 2456 |
18 |
| 2457 |
\item \texttt {\bs tryparsep} \indexfill |
| 2458 |
31 |
| 2459 |
\item \texttt {\bs tryparskip} \indexfill |
| 2460 |
18, 31 |
| 2461 |
\item \texttt {\bs trypartopsep} \indexfill |
| 2462 |
31 |
| 2463 |
\item \texttt {\bs tryrightmargin} \indexfill |
| 2464 |
31 |
| 2465 |
\item \texttt {\bs tryspinemargin} \indexfill |
| 2466 |
16 |
| 2467 |
\item \texttt {\bs trystockheight} \indexfill |
| 2468 |
16 |
| 2469 |
\item \texttt {\bs trystockwidth} \indexfill |
| 2470 |
16 |
| 2471 |
\item \texttt {\bs trytextfloatsep} \indexfill |
| 2472 |
25 |
| 2473 |
\item \texttt {\bs trytextfraction} \indexfill |
| 2474 |
22 |
| 2475 |
\item \texttt {\bs trytextheight} \indexfill |
| 2476 |
11, 16 |
| 2477 |
\item \texttt {\bs trytextwidth} \indexfill |
| 2478 |
11, 16 |
| 2479 |
\item \texttt {\bs trytocdotsep} \indexfill |
| 2480 |
44 |
| 2481 |
\item \texttt {\bs trytocindent} \indexfill |
| 2482 |
44 |
| 2483 |
\item \texttt {\bs trytoclinewidth} \indexfill |
| 2484 |
44 |
| 2485 |
\item \texttt {\bs trytocnumwidth} \indexfill |
| 2486 |
44 |
| 2487 |
\item \texttt {\bs trytocpnumwidth} \indexfill |
| 2488 |
44 |
| 2489 |
\item \texttt {\bs trytocrmarg} \indexfill |
| 2490 |
44 |
| 2491 |
\item \texttt {\bs trytopfigrule} \indexfill |
| 2492 |
25 |
| 2493 |
\item \texttt {\bs trytopfraction} \indexfill |
| 2494 |
22 |
| 2495 |
\item \texttt {\bs trytopmargin} \indexfill |
| 2496 |
11 |
| 2497 |
\item \texttt {\bs trytopnumber} \indexfill |
| 2498 |
22 |
| 2499 |
\item \texttt {\bs trytopsep} \indexfill |
| 2500 |
31 |
| 2501 |
\item \texttt {\bs trytotalnumber} \indexfill |
| 2502 |
22 |
| 2503 |
\item \texttt {\bs trytrimedge} \indexfill |
| 2504 |
16 |
| 2505 |
\item \texttt {\bs trytrimtop} \indexfill |
| 2506 |
16 |
| 2507 |
\item \texttt {\bs tryuppermargin} \indexfill |
| 2508 |
16 |
| 2509 |
\item \texttt {\bs tryvoffset} \indexfill |
| 2510 |
11 |
| 2511 |
\item \texttt {\bs twocolumnlayoutfalse} \indexfill |
| 2512 |
7 |
| 2513 |
\item \texttt {\bs twocolumnlayouttrue} \indexfill |
| 2514 |
7 |
| 2515 |
|
| 2516 |
\alphaindexspace{U} |
| 2517 |
% UUUU |
| 2518 |
|
| 2519 |
|
| 2520 |
\item \texttt {\bs uppermargin} \indexfill |
| 2521 |
16 |
| 2522 |
|
| 2523 |
\alphaindexspace{V} |
| 2524 |
% VVVV |
| 2525 |
|
| 2526 |
|
| 2527 |
\item \texttt {\bs voffset} \indexfill |
| 2528 |
11 |
| 2529 |
|
| 2530 |
\end{theindex} |
| 2531 |
|
| 2532 |
|
| 2533 |
\end{document} |
| 2534 |
|