| 1 |
% isoman.tex User guide for ISO style files for LaTeX(2e) August 2002 |
| 2 |
% |
| 3 |
\documentclass[wd,letterpaper,copyright]{isov2} |
| 4 |
%\documentclass[wd,letterpaper,draft]{isov2} |
| 5 |
%\documentclass{isov2} |
| 6 |
|
| 7 |
%%%\usepackage[isoman]{tex4ht} |
| 8 |
|
| 9 |
\usepackage{comment} |
| 10 |
|
| 11 |
%%%\usepackage{times} |
| 12 |
\usepackage{isorot} |
| 13 |
\usepackage{xtab} |
| 14 |
\usepackage{hyphenat} |
| 15 |
|
| 16 |
\ifpdf |
| 17 |
\pdfoutput=1 |
| 18 |
\usepackage[plainpages=false, |
| 19 |
pdfpagelabels, |
| 20 |
bookmarksnumbered, |
| 21 |
hyperindex=true |
| 22 |
]{hyperref} |
| 23 |
\fi |
| 24 |
|
| 25 |
\standard{LaTeX for ISO standards} |
| 26 |
\yearofedition{2002} |
| 27 |
\languageofedition{(E)} |
| 28 |
|
| 29 |
%\partno{3456} |
| 30 |
\changemarkstrue |
| 31 |
|
| 32 |
\makeindex |
| 33 |
|
| 34 |
% Uncomment the following to change the Foreword heading |
| 35 |
%\renewcommand{\forewordname}{Avant-propos} % change the Foreword title |
| 36 |
|
| 37 |
\setcounter{tocdepth}{3} % add more levels to table of contents |
| 38 |
% |
| 39 |
% remainder of preamble is some special macro definitions |
| 40 |
\makeatletter |
| 41 |
% the \meta{} command |
| 42 |
% |
| 43 |
\begingroup |
| 44 |
\obeyspaces% |
| 45 |
\catcode`\^^M\active% |
| 46 |
\gdef\meta{\begingroup\obeyspaces\catcode`\^^M\active% |
| 47 |
\let^^M\do@space\let \do@space% |
| 48 |
\def\-{\egroup\discretionary{-}{}{}\hbox\bgroup\it}% |
| 49 |
\m@ta}% |
| 50 |
\endgroup |
| 51 |
\def\m@ta#1{\leavevmode\hbox\bgroup\texttt{<}\textit{#1}\/\texttt{>}\egroup |
| 52 |
\endgroup} |
| 53 |
\def\do@space{\egroup\space |
| 54 |
\hbox\bgroup\it\futurelet\next\sp@ce} |
| 55 |
\def\sp@ce{\ifx\next\do@space\expandafter\sp@@ce\fi} |
| 56 |
\def\sp@@ce#1{\futurelet\next\sp@ce} |
| 57 |
% |
| 58 |
% |
| 59 |
\makeatother |
| 60 |
% |
| 61 |
% the \latex command |
| 62 |
\newcommand{\latex}{LaTeX} |
| 63 |
\newcommand{\tex}{TeX} |
| 64 |
% |
| 65 |
% the \file{} command |
| 66 |
% |
| 67 |
\newcommand{\file}[1]{\textsf{#1}} |
| 68 |
% |
| 69 |
\makeatletter |
| 70 |
% index a command |
| 71 |
\newcommand{\bs}{\symbol{'134}} |
| 72 |
\newcommand{\ixcom}[1]{\index{#1/ @{\tt \protect\bs #1}}} |
| 73 |
% index an environment |
| 74 |
\newcommand{\ixenv}[1]{\index{#1 @{\tt #1} (environment)}} |
| 75 |
% index a starred environment |
| 76 |
\newcommand{\ixenvs}[1]{\index{#1s @{\tt #1*} (environment)}} |
| 77 |
% index an option |
| 78 |
\newcommand{\ixopt}[1]{\index{#1 @{\tt #1} (option)}} |
| 79 |
% index a package |
| 80 |
\newcommand{\ixpack}[1]{\index{#1 @\file{#1} (package)}} |
| 81 |
% index a class |
| 82 |
\newcommand{\ixclass}[1]{\index{#1 @\file{#1} (class)}} |
| 83 |
% index in typewriter font |
| 84 |
\newcommand{\ixtt}[1]{\index{#1@{\tt #1}}} |
| 85 |
% index LaTeX |
| 86 |
\newcommand{\ixltx}{\index{latex@\latex}} |
| 87 |
% index LaTeX 2e |
| 88 |
\newcommand{\ixltxe}{\index{latex2e@\latex 2e}} |
| 89 |
% index LaTeX v2.09 |
| 90 |
\newcommand{\ixltxv}{\index{latex209@\latex{} v2.09}} |
| 91 |
\makeatother |
| 92 |
% |
| 93 |
% end of preamble |
| 94 |
% |
| 95 |
\begin{document} |
| 96 |
|
| 97 |
|
| 98 |
\begin{cover} |
| 99 |
\vspace*{4in} |
| 100 |
\begin{center} |
| 101 |
\Huge\bfseries LaTeX for ISO standards |
| 102 |
\end{center} |
| 103 |
\begin{center} |
| 104 |
\bfseries 2002/08/10 |
| 105 |
\end{center} |
| 106 |
\begin{center} |
| 107 |
Peter Wilson \\ |
| 108 |
\texttt{[email protected]} |
| 109 |
\end{center} |
| 110 |
\clearpage |
| 111 |
\end{cover} |
| 112 |
%%%\clearpage |
| 113 |
|
| 114 |
\begin{foreword} |
| 115 |
\fwdbp |
| 116 |
\fwdnopatents |
| 117 |
Annexes~\ref{anx:extraiso} and~\ref{anx:lord} |
| 118 |
are an integral part of this document. |
| 119 |
Annexes~\ref{anx:indexing}, \ref{anx:sgml}, \ref{anx:getstuff}, |
| 120 |
and \ref{anx:changes} |
| 121 |
are for information only. |
| 122 |
\end{foreword} |
| 123 |
|
| 124 |
|
| 125 |
\begin{introduction} |
| 126 |
|
| 127 |
This document describes the use of the \file{isov2} \latex{} class |
| 128 |
file and some package files in preparing ISO standard documents. |
| 129 |
|
| 130 |
\sclause*{Overview} |
| 131 |
|
| 132 |
This document describes a \latex{} class file, called \file{isov2}, |
| 133 |
for typesetting ISO standards. It also |
| 134 |
provides descriptions of some particular package files (e.g., \file{isorot}) |
| 135 |
that have been developed to support the writing of ISO standards. |
| 136 |
The electronic source of this document also provides an example of the |
| 137 |
use of these files. |
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
The current set of files~\bref{isoe} have been developed by |
| 142 |
Peter Wilson (RPI, CUA and NIST, Boeing) |
| 143 |
from files written by Kent Reed (NIST). |
| 144 |
In turn, these were revisions of files originally created by |
| 145 |
Phil Spiby (CADDETC, UK), based on early work by |
| 146 |
Phil Kennicott (GE).\footnote{In mid 1994 \latex{} was upgraded from |
| 147 |
version 2.09 to what is called \latex 2e. The files described in |
| 148 |
earlier versions this document were compatible with both versions |
| 149 |
of \latex. Starting with the October 1997 release, |
| 150 |
support was withdrawn from any \latex{} v2.09 file versions.} |
| 151 |
|
| 152 |
|
| 153 |
Documents produced with the \latex{} files have been reviewed |
| 154 |
by the ISO Editorial Board in Geneva for conformance to their typographical |
| 155 |
requirements. The first review was of a series of Draft International |
| 156 |
Standard documents. This review resulted in some changes to the style |
| 157 |
files. The second review was of a series of twelve International Standard |
| 158 |
documents (ISO 10303:1994). Likewise, this review led to changes in the |
| 159 |
style files to bring the documents into compliance. |
| 160 |
|
| 161 |
With the publication of the ISO~10303:1994 standard, the opportunity |
| 162 |
was taken |
| 163 |
to provide a new baseline release of the package files. |
| 164 |
The new baseline release was also designed to address the fact that |
| 165 |
a major update of \latex{} to \latex 2e took place during 1994. \latex 2e |
| 166 |
is now the officially supported version. However, some users needed time |
| 167 |
to convert to using \latex 2e. Consequently, although the |
| 168 |
facilities described in the original version of this document |
| 169 |
were common for both |
| 170 |
\latex{} v2.09 and \latex 2e users, there were two different |
| 171 |
implementations. |
| 172 |
|
| 173 |
Because ISO standard documents have a very structured layout, the class |
| 174 |
and package files have been designed to reflect the logical document structure |
| 175 |
to a much greater extent than the `standard' \latex{} files. Further, ISO |
| 176 |
documents are published in more than one language. The files described |
| 177 |
here are written for the English language, but the language-specific elements |
| 178 |
have been parameterized for easy modification for publication in other |
| 179 |
official ISO languages, such as French. |
| 180 |
|
| 181 |
In 1997 ISO produced a new version of their Directives on the |
| 182 |
requirements for the layout of ISO documents. These were not completely |
| 183 |
unambiguous as to their intent; the current version was released in |
| 184 |
2001. Members of ISO TC184/SC4 have worked with |
| 185 |
the ISO Editorial Board and have reached an agreement that more precisely |
| 186 |
identifies the requirements. The current version of the \latex{} files |
| 187 |
implements that agreement. |
| 188 |
|
| 189 |
\begin{note} |
| 190 |
The original of this manual has been typeset using the \verb?draft? |
| 191 |
option in order to display its effect of placing a black box at the |
| 192 |
end of each line that is longer than the normal width of the text. |
| 193 |
\end{note} |
| 194 |
|
| 195 |
\begin{note} |
| 196 |
The author of this document may be contacted at |
| 197 |
\texttt{[email protected]}. |
| 198 |
\end{note} |
| 199 |
|
| 200 |
\end{introduction} |
| 201 |
|
| 202 |
\title{LaTeX for ISO standards: User manual}% |
| 203 |
{Peter Wilson}% |
| 204 |
{August 2002} |
| 205 |
|
| 206 |
|
| 207 |
\scopeclause |
| 208 |
|
| 209 |
This manual describes a set of \ixltx\latex{} files for typesetting |
| 210 |
documents according to the ISO Directives Part 3 (third edition, 1997), |
| 211 |
together with some elements from the ISO~10303 Supplementary Directives. |
| 212 |
|
| 213 |
\begin{inscope}{manual} |
| 214 |
\item use of \latex{} for preparing ISO standard documents. |
| 215 |
\end{inscope} |
| 216 |
|
| 217 |
\begin{outofscope}{manual} |
| 218 |
\item use of \latex{} in general; |
| 219 |
\item use of other document preparation systems. |
| 220 |
\end{outofscope} |
| 221 |
|
| 222 |
\textbf{IMPORTANT:} No matter whether or not there are copyright attributions |
| 223 |
to ISO, this document is \emph{not} copyrighted by ISO. Any copyright |
| 224 |
markings are for illustrative purposes only. This document is released under |
| 225 |
the LaTeX Project Public Licence. |
| 226 |
|
| 227 |
\normrefsclause \label{sec:nrefs} |
| 228 |
|
| 229 |
\normrefbp{manual} |
| 230 |
\begin{nreferences} |
| 231 |
|
| 232 |
\isref{ISO/IEC Directives, Part 2}{Rules for the structure and drafting of |
| 233 |
International Standards. (Fourth edition, 2001)} |
| 234 |
|
| 235 |
\isref{ISO TC 184/SC4 N1217:2001(E)}{SC4 Supplementary directives --- Rules |
| 236 |
for the structure and drafting of SC4 |
| 237 |
standards for industrial data. (2001--11--01).} |
| 238 |
|
| 239 |
\isref{ISO/IEC 8824-1:1998}{Information technology --- |
| 240 |
Abstract Syntax Notation One (ASN.1): |
| 241 |
Specification of basic notation.} |
| 242 |
|
| 243 |
\disref{ISO}{Camera-ready copy (CRC) --- |
| 244 |
Submission requirements and ISO type specification. |
| 245 |
(Version 1.0, 1996-04-26)} |
| 246 |
|
| 247 |
\end{nreferences} |
| 248 |
|
| 249 |
\defabbclause |
| 250 |
%\clause{Terms, definitions, and abbreviations} |
| 251 |
|
| 252 |
\defsubclause |
| 253 |
%\sclause{Terms and definitions} |
| 254 |
|
| 255 |
For the purposes of this manual, the following definitions |
| 256 |
apply. |
| 257 |
|
| 258 |
\begin{definitions} |
| 259 |
\definition{boilerplate}{text whose wording is fixed and has been agreed |
| 260 |
to be present in a specific type of document} \index{boilerplate} |
| 261 |
\definition{style file}{a set of \latex{} macros assembled into a single |
| 262 |
file with an extension \file{.sty}} |
| 263 |
\index{style file}\ixltx\index{file!.sty} |
| 264 |
\definition{package file}{a style file for use with \latex 2e}\ixltxe |
| 265 |
\end{definitions} |
| 266 |
|
| 267 |
\abbsubclause |
| 268 |
%\sclause{Abbreviations} |
| 269 |
|
| 270 |
For the purposes of this manual, the following abbreviations |
| 271 |
apply. |
| 272 |
|
| 273 |
\begin{symbols} |
| 274 |
\symboldef{CD}{Committee Draft}\index{CD} |
| 275 |
\symboldef{DIS}{Draft International Standard}\index{DIS} |
| 276 |
\symboldef{FDIS}{Final Draft International Standard}\index{DIS} |
| 277 |
\symboldef{IS}{International Standard}\index{IS} |
| 278 |
\symboldef{IS-REVIEW}{The documentation style accepted by the ISO |
| 279 |
Editorial Board review (September 1994) of twelve IS documents |
| 280 |
(the initial release of ISO~10303) for compliance with ISO |
| 281 |
typographical and layout requirements.}\index{IS-REVIEW} |
| 282 |
\symboldef{ISOD}{ISO/IEC Directives, Part 2}\index{ISOD}\index{ISO/IEC Directives} |
| 283 |
\symboldef{PAS}{Publicly Available Specification}\index{PAS} |
| 284 |
\symboldef{SD}{SC4 Supplementary directives}\index{SD}\index{Supplementary directives} |
| 285 |
\symboldef{TR}{Technical Report}\index{TR} |
| 286 |
\symboldef{TS}{Technical Specification}\index{TS} |
| 287 |
\symboldef{WD}{Working Draft}\index{WD} |
| 288 |
\symboldef{CRC}{The ISO \emph{Camera-ready copy (CRC)} document}\index{CRC} |
| 289 |
\symboldef{ToC}{table of contents}\index{ToC} |
| 290 |
\end{symbols} |
| 291 |
|
| 292 |
\clause{Conformance requirements} \label{sec:iconform} |
| 293 |
|
| 294 |
The \latex{} macro source files shall not be modified. |
| 295 |
|
| 296 |
If there is a need to modify the macro definitions then the |
| 297 |
modifications shall be defined in a separate \file{.sty}\index{file!.sty} |
| 298 |
file (or files), using the |
| 299 |
\latex{} \verb|\renewcommand|\ixcom{renewcommand} |
| 300 |
and/or the |
| 301 |
\verb|\renewenvironment|\ixcom{renewenvironment} |
| 302 |
commands as appropriate. The resulting \file{.sty} file(s) shall then |
| 303 |
be called in within the preamble\index{preamble} portion of the |
| 304 |
document to be typeset. |
| 305 |
|
| 306 |
Author specified \verb|\label{...}| commands shall not start with |
| 307 |
the characters \verb|;i| (semicolon and `i'); definition of labels |
| 308 |
starting with these characters is reserved for the maintainer of the |
| 309 |
facility files. |
| 310 |
|
| 311 |
|
| 312 |
\fcandaclause |
| 313 |
%\clause{Fundamental concepts and assumptions} |
| 314 |
|
| 315 |
It is assumed that the reader of this document is familiar with the |
| 316 |
\latex{} document preparation system.\ixltx |
| 317 |
|
| 318 |
\begin{note}Reference~\bref{lamport} in the bibliography describes the |
| 319 |
\latex{} system. |
| 320 |
\end{note} |
| 321 |
|
| 322 |
The reader is also assumed to be familiar with the ISO/IEC Directives |
| 323 |
Part~2 (ISOD\index{ISOD}). Agreements reached between the ISO Editorial Board |
| 324 |
and ISO TC184/SC4 are documented in the SC4 Supplementary Directives |
| 325 |
(SD\index{SD}). |
| 326 |
|
| 327 |
If there are any discrepancies between the layout and wording of this |
| 328 |
document and the requirements of the ISO/IEC Directives Part~2, |
| 329 |
then the requirements in that document shall be |
| 330 |
followed for any ISO standard document. |
| 331 |
|
| 332 |
The \file{isov2}\ixclass{isov2} class requires the |
| 333 |
\file{url}\ixpack{url} package. |
| 334 |
|
| 335 |
\begin{note} |
| 336 |
Additional \latex{} facilities specifically designed for ISO~10303 are |
| 337 |
defined and described elsewhere~\bref{stepsty}. |
| 338 |
\end{note} |
| 339 |
|
| 340 |
Because of many revisions over the years to the files described |
| 341 |
herein, a naming convention has been adopted for them. |
| 342 |
The primary name of the file is suffixed by \file{v\#} or \file{\#}, where |
| 343 |
\file{\#} is the version number of the file in question. |
| 344 |
All file primary names have been limited to a |
| 345 |
maximum of eight characters. |
| 346 |
|
| 347 |
\begin{note} |
| 348 |
Table~\ref{tab:curfiles} shows the versions of the files that were |
| 349 |
current at the time of publication. |
| 350 |
\end{note} % end note |
| 351 |
\begin{note} |
| 352 |
Starting with the October 1997 release, files that were specific to |
| 353 |
\ixltxv\latex{} v2.09 are no |
| 354 |
longer either supported or supplied. |
| 355 |
\end{note} |
| 356 |
|
| 357 |
\begin{note} |
| 358 |
As of 1999, the \file{uschyp}\ixpack{uschyp} package is no longer supported. |
| 359 |
It has been replaced by the |
| 360 |
\file{hyphenat}\ixpack{hyphenat}\index{hyphenat.sty@\file{hyphenat.sty}} |
| 361 |
package. |
| 362 |
\end{note} |
| 363 |
|
| 364 |
\ixclass{isov2}\index{isov2.cls@\file{isov2.cls}} |
| 365 |
% \index{isonev11.sty@\file{isonev11.sty}} |
| 366 |
\ixopt{9pt}\index{iso9.clo@\file{iso9.clo}} |
| 367 |
% \index{iso9.sty@\file{iso9.sty}} |
| 368 |
\ixopt{10pt}\index{iso10.clo@\file{iso10.clo}} |
| 369 |
% \index{iso10.sty@\file{iso10.sty}} |
| 370 |
\ixopt{11pt}\index{iso11.clo@\file{iso11.clo}} |
| 371 |
% \index{iso11.sty@\file{iso11.sty}} |
| 372 |
\ixpack{isorot}\index{isorot.sty@\file{isorot.sty}} |
| 373 |
% \index{isrotne1.sty@\file{isrotne1.sty}} |
| 374 |
\ixpack{askinc}\index{askincv1.sty@\file{askincv1.sty}} |
| 375 |
\ixpack{xtab}\index{xtab.sty@\file{xtab.sty}} |
| 376 |
\ixpack{uschyp}\index{uschyp.sty@\file{uschyp.sty}} |
| 377 |
% \index{uschypne.sty@\file{uschypne.sty}} |
| 378 |
|
| 379 |
\begin{table} |
| 380 |
\centering |
| 381 |
\caption{Current file versions} \label{tab:curfiles} |
| 382 |
\begin{tabular}{|l|l|} \hline |
| 383 |
\textbf{Facility} & \textbf{File} \\ \hline\hline |
| 384 |
\file{iso} & \file{isov2.cls} \\ |
| 385 |
9pt option & \file{iso9.clo} \\ |
| 386 |
10pt option & \file{iso10.clo} \\ |
| 387 |
11pt option & \file{iso11.clo} \\ |
| 388 |
\file{isorot} & \file{isorot.sty} \\ |
| 389 |
\file{askinc} & \file{askincv1.sty} \\ |
| 390 |
\file{xtab} & \file{xtab.sty} \\ |
| 391 |
\file{hyphenat} & \file{hyphenat.sty} \\ \hline |
| 392 |
\end{tabular} |
| 393 |
\end{table} |
| 394 |
|
| 395 |
|
| 396 |
\begin{anexample} At the time of |
| 397 |
publication of this document, any references to \file{iso.cls} should be |
| 398 |
read as actually referring to \file{isov2.cls}, and similarly for references |
| 399 |
to other files. |
| 400 |
\end{anexample} % end example |
| 401 |
|
| 402 |
|
| 403 |
\begin{note}This document is not intended for publication as a standard, |
| 404 |
although it has been laid out in a |
| 405 |
similar, but not necessarily identical, manner.\end{note} % end note |
| 406 |
|
| 407 |
|
| 408 |
\clause{The \file{iso} class facility} |
| 409 |
|
| 410 |
The \latex{} \file{isov2}\ixclass{isov2} class file |
| 411 |
is a general file for use in preparing ISO |
| 412 |
standard documents using the \latex{} document preparation system. |
| 413 |
|
| 414 |
As usual, any \latex{} document has the following structure: |
| 415 |
\begin{verbatim} |
| 416 |
\documentclass[<list of options>]{isov2} |
| 417 |
% preamble goes here |
| 418 |
\begin{document} |
| 419 |
% document body goes here |
| 420 |
\end{document} |
| 421 |
\end{verbatim} |
| 422 |
|
| 423 |
\sclause{Options} |
| 424 |
|
| 425 |
The \file{isov2}\ixclass{isov2} class file supports the following options: |
| 426 |
\begin{itemize} |
| 427 |
\item \verb|draft|\ixopt{draft} for a draft document where |
| 428 |
overfull horizontal boxes are marked, marginal notes are allowed, |
| 429 |
and ISO copyright text is not placed in the document; |
| 430 |
\item \verb|final|\ixopt{final} the opposite of \verb|draft| |
| 431 |
(this is the default); |
| 432 |
\item \verb|letterpaper|\ixopt{letterpaper} for printing |
| 433 |
on US letter size paper; |
| 434 |
\item \verb|a4paper|\ixopt{a4paper} for printing on A4 |
| 435 |
size paper (this is the default); |
| 436 |
\item \verb|twocolumn|\ixopt{twocolumn} for two column |
| 437 |
formatting; |
| 438 |
\item \verb|onecolumn|\ixopt{onecolumn} for single column |
| 439 |
printing (this is the default); |
| 440 |
\item One of \verb|11pt|, \ixopt{11pt} |
| 441 |
\verb|10pt|, \ixopt{10pt} |
| 442 |
\verb|9pt|\ixopt{9pt} for 11pt, 10pt or 9pt printing |
| 443 |
respectively (the default is \verb|11pt|); |
| 444 |
\item \verb|notcopyright|\ixopt{notcopyright} for |
| 445 |
disabling the printing of copyright notices (this is the default); |
| 446 |
\item \verb|copyright|\ixopt{copyright} enables printing |
| 447 |
of copyright notices; |
| 448 |
\item \verb|is|\ixopt{is} for International Standard documents; |
| 449 |
\item \verb|fdis|\ixopt{fdis} for Final Draft |
| 450 |
International Standard documents; \index{FDIS} |
| 451 |
\item \verb|dis|\ixopt{dis} for Draft |
| 452 |
International Standard documents; \index{DIS} |
| 453 |
\item \verb|cd|\ixopt{cd} for Committee Draft |
| 454 |
standard documents; \index{CD} |
| 455 |
\item \verb|wd|\ixopt{wd} for Working Draft |
| 456 |
standard documents; \index{WD} |
| 457 |
\item \verb|pas|\ixopt{pas} for Publicly Available Specification |
| 458 |
standard documents; |
| 459 |
\item \verb|techrep|\ixopt{techrep} for Technical |
| 460 |
Report standard documents; \index{TR} |
| 461 |
\item \verb|techspec|\ixopt{techspec} for Technical |
| 462 |
Spefication standard documents; \index{TS} |
| 463 |
\item \verb|otherdoc|\ixopt{otherdoc} for documents |
| 464 |
that are not intended to become a standard (this is the default); |
| 465 |
%\item \verb|uglycaption|\ixopt{uglycaption} to produce |
| 466 |
% an ugly style of captioning; |
| 467 |
\item Any other facilities that are available via packages. |
| 468 |
\end{itemize} |
| 469 |
|
| 470 |
When no options are specified, then the result is 11pt, single column |
| 471 |
printing on A4 size paper, without copyright notice and a running header. |
| 472 |
That is, by default, the options set are: |
| 473 |
\verb|final|\ixopt{final}; |
| 474 |
\verb|a4paper|\ixopt{a4paper}; |
| 475 |
\verb|onecolumn|\ixopt{onecolumn}; |
| 476 |
\verb|11pt|\ixopt{11pt}; |
| 477 |
\verb|notcopyright|\ixopt{notcopyright}; and |
| 478 |
\verb|otherdoc|\ixopt{otherdoc}. |
| 479 |
|
| 480 |
|
| 481 |
%\begin{note}ISOD\index{ISOD} calls for 9pt double column printing but the |
| 482 |
% SD\index{SD} calls for 11pt single column printing. |
| 483 |
% Using 9pt double column printing is awkward if any computer |
| 484 |
% code has to |
| 485 |
% be typeset in the document. The IS-REVIEW\index{IS-REVIEW} accepted |
| 486 |
% 11pt single column layout. \end{note} % end note |
| 487 |
%\begin{note}The CRC\index{CRC} states that acceptable founts are: Univers, |
| 488 |
% Helvetica, and Times Roman with the body text in 10pt. |
| 489 |
% The IS-REVIEW accepted camera-ready copy |
| 490 |
% using Computer Modern 11pt set in single column. \end{note} |
| 491 |
\begin{note}The user of the \file{isov2}\ixclass{isov2} class is encouraged |
| 492 |
to process this document using |
| 493 |
different combinations of the options to gain experience with |
| 494 |
their effects. This printing of the document is typeset using the |
| 495 |
\verb|draft|\ixopt{draft} option. |
| 496 |
\end{note} % end note |
| 497 |
\begin{note} |
| 498 |
The \verb|otherdoc|\ixopt{otherdoc} option |
| 499 |
was chosen as the default so that the |
| 500 |
current stage of ISO standardardization has to be explicitly declared |
| 501 |
as an option, and is therefore available to any software package that |
| 502 |
might process the document source (e.g., a \latex{} to SGML translator). |
| 503 |
\end{note} |
| 504 |
|
| 505 |
|
| 506 |
\sclause{Sectioning commands} |
| 507 |
|
| 508 |
Table~\ref{tab:sec} gives the sectioning commands defined for \file{isov2} |
| 509 |
class documents. |
| 510 |
\ixcom{clause} \ixcom{normannex} \ixcom{infannex} \ixcom{repannex} |
| 511 |
\ixcom{sclause} |
| 512 |
\ixcom{ssclause} |
| 513 |
\ixcom{sssclause} |
| 514 |
\ixcom{ssssclause} |
| 515 |
\ixcom{sssssclause} |
| 516 |
|
| 517 |
\begin{table} |
| 518 |
\centering |
| 519 |
\caption{Sectioning commands.} \label{tab:sec} |
| 520 |
\begin{tabular}{|c|l|} \hline |
| 521 |
\textbf{Level} & \textbf{Command} \\ \hline\hline |
| 522 |
1 & \verb|\clause|, \verb|\normannex|, \verb|\infannex|, \verb|\repannex| \\ |
| 523 |
2 & \verb|\sclause| \\ |
| 524 |
3 & \verb|\ssclause| \\ |
| 525 |
4 & \verb|\sssclause| \\ |
| 526 |
5 & \verb|\ssssclause| \\ |
| 527 |
6 & \verb|\sssssclause| \\ \hline |
| 528 |
\end{tabular} |
| 529 |
\end{table} |
| 530 |
|
| 531 |
% The \verb|\section|\ixcom{section} command |
| 532 |
% is similar to the normal \latex{} \verb|\part|\ixcom{part} |
| 533 |
%command. It is only available when the \verb|sect|\ixopt{sect} |
| 534 |
%option is specified. |
| 535 |
|
| 536 |
The \verb|\clause|\ixcom{clause} commands are similar to |
| 537 |
the normal \latex{} \verb|\section|ing |
| 538 |
commands. There are also starred versions of these commands |
| 539 |
(e.g., \verb|\clause*|). |
| 540 |
|
| 541 |
Three varieties of annex\index{annex} commands are available: |
| 542 |
\begin{itemize} |
| 543 |
\item \verb+\normannex{+\meta{title}\verb+}+\ixcom{normannex} |
| 544 |
for a normative annex; |
| 545 |
\item \verb+\infannex{+\meta{title}\verb+}+\ixcom{infannex} |
| 546 |
for an informative annex; |
| 547 |
\item \verb+\repannex{+\meta{title}\verb+}+\ixcom{repannex} |
| 548 |
for an annex that is neither normative or |
| 549 |
informative (e.g. an annex in a technical report). |
| 550 |
\end{itemize} |
| 551 |
|
| 552 |
Only \verb|\sclause|\ixcom{sclause} and lower level |
| 553 |
sectioning commands can be used after |
| 554 |
an annex\index{annex} command. |
| 555 |
|
| 556 |
|
| 557 |
\begin{example} |
| 558 |
The command \verb|\infannex{Technical discussion}|, assuming that this is the first |
| 559 |
annex in the document, produces: |
| 560 |
\begin{center} |
| 561 |
\textbf{Annex A}\\ |
| 562 |
(informative) |
| 563 |
|
| 564 |
\textbf{Technical discussion} |
| 565 |
\end{center} |
| 566 |
\end{example} % end example |
| 567 |
\begin{example} |
| 568 |
The command \verb|\repannex{Title of annex}|, assuming that this is the second |
| 569 |
annex in the document, produces: |
| 570 |
|
| 571 |
\begin{center} |
| 572 |
\textbf{Annex B} |
| 573 |
|
| 574 |
\textbf{Title of annex} |
| 575 |
\end{center} |
| 576 |
\end{example} % end example |
| 577 |
|
| 578 |
|
| 579 |
\ssclause{The use of \texttt{tocdepth} and \texttt{secnumdepth}} |
| 580 |
|
| 581 |
In the standard \latex{} classes the |
| 582 |
\verb|tocdepth|\ixtt{tocdepth} and |
| 583 |
\verb|secnumdepth|\ixtt{secnumdepth} counters |
| 584 |
are set in the preamble\index{preamble} to respectively control the level at |
| 585 |
which clause titles are inserted into a table of contents (ToC)\index{ToC} |
| 586 |
and at which clause numbering ceases. |
| 587 |
|
| 588 |
In the \file{isov2}\ixclass{isov2} class, |
| 589 |
the values of these can be changed at |
| 590 |
any point in the document. The change lasts until another change is |
| 591 |
made to the value. |
| 592 |
\begin{example} |
| 593 |
Assume that in the preamble we have |
| 594 |
\begin{verbatim} |
| 595 |
\setcounter{secnumdepth}{3} % number ssclauses and above |
| 596 |
\setcounter{tocdepth}{3} % ToC includes ssclauses and above |
| 597 |
\end{verbatim} |
| 598 |
and that a certain subclause has subsubclauses that should be numbered but |
| 599 |
not put into the table of contents, then we could do: |
| 600 |
\begin{verbatim} |
| 601 |
... |
| 602 |
\sclause{The certain subclause} |
| 603 |
\setcounter{tocdepth}{2} |
| 604 |
... |
| 605 |
\ssclause{Numbered but not in ToC} |
| 606 |
... |
| 607 |
... |
| 608 |
\setcounter{tocdepth}{3} |
| 609 |
\sclause{Following subclause} |
| 610 |
\end{verbatim} |
| 611 |
|
| 612 |
\end{example} |
| 613 |
|
| 614 |
It can sometimes be difficult to remember which level number corresponds |
| 615 |
to which kind of clause. Accordingly, a set of commands are provided to ease |
| 616 |
this task. These commands can only be used after the preamble. |
| 617 |
\begin{itemize} |
| 618 |
\item \verb|\maxsecnumdepth{|\meta{sec}\verb|}|\ixcom{maxsecnumdepth} |
| 619 |
sets the level at which clauses will be numbered. This command |
| 620 |
should be used before the first sectioning command. |
| 621 |
\item \verb|\maxtocdepth{|\meta{sec}\verb|}|\ixcom{maxtocdepth} |
| 622 |
sets the level at which clauses will be put into the ToC. |
| 623 |
This command should be used before the \verb|\tableofcontents| command. |
| 624 |
\item \verb|\setsecnumdepth{|\meta{sec}\verb|}|\ixcom{setsecnumdepth} |
| 625 |
sets the current level at which clauses will be numbered. |
| 626 |
This command can be used anywhere after the preamble. |
| 627 |
\item \verb|\settocdepth{|\meta{sec}\verb|}|\ixcom{settocdepth} |
| 628 |
sets the current level at which clauses will put into the ToC. |
| 629 |
This command can be used anywhere after the preamble. |
| 630 |
\end{itemize} |
| 631 |
The value of the argument \meta{sec} can be any of the following: |
| 632 |
\texttt{clause}, \texttt{sclause}, \ldots, \texttt{sssssclause}. |
| 633 |
|
| 634 |
\begin{example} |
| 635 |
Using these commands, the previous example can also be coded as: |
| 636 |
\begin{verbatim} |
| 637 |
... |
| 638 |
\begin{document} |
| 639 |
\maxsecnumdepth{ssclause} |
| 640 |
\maxtocdepth{ssclause} |
| 641 |
... |
| 642 |
\sclause{The certain subclause} |
| 643 |
\settocdepth{sclause} |
| 644 |
... |
| 645 |
\ssclause{Numbered but not in ToC} |
| 646 |
... |
| 647 |
... |
| 648 |
\settocdepth{ssclause} |
| 649 |
\sclause{Following subclause} |
| 650 |
\end{verbatim} |
| 651 |
|
| 652 |
\end{example} |
| 653 |
|
| 654 |
|
| 655 |
|
| 656 |
\sclause{LaTeX environments and commands} |
| 657 |
|
| 658 |
Many of the standard \latex{} environments and commands are available. |
| 659 |
In particular, all the normal mathematical typesetting capabilities are |
| 660 |
present. |
| 661 |
However, there are some additional environments and commands defined. |
| 662 |
|
| 663 |
\ssclause{Lists} |
| 664 |
|
| 665 |
The standard \latex{} \verb|itemize|,\ixenv{itemize} |
| 666 |
\verb|enumerate|\ixenv{enumerate} and \verb|description|\ixenv{description} |
| 667 |
environments are provided. The labels in these lists, though, differ from |
| 668 |
those normally provided by \latex. |
| 669 |
|
| 670 |
\begin{note} |
| 671 |
The ISOD describes only a single level for an itemized list, being marked |
| 672 |
with either an em-dash or a bullet. The SD deprecates the bullet but |
| 673 |
provides four levels, each being marked with an em-dash. These are |
| 674 |
provided in the \file{isov2} class. |
| 675 |
\end{note} |
| 676 |
\begin{note} |
| 677 |
The ISOD allows for two levels of enumerated lists. The SD extends this |
| 678 |
to four levels, and these are provided in the \file{isov2} class. |
| 679 |
\end{note} |
| 680 |
|
| 681 |
\begin{example} |
| 682 |
The list environments provided are shown below as:\ixenv{itemize} |
| 683 |
\begin{verbatim} |
| 684 |
\begin{itemize} |
| 685 |
\item First level itemized element; |
| 686 |
\begin{itemize} |
| 687 |
\item Second level itemized element; |
| 688 |
\begin{itemize} |
| 689 |
\item Third level itemized element; |
| 690 |
\begin{itemize} |
| 691 |
\item Fourth level itemized element. |
| 692 |
\end{itemize} |
| 693 |
\end{itemize} |
| 694 |
\end{itemize} |
| 695 |
\end{itemize} |
| 696 |
\end{verbatim} |
| 697 |
|
| 698 |
\ixenv{enumerate} |
| 699 |
\begin{verbatim} |
| 700 |
\begin{enumerate} |
| 701 |
\item First level enumerated element; |
| 702 |
\begin{enumerate} |
| 703 |
\item Second level enumerated element; |
| 704 |
\begin{enumerate} |
| 705 |
\item Third level enumerated element; |
| 706 |
\begin{enumerate} |
| 707 |
\item Fourth level enumerated element. |
| 708 |
\end{enumerate} |
| 709 |
\end{enumerate} |
| 710 |
\end{enumerate} |
| 711 |
\end{enumerate} |
| 712 |
\end{verbatim} |
| 713 |
|
| 714 |
\ixenv{description} |
| 715 |
\begin{verbatim} |
| 716 |
\begin{description} |
| 717 |
\item[Description] a description element. Note that a colon is |
| 718 |
automatically added to the item label. |
| 719 |
\end{description} |
| 720 |
\end{verbatim} |
| 721 |
and they produce |
| 722 |
\begin{itemize} |
| 723 |
\item First level itemized element; |
| 724 |
\begin{itemize} |
| 725 |
\item Second level itemized element; |
| 726 |
\begin{itemize} |
| 727 |
\item Third level itemized element; |
| 728 |
\begin{itemize} |
| 729 |
\item Fourth level itemized element. |
| 730 |
\end{itemize} |
| 731 |
\end{itemize} |
| 732 |
\end{itemize} |
| 733 |
\end{itemize} |
| 734 |
|
| 735 |
\begin{enumerate} |
| 736 |
\item First level enumerated element; |
| 737 |
\begin{enumerate} |
| 738 |
\item Second level enumerated element; |
| 739 |
\begin{enumerate} |
| 740 |
\item Third level enumerated element; |
| 741 |
\begin{enumerate} |
| 742 |
\item Fourth level enumerated element. |
| 743 |
\end{enumerate} |
| 744 |
\end{enumerate} |
| 745 |
\end{enumerate} |
| 746 |
\end{enumerate} |
| 747 |
|
| 748 |
\begin{description} |
| 749 |
\item[Description] a description element. Note that a colon is |
| 750 |
automatically added to the item label. |
| 751 |
\end{description} |
| 752 |
|
| 753 |
\end{example} % end example |
| 754 |
|
| 755 |
\begin{example} |
| 756 |
Here is a more complex set of lists: |
| 757 |
|
| 758 |
\begin{itemize} |
| 759 |
\item First level itemization |
| 760 |
\begin{enumerate} |
| 761 |
\item First level enumeration |
| 762 |
\begin{itemize} |
| 763 |
\item Second level itemization |
| 764 |
\begin{enumerate} |
| 765 |
\item Second level enumeration |
| 766 |
\begin{itemize} |
| 767 |
\item Third level itemization |
| 768 |
% \begin{enumerate} % At this point the list is too deeply nested. |
| 769 |
% \item Third level enumeration % For the TeXnophile this is |
| 770 |
% \item 3rd level enumeration % because the example environment |
| 771 |
% \end{enumerate} % is itself a list. |
| 772 |
\item 3rd level itemization |
| 773 |
\end{itemize} |
| 774 |
\item 2nd level enumeration |
| 775 |
\end{enumerate} |
| 776 |
\item 2nd level itemization |
| 777 |
\end{itemize} |
| 778 |
\item 1st level enumeration |
| 779 |
\end{enumerate} |
| 780 |
\item 1st level itemization |
| 781 |
\end{itemize} |
| 782 |
|
| 783 |
\end{example} % end example |
| 784 |
|
| 785 |
\begin{note} |
| 786 |
On occasion, \latex{} objects to a well formed list. Typically, this happens |
| 787 |
when a list has only one entry. \index{list!error} |
| 788 |
The \latex{} error message is of the form: |
| 789 |
\begin{verbatim} |
| 790 |
! Something's wrong--perhaps a missing \item. |
| 791 |
\end{verbatim} |
| 792 |
Hitting the \verb|<return>| key usually gets \latex{} to run on happily. |
| 793 |
\end{note}% end note |
| 794 |
\begin{note} |
| 795 |
Similarly, you may get the message |
| 796 |
\begin{verbatim} |
| 797 |
! Too deeply nested |
| 798 |
\end{verbatim} |
| 799 |
Again, hit \verb|<return>| and processing should continue. However, |
| 800 |
the indentation of later lists may not be correct. |
| 801 |
\end{note} % end note |
| 802 |
|
| 803 |
|
| 804 |
\ssclause{Notes} |
| 805 |
|
| 806 |
|
| 807 |
Two different kinds of environments are provided for typesetting notes. |
| 808 |
|
| 809 |
\sssclause{Numbered notes} |
| 810 |
|
| 811 |
The environment |
| 812 |
\verb+\begin{note}+ \meta{text} \verb+\end{note}+\ixenv{note} |
| 813 |
produces a numbered note whose body consists |
| 814 |
of \meta{text}. |
| 815 |
|
| 816 |
\begin{anexample} |
| 817 |
The commands |
| 818 |
\begin{verbatim} |
| 819 |
\begin{note}Numbered note.\end{note} |
| 820 |
\end{verbatim} |
| 821 |
produce |
| 822 |
|
| 823 |
\begin{note}Numbered note.\end{note} |
| 824 |
\end{anexample} |
| 825 |
|
| 826 |
\sssclause{Isolated notes} |
| 827 |
|
| 828 |
The environment |
| 829 |
\verb+\begin{anote}+ \meta{text} \verb+\end{anote}+\ixenv{anote} |
| 830 |
produces an un-numbered note whose body |
| 831 |
consists of \meta{text}. |
| 832 |
|
| 833 |
\begin{anexample} |
| 834 |
The commands |
| 835 |
\begin{verbatim} |
| 836 |
\begin{anote}Plain note.\end{anote} |
| 837 |
\end{verbatim} |
| 838 |
produce |
| 839 |
|
| 840 |
\begin{anote}Plain note.\end{anote} |
| 841 |
\end{anexample} % end example |
| 842 |
|
| 843 |
|
| 844 |
\ssclause{Examples} \label{ssc:ex} |
| 845 |
|
| 846 |
Two different kinds of environments are provided for typesetting |
| 847 |
examples. |
| 848 |
|
| 849 |
\sssclause{Numbered examples} \label{cl:numex} |
| 850 |
|
| 851 |
The environment \verb?\begin{example}? \meta{text} \verb?\end{example}? |
| 852 |
produces a numbered example whose body consists of \meta{text}. |
| 853 |
|
| 854 |
\begin{anexample} |
| 855 |
The commands |
| 856 |
\begin{verbatim} |
| 857 |
\begin{example}Numbered example. \label{ex:exref} \end{example} |
| 858 |
\end{verbatim} |
| 859 |
produce |
| 860 |
|
| 861 |
\begin{example}Numbered example. \label{ex:exref} \end{example} |
| 862 |
\end{anexample} |
| 863 |
|
| 864 |
\begin{anote} |
| 865 |
Numbered examples (and numbered notes) may be identified using the |
| 866 |
\verb?\label{...}?\ixcom{label} command, as exhibited in \eref{ex:exref} |
| 867 |
in \ref{cl:numex}, and then referred to by the |
| 868 |
\verb?\ref{...}?\ixcom{ref} command. |
| 869 |
\end{anote} |
| 870 |
|
| 871 |
\sssclause{Isolated examples} |
| 872 |
|
| 873 |
The environment \verb?\begin{anexample}? \meta{text} \verb?\end{anexample}? |
| 874 |
produces an un-numbered example whose body consists of \meta{text}. |
| 875 |
\ixenv{anexample} |
| 876 |
|
| 877 |
\begin{anexample} |
| 878 |
The commands |
| 879 |
\begin{verbatim} |
| 880 |
\begin{anexample}Isolated example.\end{anexample} |
| 881 |
\end{verbatim} |
| 882 |
produce |
| 883 |
|
| 884 |
\begin{anexample}Isolated example.\end{anexample} |
| 885 |
\end{anexample} |
| 886 |
|
| 887 |
|
| 888 |
|
| 889 |
\ssclause{Bibliographic references} |
| 890 |
|
| 891 |
Two different kinds of environments are provided for bibliographic |
| 892 |
references. It should be noted that neither of these has anything to do with |
| 893 |
BibTeX.\index{BibTeX} |
| 894 |
|
| 895 |
\sssclause{Normative references} |
| 896 |
|
| 897 |
Normative references are listed in the |
| 898 |
\verb|nreferences|\ixenv{nreferences} environment. |
| 899 |
|
| 900 |
In this environment, bibliographic entries are denoted by either |
| 901 |
\verb+\isref{+\meta{ref}\verb+}{+\meta{title}\verb+}+ or by |
| 902 |
\verb+\disref{+\meta{ref}\verb+}{+\meta{title}\verb+}+. The |
| 903 |
\meta{ref} parameter is the number of the standard document and |
| 904 |
the \meta{title} parameter is the title of the standard. |
| 905 |
|
| 906 |
Use the \verb|\isref|\ixcom{isref} command for published standards |
| 907 |
and the \verb|\disref|\ixcom{disref} |
| 908 |
command for documents that have not yet been |
| 909 |
finally approved as a standard. This latter command automatically adds a |
| 910 |
footnote to the effect that the document is |
| 911 |
to be published. |
| 912 |
|
| 913 |
\begin{example} |
| 914 |
The \latex{} source for the references in clause~\ref{sec:nrefs} of |
| 915 |
this document is: |
| 916 |
\begin{verbatim} |
| 917 |
\begin{nreferences} |
| 918 |
\isref{ISO/IEC Directives, Part 2}{Rules for the structure and drafting of |
| 919 |
International Standards. (Fourth edition, 2001)} |
| 920 |
... |
| 921 |
... |
| 922 |
\disref{ISO}{Camera-ready copy (CRC) --- |
| 923 |
Submission requirements and ISO type specification. |
| 924 |
(Version 1.0, 1996-04-26)} |
| 925 |
\end{nreferences} |
| 926 |
\end{verbatim} |
| 927 |
\end{example} % end example |
| 928 |
|
| 929 |
|
| 930 |
\sssclause{Informative references} |
| 931 |
|
| 932 |
Informative bibliography elements are listed in the |
| 933 |
\verb|references|\ixenv{references} environment. |
| 934 |
Each element in the list is specified as |
| 935 |
\verb+\reference{+\meta{author}\verb+}{+\meta{title}\verb+}{+\meta{publisher}\verb+}+.\ixcom{reference} |
| 936 |
|
| 937 |
\begin{example} |
| 938 |
The \latex{} source for the bibliography in one version of this document was: |
| 939 |
\begin{verbatim} |
| 940 |
\infannex{Bibliography} |
| 941 |
\begin{references} |
| 942 |
\reference{LAMPORT, L.,}{\latex\/ A Document Preparation System,}% |
| 943 |
{Addison-Wesley Publishing Co., 1986} \label{lamport} |
| 944 |
\reference{GOOSSENS, M., MITTELBACH, F. and SAMARIN, A.,}{% |
| 945 |
The \latex\/ Companion,} |
| 946 |
Addison-Wesley Publishing Co., 1994} \label{goosens} |
| 947 |
\reference{CHEN, P. and HARRISON, M.A.,}{Index preparation and |
| 948 |
processing,}{Software--Practice and Experience, 19(9):897--915, |
| 949 |
September 1988.} \label{chen} |
| 950 |
.... |
| 951 |
\end{references} |
| 952 |
|
| 953 |
\end{verbatim} |
| 954 |
\end{example} % end example |
| 955 |
|
| 956 |
Informative references may be cited in the text via the \latex{} |
| 957 |
\verb|\label|\ixcom{label} and \verb|\ref|\ixcom{ref} |
| 958 |
mechanism. Note that \verb|\cite|\ixcom{cite} is not available |
| 959 |
for references to bibliographic items. For the purposes of |
| 960 |
ISO documents, the command |
| 961 |
\verb+\bref{+\meta{ref}\verb+}+\ixcom{bref} |
| 962 |
is supplied which |
| 963 |
properly formats a bibliographic reference. |
| 964 |
|
| 965 |
\ssclause{Listing of scope items} |
| 966 |
|
| 967 |
The \verb|inscope|\ixenv{inscope} and |
| 968 |
\verb|outofscope|\ixenv{outofscope} |
| 969 |
environments are provided for itemized listing of elements that |
| 970 |
are within and outside the scope of the standard. Each list |
| 971 |
element is introduced via the \verb|\item|\ixcom{item} command. |
| 972 |
Some boilerplate |
| 973 |
text is also printed that introduces the scope list. |
| 974 |
|
| 975 |
The environments take one parameter, \meta{text}, that must read |
| 976 |
naturally in a sentence of the form: `The following are within/outside |
| 977 |
the scope of this \meta{text}:'. The non-parameterized part of this |
| 978 |
sentence is specified by the commands |
| 979 |
|\verb|\inscopename|\ixcom{inscopename} and |
| 980 |
\verb|\outofscopename|\ixcom{outofscopename} |
| 981 |
respectively for `within' and `outside'. |
| 982 |
|
| 983 |
\begin{example}The following text was printed by the commands shown at the |
| 984 |
end of the example. |
| 985 |
|
| 986 |
\begin{inscope}{part of ISO~10303} |
| 987 |
\item use of \latex{} for preparing ISO standard documents; |
| 988 |
\item use of \latex{} for preparing ISO~10303 documents. |
| 989 |
\end{inscope} |
| 990 |
|
| 991 |
\begin{outofscope}{part of ISO~10303} |
| 992 |
\item use of \latex{} in general; |
| 993 |
\item use of other document preparation systems. |
| 994 |
\end{outofscope} |
| 995 |
|
| 996 |
\begin{verbatim} |
| 997 |
\begin{inscope}{part of ISO~10303} |
| 998 |
\item use of \latex{} for preparing ISO standard documents; |
| 999 |
\item use of \latex{} for preparing ISO~10303 documents. |
| 1000 |
\end{inscope} |
| 1001 |
|
| 1002 |
\begin{outofscope}{part of ISO~10303} |
| 1003 |
\item use of \latex{} in general; |
| 1004 |
\item use of other document preparation systems. |
| 1005 |
\end{outofscope} |
| 1006 |
\end{verbatim} |
| 1007 |
|
| 1008 |
\end{example} % end example |
| 1009 |
|
| 1010 |
\ssclause{Listing of definitions} |
| 1011 |
|
| 1012 |
The \verb|\begin{olddefinitions}| \ldots \verb|\end{olddefinitions}| |
| 1013 |
\ixenv{olddefinitions} environment is provided for |
| 1014 |
listing terms that have been defined within |
| 1015 |
the normatively referenced documents. Each term in the list is specified as: \\ |
| 1016 |
\verb+\olddefinition{+\meta{phrase}\verb+}{+\meta{supplement}\verb+}+\ixcom{olddefinition}. |
| 1017 |
|
| 1018 |
|
| 1019 |
The \verb|\begin{definitions}| \ldots \verb|\end{definitions}| |
| 1020 |
\ixenv{definitions} environment is provided for listing |
| 1021 |
the definitions of terms specific to the |
| 1022 |
document being written. Each term in the |
| 1023 |
list is specified as: \ixcom{definition} \\ |
| 1024 |
\verb+\definition{+\meta{phrase}\verb+}{+\meta{definition text}\verb+}+. |
| 1025 |
|
| 1026 |
|
| 1027 |
\begin{example}A listing of terms defined elsewhere could be specified as: |
| 1028 |
|
| 1029 |
\begin{verbatim} |
| 1030 |
\begin{olddefinitions} |
| 1031 |
\olddefinition{application protocol (AP)}{} |
| 1032 |
\olddefinition{integrated resource}{} |
| 1033 |
\end{olddefinitions} |
| 1034 |
\end{verbatim} |
| 1035 |
\end{example} % end example |
| 1036 |
\begin{example}The definition listing earlier in this document was produced by: |
| 1037 |
|
| 1038 |
\begin{verbatim} |
| 1039 |
\begin{definitions} |
| 1040 |
\definition{boilerplate}{text whose wording is fixed ...} |
| 1041 |
\definition{style file}{a set of \latex{} macros assembled |
| 1042 |
into a single file} |
| 1043 |
... |
| 1044 |
\end{definitions} |
| 1045 |
\end{verbatim} |
| 1046 |
\end{example} % end example |
| 1047 |
|
| 1048 |
|
| 1049 |
\ssclause{Listing of abbreviations} |
| 1050 |
|
| 1051 |
The \verb|\begin{symbols}| \ldots \verb|\end{symbols}|\ixenv{symbols} |
| 1052 |
environment is provided for listing symbols |
| 1053 |
and abbreviations. Each term (either symbol or abbreviation) in the list is |
| 1054 |
specified as: \ixcom{symboldef} \\ |
| 1055 |
\verb+\symboldef{+\meta{symbol}\verb+}{+\meta{definition text}\verb+}+. |
| 1056 |
|
| 1057 |
\begin{example}The list of abbreviations earlier in this document was specified as: |
| 1058 |
\begin{verbatim} |
| 1059 |
\begin{symbols} |
| 1060 |
\symboldef{DIS}{Draft International Standard} |
| 1061 |
\symboldef{IS}{International Standard} |
| 1062 |
... |
| 1063 |
\end{symbols} |
| 1064 |
\end{verbatim} |
| 1065 |
\end{example} % end example |
| 1066 |
|
| 1067 |
\sclause{Floating bodies} |
| 1068 |
|
| 1069 |
\latex{} provides the \verb|figure|\ixenv{figure} |
| 1070 |
and \verb|table|\ixenv{table} environments. |
| 1071 |
Captions (produced by the \verb|\caption|\ixcom{caption} |
| 1072 |
command) increment the figure or |
| 1073 |
table number and add the caption to the relevant contents listing file. |
| 1074 |
|
| 1075 |
\index{floats} \index{floats!continuation} |
| 1076 |
|
| 1077 |
The command |
| 1078 |
\verb+\contcaption{+\meta{text}\verb+}+\ixcom{contcaption} |
| 1079 |
may be used instead. This command neither increments the number nor adds |
| 1080 |
anything to the listing files. |
| 1081 |
|
| 1082 |
\begin{example} |
| 1083 |
The following code: |
| 1084 |
\begin{verbatim} |
| 1085 |
\begin{table}[tbp] |
| 1086 |
\centering |
| 1087 |
\caption{Example table in three parts} \label{tab:cont} |
| 1088 |
\begin{tabular}{|c|c|} \hline |
| 1089 |
\textbf{Col 1} & \textbf{Col 2} \\ \hline\hline |
| 1090 |
A & 1 \\ |
| 1091 |
B & 2 \\ \hline |
| 1092 |
\end{tabular} |
| 1093 |
\end{table} |
| 1094 |
|
| 1095 |
\begin{table}[tbp] |
| 1096 |
\centering |
| 1097 |
\contcaption{(continued)} |
| 1098 |
\begin{tabular}{|c|c|} \hline |
| 1099 |
\textbf{Col 1} & \textbf{Col 2} \\ \hline\hline |
| 1100 |
C & 3 \\ |
| 1101 |
D & 4 \\ \hline |
| 1102 |
\end{tabular} |
| 1103 |
\end{table} |
| 1104 |
|
| 1105 |
\begin{table}[tbp] |
| 1106 |
\centering |
| 1107 |
\contcaption{(concluded)} |
| 1108 |
\begin{tabular}{|c|c|} \hline |
| 1109 |
\textbf{Col 1} & \textbf{Col 2} \\ \hline\hline |
| 1110 |
E & 5 \\ |
| 1111 |
F & 6 \\ \hline |
| 1112 |
\end{tabular} |
| 1113 |
\end{table} |
| 1114 |
\end{verbatim} |
| 1115 |
produces the three-part \tref{tab:cont}. \end{example} %end example |
| 1116 |
|
| 1117 |
\begin{table}[tbp] |
| 1118 |
\centering |
| 1119 |
\caption{Example table in three parts} \label{tab:cont} |
| 1120 |
\begin{tabular}{|c|c|} \hline |
| 1121 |
\textbf{Col 1} & \textbf{Col 2} \\ \hline\hline |
| 1122 |
A & 1 \\ |
| 1123 |
B & 2 \\ \hline |
| 1124 |
\end{tabular} |
| 1125 |
\end{table} |
| 1126 |
|
| 1127 |
\begin{table}[tbp] |
| 1128 |
\centering |
| 1129 |
\contcaption{(continued)} |
| 1130 |
\begin{tabular}{|c|c|} \hline |
| 1131 |
\textbf{Col 1} & \textbf{Col 2} \\ \hline\hline |
| 1132 |
C & 3 \\ |
| 1133 |
D & 4 \\ \hline |
| 1134 |
\end{tabular} |
| 1135 |
\end{table} |
| 1136 |
|
| 1137 |
\begin{table}[tbp] |
| 1138 |
\centering |
| 1139 |
\contcaption{(concluded)} |
| 1140 |
\begin{tabular}{|c|c|} \hline |
| 1141 |
\textbf{Col 1} & \textbf{Col 2} \\ \hline\hline |
| 1142 |
E & 5 \\ |
| 1143 |
F & 6 \\ \hline |
| 1144 |
\end{tabular} |
| 1145 |
\end{table} |
| 1146 |
|
| 1147 |
\sclause{Title command} |
| 1148 |
|
| 1149 |
|
| 1150 |
The command to produce the title of the standard\ixcom{title} |
| 1151 |
is |
| 1152 |
\verb+\title{+\meta{intro}\verb+}{+\meta{main}\verb+}{+\meta{compl}\verb+}+. |
| 1153 |
The command takes three parameters |
| 1154 |
according to the three elements of the title as specified in the ISO directives. |
| 1155 |
\begin{enumerate} |
| 1156 |
\item \meta{intro} The introductory element of the title. This may be empty. |
| 1157 |
\item \meta{main} The main element of the title. |
| 1158 |
\item \meta{compl} The complementary element of the title. This may be empty. |
| 1159 |
\end{enumerate} |
| 1160 |
|
| 1161 |
\begin{example} |
| 1162 |
If this were actually meant to be an ISO standard, then the \latex{} source |
| 1163 |
for the title of this document might be: |
| 1164 |
\begin{verbatim} |
| 1165 |
\title{Industrial automation systems and integration}% |
| 1166 |
{Product data representation and exchange}% |
| 1167 |
{Part 3456 : Documentation methods: The LaTeX style |
| 1168 |
file reference manual} |
| 1169 |
\end{verbatim} |
| 1170 |
\end{example} % end example |
| 1171 |
|
| 1172 |
\begin{anote}There must be a space on either side of the colon separating the |
| 1173 |
part number and the final part of the title. |
| 1174 |
\end{anote}% end of note |
| 1175 |
|
| 1176 |
Three other commands are used for setting the running header throughout the |
| 1177 |
document. These shall be placed in the preamble.\index{preamble} |
| 1178 |
|
| 1179 |
The command \verb+\standard{+\meta{number of standard}\verb+}+ is used to identify |
| 1180 |
the standard.\ixcom{standard} |
| 1181 |
|
| 1182 |
The command \verb+\yearofedition{+\meta{year}\verb+}+ is used to identify the |
| 1183 |
\ixcom{yearofedition} year of the edition. |
| 1184 |
|
| 1185 |
The command |
| 1186 |
\verb+\languageofedition{+\meta{code}\verb+}+\ixcom{languageofedition} |
| 1187 |
is used to identify the language of the edition. |
| 1188 |
|
| 1189 |
\begin{example} |
| 1190 |
This document is identified by: |
| 1191 |
\begin{verbatim} |
| 1192 |
\standard{LaTeX for standards} |
| 1193 |
\yearofedition{1997} |
| 1194 |
\languageofedition{(E)} |
| 1195 |
\end{verbatim} |
| 1196 |
\end{example} % end of example |
| 1197 |
|
| 1198 |
As a convenience the vacuous command \verb+\extrahead+\ixcom{extrahead} |
| 1199 |
is supplied which will add it's contents, if any, to the header. It may |
| 1200 |
be used, for example, to add a document number to the header by |
| 1201 |
\verb+\renewcommand{\extrahead}{Doc number}+. If \verb+\extrahead+ is |
| 1202 |
modified it must be done in the preamble. |
| 1203 |
|
| 1204 |
The \verb|\title|\ixcom{title} command sets the page numbering |
| 1205 |
style to be arabic, |
| 1206 |
starts a new page, numbered 1, and puts the title |
| 1207 |
at the start of the page. It also puts the appropriate header at the top |
| 1208 |
of the page, dependending on the particular combination of selected |
| 1209 |
options. |
| 1210 |
|
| 1211 |
\begin{anote} |
| 1212 |
Remember that you have to use the \verb|copyright|\ixopt{copyright} |
| 1213 |
option to enable printing of copyright symbols and notices. |
| 1214 |
\end{anote} |
| 1215 |
|
| 1216 |
\ssclause{The cover} |
| 1217 |
|
| 1218 |
For publication, ISO want to be supplied with a document starting |
| 1219 |
on page iii with the ToC. They supply the cover (page i) and page ii. |
| 1220 |
|
| 1221 |
It can often be useful to have a cover page for documents while they |
| 1222 |
are in the process of being prepared for submittal to ISO. |
| 1223 |
The \verb+cover+\ixenv{cover} environment is provided for that |
| 1224 |
purpose. The contents of the environment must not exceed one page and the |
| 1225 |
contents must have a \verb+\clearpage+\ixcom{clearpage} immediately before |
| 1226 |
the end. The \verb+cover+ environment also prints page ii, which has a |
| 1227 |
copyright notice on it if the document is copyrighted. |
| 1228 |
|
| 1229 |
For example, this document starts with: |
| 1230 |
\begin{verbatim} |
| 1231 |
\begin{cover} |
| 1232 |
\vspace*{4in} |
| 1233 |
\begin{center} |
| 1234 |
\Huge\bfseries LaTeX for standards |
| 1235 |
\end{center} |
| 1236 |
\begin{center} |
| 1237 |
\bfseries 2001/07/06 |
| 1238 |
\end{center} |
| 1239 |
\begin{center} |
| 1240 |
Peter Wilson \\ |
| 1241 |
\texttt{[email protected]} |
| 1242 |
\end{center} |
| 1243 |
\clearpage |
| 1244 |
\end{cover} |
| 1245 |
\end{verbatim} |
| 1246 |
|
| 1247 |
\sclause{Cross referencing commands} |
| 1248 |
|
| 1249 |
The usual \latex{} \verb+\label+\ixcom{label} and |
| 1250 |
\verb+\ref+\ixcom{ref} commands are supported. The class also |
| 1251 |
provides some formatted referencing commands in addition to \verb+\ref+. |
| 1252 |
|
| 1253 |
The following commands are useful for referring to figures, clauses etc. |
| 1254 |
Each takes a parameter that is the parameter of a \latex{} \verb|\label{}| |
| 1255 |
command. |
| 1256 |
|
| 1257 |
\begin{itemize} |
| 1258 |
\item The command \verb|`\aref{anx:lord}'|\ixcom{aref} prints `\aref{anx:lord}' |
| 1259 |
while \verb|`\ref{anx:lord}'|\ixcom{ref} |
| 1260 |
prints `\ref{anx:lord}' |
| 1261 |
\item The command \verb|`\bref{lamport}'|\ixcom{bref} prints `\bref{lamport}' |
| 1262 |
while \verb|`\ref{lamport}'|\ixcom{ref} |
| 1263 |
prints `\ref{lamport}' |
| 1264 |
\item The command \verb|`\cref{sec:nrefs}'|\ixcom{cref} prints `\cref{sec:nrefs}' |
| 1265 |
while \verb|`\ref{sec:nrefs}'|\ixcom{ref} |
| 1266 |
prints `\ref{sec:nrefs}' |
| 1267 |
\item The command \verb|`\eref{sec:nrefs}'|\ixcom{eref} prints `\eref{sec:nrefs}' |
| 1268 |
while \verb|`\ref{sec:nrefs}'|\ixcom{ref} |
| 1269 |
prints `\ref{sec:nrefs}' |
| 1270 |
\item The command \verb|`\fref{sec:nrefs}'|\ixcom{fref} prints `\fref{sec:nrefs}' |
| 1271 |
while \verb|`\ref{sec:nrefs}'|\ixcom{ref} |
| 1272 |
prints `\ref{sec:nrefs}' |
| 1273 |
\item The command \verb|`\nref{sec:nrefs}'|\ixcom{nref} prints `\nref{sec:nrefs}' |
| 1274 |
while \verb|`\ref{sec:nrefs}'|\ixcom{ref} |
| 1275 |
prints `\ref{sec:nrefs}' |
| 1276 |
\item The command \verb|`\tref{sec:nrefs}'|\ixcom{tref} prints `\tref{sec:nrefs}' |
| 1277 |
while \verb|`\ref{sec:nrefs}'|\ixcom{ref} |
| 1278 |
prints `\ref{sec:nrefs}' |
| 1279 |
\item The command \verb|`\pref{sec:nrefs}'|\ixcom{pref} prints |
| 1280 |
`\pref{sec:nrefs}'. |
| 1281 |
\end{itemize} |
| 1282 |
|
| 1283 |
|
| 1284 |
|
| 1285 |
|
| 1286 |
\sclause{Heading commands} |
| 1287 |
|
| 1288 |
\ssclause{Foreword} |
| 1289 |
|
| 1290 |
The \verb|foreword|\ixenv{foreword} environment specifies |
| 1291 |
that a table of contents, list of |
| 1292 |
figures and list of tables be produced, and starts a new unnumbered |
| 1293 |
clause called Foreword. |
| 1294 |
Formatting is one column style only and roman page numbering is set. The |
| 1295 |
table of contents starts on page iii. |
| 1296 |
|
| 1297 |
More precisely, the title of the clause is given by the value of |
| 1298 |
\verb|\forewordname|\ixcom{forewordname} (see \aref{anx:extraiso}). |
| 1299 |
|
| 1300 |
\begin{note} |
| 1301 |
The default style only lists level 1 clauses in the table of contents. If you |
| 1302 |
need a more detailed listing, then put the command |
| 1303 |
\verb|\setcounter{tocdepth}{<level #>}|\ixcom{setcounter}\ixtt{tocdepth} |
| 1304 |
in the preamble.\index{preamble} |
| 1305 |
For example \verb|\setcounter{tocdepth}{3}| will produce a contents |
| 1306 |
listing down to the level of \verb|\ssclause| (see \tref{tab:sec} for |
| 1307 |
the definitions of clause levels). |
| 1308 |
\end{note} %end note |
| 1309 |
|
| 1310 |
The command \verb+\fwdbp+\ixcom{fwdbp} prints the |
| 1311 |
ISO specified boilerplate for |
| 1312 |
the initial paragraphs of a foreword. |
| 1313 |
|
| 1314 |
The boilerplate for a Technical Specification (ISO/TS) or a |
| 1315 |
Publicly Available Specification (ISO/PAS) differs from that |
| 1316 |
for a standard. The command \verb|\tspasfwdbp|\ixcom{tspasfwdbp} |
| 1317 |
prints some of this boilerplate. |
| 1318 |
\begin{example} |
| 1319 |
In this document, \verb|\tspasfwdbp| prints: |
| 1320 |
|
| 1321 |
\tspasfwdbp |
| 1322 |
\end{example} |
| 1323 |
\begin{note} |
| 1324 |
The required paragraph immediately following this boilerplate is: |
| 1325 |
|
| 1326 |
ISO/PAS [or ISO/TS] \ldots was prepared by Technical Committee ISO/TC \ldots |
| 1327 |
\end{note} |
| 1328 |
|
| 1329 |
%% The boilerplate for a Technical Report (TR) also differs from that for |
| 1330 |
%%a standard. |
| 1331 |
%%The command \verb|\trfwdbpi|\ixcom{trfwdbpi} |
| 1332 |
%%prints some of this boilerplate. |
| 1333 |
%%\begin{example} |
| 1334 |
%%In this document, \verb|\trfwdbpi| prints: |
| 1335 |
%% |
| 1336 |
%%\trfwdbpi |
| 1337 |
%%\end{example} |
| 1338 |
|
| 1339 |
The \verb|\fwdnopatents|\ixcom{fwdnopatents} |
| 1340 |
prints out the Foreword |
| 1341 |
boilerplate paragraph concerning potential patent rights. |
| 1342 |
\begin{example} |
| 1343 |
In this document, \verb|\fwdnopatents| prints: |
| 1344 |
\fwdnopatents |
| 1345 |
\end{example} |
| 1346 |
|
| 1347 |
|
| 1348 |
|
| 1349 |
\ssclause{Introduction} |
| 1350 |
|
| 1351 |
The \verb|introduction|\ixenv{introduction} environment |
| 1352 |
starts a new unnumbered clause |
| 1353 |
called `Introduction' with one column formatting. |
| 1354 |
|
| 1355 |
More precisely, the title of the clause is given by the value of |
| 1356 |
\verb|\introductionname|\ixcom{introductionname} (see \aref{anx:extraiso}). |
| 1357 |
|
| 1358 |
The \verb|\intropatents|\ixcom{intropatents} prints some of the |
| 1359 |
patent boilerplate that may be required in the Introduction. |
| 1360 |
\begin{anexample} |
| 1361 |
In this document, \verb|\intropatents| prints: |
| 1362 |
\fwdnopatents |
| 1363 |
\end{anexample} |
| 1364 |
|
| 1365 |
|
| 1366 |
\ssclause{Scope clause} |
| 1367 |
|
| 1368 |
The \verb|\scopeclause|\ixcom{scopeclause} |
| 1369 |
command starts a new numbered clause called `Scope', which is given |
| 1370 |
the label \verb|;i1|\index{;i1}. |
| 1371 |
|
| 1372 |
More precisely, the title of the clause is given by the value of |
| 1373 |
\verb|\scopename|\ixcom{scopename} (see \aref{anx:extraiso}). |
| 1374 |
|
| 1375 |
\ssclause{Normative references clause} |
| 1376 |
|
| 1377 |
The \verb|\normrefsclause|\ixcom{normrefsclause} |
| 1378 |
command starts a new numbered clause called `Normative references', |
| 1379 |
which is given the label \verb|;i2|\index{;i2}. |
| 1380 |
|
| 1381 |
More precisely, the title of the clause is given by the value of |
| 1382 |
\verb|\normrefsname|\ixcom{normrefsname} (see \aref{anx:extraiso}). |
| 1383 |
|
| 1384 |
The command |
| 1385 |
\verb+\normrefbp{+\meta{document identifier}\verb+}+\ixcom{normrefbp} |
| 1386 |
prints the |
| 1387 |
ISO required text for the introduction to the listing of normative |
| 1388 |
references. The \meta{document identifier} parameter must be such |
| 1389 |
that it reads sensibly in a sentence of the form `\ldots constitute |
| 1390 |
provisions of this \meta{document identifier}.'. |
| 1391 |
|
| 1392 |
\begin{example}Clause~\ref{sec:nrefs} in this document was started by the |
| 1393 |
commands: |
| 1394 |
\begin{verbatim} |
| 1395 |
\normrefsclause \label{sec:nrefs} |
| 1396 |
|
| 1397 |
\normrefbp{manual} |
| 1398 |
\begin{nreferences} |
| 1399 |
... |
| 1400 |
\end{verbatim} |
| 1401 |
\end{example} % end example |
| 1402 |
|
| 1403 |
\ssclause{Definitions, symbols and abbreviations} |
| 1404 |
|
| 1405 |
A variety of commands are provided that initiate new numbered |
| 1406 |
clauses for definitions, symbols and abbreviations. Depending on the |
| 1407 |
amount of material in these respective categories, one or more clauses |
| 1408 |
may be used. The commands and clause titles are listed in \tref{tab:dsa}. |
| 1409 |
The clause level headings are each given the label \verb|;i3|\index{;i3}; |
| 1410 |
one and only one of these headings should appear in a standard document. |
| 1411 |
\ixcom{defclause} \ixcom{defname} |
| 1412 |
\ixcom{symclause} \ixcom{symname} |
| 1413 |
\ixcom{abbclause} \ixcom{abbname} |
| 1414 |
\ixcom{defsymclause} \ixcom{defsymname} |
| 1415 |
\ixcom{defabbclause} \ixcom{defabbname} |
| 1416 |
\ixcom{symabbclause} \ixcom{symabbname} |
| 1417 |
\ixcom{defsymabbclause} \ixcom{defsymabbname} |
| 1418 |
\ixcom{defsubclause} |
| 1419 |
\ixcom{symsubclause} |
| 1420 |
\ixcom{abbsubclause} |
| 1421 |
\ixcom{defsymsubclause} |
| 1422 |
\ixcom{defabbsubclause} |
| 1423 |
\ixcom{symabbsubclause} |
| 1424 |
|
| 1425 |
\begin{table} |
| 1426 |
\centering |
| 1427 |
\caption{Definition, symbol and abbreviation clause commands} |
| 1428 |
\label{tab:dsa} |
| 1429 |
\begin{tabular}{|l|c|l|l|} \hline |
| 1430 |
\textbf{Command} & \textbf{Clause} & \textbf{Title} & \textbf{Default text} \\ \hline |
| 1431 |
\verb|\defclause| & C & \verb|\defname| & \defname{} \\ |
| 1432 |
\verb|\symclause| & C & \verb|\symname| & \symname{} \\ |
| 1433 |
\verb|\abbclause| & C & \verb|\abbname| & \abbname{} \\ |
| 1434 |
\verb|\defsymclause| & C & \verb|\defsymname| & \defsymname{} \\ |
| 1435 |
\verb|\defabbclause| & C & \verb|\defabbname| & \defabbname{} \\ |
| 1436 |
\verb|\symabbclause| & C & \verb|\symabbname| & \symabbname{} \\ |
| 1437 |
\verb|\defsymabbclause| & C & \verb|\defsymabbname| & \defsymabbname{} \\ |
| 1438 |
\verb|\defsubclause| & SC & \verb|\defname| & \defname{} \\ |
| 1439 |
\verb|\symsubclause| & SC & \verb|\symname| & \symname{} \\ |
| 1440 |
\verb|\abbsubclause| & SC & \verb|\abbname| & \abbname{} \\ |
| 1441 |
\verb|\defsymsubclause| & SC & \verb|\defsymname| & \defsymname{} \\ |
| 1442 |
\verb|\defabbsubclause| & SC & \verb|\defabbname| & \defabbname{} \\ |
| 1443 |
\verb|\symabbsubclause| & SC & \verb|\symabbname| & \symabbname{} \\ |
| 1444 |
\hline |
| 1445 |
\multicolumn{4}{|l|}{% |
| 1446 |
NOTE - In the table, C = clause, SC = subclause. } \\ \hline |
| 1447 |
\end{tabular} |
| 1448 |
\end{table} |
| 1449 |
|
| 1450 |
\sssclause{Heading labels} |
| 1451 |
|
| 1452 |
Some of the defined clauses have associated \verb|\label|s. These |
| 1453 |
heading commands and their \verb|\label| values are listed in |
| 1454 |
\tref{tab:clabels}. |
| 1455 |
|
| 1456 |
\begin{table} |
| 1457 |
\centering |
| 1458 |
\caption{Defined clause headings with labels} |
| 1459 |
\label{tab:clabels} |
| 1460 |
\begin{tabular}{|l|c|} \hline |
| 1461 |
\textbf{Command} & \textbf{Label} \\ \hline |
| 1462 |
\verb|\scopeclause| & \texttt{;i1} \\ |
| 1463 |
\verb|\normrefsclause| & \texttt{;i2} \\ |
| 1464 |
\verb|\defclause| & \texttt{;i3} \\ |
| 1465 |
\verb|\symclause| & \texttt{;i3} \\ |
| 1466 |
\verb|\abbclause| & \texttt{;i3} \\ |
| 1467 |
\verb|\defsymclause| & \texttt{;i3} \\ |
| 1468 |
\verb|\defabbclause| & \texttt{;i3} \\ |
| 1469 |
\verb|\symabbclause| & \texttt{;i3} \\ |
| 1470 |
\verb|\defsymabbclause| & \texttt{;i3} \\ |
| 1471 |
\hline |
| 1472 |
\end{tabular} |
| 1473 |
\end{table} |
| 1474 |
|
| 1475 |
|
| 1476 |
|
| 1477 |
\ssclause{Bibliography} |
| 1478 |
|
| 1479 |
The command \verb|\bibannex|\ixcom{bibannex} |
| 1480 |
starts an informative section of the document entitled `Bibliography'. |
| 1481 |
Or, more precisely, |
| 1482 |
by the value of the \verb|\bibname|\ixcom{bibname} |
| 1483 |
command. |
| 1484 |
|
| 1485 |
\sclause{Urls, etc} |
| 1486 |
|
| 1487 |
The command \verb|\url{|\meta{text}\verb|}|\ixcom{url} can be used for |
| 1488 |
typesetting \meta{text} as an email address. |
| 1489 |
|
| 1490 |
The command \verb|\isourl{|\meta{text}\verb|}|\ixcom{isourl} can be |
| 1491 |
used for |
| 1492 |
typesetting \meta{text} as an URL address. |
| 1493 |
|
| 1494 |
\begin{example} |
| 1495 |
The following code |
| 1496 |
\begin{verbatim} |
| 1497 |
The Email address is \url{[email protected]} or the homepage is at |
| 1498 |
\isourl{http://fred.mik/home/}. |
| 1499 |
\end{verbatim} |
| 1500 |
will be typeset as: \\ |
| 1501 |
The Email address is \url{[email protected]} or the homepage is at |
| 1502 |
\isourl{http://fred.mik/home/}. |
| 1503 |
\end{example} |
| 1504 |
|
| 1505 |
|
| 1506 |
\sclause{Version control commands} |
| 1507 |
|
| 1508 |
|
| 1509 |
A set of commands are provided to assist when revising a document. |
| 1510 |
For these commands to flag the changes in the printed document the command |
| 1511 |
\verb|\changemarkstrue|\ixcom{changemarkstrue} |
| 1512 |
must be put in the preamble.\index{preamble} |
| 1513 |
|
| 1514 |
In the commands described below, the \meta{number} parameter can be used |
| 1515 |
to correlate changes in a document |
| 1516 |
to some external (numbered) requirement for the change. |
| 1517 |
|
| 1518 |
\ssclause{Editorial} |
| 1519 |
|
| 1520 |
The command \verb+\editorial{+\meta{number}\verb+}+\ixcom{editorial} |
| 1521 |
flags an editorial change to the |
| 1522 |
document text with ED$^{number}$. |
| 1523 |
|
| 1524 |
\begin{anexample} |
| 1525 |
|
| 1526 |
Just to start things off, this is an original sentence, which should |
| 1527 |
take up about a line. |
| 1528 |
This example sentence contains an editorial \editorial{37} |
| 1529 |
change. The command \verb|\editorial{37}| was included in the previous |
| 1530 |
sentence. |
| 1531 |
This sentence, though, has no changes marked in it and may be |
| 1532 |
assumed to be unaltered from a prior version. |
| 1533 |
\end{anexample} % end example |
| 1534 |
|
| 1535 |
\ssclause{Added} |
| 1536 |
|
| 1537 |
The command |
| 1538 |
\verb+\added{+\meta{text}\verb+}{+\meta{number}\verb+}+\ixcom{added} |
| 1539 |
flags the |
| 1540 |
position of the additional \meta{text} and highlights it. |
| 1541 |
|
| 1542 |
\begin{anexample} |
| 1543 |
|
| 1544 |
Just to start things off, this is an original sentence, which should |
| 1545 |
take up about a line. |
| 1546 |
This example sentence contains \added{some added text}{27} in |
| 1547 |
the middle of it. The command \verb|\added{some added text}{27}| was |
| 1548 |
included in the previous sentence. |
| 1549 |
This sentence, though, has no changes marked in it and may be |
| 1550 |
assumed to be unaltered from a prior version. |
| 1551 |
\end{anexample} % end example |
| 1552 |
|
| 1553 |
\ssclause{Deleted} |
| 1554 |
|
| 1555 |
The command \verb+\deleted{+\meta{number}\verb+}+\ixcom{deleted} |
| 1556 |
flags the position of deleted text. |
| 1557 |
|
| 1558 |
\begin{anexample} |
| 1559 |
|
| 1560 |
Just to start things off, this is an original sentence, which should |
| 1561 |
take up about a line. |
| 1562 |
Some text was deleted \deleted{34} from the middle of this sentence. |
| 1563 |
The command \verb|\deleted{34}| was included in the previous sentence. |
| 1564 |
This sentence, though, has no changes marked in it and may be |
| 1565 |
assumed to be unaltered from a prior version. |
| 1566 |
\end{anexample} % end example |
| 1567 |
|
| 1568 |
\ssclause{Moved} |
| 1569 |
|
| 1570 |
The command |
| 1571 |
\verb+\moved{+\meta{text}\verb+}{+\meta{number}\verb+}+\ixcom{moved} |
| 1572 |
flags the position of |
| 1573 |
moved \meta{text} and highlights it. |
| 1574 |
|
| 1575 |
\begin{anexample} |
| 1576 |
|
| 1577 |
Just to start things off, this is an original sentence, which should |
| 1578 |
take up about a line. |
| 1579 |
This sentence contains some \moved{moved}{81} text in the middle of it. |
| 1580 |
The command \verb|\moved{moved}{81}| was included in the previous |
| 1581 |
sentence. |
| 1582 |
This sentence, though, has no changes marked in it and may be |
| 1583 |
assumed to be unaltered from a prior version. |
| 1584 |
\end{anexample} % end example |
| 1585 |
|
| 1586 |
\sclause{PDF} |
| 1587 |
|
| 1588 |
The class provides a command, \verb|\ifpdf|\ixcom{ifpdf}, |
| 1589 |
to test whether or not the document is being processed by \latex{} |
| 1590 |
or by pdf\latex. \latex{} processing produces a \file{.dvi} file which |
| 1591 |
needs further processing, usually by \file{dvips}, to generate PostScript |
| 1592 |
for printing. pdf\latex, however, directly generates a \file{.pdf} file |
| 1593 |
which can then be printed. |
| 1594 |
|
| 1595 |
\begin{anexample} |
| 1596 |
A document for processing by either \latex{} or pdf\latex{} could be |
| 1597 |
started like: |
| 1598 |
\begin{verbatim} |
| 1599 |
\documentclass{iso} |
| 1600 |
\usepackage{times} |
| 1601 |
\ifpdf |
| 1602 |
\pdfoutput=1 |
| 1603 |
\usepackage[pdftex]{graphicx} |
| 1604 |
\else |
| 1605 |
\usepackage{graphicx} |
| 1606 |
\fi |
| 1607 |
.... |
| 1608 |
\end{verbatim} |
| 1609 |
|
| 1610 |
The \file{times} package is used in this example as PDF printers tend |
| 1611 |
to handle |
| 1612 |
PostScript fonts better than other kinds of fonts. |
| 1613 |
\end{anexample} |
| 1614 |
|
| 1615 |
|
| 1616 |
The class also supports the use of the |
| 1617 |
\file{hyperref}\ixpack{hyperref} package in conjunction with pdf\latex. |
| 1618 |
Typically bookmark processing would be specifed by: |
| 1619 |
\begin{verbatim} |
| 1620 |
\ifpdf |
| 1621 |
\pdfoutput=1 |
| 1622 |
\usepackage[plainpages=false, |
| 1623 |
pdfpagelabels, |
| 1624 |
bookmarksnumbered, |
| 1625 |
hyperindex=true |
| 1626 |
]{hyperref} |
| 1627 |
... |
| 1628 |
\else |
| 1629 |
... |
| 1630 |
\fi |
| 1631 |
.... |
| 1632 |
\end{verbatim} |
| 1633 |
If the \verb|hyperindex=true| option to the \file{hyperref} package is used |
| 1634 |
the the index has to be processed via the |
| 1635 |
\textsc{MakeIndex}\index{makeIndex@{\sc MakeIndex}} program. |
| 1636 |
|
| 1637 |
%%%%%%%%%%% |
| 1638 |
%%%\end{document} |
| 1639 |
%%%%%%%%%%% |
| 1640 |
|
| 1641 |
\clause{The \file{isorot} package facility} |
| 1642 |
|
| 1643 |
The \file{isorot}\ixpack{isorot} facility enables the rotation |
| 1644 |
of document elements on |
| 1645 |
a page. It uses the \latex{} \verb|\special|\ixcom{special} |
| 1646 |
command to perform its |
| 1647 |
effects, and thus can only be used |
| 1648 |
with a limited number of dvi to postscript programs. The facilities |
| 1649 |
available are summarized in \tref{tab4}. |
| 1650 |
|
| 1651 |
\file{isorot} is a modification of the \file{rotation.sty} file |
| 1652 |
created by Rahtz and Barroca~\bref{rahtz}. Further examples of the usage |
| 1653 |
of their style are given in Goosens \emph{et al}~\bref{goosens}. |
| 1654 |
|
| 1655 |
\begin{note}Several examples of the effects of the commands described herein |
| 1656 |
are shown. In many cases the results are not pretty. This should act as |
| 1657 |
a warning that using rotational elements requires more care than |
| 1658 |
most other document elements.\end{note} %end note |
| 1659 |
|
| 1660 |
\begin{sidewaystable} |
| 1661 |
\ixcom{rotdriver} \ixcom{clockwise} \ixcom{counterclockwise} |
| 1662 |
\ixcom{figuresright} \ixcom{figuresleft} \ixcom{rotcaption} |
| 1663 |
\ixcom{controtcaption} |
| 1664 |
\ixenv{sideways} \ixenv{turn} \ixenv{rotate} \ixenv{sidewaystable} |
| 1665 |
\ixenv{sidewaysfigure} \ixenv{landscape} |
| 1666 |
\centering |
| 1667 |
\caption{The rotation facilities} \label{tab4} |
| 1668 |
\begin{tabular}{|l|l|} \hline |
| 1669 |
\textbf{Facility} & \textbf{Effect} \\ \hline |
| 1670 |
\multicolumn{2}{|c|}{\textbf{Commands}} \\ \hline |
| 1671 |
\verb|\rotdriver{<driver>}| & |
| 1672 |
declare the name of the dvi to Postscript translator (default {\tt dvips}) \\ |
| 1673 |
\verb|\clockwise| & |
| 1674 |
sets rotation direction clockwise for positive angles (the default) \\ |
| 1675 |
\verb|\counterclockwise| & |
| 1676 |
sets rotation direction counterclockwise for positive angles \\ |
| 1677 |
\verb|\figuresright| & |
| 1678 |
sets rotation direction for sideways floats counterclockwise (the default) \\ |
| 1679 |
\verb|\figuresleft| & |
| 1680 |
sets rotation direction for sideways floats clockwise \\ |
| 1681 |
\verb|\rotcaption| & |
| 1682 |
like the \verb|caption| command, but rotates the caption through 90 degrees \\ |
| 1683 |
\verb|\controtcaption| & |
| 1684 |
like the \verb|contcaption| command, but rotates the caption through 90 degrees \\ \hline |
| 1685 |
\multicolumn{2}{|c|}{\textbf{Environments}} \\ \hline |
| 1686 |
\verb|sideways| & |
| 1687 |
rotates the contents through 90 degrees counterclockwise \\ |
| 1688 |
\verb|turn| & |
| 1689 |
rotates the contents through the given angle \\ |
| 1690 |
\verb|rotate| & |
| 1691 |
rotates the contents through the given angle, but no space allowed for the result\\ |
| 1692 |
\verb|sidewaystable| & |
| 1693 |
like the \verb|table| environment, but rotated 90 degrees \\ |
| 1694 |
\verb|sidewaystable*| & |
| 1695 |
twocolumn version of \verb|sidewaystable| \\ |
| 1696 |
\verb|sidewaysfigure| & |
| 1697 |
like the \verb|figure| environment, but rotated 90 degrees \\ |
| 1698 |
\verb|sidewaysfigure*| & |
| 1699 |
twocolumn version of \verb|sidewaysfigure| \\ |
| 1700 |
\verb|landscape| & |
| 1701 |
prints all enclosed pages in landscape mode \\ \hline |
| 1702 |
\end{tabular} |
| 1703 |
\end{sidewaystable} |
| 1704 |
|
| 1705 |
\sclause{Options} |
| 1706 |
|
| 1707 |
The \file{isorot} facility has one option, |
| 1708 |
namely \verb|debugshow|\ixopt{debugshow}. Calling this option produces |
| 1709 |
messages on the screen and in the \file{log} file regarding the actions |
| 1710 |
being taken. |
| 1711 |
|
| 1712 |
\begin{anote} This option is principally of interest to the maintainer |
| 1713 |
of the facility. \end{anote} |
| 1714 |
|
| 1715 |
\sclause{DVI drivers} |
| 1716 |
|
| 1717 |
The \file{isorot} facility supports only a limited number of |
| 1718 |
dvi to postscript translators. The default translator is \emph{dvips}. |
| 1719 |
The following command must be put in |
| 1720 |
the preamble of the document if \emph{dvips} is not being used: |
| 1721 |
\verb|\rotdriver{<drivername>}|,\ixcom{rotdriver} where |
| 1722 |
\verb|<drivername>| is one of the following:\footnote{I have been able to |
| 1723 |
try the {\tt dvips} driver |
| 1724 |
but not the others. If anyone has experience with the other drivers, or has |
| 1725 |
extended the range of drivers, I would like to be given the results.} %end footnote |
| 1726 |
|
| 1727 |
\begin{enumerate} |
| 1728 |
\item \verb|dvipdf| for the \emph{dvipdf} |
| 1729 |
translator;\ixtt{dvipdf} |
| 1730 |
\item \verb|dvips| for Tom Rockicki's \emph{dvips} |
| 1731 |
translator;\ixtt{dvips} |
| 1732 |
\item \verb|dvipsone| for Y\&Y's \emph{dvipsone} |
| 1733 |
translator;\ixtt{dvipsone} |
| 1734 |
\item \verb|dvitops| for James Clark's \emph{dvitops} |
| 1735 |
translator;\ixtt{dvitops} |
| 1736 |
\item \verb|dviwindo| for Y\&Y's \emph{dviwindo} |
| 1737 |
translator;\ixtt{dviwindo} |
| 1738 |
\item \verb|pctex32| for Personal TeX's PC TeX for 32 bit Windows |
| 1739 |
(\emph{pctex32}) |
| 1740 |
translator;\ixtt{pctex32} |
| 1741 |
\item \verb|pctexps| for Personal TeX's PC PTI Laser/PS (\emph{pctexps}) |
| 1742 |
translator;\ixtt{pctexps} |
| 1743 |
\item \verb|pubps| for the Arbortext's \emph{pubps} |
| 1744 |
translator.\ixtt{pubps} |
| 1745 |
\item \verb|textures| for Blue Sky's \emph{Textures} |
| 1746 |
translator;\ixtt{textures} |
| 1747 |
|
| 1748 |
\end{enumerate} |
| 1749 |
|
| 1750 |
|
| 1751 |
\sclause{Rotational directions} |
| 1752 |
|
| 1753 |
\file{isorot} enables the textual and other elements of a document |
| 1754 |
to be rotated from their normal horizontal layout. In some cases elements |
| 1755 |
can be rotated through arbitrary angles, whereas in others only 90 degree |
| 1756 |
rotation is possible. |
| 1757 |
|
| 1758 |
By default, a rotation through a positive number of |
| 1759 |
degrees corresponds to a clockwise rotation. The command |
| 1760 |
\verb|\counterclockwise|\ixcom{counterclockwise} |
| 1761 |
sets the following rotations to be counterclockwise for positive angles. |
| 1762 |
The command \verb|\clockwise|\ixcom{clockwise} |
| 1763 |
sets the following rotations to be clockwise for positive angles. |
| 1764 |
These commands can be used to toggle the rotational behavior. |
| 1765 |
|
| 1766 |
|
| 1767 |
Rotated floating environments are normally rotated so that they are |
| 1768 |
printed with a counterclockwise rotation (i.e. the original bottom of the float |
| 1769 |
is placed at the right hand side of the paper), |
| 1770 |
which is what is normally required. |
| 1771 |
This behavior can be altered by the command |
| 1772 |
\verb|\figuresleft|,\ixcom{figuresleft} |
| 1773 |
which will give the reverse effect. The command |
| 1774 |
\verb|\figuresright|\ixcom{figuresright} |
| 1775 |
will set the behavior to the default. |
| 1776 |
These commands can be used to toggle the rotational behavior of |
| 1777 |
floats. |
| 1778 |
|
| 1779 |
|
| 1780 |
\sclause{Rotation of text} |
| 1781 |
|
| 1782 |
The \verb|sideways|\ixenv{sideways} |
| 1783 |
environment rotates the contents of the environment |
| 1784 |
by 90 degrees counterclockwise, and leaves space for the result. |
| 1785 |
|
| 1786 |
The \verb|\begin{turn}{|\meta{angle}\verb|}|\ixenv{turn} |
| 1787 |
environment rotates the contents by the given number |
| 1788 |
of degrees in the direction specified by the most recent of the |
| 1789 |
\verb|\clockwise|\ixcom{clockwise} or |
| 1790 |
\verb|\counterclockwise|\ixcom{counterclockwise} |
| 1791 |
commands, leaving space for the result. |
| 1792 |
|
| 1793 |
The \verb|\begin{rotate}{|\meta{angle}\verb|}|\ixenv{rotate} |
| 1794 |
environment rotates the contents by the given number |
| 1795 |
of degrees in the direction specified by the most recent of the |
| 1796 |
\verb|\clockwise|\ixcom{clockwise} or |
| 1797 |
\verb|\counterclockwise|\ixcom{counterclockwise} |
| 1798 |
commands, but no arrangements are made for leaving space for the result. |
| 1799 |
|
| 1800 |
|
| 1801 |
\begin{example}Some simple rotations: \label{ex:1} |
| 1802 |
|
| 1803 |
This code |
| 1804 |
\begin{verbatim} |
| 1805 |
Default rotation direction: \\ |
| 1806 |
A |
| 1807 |
\begin{sideways}% |
| 1808 |
B C |
| 1809 |
\end{sideways} |
| 1810 |
D E F G H I J K L M |
| 1811 |
\begin{turn}{-90}% |
| 1812 |
Minus 90 turn |
| 1813 |
\end{turn} |
| 1814 |
N O P |
| 1815 |
\begin{rotate}{90}% |
| 1816 |
Plus 90 rotate |
| 1817 |
\end{rotate} |
| 1818 |
Q \\ |
| 1819 |
and continue on with another line after rotations. |
| 1820 |
\end{verbatim} |
| 1821 |
produces the following (note how space is allowed for the \verb|turn|ed |
| 1822 |
text, whereas the \verb|rotate|d text runs into the text below). |
| 1823 |
|
| 1824 |
Default rotation direction: \\ |
| 1825 |
A |
| 1826 |
\begin{sideways}% |
| 1827 |
B C |
| 1828 |
\end{sideways} |
| 1829 |
D E F G H I J K L M |
| 1830 |
\begin{turn}{-90}% |
| 1831 |
Minus 90 turn |
| 1832 |
\end{turn} |
| 1833 |
N O P |
| 1834 |
\begin{rotate}{90}% |
| 1835 |
Plus 90 rotate |
| 1836 |
\end{rotate} |
| 1837 |
Q \\ |
| 1838 |
and continue on with another line after rotations. |
| 1839 |
\end{example} % end example |
| 1840 |
\begin{example}This example shows the effect of using the |
| 1841 |
\verb|\counterclockwise|\ixcom{counterclockwise} |
| 1842 |
command. |
| 1843 |
|
| 1844 |
This code |
| 1845 |
\begin{verbatim} |
| 1846 |
Flip rotation direction: \\ |
| 1847 |
\counterclockwise |
| 1848 |
A |
| 1849 |
\begin{sideways}% |
| 1850 |
B C |
| 1851 |
\end{sideways} |
| 1852 |
D E F G H I J K L M |
| 1853 |
\begin{turn}{-90}% |
| 1854 |
Minus 90 turn |
| 1855 |
\end{turn} |
| 1856 |
N O P |
| 1857 |
\begin{rotate}{90}% |
| 1858 |
Plus 90 rotate |
| 1859 |
\end{rotate} |
| 1860 |
Q \\ |
| 1861 |
Set rotation direction back to default value. |
| 1862 |
\clockwise |
| 1863 |
\end{verbatim} |
| 1864 |
|
| 1865 |
produces the following, which should be compared with example~\ref{ex:1}. |
| 1866 |
|
| 1867 |
Flip rotation direction: \\ |
| 1868 |
\counterclockwise |
| 1869 |
A |
| 1870 |
\begin{sideways}% |
| 1871 |
B C |
| 1872 |
\end{sideways} |
| 1873 |
D E F G H I J K L M |
| 1874 |
\begin{turn}{-90}% |
| 1875 |
Minus 90 turn |
| 1876 |
\end{turn} |
| 1877 |
N O P |
| 1878 |
\begin{rotate}{90}% |
| 1879 |
Plus 90 rotate |
| 1880 |
\end{rotate} |
| 1881 |
Q \\ |
| 1882 |
Set rotation direction back to default value. |
| 1883 |
\clockwise |
| 1884 |
\end{example} % end example |
| 1885 |
|
| 1886 |
|
| 1887 |
Although the examples so far have only shown the rotation of text, boxes |
| 1888 |
can also be rotated. |
| 1889 |
|
| 1890 |
\begin{example}Rotating a box. |
| 1891 |
|
| 1892 |
This code |
| 1893 |
\begin{verbatim} |
| 1894 |
\newsavebox{\foo} |
| 1895 |
\newlength{\fool} |
| 1896 |
\settowidth{\fool}{Hurrah for ISO.} |
| 1897 |
\savebox{\foo}{\parbox{\fool}{Hurrah for ISO. Hurrah for ISO. |
| 1898 |
Hurrah for ISO. Hurrah for ISO.}} |
| 1899 |
Start |
| 1900 |
\usebox{\foo} |
| 1901 |
\& |
| 1902 |
\begin{turn}{-45}\usebox{\foo}\end{turn} |
| 1903 |
\& |
| 1904 |
\begin{turn}{45}\usebox{\foo}\end{turn} |
| 1905 |
End |
| 1906 |
\end{verbatim} |
| 1907 |
produces: |
| 1908 |
|
| 1909 |
\newsavebox{\foo} |
| 1910 |
\newlength{\fool} |
| 1911 |
\settowidth{\fool}{Hurrah for ISO.} |
| 1912 |
\savebox{\foo}{\parbox{\fool}{Hurrah for ISO. Hurrah for ISO. |
| 1913 |
Hurrah for ISO. Hurrah for ISO.}} |
| 1914 |
Start |
| 1915 |
\usebox{\foo} |
| 1916 |
\& |
| 1917 |
\begin{turn}{-45}\usebox{\foo}\end{turn} |
| 1918 |
\& |
| 1919 |
\begin{turn}{45}\usebox{\foo}\end{turn} |
| 1920 |
End |
| 1921 |
|
| 1922 |
\end{example} %end example |
| 1923 |
|
| 1924 |
Elements can be rotated through arbitrary angles, and also rotated |
| 1925 |
elements can be nested inside other rotated elements. |
| 1926 |
|
| 1927 |
|
| 1928 |
\begin{example}Repeated rotation: |
| 1929 |
|
| 1930 |
The following example code shows that text can be rotated through any angle. |
| 1931 |
The result is shown in \fref{fig:wheel}. |
| 1932 |
\begin{verbatim} |
| 1933 |
\newcount\prwc |
| 1934 |
\newsavebox{\prwtext} |
| 1935 |
\newdimen\prwspace |
| 1936 |
\def\wheel#1#2{% |
| 1937 |
\savebox{\prwtext}{#1\begin{sideways}#2\end{sideways}}% |
| 1938 |
\prwspace\wd\prwtext% |
| 1939 |
\advance\prwspace by 1cm% |
| 1940 |
\centerline{% |
| 1941 |
\rule{0pt}{\prwspace}% |
| 1942 |
\rule[-\prwspace]{0pt}{\prwspace}% |
| 1943 |
\prwc=-180\loop\ifnum\prwc<180 |
| 1944 |
\rlap{\begin{rotate}{\the\prwc}% |
| 1945 |
\rule{1cm}{0pt}\usebox{\prwtext}\end{rotate}}% |
| 1946 |
\advance\prwc by 20\repeat}} |
| 1947 |
\begin{figure} |
| 1948 |
\wheel{Express yourself ---}{Hooray for STEP!} |
| 1949 |
\caption{Example rotation through multiple angles} |
| 1950 |
\label{fig:wheel} |
| 1951 |
\end{figure} |
| 1952 |
\end{verbatim} |
| 1953 |
|
| 1954 |
\newcount\prwc |
| 1955 |
\newsavebox{\prwtext} |
| 1956 |
\newdimen\prwspace |
| 1957 |
\def\wheel#1#2{% |
| 1958 |
\savebox{\prwtext}{#1\begin{sideways}#2\end{sideways}}% |
| 1959 |
\prwspace\wd\prwtext% |
| 1960 |
\advance\prwspace by 1cm% |
| 1961 |
\centerline{% |
| 1962 |
\rule{0pt}{\prwspace}% |
| 1963 |
\rule[-\prwspace]{0pt}{\prwspace}% |
| 1964 |
\prwc=-180\loop\ifnum\prwc<180 |
| 1965 |
\rlap{\begin{rotate}{\the\prwc}% |
| 1966 |
\rule{1cm}{0pt}\usebox{\prwtext}\end{rotate}}% |
| 1967 |
\advance\prwc by 20\repeat}} |
| 1968 |
\begin{figure} |
| 1969 |
\vspace*{1cm} |
| 1970 |
\wheel{Express yourself ---}{Hooray for STEP!} |
| 1971 |
\vspace*{1cm} |
| 1972 |
\caption{Example rotation through multiple angles} |
| 1973 |
\label{fig:wheel} |
| 1974 |
\end{figure} |
| 1975 |
|
| 1976 |
Figures~\ref{fig:angles1} and~\ref{fig:angles2} also show rotations through a |
| 1977 |
range of angles, both positive and negative. |
| 1978 |
\end{example} %end example |
| 1979 |
|
| 1980 |
\begin{example}Nested rotations. \label{ex:sidetabular} |
| 1981 |
|
| 1982 |
This code |
| 1983 |
\begin{verbatim} |
| 1984 |
Here is some text before a \verb|sideways| environment. |
| 1985 |
And some more, and more and more garble gobble cluck |
| 1986 |
click clack clock cluck and so on and on and on. |
| 1987 |
\begin{center} |
| 1988 |
\begin{sideways} |
| 1989 |
\rule{1in}{0pt} |
| 1990 |
\begin{tabular}{|lr|} |
| 1991 |
\begin{rotate}{-45}\emph{Word}\end{rotate} & \begin{rotate}{-90}% |
| 1992 |
Occurrences\end{rotate} |
| 1993 |
\\ |
| 1994 |
\hline |
| 1995 |
hello & 33 \\ |
| 1996 |
goodbye & 34 \\ |
| 1997 |
\hline |
| 1998 |
\end{tabular} |
| 1999 |
\end{sideways} |
| 2000 |
\end{center} |
| 2001 |
Here is some text after a \verb|sideways| environment. |
| 2002 |
And some more, and more and more garble gobble cluck |
| 2003 |
click clack clock cluck and so on and on and on. |
| 2004 |
\end{verbatim} |
| 2005 |
produces: |
| 2006 |
|
| 2007 |
Here is some text before a \verb|sideways| environment. |
| 2008 |
And some more, and more and more garble gobble cluck |
| 2009 |
click clack clock cluck and so on and on and on. |
| 2010 |
\begin{center} |
| 2011 |
\begin{sideways} |
| 2012 |
%\rule{1in}{0pt} |
| 2013 |
\begin{tabular}{|lr|} |
| 2014 |
\begin{rotate}{-45}\emph{Word}\end{rotate} & \begin{rotate}{-90}% |
| 2015 |
Occurrences\end{rotate} \\ \hline |
| 2016 |
hello & 33 \\ |
| 2017 |
goodbye & 34 \\ \hline |
| 2018 |
\end{tabular} |
| 2019 |
\end{sideways} |
| 2020 |
\end{center} |
| 2021 |
Here is some text after a \verb|sideways| environment. |
| 2022 |
And some more, and more and more garble gobble cluck |
| 2023 |
click clack clock cluck and so on and on and on. |
| 2024 |
\end{example} %end example |
| 2025 |
|
| 2026 |
|
| 2027 |
|
| 2028 |
\sclause{Rotations of tables and figures} |
| 2029 |
|
| 2030 |
The previous examples have demonstrated the rotation of textual elements. |
| 2031 |
For instance, example~\ref{ex:sidetabular} shows that tabular material can be rotated using |
| 2032 |
the \verb|sideways|\ixenv{sideways} |
| 2033 |
environment. (Actually, any of the previously |
| 2034 |
mentioned environments may be used.) |
| 2035 |
Two further environments are provided which rotate a \latex{} float through |
| 2036 |
90 degrees. These are: |
| 2037 |
\begin{itemize} |
| 2038 |
\item \verb|sidewaystable|\ixenv{sidewaystable}, which |
| 2039 |
corresponds to the standard \latex{} \verb|table|\ixenv{table} |
| 2040 |
environment; and |
| 2041 |
\item \verb|sidewaysfigure|\ixenv{sidewaysfigure}, which |
| 2042 |
corresponds to the standard \latex{} \verb|figure|\ixenv{figure} |
| 2043 |
environment. |
| 2044 |
\end{itemize} |
| 2045 |
There are also starred versions of these, namely |
| 2046 |
\verb|sidewaystable*|\ixenvs{sidewaystable} and |
| 2047 |
\verb|sidewaysfigure*|\ixenvs{sidewaysfigure}, for use in twocolumn mode. |
| 2048 |
However, the correspondence with the standard environments is not strictly |
| 2049 |
complete as a sideways float is alway placed on a page by itself. |
| 2050 |
|
| 2051 |
The direction of rotation may be controlled by the |
| 2052 |
\verb|\figuresright|\ixcom{figuresright} and |
| 2053 |
\verb|\figuresleft|\ixcom{figuresleft} commands. |
| 2054 |
|
| 2055 |
\begin{example}Table~\ref{tab4} is produced by the code below: \label{ex:4} |
| 2056 |
|
| 2057 |
\begin{verbatim} |
| 2058 |
\begin{sidewaystable} |
| 2059 |
\centering |
| 2060 |
\caption{The rotation facilities} \label{tab4} |
| 2061 |
\begin{tabular}{|l|l|} \hline |
| 2062 |
\textbf{Facility} & \textbf{Effect} \\ \hline |
| 2063 |
\multicolumn{2}{|c|}{\textbf{Commands}} \\ \hline |
| 2064 |
\verb|\rotdriver{<driver>}| & |
| 2065 |
declare the name of the dvi to Postscript translator (default {\tt dvips}) \\ |
| 2066 |
...... |
| 2067 |
\verb|sidewaysfigure| & |
| 2068 |
like the \verb|figure| environment, but rotated 90 degrees \\ \hline |
| 2069 |
\end{tabular} |
| 2070 |
\end{sidewaystable} |
| 2071 |
\end{verbatim} |
| 2072 |
\end{example} % end example |
| 2073 |
|
| 2074 |
|
| 2075 |
|
| 2076 |
\sclause{Rotation of float captions and bodies} |
| 2077 |
|
| 2078 |
Sometimes it may be useful to rotate a caption independently of the |
| 2079 |
rotation of a figure or table. The command |
| 2080 |
\verb|\rotcaption|\ixcom{rotcaption} is analogous |
| 2081 |
to the normal \verb|\caption|\ixcom{caption} command, |
| 2082 |
and inserts the caption rotated |
| 2083 |
by 90~degrees. There is also the companion command |
| 2084 |
\verb|\controtcaption|\ixcom{controtcaption}, analagous to the |
| 2085 |
\verb|\contcaption|\ixcom{contcaption} command, |
| 2086 |
for continuation captions. |
| 2087 |
|
| 2088 |
%\newsavebox{\picbox} |
| 2089 |
|
| 2090 |
\begin{figure} |
| 2091 |
\centering |
| 2092 |
\caption{Example figure with a standard caption.} \label{fig:nocrot} |
| 2093 |
\setlength{\unitlength}{0.2in} |
| 2094 |
\footnotesize |
| 2095 |
\begin{picture}(17,2) |
| 2096 |
\thicklines |
| 2097 |
\put(0,0){\begin{picture}(4,1) |
| 2098 |
\put(1.5,0.5){\oval(3,1)} |
| 2099 |
\put(1.5,0.5){\makebox(0,0){2,5 (1)}} |
| 2100 |
\put(3,0.5){\line(1,0){1.0}} |
| 2101 |
\put(4.25,0.5){\circle{0.5}} |
| 2102 |
\end{picture}} |
| 2103 |
|
| 2104 |
\put(4.5,0){\begin{picture}(8,1) |
| 2105 |
\put(0,0){\dashbox{0.25}(4,1){date}} |
| 2106 |
\put(4,0.5){\line(1,0){3.5}} |
| 2107 |
\put(7.75,0.5){\circle{0.5}} |
| 2108 |
\put(6,1){\makebox(0,0){A[1:3]}} |
| 2109 |
\end{picture}} |
| 2110 |
|
| 2111 |
\put(12.5,0){\begin{picture}(4,1) |
| 2112 |
\put(0,0){\framebox(4,1){INTEGER}} |
| 2113 |
\put(3.75,0){\line(0,1){1}} |
| 2114 |
\end{picture}} |
| 2115 |
\end{picture} |
| 2116 |
\normalsize |
| 2117 |
\setlength{\unitlength}{1pt} |
| 2118 |
\end{figure} |
| 2119 |
|
| 2120 |
|
| 2121 |
\begin{example}Float with a regular caption. |
| 2122 |
|
| 2123 |
Figure~\ref{fig:nocrot} is produced by the code below: |
| 2124 |
\begin{verbatim} |
| 2125 |
\begin{figure} |
| 2126 |
\centering |
| 2127 |
\caption{Example figure with a standard caption.} \label{fig:nocrot} |
| 2128 |
\setlength{\unitlength}{0.2in} |
| 2129 |
\footnotesize |
| 2130 |
\begin{picture}(17,2) |
| 2131 |
\thicklines |
| 2132 |
\put(0,0){\begin{picture}(4,1) |
| 2133 |
\put(1.5,0.5){\oval(3,1)} |
| 2134 |
\put(1.5,0.5){\makebox(0,0){2,5 (1)}} |
| 2135 |
\put(3,0.5){\line(1,0){1.0}} |
| 2136 |
\put(4.25,0.5){\circle{0.5}} |
| 2137 |
\end{picture}} |
| 2138 |
\put(4.5,0){\begin{picture}(8,1) |
| 2139 |
\put(0,0){\dashbox{0.25}(4,1){date}} |
| 2140 |
\put(4,0.5){\line(1,0){3.5}} |
| 2141 |
\put(7.75,0.5){\circle{0.5}} |
| 2142 |
\put(6,1){\makebox(0,0){A[1:3]}} |
| 2143 |
\end{picture}} |
| 2144 |
\put(12.5,0){\begin{picture}(4,1) |
| 2145 |
\put(0,0){\framebox(4,1){INTEGER}} |
| 2146 |
\put(3.75,0){\line(0,1){1}} |
| 2147 |
\end{picture}} |
| 2148 |
\end{picture} |
| 2149 |
\normalsize |
| 2150 |
\setlength{\unitlength}{1pt} |
| 2151 |
\end{figure} |
| 2152 |
\end{verbatim} |
| 2153 |
\end{example} % end example |
| 2154 |
|
| 2155 |
\begin{example}Float with a rotated caption. |
| 2156 |
|
| 2157 |
Figure~\ref{fig:crot} is produced by the code below: |
| 2158 |
\begin{verbatim} |
| 2159 |
\begin{figure} |
| 2160 |
\centering |
| 2161 |
\rotcaption{Figure~\protect\ref{fig:nocrot} with a rotated caption.} |
| 2162 |
\label{fig:crot} |
| 2163 |
\setlength{\unitlength}{0.2in} |
| 2164 |
\footnotesize |
| 2165 |
\begin{picture}(17,2) |
| 2166 |
... |
| 2167 |
\end{picture} |
| 2168 |
\normalsize |
| 2169 |
\setlength{\unitlength}{1pt} |
| 2170 |
\end{figure} |
| 2171 |
\end{verbatim} |
| 2172 |
\end{example} % end example |
| 2173 |
|
| 2174 |
|
| 2175 |
\begin{figure} |
| 2176 |
\centering |
| 2177 |
\rotcaption{Figure~\protect\ref{fig:nocrot} with a rotated caption.} |
| 2178 |
\label{fig:crot} |
| 2179 |
\setlength{\unitlength}{0.2in} |
| 2180 |
\footnotesize |
| 2181 |
\begin{picture}(17,2) |
| 2182 |
\thicklines |
| 2183 |
\put(0,0){\begin{picture}(4,1) |
| 2184 |
\put(1.5,0.5){\oval(3,1)} |
| 2185 |
\put(1.5,0.5){\makebox(0,0){2,5 (1)}} |
| 2186 |
\put(3,0.5){\line(1,0){1.0}} |
| 2187 |
\put(4.25,0.5){\circle{0.5}} |
| 2188 |
\end{picture}} |
| 2189 |
\put(4.5,0){\begin{picture}(8,1) |
| 2190 |
\put(0,0){\dashbox{0.25}(4,1){date}} |
| 2191 |
\put(4,0.5){\line(1,0){3.5}} |
| 2192 |
\put(7.75,0.5){\circle{0.5}} |
| 2193 |
\put(6,1){\makebox(0,0){A[1:3]}} |
| 2194 |
\end{picture}} |
| 2195 |
\put(12.5,0){\begin{picture}(4,1) |
| 2196 |
\put(0,0){\framebox(4,1){INTEGER}} |
| 2197 |
\put(3.75,0){\line(0,1){1}} |
| 2198 |
\end{picture}} |
| 2199 |
\end{picture} |
| 2200 |
\normalsize |
| 2201 |
\setlength{\unitlength}{1pt} |
| 2202 |
\end{figure} |
| 2203 |
|
| 2204 |
As can be seen from \fref{fig:crot} the advisability of rotating a caption |
| 2205 |
depends on the size of the body of the float. It may be better in certain |
| 2206 |
cases to leave the caption in its regular position and rotate the body of |
| 2207 |
the float instead. |
| 2208 |
|
| 2209 |
\def\prwrot#1{% |
| 2210 |
\settowidth{\fool}{ISOROT} |
| 2211 |
\savebox{\foo}{\parbox{\fool}{ISOROT ISOROT ISOROT ISOROT}}% |
| 2212 |
\framebox{---\begin{turn}{#1}\framebox{\usebox{\foo}}\end{turn}---}}% |
| 2213 |
\def\degrees{{\small$^{o}$}} |
| 2214 |
|
| 2215 |
\begin{figure} |
| 2216 |
\centering |
| 2217 |
\begin{tabular}{|c|c|c|} \hline |
| 2218 |
\prwrot{0} &\prwrot{-40}&\prwrot{-80}\\ |
| 2219 |
0\degrees & -40\degrees & -80\degrees \\ \hline |
| 2220 |
\prwrot{-120}&\prwrot{-160}&\prwrot{-200}\\ |
| 2221 |
-120\degrees & -160\degrees & -200\degrees \\ \hline |
| 2222 |
\prwrot{-240}&\prwrot{-280}&\prwrot{-320}\\ |
| 2223 |
-240\degrees & -280\degrees & -320\degrees \\ \hline |
| 2224 |
\end{tabular} |
| 2225 |
\caption{Rotation of paragraphs between 0 and -320 degrees} \label{fig:angles1} |
| 2226 |
\end{figure} |
| 2227 |
|
| 2228 |
|
| 2229 |
\begin{example}Regular caption and float. |
| 2230 |
|
| 2231 |
Figure~\ref{fig:angles1} is a regular figure and caption. It is produced by |
| 2232 |
the following code: |
| 2233 |
\begin{verbatim} |
| 2234 |
\def\prwrot#1{% |
| 2235 |
\settowidth{\fool}{ISOROT} |
| 2236 |
\savebox{\foo}{\parbox{\fool}{ISOROT ISOROT ISOROT ISOROT}}% |
| 2237 |
\framebox{---\begin{turn}{#1}\framebox{\usebox{\foo}}\end{turn}---}}% |
| 2238 |
\def\degrees{{\small$^{o}$}} |
| 2239 |
\end{verbatim} |
| 2240 |
|
| 2241 |
\begin{verbatim} |
| 2242 |
\begin{figure} |
| 2243 |
\centering |
| 2244 |
\begin{tabular}{|c|c|c|} \hline |
| 2245 |
\prwrot{0} &\prwrot{-40}&\prwrot{-80}\\ |
| 2246 |
0\degrees & -40\degrees & -80\degrees \\ \hline |
| 2247 |
\prwrot{-120}&\prwrot{-160}&\prwrot{-200}\\ |
| 2248 |
-120\degrees & -160\degrees & -200\degrees \\ \hline |
| 2249 |
\prwrot{-240}&\prwrot{-280}&\prwrot{-320}\\ |
| 2250 |
-240\degrees & -280\degrees & -320\degrees \\ \hline |
| 2251 |
\end{tabular} |
| 2252 |
\caption{Rotation of paragraphs between 0 and -320 degrees} \label{fig:angles1} |
| 2253 |
\end{figure} |
| 2254 |
\end{verbatim} |
| 2255 |
\end{example} % end example |
| 2256 |
|
| 2257 |
|
| 2258 |
\begin{figure} |
| 2259 |
\centering |
| 2260 |
\begin{sideways} |
| 2261 |
\begin{tabular}{|c|c|c|} \hline |
| 2262 |
\prwrot{0} &\prwrot{40}&\prwrot{80}\\ |
| 2263 |
0\degrees & 40\degrees & 80\degrees \\ \hline |
| 2264 |
\prwrot{120}&\prwrot{160}&\prwrot{200}\\ |
| 2265 |
120\degrees & 160\degrees & 200\degrees \\ \hline |
| 2266 |
\prwrot{240}&\prwrot{280}&\prwrot{320}\\ |
| 2267 |
240\degrees & 280\degrees & 320\degrees \\ \hline |
| 2268 |
\end{tabular} |
| 2269 |
\end{sideways} |
| 2270 |
\caption[Rotation of paragraphs between 0 and 320 degrees]% |
| 2271 |
{Rotation of paragraphs between 0 and 320 degrees (with figure |
| 2272 |
body turned sideways)}\label{fig:angles2} |
| 2273 |
\end{figure} |
| 2274 |
|
| 2275 |
\begin{example}Regular caption and rotated float body. |
| 2276 |
|
| 2277 |
Figure~\ref{fig:angles2} is a regular figure and caption where the figure |
| 2278 |
contents have been rotated. It was produced by the following code. |
| 2279 |
\begin{verbatim} |
| 2280 |
\begin{figure} |
| 2281 |
\centering |
| 2282 |
\begin{sideways} |
| 2283 |
\begin{tabular}{|c|c|c|} \hline |
| 2284 |
\prwrot{0} &\prwrot{40}&\prwrot{80}\\ |
| 2285 |
0\degrees & 40\degrees & 80\degrees \\ \hline |
| 2286 |
\prwrot{120}&\prwrot{160}&\prwrot{200}\\ |
| 2287 |
120\degrees & 160\degrees & 200\degrees \\ \hline |
| 2288 |
\prwrot{240}&\prwrot{280}&\prwrot{320}\\ |
| 2289 |
240\degrees & 280\degrees & 320\degrees \\ \hline |
| 2290 |
\end{tabular} |
| 2291 |
\end{sideways} |
| 2292 |
\caption[Rotation of paragraphs between 0 and 320 degrees]% |
| 2293 |
{Rotation of paragraphs between 0 and 320 degrees (with figure |
| 2294 |
body turned sideways)}\label{fig:angles2} |
| 2295 |
\end{figure} |
| 2296 |
\end{verbatim} |
| 2297 |
\end{example} % end example |
| 2298 |
|
| 2299 |
\begin{landscape} |
| 2300 |
\sclause{Landscaping} |
| 2301 |
|
| 2302 |
\latex{} normally prints in portrait mode. |
| 2303 |
The \verb|landscape|\ixenv{landscape} environment |
| 2304 |
prints all the enclosed stuff in landscape mode, except for headers |
| 2305 |
and footers which are not rotated. |
| 2306 |
|
| 2307 |
\begin{example} Landscaping |
| 2308 |
|
| 2309 |
The source for this part of the document is: |
| 2310 |
\begin{verbatim} |
| 2311 |
\begin{landscape} |
| 2312 |
\sclause{Landscaping} |
| 2313 |
|
| 2314 |
\latex{} normally prints in portrait mode. The ... |
| 2315 |
... |
| 2316 |
... long, wide tables. |
| 2317 |
\end{landscape} |
| 2318 |
\end{verbatim} |
| 2319 |
\end{example} |
| 2320 |
|
| 2321 |
The environment starts by clearing the current page and then switches |
| 2322 |
to portrait mode. At the end of the environment the current page is cleared |
| 2323 |
and the next page is back to normal portrait mode. |
| 2324 |
|
| 2325 |
All the other rotation commands and environments produce boxes and |
| 2326 |
\latex{} will not break a box across a page. The \verb|landscape| environemt |
| 2327 |
does not produce a box and so many pages can be printed in landscape mode |
| 2328 |
with \latex{} taking care of the page breaking for you. |
| 2329 |
|
| 2330 |
Landscape mode is not particularly useful for normal text as the |
| 2331 |
lines are far too long for comfortable reading. Where it can be useful |
| 2332 |
is where you have a table that is too wide to fit on a portrait page, so |
| 2333 |
needs to be rotated, yet is also too long to fit on the page when it is |
| 2334 |
rotated. The \file{supertabular}\ixpack{supertabular}, |
| 2335 |
the \file{longtable}\ixpack{longtable}, |
| 2336 |
and the \file{xtab}\ixpack{xtab} |
| 2337 |
packages provide facilities for automatically breaking long tables across |
| 2338 |
pages. Any of these can be used in conjunction with landscaping to both |
| 2339 |
rotate and automatically page break long, wide tables. |
| 2340 |
\end{landscape} |
| 2341 |
|
| 2342 |
\clause{The \file{xtab} package facility} |
| 2343 |
|
| 2344 |
The \file{xtab} package is fully documented in \bref{bib:xtab}. |
| 2345 |
This clause provides an overview of the package. |
| 2346 |
|
| 2347 |
The \file{xtab}\ixpack{xtab} package facility is an extension |
| 2348 |
of the \file{supertabular}\ixpack{supertabular} package originally |
| 2349 |
developed by Johannes Braams and Theo Jurriens. |
| 2350 |
The extension provides for the specification of a header to |
| 2351 |
go on the last page of a long table. |
| 2352 |
|
| 2353 |
The principal commands available are given in \tref{tab:xtab}. |
| 2354 |
\ixenv{xtabular} |
| 2355 |
\ixenv{mpxtabular} |
| 2356 |
\ixcom{topcaption} |
| 2357 |
\ixcom{bottomcaption} |
| 2358 |
\ixcom{tablecaption} |
| 2359 |
\ixcom{tablefirsthead} |
| 2360 |
\ixcom{tablehead} |
| 2361 |
\ixcom{tablelasthead} |
| 2362 |
\ixcom{notablelasthead} |
| 2363 |
\ixcom{tabletail} |
| 2364 |
\ixcom{tablelasttail} |
| 2365 |
|
| 2366 |
\topcaption{The principal xtab package commands} \label{tab:xtab} |
| 2367 |
\tablefirsthead{\hline \multicolumn{1}{|c|}{\textbf{Command}} & |
| 2368 |
\multicolumn{1}{c|}{\textbf{Effect}} \\ \hline } |
| 2369 |
\tablehead{\multicolumn{2}{c}% |
| 2370 |
{{\captionsize\bfseries \tablename\ \thetable{} -- continued from previous page}} \\ |
| 2371 |
\hline \multicolumn{1}{|c|}{\textbf{Command}} & |
| 2372 |
\multicolumn{1}{c|}{\textbf{Effect}} \\ \hline } |
| 2373 |
\tablelasthead{\multicolumn{2}{c}% |
| 2374 |
{{\captionsize\bfseries \tablename\ \thetable{} -- concluded from previous page}} \\ |
| 2375 |
\hline \multicolumn{1}{|c|}{\textbf{Command}} & |
| 2376 |
\multicolumn{1}{c|}{\textbf{Effect}} \\ \hline } |
| 2377 |
\tabletail{\hline \multicolumn{2}{|r|}{{Continued on next page}} \\ \hline} |
| 2378 |
\tablelasttail{\\ \hline \hline} |
| 2379 |
|
| 2380 |
\begin{center} |
| 2381 |
\begin{xtabular}{|l|p{0.5\textwidth}|} |
| 2382 |
\verb|\begin{xtabular}{...}| & This is equivalent to the normal |
| 2383 |
\verb|\begin{tabular}{...}| environment. |
| 2384 |
You supply the specification of the columns |
| 2385 |
just as for the normal tabular environment. |
| 2386 |
All commands that can be used within a tabular |
| 2387 |
environment can also be used within |
| 2388 |
the xtabular environment. |
| 2389 |
\\ |
| 2390 |
& |
| 2391 |
Unlike the tabular environment which prevents page breaking |
| 2392 |
within the tabular, the xtabular allows page breaking, so that |
| 2393 |
tabulars can extend automatically across several pages. Xtabular |
| 2394 |
starts off with a tabular environment and checks the amount of |
| 2395 |
space left on the page as it adds each row to the tabular. |
| 2396 |
If the space left on the page is too short for another row, then |
| 2397 |
it ends the current tabular, performs a page break and starts |
| 2398 |
another tabular on the following page. This process is repeated |
| 2399 |
until all the rows have been output. |
| 2400 |
\\ |
| 2401 |
& |
| 2402 |
There are special commands for captioning a xtabular as a |
| 2403 |
table, and also elements can be automatically inserted after each |
| 2404 |
(internal) \verb|\begin{tabular}| and immediately before each |
| 2405 |
\verb|\end{tabular}|. |
| 2406 |
\\ |
| 2407 |
& |
| 2408 |
Do not put a xtabular in a table environment, as the table |
| 2409 |
environment keeps its contents on a single page (presumably you |
| 2410 |
are using xtabular because its contents are longer than |
| 2411 |
one page). |
| 2412 |
\\ |
| 2413 |
\verb|\end{xtabular}| & End the xtabular environment. \\ \hline |
| 2414 |
\verb|\begin{mpxtabular}| & Like the xtabular environment |
| 2415 |
except that each `page' is put into a \verb|minipage| first. Thus |
| 2416 |
it is possible to have footnotes inside an \verb|mpxtabular|. |
| 2417 |
The footnote text is printed at the end of each page. |
| 2418 |
\\ |
| 2419 |
\verb|\end{mpxtabular}| & End the mpxtabular environment. \\ \hline |
| 2420 |
& \textbf{Note:} If any of the following commands |
| 2421 |
are used, then they should be placed |
| 2422 |
before the particular xtabular |
| 2423 |
environment that they apply to. \\ |
| 2424 |
\verb|\topcaption{...}| & A command to provide a caption for the |
| 2425 |
table. The caption is placed at the top |
| 2426 |
of the table. \\ |
| 2427 |
\verb|\bottomcaption{...}| & A command to provide a caption for the |
| 2428 |
table. The caption is placed at the bottom |
| 2429 |
of the table. \\ |
| 2430 |
\verb|\tablecaption{...}| & A command to provide a caption for the |
| 2431 |
table. The caption is placed at the default |
| 2432 |
position, which is at the top |
| 2433 |
of the table. |
| 2434 |
\\ |
| 2435 |
& |
| 2436 |
\textbf{Notes:} You cannot use the \verb|caption| |
| 2437 |
command but you can put a label after |
| 2438 |
any of these captioning commands. If you |
| 2439 |
want captioning, the command must be specified |
| 2440 |
before the start of the xtabular environment. |
| 2441 |
\\ |
| 2442 |
& |
| 2443 |
The \verb|\...caption{}| command(s) remain |
| 2444 |
in effect until changed by another |
| 2445 |
\verb|\...caption| command. |
| 2446 |
\\ |
| 2447 |
\verb|\tablefirsthead{...}| & Defines the contents of the first occurence |
| 2448 |
of the tabular head. The tabular head is some |
| 2449 |
special treatment of the first row in the table. |
| 2450 |
This command is optional. |
| 2451 |
If used, the header must be closed by the |
| 2452 |
end of line command for tabulars (e.g., \verb|\\|). \\ |
| 2453 |
\verb|\tablehead{...}| & Defines the contents of the table head on |
| 2454 |
subsequent pages. |
| 2455 |
\\ |
| 2456 |
& |
| 2457 |
For example, you might want to note that |
| 2458 |
this is a continuation of the table on |
| 2459 |
the previous page, as well as repeating |
| 2460 |
any column headings that were given |
| 2461 |
at the start of the xtabular by |
| 2462 |
\verb|\tablefirsthead|. |
| 2463 |
\\ |
| 2464 |
\verb|\tablelasthead{...}| & Defines the contents of the table head |
| 2465 |
on the last page of the table. |
| 2466 |
\\ |
| 2467 |
& |
| 2468 |
This works by writing to the \file{.aux} file the number of |
| 2469 |
pages that the xtabular extends over. When the xtabular |
| 2470 |
comes to the last tabular (which it calculates from the |
| 2471 |
information it reads from the \file{.aux} file) it replaces the |
| 2472 |
contents of \verb|\tablehead| by the contents of \verb|\tablelasthead|. |
| 2473 |
\\ |
| 2474 |
& |
| 2475 |
It makes no attempt to measure the amount of space used by the last |
| 2476 |
table head, so if this is more than for \verb|tablehead| then the |
| 2477 |
tabular might be a litle too long. |
| 2478 |
\\ |
| 2479 |
& |
| 2480 |
In any case, when using this command, the document has to |
| 2481 |
be LaTeXed at least twice, just as it has to be to resolve |
| 2482 |
references and so on. |
| 2483 |
\\ |
| 2484 |
\verb|\notablelasthead| & Switches off the last \verb|\tablelasthead|. |
| 2485 |
A \verb|tablelasthead| stays in effect until |
| 2486 |
overwritten by a new \verb|\tablelasthead| |
| 2487 |
or cancelled by this command. |
| 2488 |
\\ |
| 2489 |
\verb|\tabletail{...}| & The contents of this command are inserted before |
| 2490 |
the \verb|\end{tabular}| on each page except |
| 2491 |
for the last page of the table. |
| 2492 |
\\ |
| 2493 |
& |
| 2494 |
For example, you might want to note that the |
| 2495 |
table is continued on the next page. |
| 2496 |
\\ |
| 2497 |
\verb|\tablelasttail{...}| & The contents of this command are inserted before |
| 2498 |
the final \verb|\end{tabular}| of the table. |
| 2499 |
\\ |
| 2500 |
& |
| 2501 |
For example, you might want to note that |
| 2502 |
this is where the table ends. |
| 2503 |
\end{xtabular} |
| 2504 |
\end{center} |
| 2505 |
|
| 2506 |
As well as the \verb|xtabular|\ixenv{xtabular} and |
| 2507 |
\verb|mpxtabular|\ixenv{mpxtabular} environments there are |
| 2508 |
the corresponding starred versions |
| 2509 |
(i.e., \verb|xtabular*|\ixenvs{xtabular} and |
| 2510 |
\verb|mpxtabular*|\ixenvs{mpxtabular}) for use in |
| 2511 |
two column\ixopt{twocolumn} mode where the table is meant to span |
| 2512 |
both columns. |
| 2513 |
|
| 2514 |
\begin{example} \label{ex:xtab} Table~\ref{tab:xtab} was produced by |
| 2515 |
the following code: |
| 2516 |
\begin{verbatim} |
| 2517 |
\topcaption{The principal xtab package commands} \label{tab:xtab} |
| 2518 |
\tablefirsthead{\hline \multicolumn{1}{|c|}{\textbf{Command}} & |
| 2519 |
\multicolumn{1}{c|}{\textbf{Effect}} \\ \hline } |
| 2520 |
\tablehead{\multicolumn{2}{c}% |
| 2521 |
{{\captionsize\bfseries \tablename\ \thetable{} -- |
| 2522 |
continued from previous page}} \\ |
| 2523 |
\hline \multicolumn{1}{|c|}{\textbf{Command}} & |
| 2524 |
\multicolumn{1}{c|}{\textbf{Effect}} \\ \hline } |
| 2525 |
\tablelasthead{\multicolumn{2}{c}% |
| 2526 |
{{\captionsize\bfseries \tablename\ \thetable{} -- |
| 2527 |
concluded from previous page}} \\ |
| 2528 |
\hline \multicolumn{1}{|c|}{\textbf{Command}} & |
| 2529 |
\multicolumn{1}{c|}{\textbf{Effect}} \\ \hline } |
| 2530 |
\tabletail{\hline \multicolumn{2}{|r|}{{Continued on next page}} \\ \hline} |
| 2531 |
\tablelasttail{\\ \hline \hline} |
| 2532 |
|
| 2533 |
\begin{center} |
| 2534 |
\begin{xtabular}{|l|p{0.5\textwidth}|} |
| 2535 |
\verb|\begin{xtabular}{...}| & This is equivalent to the normal |
| 2536 |
\verb|\begin{tabular}{...}| environment. |
| 2537 |
You supply the specification of the columns |
| 2538 |
just as for the normal tabular environment. |
| 2539 |
All commands that can be used within a tabular |
| 2540 |
environment can also be used within |
| 2541 |
the xtabular environment. |
| 2542 |
\\ |
| 2543 |
& |
| 2544 |
Unlike the tabular environment which prevents page breaking |
| 2545 |
within the tabular, the xtabular allows page breaking, so that |
| 2546 |
tabulars can extend automatically across several pages. Xtabular |
| 2547 |
... ... ... |
| 2548 |
\verb|\tablelasttail{...}| & The contents of this command are inserted before |
| 2549 |
the final \verb|\end{tabular}| of the table. |
| 2550 |
\\ |
| 2551 |
& |
| 2552 |
For example, you might want to note that this is where |
| 2553 |
the table ends. |
| 2554 |
\end{xtabular} |
| 2555 |
\end{center} |
| 2556 |
\end{verbatim} |
| 2557 |
\end{example} |
| 2558 |
|
| 2559 |
The table is only broken between rows --- a row will not be split |
| 2560 |
across pages. This can lead to some bad page breaks, especially if |
| 2561 |
there are rows with a large vertical height (like some in \tref{tab:xtab}). |
| 2562 |
It is best to keep rows not too tall. |
| 2563 |
|
| 2564 |
The command |
| 2565 |
\verb|\shrinkheight{|\meta{length}\verb|}|\ixcom{shrinkheight} may be |
| 2566 |
used after the first \verb|\\| in the table to modify the allowed |
| 2567 |
height of the table on each page. A positive \meta{length} decreases |
| 2568 |
the allowed space per page and a negative \meta{length} increases |
| 2569 |
the allowed space. |
| 2570 |
|
| 2571 |
\begin{example} |
| 2572 |
This example illustrates changing the natural height of the pages |
| 2573 |
in a \verb|xtabular| and its relatives. |
| 2574 |
|
| 2575 |
\verb|\shrinkheight{2\baselineskip}| decreases the space per page by |
| 2576 |
two lines. |
| 2577 |
|
| 2578 |
\verb|\shrinkheight{-\baselineskip}| increases the space per page by |
| 2579 |
one line. |
| 2580 |
\end{example} |
| 2581 |
|
| 2582 |
You have to specify the font used for the |
| 2583 |
\verb|\tablehead|\ixcom{tablehead} and |
| 2584 |
\verb|tablelasthead|\ixcom{tablelasthead} yourself. |
| 2585 |
Within ISO documents, captions shall |
| 2586 |
be in bold font. The \file{iso}\ixclass{iso} class also provides |
| 2587 |
a command for |
| 2588 |
setting the size of the font used in captions, namely |
| 2589 |
\verb|\captionsize|\ixcom{captionsize}. |
| 2590 |
Note that this is used in~\eref{ex:xtab}. |
| 2591 |
The value of \verb|\captionsize|\ixcom{captionsize} is set by the |
| 2592 |
class. |
| 2593 |
|
| 2594 |
\sclause{Options} |
| 2595 |
|
| 2596 |
The \file{xtab} package has three options which control the amount of |
| 2597 |
information that is written to the \file{.log}\index{file!.log} file. The |
| 2598 |
options are: |
| 2599 |
\begin{enumerate} |
| 2600 |
\item The option \verb|errorshow|\ixopt{errorshow} (the default) does not |
| 2601 |
write any extra information; |
| 2602 |
\item The option \verb|pageshow|\ixopt{pageshow} writes information |
| 2603 |
about when and why \verb|xtabular| decides to produce a new page; |
| 2604 |
\item The option \verb|debugshow|\ixopt{debugshow}, which also includes |
| 2605 |
\verb|pageshow|, additionally writes information about each line |
| 2606 |
that is added to the table. |
| 2607 |
\end{enumerate} |
| 2608 |
|
| 2609 |
Under normal circumstances \file{xtab} is used without invoking any |
| 2610 |
option. The \verb|pageshow| option may be useful when attempting to cure |
| 2611 |
a bad page break. The \verb|debugshow| option, as its name implies, is |
| 2612 |
principally of use to the \file{xtab} developer. |
| 2613 |
|
| 2614 |
Independently of the options, the command |
| 2615 |
\verb|\sstraceon|\ixcom{sstraceon} may be used at any |
| 2616 |
point in the document to turn on printing of \verb|debugshow| data. This |
| 2617 |
can be turned off later by the \verb|\sstraceoff|\ixcom{sstraceoff} |
| 2618 |
command, which will stop all \verb|...show| printing. |
| 2619 |
|
| 2620 |
\sclause{Caveats} |
| 2621 |
|
| 2622 |
The authors of the original \file{supertabular} package note that |
| 2623 |
it has the following weaknesses: |
| 2624 |
\begin{itemize} |
| 2625 |
\item Sometimes the body of the first page of a table gets moved to the |
| 2626 |
following, leaving the caption behind; |
| 2627 |
\item Sometimes the last page of a table consists of just the head and foot |
| 2628 |
with no contents. |
| 2629 |
\end{itemize} |
| 2630 |
The weaknesses are caused by trying to guess where \tex{} will put a page |
| 2631 |
break. The package has to guesstimate how long the next entry will be in |
| 2632 |
the table and, if it is too long for the available space, it puts in its |
| 2633 |
own page break. If its guess is off too much in one direction, \tex{} will |
| 2634 |
break the page unexpectadly; if its off in the other direction |
| 2635 |
\file{supertabular} will put in an unnecessary page break. |
| 2636 |
|
| 2637 |
The \file{xtab} package has reduced, but perhaps not entirely |
| 2638 |
eliminated, these weaknesses. Some hand tuning may still be required. |
| 2639 |
|
| 2640 |
|
| 2641 |
%%%%%%%%% |
| 2642 |
%%%%\end{document} |
| 2643 |
%%%%%%%%% |
| 2644 |
|
| 2645 |
|
| 2646 |
|
| 2647 |
\clause{The \file{askinc} package facility} |
| 2648 |
|
| 2649 |
The \file{askinc}\ixpack{askinc} package facility contains \latex{} |
| 2650 |
code to enable the interactive |
| 2651 |
input of files. This functionality is a cross between the \latex{} |
| 2652 |
\verb|\include|\ixcom{include} and |
| 2653 |
\verb|\includeonly|\ixcom{includeonly} commands, and the |
| 2654 |
\verb|\input|\ixcom{input} command. |
| 2655 |
|
| 2656 |
In the body of the root source document, use the command |
| 2657 |
\verb+\infile{+\meta{file}\verb+}+\ixcom{infile} |
| 2658 |
for each \meta{file} |
| 2659 |
that comprises the document. That is, the command \verb|\infile| is similar |
| 2660 |
to the \verb|\input|\ixcom{input} and |
| 2661 |
\verb|\include|\ixcom{include} commands. |
| 2662 |
|
| 2663 |
When \latex ing the root document, you will be asked to provide a |
| 2664 |
comma-separated list of the \verb|\infile|s to be processed (similar to the |
| 2665 |
argument to the \verb|\includeonly|\ixcom{includeonly} |
| 2666 |
command). If you want all the files to be processed, just hit the |
| 2667 |
\verb|<RETURN>| key (or its equivalent). |
| 2668 |
|
| 2669 |
Like \verb|\include|d files, a file that is \verb|\infile|d into a |
| 2670 |
document shall not itself contain another \verb|\infile|d file. |
| 2671 |
|
| 2672 |
\begin{example}The following root file has three files that are \verb|\infile|d. |
| 2673 |
\begin{verbatim} |
| 2674 |
\documentclass[...]{...} |
| 2675 |
\usepackage{askincv} |
| 2676 |
% other preamble stuff |
| 2677 |
\begin{document} |
| 2678 |
% perhaps some stuff |
| 2679 |
\infile{file1} |
| 2680 |
\infile{file2} |
| 2681 |
\infile{file3} |
| 2682 |
% perhaps more stuff |
| 2683 |
\end{document} |
| 2684 |
\end{verbatim} |
| 2685 |
\end{example} % end example |
| 2686 |
|
| 2687 |
\clause{The \file{hyphenat} package facility} \label{sec:uschyp} |
| 2688 |
|
| 2689 |
The \file{hyphenat} package is fully described in~\bref{bib:hyphenat}. |
| 2690 |
This clause provides an overview of the portions of the package that are |
| 2691 |
most relevant to typesetting ISO standards. |
| 2692 |
|
| 2693 |
In \latex{} if you need to use the underscore (\verb|_|) |
| 2694 |
character in normal text, for example when documenting identifiers |
| 2695 |
in a programming language code, you have to use the |
| 2696 |
\verb|\_|\index{_ /@\verb?\_?} command, |
| 2697 |
as in \verb|a\_multiword\_identifier|. \latex{} normally treats |
| 2698 |
\verb|_|\index{_@\verb?_? (underscore)} as a math mode subscript command. |
| 2699 |
Further, if you want |
| 2700 |
the possibility of hyphenation\index{hyphenation} |
| 2701 |
at the position of an underscore |
| 2702 |
you have to use the command pairing |
| 2703 |
\verb|\_\-|;\index{_ /@\verb?\_?}\ixcom{-} this has the side |
| 2704 |
effect of disabling normal hyphenation in any succeeding `word' in |
| 2705 |
the identifier. |
| 2706 |
|
| 2707 |
The \file{hyphenat}\ixpack{hyphenat} package facility redefines the |
| 2708 |
\verb|\_|\index{_ /@\verb?\_?} command |
| 2709 |
so that hyphenationen is automatically enabled at the position |
| 2710 |
of the underscore and in all succeeding words in the identifier. |
| 2711 |
|
| 2712 |
|
| 2713 |
\begin{note} |
| 2714 |
Using the command pair \verb|\_\-| in conjunction with this facility |
| 2715 |
disables automatic hyphenation of succeeding words, so don't do it. |
| 2716 |
\end{note} |
| 2717 |
|
| 2718 |
|
| 2719 |
|
| 2720 |
\begin{example} \label{eg:uschyp} |
| 2721 |
This set of \latex{} source |
| 2722 |
\begin{verbatim} |
| 2723 |
Amazingly An\_excessively\_long\_multiword\_identifier% |
| 2724 |
\_demonstrating\_hyphenation |
| 2725 |
|
| 2726 |
\begin{minipage}{3cm} |
| 2727 |
\begin{itemize} |
| 2728 |
\item An\_excessively\_long\_multiword\_identifier% |
| 2729 |
\_demonstrating\_hyphenation |
| 2730 |
\item Underscore in math mode: $A_n$ |
| 2731 |
\item \verb|\_| command in math mode: $A\_n$ |
| 2732 |
\end{itemize} |
| 2733 |
\end{minipage} |
| 2734 |
\end{verbatim} |
| 2735 |
prints as: |
| 2736 |
|
| 2737 |
Amazingly An\_excessively\_long\_multiword\_identifier% |
| 2738 |
\_demonstrating\_hyphenation |
| 2739 |
|
| 2740 |
\begin{minipage}{3cm} |
| 2741 |
\begin{itemize} |
| 2742 |
\item An\_excessively\_long\_multiword\_identifier% |
| 2743 |
\_demonstrating\_hyphenation |
| 2744 |
\item Underscore in math mode: $A_n$ |
| 2745 |
\item \verb|\_| command in math mode: $A\_n$ |
| 2746 |
\end{itemize} |
| 2747 |
\end{minipage} |
| 2748 |
|
| 2749 |
\end{example} |
| 2750 |
|
| 2751 |
\begin{example} |
| 2752 |
Contrast this example with \eref{eg:uschyp}. |
| 2753 |
This set of \latex{} source |
| 2754 |
\begin{verbatim} |
| 2755 |
Amazingly An\_\-excessively\_\-long\_\-multiword\_\-identifier% |
| 2756 |
\_\-demonstrating\_\-hyphenation\_\-disabling |
| 2757 |
|
| 2758 |
\begin{minipage}{3cm} |
| 2759 |
\begin{itemize} |
| 2760 |
\item An\_\-excessively\_\-long\_\-multiword\_\-identifier% |
| 2761 |
\_\-demonstrating\_\-hyphenation\_\-disabling |
| 2762 |
\item Underscore in math mode: $A_n$ |
| 2763 |
\item \verb|\_| command in math mode: $A\_n$ |
| 2764 |
\end{itemize} |
| 2765 |
\end{minipage} |
| 2766 |
\end{verbatim} |
| 2767 |
prints as: |
| 2768 |
|
| 2769 |
Amazingly An\_\-excessively\_\-long\_\-multiword\_\-identifier% |
| 2770 |
\_\-demonstrating\_\-hyphenation\_\-disabling |
| 2771 |
|
| 2772 |
\begin{minipage}{3cm} |
| 2773 |
\begin{itemize} |
| 2774 |
\item An\_\-excessively\_\-long\_\-multiword\_\-identifier% |
| 2775 |
\_\-demonstrating\_\-hyphenation\_\-disabling |
| 2776 |
\item Underscore in math mode: $A_n$ |
| 2777 |
\item \verb|\_| command in math mode: $A\_n$ |
| 2778 |
\end{itemize} |
| 2779 |
\end{minipage} |
| 2780 |
|
| 2781 |
\end{example} |
| 2782 |
|
| 2783 |
|
| 2784 |
The \file{hyphenat} package also provides some other commands for |
| 2785 |
enabling hyphenation of words that include |
| 2786 |
analphabetic\index{character!analphabetic}\footnote{An {\it analphabetic} |
| 2787 |
character is any character |
| 2788 |
that is not alphabetic. Typically it refers to punctuation characters.} |
| 2789 |
characters. In this context, the phrase |
| 2790 |
`breakable character'\index{character!breakable} is used |
| 2791 |
to describe an analphabetic character that enables hyphenation immediately |
| 2792 |
after it and does not prevent further hyphenation in the `word' |
| 2793 |
in which it occurs. The \verb|\_|\index{_ /@\verb?\_?} command produces |
| 2794 |
a breakable underscore. Table~\ref{tab:breakable} lists all the commands |
| 2795 |
that generate breakable characters. |
| 2796 |
|
| 2797 |
\begin{table} |
| 2798 |
\centering |
| 2799 |
\caption{Commands producing breakable characters} \label{tab:breakable} |
| 2800 |
\begin{tabular}{|l|c|} \hline |
| 2801 |
\textbf{Command} & \textbf{Character} \\ \hline |
| 2802 |
\verb|\_| & \_ \\ |
| 2803 |
%\verb|\?| & \? \\ |
| 2804 |
\verb|\bshyp| & \bshyp \\ |
| 2805 |
\verb|\colonhyp| & \colonhyp \\ |
| 2806 |
\verb|\dothyp| & \dothyp \\ |
| 2807 |
\verb|\fshyp| & \fshyp \\ \hline |
| 2808 |
\end{tabular} |
| 2809 |
\end{table} |
| 2810 |
|
| 2811 |
The \verb|\bshyp|\ixcom{bshyp} command prodes a breakable backslash |
| 2812 |
(\verb|\|), \verb|\fshyp|\ixcom{fshp} produces a breakable forward |
| 2813 |
slash (\verb|/|), the \verb|\dothyp|\ixcom{dothyp} command produces a |
| 2814 |
breakable full stop (\verb|.|), also known in some countries as a period, |
| 2815 |
and the \verb|\colonhyp|\ixcom{colonhyp} command produces a breakable |
| 2816 |
colon (:). |
| 2817 |
|
| 2818 |
\begin{example} |
| 2819 |
This is similar to \eref{eg:uschyp} except that it demonstrates other |
| 2820 |
breakable characters. |
| 2821 |
|
| 2822 |
This set of \latex{} source |
| 2823 |
\begin{verbatim} |
| 2824 |
Analphabetically an\bshyp{}excessively\fshyp{}long\dothyp{}multiword\bshyp{}identifier% |
| 2825 |
\fshyp{}demonstrating\dothyp{}hyphenation |
| 2826 |
|
| 2827 |
\begin{minipage}{3cm} |
| 2828 |
Analphabetically an\bshyp{}excessively\fshyp{}long\dothyp{}multiword\bshyp{}identifier% |
| 2829 |
\fshyp{}demonstrating\dothyp{}hyphenation |
| 2830 |
\end{minipage} |
| 2831 |
\end{verbatim} |
| 2832 |
prints as: |
| 2833 |
|
| 2834 |
Analphabetically an\bshyp{}excessively\fshyp{}long\dothyp{}multiword\bshyp{}identifier% |
| 2835 |
\fshyp{}demonstrating\dothyp{}hyphenation |
| 2836 |
|
| 2837 |
\begin{minipage}{3cm} |
| 2838 |
Analphabetically an\bshyp{}excessively\fshyp{}long\dothyp{}multiword\bshyp{}identifier% |
| 2839 |
\fshyp{}demonstrating\dothyp{}hyphenation |
| 2840 |
\end{minipage} |
| 2841 |
|
| 2842 |
\end{example} |
| 2843 |
|
| 2844 |
\begin{note} |
| 2845 |
\latex{} will not hyphenate the first word in a paragraph. |
| 2846 |
\end{note} |
| 2847 |
|
| 2848 |
Just as with the \verb|\_|\index{_ /@\verb?\_?} command, |
| 2849 |
the discretionary hyphen |
| 2850 |
command (i.e., \verb|\-|\ixcom{-}) should not be used in conjunction with |
| 2851 |
any of the breakable character commands as it will then inhibit any |
| 2852 |
further potential hyphenation points. In general, any analphabetic |
| 2853 |
character in a word will inhibit further hyphenation. |
| 2854 |
|
| 2855 |
\normannex{Additional commands} \label{anx:extraiso} |
| 2856 |
|
| 2857 |
\sclause{Language configuration commands} |
| 2858 |
|
| 2859 |
There is an additional set of commands in the |
| 2860 |
\file{iso}\ixclass{iso} class |
| 2861 |
facility that |
| 2862 |
are specified here. This set has been provided to enable the style to be |
| 2863 |
easily configured for a non-English language.\index{non-English languages} |
| 2864 |
|
| 2865 |
The modified commands may be put in the document |
| 2866 |
preamble\index{preamble} or, preferably, |
| 2867 |
placed in a separate \file{.sty}\index{file!.sty} file and |
| 2868 |
called as a package. This latter option improves reuseability. |
| 2869 |
|
| 2870 |
\ssclause{Words and phrases} |
| 2871 |
|
| 2872 |
To produce a non-English version of the \file{iso}\ixclass{iso} |
| 2873 |
class the relevant commands |
| 2874 |
from the following list may require re-definition together with |
| 2875 |
the heading commands in \tref{tab:dsa}. |
| 2876 |
|
| 2877 |
\begin{note}In the listing, the default values are printed \emph{in this |
| 2878 |
font} to distinguish them from the explanatory text. |
| 2879 |
\end{note} % end note} |
| 2880 |
|
| 2881 |
\begin{itemize} |
| 2882 |
\item \verb|\annexname|\ixcom{annexname}: Header for |
| 2883 |
an annex. |
| 2884 |
Default value is: \emph{\annexname}\index{Annex} |
| 2885 |
\item \verb|\contentsname|\ixcom{contentsname}: Header |
| 2886 |
for table of contents listing. |
| 2887 |
Default value is: \emph{\contentsname}\index{Contents} |
| 2888 |
\item \verb|\copyrightname|\ixcom{copyrightname}: |
| 2889 |
The copyright owner. |
| 2890 |
Default value is: \emph{\copyrightname}\index{ISO} |
| 2891 |
\item \verb|\examplename|\ixcom{examplename}: |
| 2892 |
Identification of an example. |
| 2893 |
Default value is: \emph{\examplename}\index{EXAMPLE} |
| 2894 |
%\item \verb|\examplesname|\ixcom{examplesname}: |
| 2895 |
% Header for a list of examples. |
| 2896 |
% Default value is: \emph{\examplesname}\index{EXAMPLES} |
| 2897 |
\item \verb|\figurename|\ixcom{figurename}: Start of |
| 2898 |
the caption for a figure. |
| 2899 |
Default value is: \emph{\figurename}\index{Figure} |
| 2900 |
\item \verb|\forewordname|\ixcom{forewordname}: |
| 2901 |
Title of the Foreword. |
| 2902 |
Default value is: \emph{\forewordname}\index{Foreword} |
| 2903 |
\item \verb|\indexname|\ixcom{indexname}: Header for |
| 2904 |
the index. |
| 2905 |
Default value is: \emph{\indexname}\index{Index} |
| 2906 |
\item \verb|\informativename|\ixcom{informativename}: |
| 2907 |
Identification of an informative annex. |
| 2908 |
Default value is: \emph{\informativename}\index{informative} |
| 2909 |
\item \verb|\inscopename|\ixcom{inscopename}: |
| 2910 |
Introduction to in-scope listing. |
| 2911 |
Default value is: \emph{\inscopename} |
| 2912 |
\index{The following are within the scope of this} |
| 2913 |
\item \verb|\ISname|\ixcom{ISname}: |
| 2914 |
`INTERNATIONAL STANDARD' as used in the header for an IS title page. |
| 2915 |
Default value is: |
| 2916 |
\emph{\ISname}\index{INTERNATIONAL STANDARD} |
| 2917 |
\item \verb|\introductionname|\ixcom{introductionname}: |
| 2918 |
Title of the Introduction. |
| 2919 |
Default value is: |
| 2920 |
\emph{\introductionname}\index{Introduction} |
| 2921 |
\item \verb|\listannexname|\ixcom{listannexname}: |
| 2922 |
Header for list of annexes listing. |
| 2923 |
Default value is: \emph{\listannexname}\index{Annexes} |
| 2924 |
\item \verb|\listfigurename|\ixcom{listfigurename}: |
| 2925 |
Header for list of figures listing. |
| 2926 |
Default value is: \emph{\listfigurename}\index{Figures} |
| 2927 |
\item \verb|\listtablename|\ixcom{listtablename}: |
| 2928 |
Header for list of tables listing. |
| 2929 |
Default value is: \emph{\listtablename}\index{Tables} |
| 2930 |
\item \verb|\normativename|\ixcom{normativename}: |
| 2931 |
Identification of a normative annex. |
| 2932 |
Default value is: \emph{\normativename}\index{normative} |
| 2933 |
\item \verb|\normrefsname|\ixcom{normrefsname}: |
| 2934 |
Title of normative references clause. |
| 2935 |
Default value is: |
| 2936 |
\emph{\normrefsname}\index{Normative references} |
| 2937 |
\item \verb|\notename|\ixcom{notename}: |
| 2938 |
Identification of a note. |
| 2939 |
Default value is: \emph{\notename}\index{NOTE} |
| 2940 |
%\item \verb|\notesname|\ixcom{notesname}: |
| 2941 |
% Header for a list of notes. |
| 2942 |
% Default value is: \emph{\notesname}\index{NOTES} |
| 2943 |
\item \verb|\outofscopename|\ixcom{outofscopename}: |
| 2944 |
Introduction to out-of-scope listing. |
| 2945 |
Default value is: \emph{\outofscopename} |
| 2946 |
\index{The following are outside the scope of this} |
| 2947 |
\item \verb|\pagename|\ixcom{pagename}: |
| 2948 |
The word for the page header in the table of contents. |
| 2949 |
Default value is: \emph{\pagename}\index{Page} |
| 2950 |
\item \verb|\scopename|\ixcom{scopename}: |
| 2951 |
Title of the Scope. |
| 2952 |
Default value is: \emph{\scopename}\index{Scope} |
| 2953 |
%\item \verb|\sectionname|\ixcom{sectionname}: |
| 2954 |
% The word for a 'section'. |
| 2955 |
% Default value is: \emph{\sectionname}\index{Section} |
| 2956 |
\item \verb|\tablename|\ixcom{tablename}: |
| 2957 |
Start of the caption for a table. |
| 2958 |
Default value is: \emph{\tablename}\index{Table} |
| 2959 |
\item \verb|\tbpname|\ixcom{tbpname}: |
| 2960 |
Footnote text for `to be published.'. |
| 2961 |
Default value is: |
| 2962 |
\emph{\tbpname}\index{To be published.} |
| 2963 |
\end{itemize} |
| 2964 |
|
| 2965 |
The following commands provide the names for referenced document elements. |
| 2966 |
\begin{itemize} |
| 2967 |
\item \verb|\annexrefname|\ixcom{annexrefname}: |
| 2968 |
Reference to an annex. |
| 2969 |
Default value is: \emph{\annexrefname}\index{annex} |
| 2970 |
\item \verb|\clauserefname|\ixcom{clauserefname}: |
| 2971 |
Reference to a clause. |
| 2972 |
Default value is: \emph{\clauserefname}\index{clause} |
| 2973 |
\item \verb|\examplerefname|\ixcom{examplerefname}: |
| 2974 |
Reference to an example. |
| 2975 |
Default value is: \emph{\examplerefname}\index{example} |
| 2976 |
\item \verb|\figurerefname|\ixcom{figurerefname}: |
| 2977 |
Reference to a figure. |
| 2978 |
Default value is: \emph{\figurerefname}\index{figure} |
| 2979 |
\item \verb|\noterefname|\ixcom{noterefname}: |
| 2980 |
Reference to a note. |
| 2981 |
Default value is: \emph{\noterefname} |
| 2982 |
\item \verb|\tablerefname|\ixcom{tablerefname}: |
| 2983 |
Reference to a table. |
| 2984 |
Default value is: \emph{\tablerefname}\index{table} |
| 2985 |
\item \verb|\pagerefname|\ixcom{pagerefname}: |
| 2986 |
Reference to a page. |
| 2987 |
Default value is: \emph{\pagerefname}\index{page} |
| 2988 |
\end{itemize} |
| 2989 |
|
| 2990 |
|
| 2991 |
|
| 2992 |
\begin{note} The above commands, |
| 2993 |
may be changed via the \latex{} |
| 2994 |
\verb|\renewcommand|\ixcom{renewcommand}. |
| 2995 |
\end{note} % end note |
| 2996 |
\begin{note}The \latex{} command \verb|\today|\ixcom{today} |
| 2997 |
will probably also require modification. This is not something |
| 2998 |
for the casual user to attempt. |
| 2999 |
\end{note} % end note |
| 3000 |
|
| 3001 |
|
| 3002 |
\begin{example}The following is a partial list of the commands to convert to a |
| 3003 |
French language\index{French language} style. |
| 3004 |
\begin{verbatim} |
| 3005 |
\renewcommand{\annexname}{Annexe} |
| 3006 |
\renewcommand{\contentsname}{Sommaire} |
| 3007 |
\renewcommand{\examplename}{EXEMPLE} |
| 3008 |
%\renewcommand{\examplesname}{EXEMPLES} |
| 3009 |
\renewcommand{\forewordname}{Avant-propos} |
| 3010 |
\renewcommand{\ISname}{NORME INTERNATIONALE} |
| 3011 |
\renewcommand{\listtablename}{Tableaux} |
| 3012 |
\renewcommand{\scopename}{Domaine d'application} |
| 3013 |
\renewcommand{\tablename}{Tableau} |
| 3014 |
\end{verbatim} |
| 3015 |
\end{example} % end example |
| 3016 |
|
| 3017 |
\ssclause{Boilerplate} |
| 3018 |
|
| 3019 |
Some commands print boilerplate text; again, the default text is in English. |
| 3020 |
For \file{iso}\ixclass{iso} there are several such commands. The first is |
| 3021 |
\verb|\copyrightnotice|\ixcom{copyrightnotice} |
| 3022 |
which contains the text of the copyright notice |
| 3023 |
for an International Standard. This can be changed via the |
| 3024 |
\verb|\renewcommand|\ixcom{renewcommand} command. |
| 3025 |
|
| 3026 |
The second is \verb|\normrefbp|\ixcom{normrefbp} |
| 3027 |
which prints the boilerplate for the introduction to the Normative |
| 3028 |
references clause. Like the \verb|\copyrightnotice| command, this can |
| 3029 |
be redefined using the \verb|\renewcommand|. |
| 3030 |
|
| 3031 |
Another is the \verb|\fwdbp|\ixcom{fwdbp} command which |
| 3032 |
\verb|\input|s the boilerplate text from a file called \file{isofwdbp.tex}. |
| 3033 |
\index{isofwdbp.tex@\file{isofwdbp.tex}} For non-English text either |
| 3034 |
modify the contents of this |
| 3035 |
file or create a new file and modify the \verb|\fwdbp| command to call in |
| 3036 |
the new file. |
| 3037 |
|
| 3038 |
|
| 3039 |
|
| 3040 |
\begin{example}This is how \verb|\normrefbp| could be written for the |
| 3041 |
French language and in accordance with the second edition of the |
| 3042 |
ISO Directives. |
| 3043 |
\label{eg:frenchnfbp} |
| 3044 |
\begin{verbatim} |
| 3045 |
\renewcommand{\normrefbp}[1]{% |
| 3046 |
Les normes suivantes contiennent des dispositions qui, par |
| 3047 |
suite de la r\'{e}f\'{e}nce qui en est faite, constituent des |
| 3048 |
dispositions valables pour la pr\'{e}sente #1. |
| 3049 |
Au moment de la publication, les \'{e}ditions indiqu\'{e}es |
| 3050 |
\'{e}taient en viguer. Toute norms est sujette \`{a} r\'{e}vision et |
| 3051 |
les parties prenantes des accords fond\'{e}s sur la pr\'{e}sente #1 |
| 3052 |
sont invit\'{e}es \`{a} rechercher la possibilit\'{e} d'appliquer |
| 3053 |
les \'{e}ditions les plus r\'{e}centes des normes indiqu\'{e}es |
| 3054 |
ci-apr\`{e}s. Les membres de la CEI et de l'ISO poss\`{e}dent |
| 3055 |
le registre des Normes Internationales en vigueur \`{a} un |
| 3056 |
moment donn\'{e}. |
| 3057 |
}% end renewcommand |
| 3058 |
\end{verbatim} |
| 3059 |
\end{example} % end example |
| 3060 |
\begin{example}Given that \verb|\normrefbp| has been redefined as in \eref{eg:frenchnfbp}, |
| 3061 |
then the command \\ |
| 3062 |
\verb|\normrefbp{norme internationale}| will print: |
| 3063 |
|
| 3064 |
\newcommand{\tempbp}[1]{% |
| 3065 |
Les normes suivantes contiennent des dispositions qui, par |
| 3066 |
suite de la r\'{e}f\'{e}nce qui en est faite, constituent des |
| 3067 |
dispositions valables pour la pr\'{e}sente #1. |
| 3068 |
Au moment de la publication, les \'{e}ditions indiqu\'{e}es |
| 3069 |
\'{e}taient en viguer. Toute norms est sujette \`{a} r\'{e}vision et |
| 3070 |
les parties prenantes des accords fond\'{e}s sur la pr\'{e}sente #1 |
| 3071 |
sont invit\'{e}es \`{a} rechercher la possibilit\'{e} d'appliquer |
| 3072 |
les \'{e}ditions les plus r\'{e}centes des normes indiqu\'{e}es |
| 3073 |
ci-apr\`{e}s. Les membres de la CEI et de l'ISO poss\`{e}dent |
| 3074 |
le registre des Normes Internationales en vigueur \`{a} un |
| 3075 |
moment donn\'{e}. |
| 3076 |
}% end newcommand |
| 3077 |
|
| 3078 |
\tempbp{norme internationale} |
| 3079 |
\end{example} % end example |
| 3080 |
|
| 3081 |
|
| 3082 |
|
| 3083 |
The \verb|\tspasfwdbp|\ixcom{tspasfwdbp} also maintains |
| 3084 |
boilerplate text in the file |
| 3085 |
\file{tspasfwdbp.tex}\index{tspasfwdbp.tex@\file{tspasfwdbp.tex}}. |
| 3086 |
|
| 3087 |
\sclause{Caption text size} |
| 3088 |
|
| 3089 |
The size of the font used for typestting the captions of figures and |
| 3090 |
tables is defined within the \file{iso}\ixclass{iso} class. |
| 3091 |
% The |
| 3092 |
%\verb|uglycaption|\ixopt{uglycaption} option resets the size to larger |
| 3093 |
%than normal for the captioning text. |
| 3094 |
|
| 3095 |
The size of the captioning font is controlled by the value of the |
| 3096 |
\verb|\captionsize|\ixcom{captionsize} command. The default definition |
| 3097 |
of \verb|\captionsize| is similar to: |
| 3098 |
\verb|\captionsize{\normalsize}| \ixcom{normalsize}\\ |
| 3099 |
%The \verb|uglycaption| option resets this to (approximately): \\ |
| 3100 |
%\verb|\captionsize{\large}|. \ixcom{large} |
| 3101 |
|
| 3102 |
You can reset the \verb|\captionsize| at any point in your |
| 3103 |
document to change the size of captions from then onwards. |
| 3104 |
|
| 3105 |
All the normal \latex{} font size commands are available. |
| 3106 |
\begin{example} |
| 3107 |
The following shows the effects of the font size commands. \\ |
| 3108 |
\verb|{\tiny tiny text}|\ixcom{tiny} |
| 3109 |
prints: {\tiny tiny text} \\ |
| 3110 |
\verb|{\scriptsize scriptsize text}|\ixcom{scriptsize} |
| 3111 |
prints: {\scriptsize scriptsize text} \\ |
| 3112 |
\verb|{\footnotesize footnotesize text}|\ixcom{footnotesize} |
| 3113 |
prints: {\footnotesize footnotesize text} \\ |
| 3114 |
\verb|{\small small text}|\ixcom{small} |
| 3115 |
prints: {\small small text} \\ |
| 3116 |
\verb|{\normalsize normalsize text}|\ixcom{normalsize} |
| 3117 |
prints: {\normalsize normalsize text} \\ |
| 3118 |
\verb|{\large large text}|\ixcom{large} |
| 3119 |
prints: {\large large text} \\ |
| 3120 |
\verb|{\Large Large text}|\ixcom{Large} |
| 3121 |
prints {\Large Large text} \\ |
| 3122 |
\verb|{\LARGE LARGE text}|\ixcom{LARGE} |
| 3123 |
prints: {\LARGE LARGE text} \\ |
| 3124 |
\verb|{\huge huge text}|\ixcom{huge} |
| 3125 |
prints: {\huge huge text} \\ |
| 3126 |
\verb|{\Huge Huge text}|\ixcom{Huge} |
| 3127 |
prints: {\Huge Huge text} |
| 3128 |
\end{example} |
| 3129 |
|
| 3130 |
|
| 3131 |
\normannex{Ordering of LaTeX commands} \label{anx:lord} |
| 3132 |
|
| 3133 |
The \latex{} commands for the logical structuring of an ISO standard |
| 3134 |
document are: |
| 3135 |
\begin{verbatim} |
| 3136 |
\documentclass[<options>]{isov2} % for LaTeX 2e |
| 3137 |
\usepackage{<name>} % additional packages (LaTeX 2e) |
| 3138 |
\standard{<standard identification>} |
| 3139 |
\yearofedition{<year>} |
| 3140 |
\languageofedition{<parenthesized code letter>} |
| 3141 |
% other preamble commands |
| 3142 |
\begin{document} |
| 3143 |
\begin{foreword} % start Foreword |
| 3144 |
\fwdbp % boilerplate |
| 3145 |
% other text and perhaps \fwdnopatents |
| 3146 |
\end{foreword} |
| 3147 |
\begin{introduction} % start Introduction |
| 3148 |
% text and perhaps \intropatents |
| 3149 |
\end{introduction} |
| 3150 |
\title{<intro>}{<main>}{<compl>} % the title |
| 3151 |
\scopeclause % The Scope clause |
| 3152 |
\begin{inscope}{<document>} % in scope boilerplate |
| 3153 |
% \item list |
| 3154 |
\end{inscope} |
| 3155 |
% text |
| 3156 |
\begin{outofscope}{<document>} % out of scope boilerplate |
| 3157 |
% \item list |
| 3158 |
\end{outofscope} |
| 3159 |
% text |
| 3160 |
\normrefsclause % The Normative references clause |
| 3161 |
\normrefbp{<document identifier>} % boilerplate |
| 3162 |
\begin{nreferences} |
| 3163 |
% \isref{<p1>}{<p2>} and/or \disref{<p1>}{<p2>} commands |
| 3164 |
\end{nreferences} |
| 3165 |
% definitions, symbols, abbreviation clause as appropriate |
| 3166 |
\clause{<Clause title>} |
| 3167 |
% THE BODY OF THE DOCUMENT |
| 3168 |
% ... |
| 3169 |
% \normannex{<Normative annex title>} |
| 3170 |
% ... |
| 3171 |
% \infannex{<Infomative annex title>} |
| 3172 |
% ... |
| 3173 |
\bibannex % optional bibliography |
| 3174 |
% bibliography listing |
| 3175 |
% the index |
| 3176 |
\end{document} |
| 3177 |
\end{verbatim} |
| 3178 |
|
| 3179 |
|
| 3180 |
\infannex{Creating an index} \label{anx:indexing} |
| 3181 |
|
| 3182 |
\latex, although providing some assistance in preparing the data for an |
| 3183 |
index\index{index}, only does part of the job. Providing the command |
| 3184 |
\verb|\makeindex|\ixcom{makeindex} is put in the document's |
| 3185 |
preamble\index{preamble} |
| 3186 |
the \latex{} command \verb|\index{text}|\ixcom{index} |
| 3187 |
writes out \verb|text| to an \file{.idx}\index{file!.idx} file |
| 3188 |
in the following format:\ixcom{indexentry} |
| 3189 |
\begin{verbatim} |
| 3190 |
\indexentry{text}{pg} |
| 3191 |
\end{verbatim} |
| 3192 |
where \verb|pg| is the page number in the document where the \verb|\index| |
| 3193 |
command occurred. |
| 3194 |
|
| 3195 |
The \verb|theindex|\ixenv{theindex} environment |
| 3196 |
is used for printing an index. The format of this is: |
| 3197 |
\begin{verbatim} |
| 3198 |
\begin{theindex} |
| 3199 |
\item <text and page numbers> |
| 3200 |
\subitem <text and page numbers> |
| 3201 |
\subsubitem <text and page numbers> |
| 3202 |
. |
| 3203 |
. |
| 3204 |
\end{theindex} |
| 3205 |
\end{verbatim} |
| 3206 |
where \verb|\item|\ixcom{item} is a major topic entry, |
| 3207 |
\verb|\subitem|\ixcom{subitem} is a sub-topic entry, and |
| 3208 |
\verb|\subsubitem|\ixcom{subsubitem} is a sub-subtopic |
| 3209 |
entry. The command \verb|\indexspace|\ixcom{indexspace} |
| 3210 |
can be used to add space between the entries. Other text and commands can also |
| 3211 |
occur within the environment. |
| 3212 |
|
| 3213 |
\latex{} provides no help in going from an \file{.idx} file to the |
| 3214 |
\verb|theindex| environment~\bref{lamport}. The data in the file has to be |
| 3215 |
sorted, duplicate page numbers deleted, etc, and then re-written in the |
| 3216 |
desired environment format. |
| 3217 |
|
| 3218 |
The typical process for producing a document with an index is: |
| 3219 |
\begin{enumerate} |
| 3220 |
\item Prepare the source file, say \file{fred.tex}, with the command |
| 3221 |
\verb|\makeindex|\ixcom{makeindex} in the |
| 3222 |
preamble\index{preamble}, and \verb|\index|\ixcom{index} |
| 3223 |
commands within the body of the text. |
| 3224 |
\item Run \latex. As well as producing the usual output files, it will also |
| 3225 |
produce the file \file{fred.idx}. |
| 3226 |
\item By some means produce a file, let's call it \file{fredidx.tex}, from the |
| 3227 |
data in \file{fred.idx} that contains the appropriate \verb|theindex| |
| 3228 |
formatted data. |
| 3229 |
\item Run \latex{} again on \file{fred.tex} which now has to contain (either |
| 3230 |
via \verb|\input|\ixcom{input} or \verb|\include|\ixcom{include}) |
| 3231 |
the file \file{fredidx.tex}. |
| 3232 |
\end{enumerate} |
| 3233 |
|
| 3234 |
Chen and Harrison~\bref{chen} discuss the problems of creating an index |
| 3235 |
in their |
| 3236 |
paper \emph{Index preparation and processing} and also describe the |
| 3237 |
{\sc MakeIndex}\index{makeIndex@{\sc MakeIndex}} program. Goosens, Mittelbach |
| 3238 |
and Samarin~\bref{goosens} also describe how to use the {\sc MakeIndex} |
| 3239 |
program for producing indexes for \latex{} documents. For users of |
| 3240 |
{\sc MakeIndex} a style file called |
| 3241 |
\file{iso.ist}\index{iso.ist@\file{iso.ist}}\index{file!.ist} is provided as |
| 3242 |
part of this distribution. |
| 3243 |
|
| 3244 |
\sclause{The index command}\ixcom{index} |
| 3245 |
|
| 3246 |
The \verb|\index| command is one of the standard \latex{} commands. |
| 3247 |
The command format is \verb|\index{|\meta{str}\verb|}|, where \meta{str} |
| 3248 |
is any |
| 3249 |
string of characters, and it writes an entry to the \file{.idx} file in |
| 3250 |
the form \verb|\indexentry{<str>}{pg}|, where \verb|pg| is the page |
| 3251 |
number in the document where the command is called. |
| 3252 |
|
| 3253 |
Some points to note: |
| 3254 |
\begin{itemize} |
| 3255 |
\item The \verb|\index| command is, in \latex{} terminology, |
| 3256 |
\emph{fragile}\index{fragile}. That is, if it appears in a moving |
| 3257 |
argument (like the caption to a table or figure) it must be preceded |
| 3258 |
by the \latex{} \verb|\protect|\ixcom{protect} |
| 3259 |
command. |
| 3260 |
\item Any of the ten \latex{} special characters\index{special characters} |
| 3261 |
(i.e., \verb|#|, \verb|$|, \verb|%|, \verb|&|, \verb|~|, \verb|_|, |
| 3262 |
\verb|^|, \verb|\|, \verb|{| and \verb|}|) may appear |
| 3263 |
within the argument, with the proviso that it must have no unmatched |
| 3264 |
braces (the braces in \verb|\{| and \verb|\}| are counted in the |
| 3265 |
matching process). |
| 3266 |
\item The \verb|\index| command must not appear inside another command's |
| 3267 |
argument (e.g., within a |
| 3268 |
\verb|\footnote|\ixcom{footnote} or \verb|\clause|\ixcom{clause} |
| 3269 |
command) unless the argument of the \verb|\index| command contains |
| 3270 |
only letters, digits, and/or punctuation characters. In particular, |
| 3271 |
it should not contain any of the special characters. |
| 3272 |
\begin{note}This means that the argument of the \verb|\ix|\ixcom{ix} |
| 3273 |
command should not contain any special characters. Remember that the |
| 3274 |
\verb|\ix| command prints its argument in the body of the text and also |
| 3275 |
calls \verb|\index| to place its argument into the \file{.idx} file. |
| 3276 |
\end{note} % end note |
| 3277 |
\end{itemize} |
| 3278 |
|
| 3279 |
\begin{note}Under some circumstances, an \verb|\index| command appearing in another |
| 3280 |
command's argument may contain special characters, provided they are |
| 3281 |
\verb|\protect|ed. Determination of when this is satisfactory is a process |
| 3282 |
of trial and error. |
| 3283 |
\end{note} % end note |
| 3284 |
|
| 3285 |
\begin{example}The command \verb|\ix{an\protect\_underscore}| will print the |
| 3286 |
characters \emph{an\_undescore} |
| 3287 |
in the text and also write the following to the \file{.idx} file: |
| 3288 |
\begin{verbatim} |
| 3289 |
\indexentry{an\_ underscore}{pg} |
| 3290 |
\end{verbatim} |
| 3291 |
Notice that there is a space between the underscore character and the word |
| 3292 |
`underscore' in the \file{.idx} file (but there is no space in the printed |
| 3293 |
body of the document text). This extraneous space may have to be edited out |
| 3294 |
from the final index. |
| 3295 |
\end{example} % end example |
| 3296 |
|
| 3297 |
|
| 3298 |
\begin{comment} |
| 3299 |
|
| 3300 |
\sclause{The program GenIndex} \index{genindex@GenIndex} |
| 3301 |
|
| 3302 |
GenIndex is a C program\index{C language} that converts \file{.idx} |
| 3303 |
data to \verb|theindex|\ixenv{theindex} data. |
| 3304 |
Source code for GenIndex is freely available from |
| 3305 |
the NIST SOLIS\index{SOLIS} system (see \ref{anx:solis}). |
| 3306 |
The GenIndex program is not |
| 3307 |
as sophisticated as {\sc MakeIndex} but does a reasonable |
| 3308 |
job.\footnote{These two programs are not completely compatible but do have |
| 3309 |
a common subset of commands. The common subset excludes the {\tt SeeAlso} |
| 3310 |
and {\tt See} commands. At some later time GenIndex may be rewritten to |
| 3311 |
be compatible with {\sc MakeIndex}. It is probably advisable, therefore, not |
| 3312 |
to use the GenIndex {\tt SeeAlso} and {\tt See} commands.} |
| 3313 |
|
| 3314 |
|
| 3315 |
\ssclause{Input} \index{genindex@GenIndex!input} |
| 3316 |
|
| 3317 |
GenIndex reads lines of data of the form: |
| 3318 |
\begin{verbatim} |
| 3319 |
\indexentry{IndexData}{Page} |
| 3320 |
\end{verbatim} |
| 3321 |
|
| 3322 |
\verb|Page| is a character string representing a page number. GenIndex only |
| 3323 |
recognizes strings that represent integer values greater than or equal to zero, |
| 3324 |
or (upper and lower case) roman numerals. For any other numbering system, the |
| 3325 |
page number is treated as zero. |
| 3326 |
|
| 3327 |
\verb|IndexData| is a string of characters and command characters that |
| 3328 |
specify the data that is to be indexed. In the simplest case, this is just the |
| 3329 |
word or phrase to appear in the index, but much more can be done than this, as |
| 3330 |
is described below. |
| 3331 |
|
| 3332 |
The general form of \verb|IndexData| is given by the following partial |
| 3333 |
grammar: |
| 3334 |
\begin{verbatim} |
| 3335 |
IndexData = MainData ['!' SubData ['!' SubSubData ] ] . |
| 3336 |
MainData = Data . |
| 3337 |
SubData = Data . |
| 3338 |
SubSubData = Data . |
| 3339 |
Data = Key [ Entry ] [ SeeAlso ] [ See ] . |
| 3340 |
Key = any string not containing the @, !, + or * characters . |
| 3341 |
Entry = '@' any string not containing the !, + or * characters |
| 3342 |
(unless enclosed in braces {} ) . |
| 3343 |
SeeAlso = '+' any string not containing the ! or * characters |
| 3344 |
(unless enclosed in braces {} ) . |
| 3345 |
See = '*' any string not containing the ! character |
| 3346 |
(unless enclosed in braces {} ) . |
| 3347 |
\end{verbatim} |
| 3348 |
|
| 3349 |
Upto three levels of indexing are enabled --- a main topic entry, an optional |
| 3350 |
sub-topic, and an optional sub-subtopic. The sub-topics for an entry are |
| 3351 |
introduced by the \verb|!| character. \index{(33@{\verb?!?}} |
| 3352 |
|
| 3353 |
Apart from \verb|Key|, braces within a string must be matched. That is, |
| 3354 |
they must appear in pairs of an opening and a closing brace. |
| 3355 |
Spaces are significant within the \verb|Key| string, but not in the others. |
| 3356 |
That is, \verb*|\indexentry{A}| differs from \verb*|\indexentry{ A}| |
| 3357 |
both of which differ from \verb*|\indexentry{A }|. |
| 3358 |
|
| 3359 |
|
| 3360 |
\begin{example}Here is an index entry for a simple topic: |
| 3361 |
\begin{verbatim} |
| 3362 |
\indexentry{Topic}{27} |
| 3363 |
\end{verbatim} |
| 3364 |
\end{example} % end example |
| 3365 |
\begin{example}And here is one where the key and the main entry are different, a |
| 3366 |
sub-topic is being indexed, and the page is in roman numerals: |
| 3367 |
\begin{verbatim} |
| 3368 |
\indexentry{main@\textbf{Main}!sub topic}{xviii} |
| 3369 |
\end{verbatim} |
| 3370 |
\end{example} % end example |
| 3371 |
\begin{example}This is how the characters \verb|@|, \verb|!|, \verb|+| and |
| 3372 |
\verb|*| characters are indexed in this document. |
| 3373 |
\begin{verbatim} |
| 3374 |
\index{(64@{\verb?@?}} |
| 3375 |
\index{(33@{\verb?!?}} |
| 3376 |
\index{(43@{\verb?+?}} |
| 3377 |
\index{(42@{\verb?*?}} |
| 3378 |
\end{verbatim} |
| 3379 |
\end{example} % end example |
| 3380 |
|
| 3381 |
|
| 3382 |
\sssclause{Key} \index{genindex@GenIndex!input!key} |
| 3383 |
|
| 3384 |
The indexed entries are sorted alphabetically on the value of \verb|Key|. |
| 3385 |
Sorting is case-insensitive. A \verb|Key| value is required. |
| 3386 |
|
| 3387 |
More precisely, the key entries are sorted according to the |
| 3388 |
C language\index{C language} implementation collating sequence, which is usually ASCII. |
| 3389 |
Table~\ref{tab:ascii} gives the ASCII collating sequence for the \latex\ |
| 3390 |
character set. \index{ASCII} |
| 3391 |
|
| 3392 |
|
| 3393 |
\begin{table} |
| 3394 |
\def\vissp{\hbox{\tt\char`\ }} % visible space |
| 3395 |
\centering |
| 3396 |
\caption{The \protect\latex{} ASCII character set} \label{tab:ascii} |
| 3397 |
\begin{tabular}{|r|c|c|c|c|c|c|c|c|c|c|} \hline |
| 3398 |
& \textbf{0} & \textbf{1} & \textbf{2} & \textbf{3} & \textbf{4} & |
| 3399 |
\textbf{5} & \textbf{6} & \textbf{7} & \textbf{8} & \textbf{9} \\ \hline\hline |
| 3400 |
\textbf{30} & & & \vissp & \verb|!| & \verb|"| & |
| 3401 |
\verb|#| & \verb|$| & \verb|%| & \verb|&| & \verb|'| \\ |
| 3402 |
\textbf{40} & \verb|(| & \verb|)| & \verb|*| & \verb|+| & \verb|,| & |
| 3403 |
\verb|-| & \verb|.| & \verb|/| & \verb|0| & \verb|1| \\ |
| 3404 |
\textbf{50} & \verb|2| & \verb|3| & \verb|4| & \verb|5| & \verb|6| & |
| 3405 |
\verb|7| & \verb|8| & \verb|9| & \verb|:| & \verb|;| \\ |
| 3406 |
\textbf{60} & \verb|<| & \verb|=| & \verb|>| & \verb|?| & \verb|@| & |
| 3407 |
\verb|A| & \verb|B| & \verb|C| & \verb|D| & \verb|E| \\ |
| 3408 |
\textbf{70} & \verb|F| & \verb|G| & \verb|H| & \verb|I| & \verb|J| & |
| 3409 |
\verb|K| & \verb|L| & \verb|M| & \verb|N| & \verb|O| \\ |
| 3410 |
\textbf{80} & \verb|P| & \verb|Q| & \verb|R| & \verb|S| & \verb|T| & |
| 3411 |
\verb|U| & \verb|V| & \verb|W| & \verb|X| & \verb|Y| \\ |
| 3412 |
\textbf{90} & \verb|Z| & \verb|[| & \verb|\| & \verb|]| & \verb|^| & |
| 3413 |
\verb|_| & \verb|`| & \verb|a| & \verb|b| & \verb|c| \\ |
| 3414 |
\textbf{100} & \verb|d| & \verb|e| & \verb|f| & \verb|g| & \verb|h| & |
| 3415 |
\verb|i| & \verb|j| & \verb|k| & \verb|l| & \verb|m| \\ |
| 3416 |
\textbf{110} & \verb|n| & \verb|o| & \verb|p| & \verb|q| & \verb|r| & |
| 3417 |
\verb|s| & \verb|t| & \verb|u| & \verb|v| & \verb|w| \\ |
| 3418 |
\textbf{120} & \verb|x| & \verb|y| & \verb|z| & \verb|{| & \verb/|/ & |
| 3419 |
\verb|}| & \verb|~| & & & \\ \hline |
| 3420 |
\end{tabular} |
| 3421 |
\end{table} |
| 3422 |
|
| 3423 |
\sssclause{Entry} \index{genindex@GenIndex!input!entry} |
| 3424 |
\index{(64@{\verb?@?}} |
| 3425 |
|
| 3426 |
\verb|Entry| is optional and is introduced by the \verb|@| character. If present, this will form the indexed string. |
| 3427 |
If absent, then the value of \verb|Key| is used instead. |
| 3428 |
|
| 3429 |
\sssclause{See also} \index{genindex@GenIndex!input!see also} |
| 3430 |
\index{(43@{\verb?+?}} |
| 3431 |
|
| 3432 |
\verb|SeeAlso| is optional and is introduced by the \verb|+| character. |
| 3433 |
Within a document, it should only be used once |
| 3434 |
per entry. If used more than once, then only the last value is taken. |
| 3435 |
|
| 3436 |
This is used to produce an entry that refers to another indexed entry in |
| 3437 |
a \emph{see also \ldots} style. |
| 3438 |
|
| 3439 |
\sssclause{See} \index{genindex@GenIndex!input!see} |
| 3440 |
\index{(42@{\verb?*?}} |
| 3441 |
|
| 3442 |
\verb|See| is optional and is introduced by the \verb|*| character. |
| 3443 |
Within a document, it should be used only once per |
| 3444 |
entry. If used more than once, then only the last value is taken. |
| 3445 |
|
| 3446 |
This is used to produce an entry that refers to another entry in a |
| 3447 |
\emph{see \ldots} style. Use of this option prohibits printing page numbers |
| 3448 |
for the entry. |
| 3449 |
|
| 3450 |
\ssclause{Output} \index{genindex@GenIndex!output} |
| 3451 |
|
| 3452 |
The program GenIndex sorts the entries into alphabetical order (based on |
| 3453 |
the \verb|Key| values), and produces a \verb|theindex| for the input data. |
| 3454 |
Several formatting commands are included in the output file to enable |
| 3455 |
adjustment of the appearance of the printed index. These are shown in |
| 3456 |
\tref{tab:indexc}. |
| 3457 |
|
| 3458 |
\begin{table} |
| 3459 |
\centering |
| 3460 |
\caption{GenIndex formatting commands} \label{tab:indexc} |
| 3461 |
\begin{tabular}{|l|l|} \hline |
| 3462 |
\textbf{Command} & \textbf{Effect} \\ \hline |
| 3463 |
\verb|\indexfill|\ixcom{indexfill} & |
| 3464 |
spacing style between main topic and page numbers \\ |
| 3465 |
\verb|\sindexfill|\ixcom{sindexfill} & |
| 3466 |
spacing style between subtopic and page numbers \\ |
| 3467 |
\verb|\ssindexfill|\ixcom{ssindexfill} & |
| 3468 |
spacing between sub-subtopic and page numbers \\ |
| 3469 |
\verb|\indexsee{text}|\ixcom{indexsee} & |
| 3470 |
produces \verb|text| as a \emph{see} entry \\ |
| 3471 |
\verb|\indexseealso{text}|\ixcom{indexseealso} & |
| 3472 |
produces \verb|text| as a \emph{see also} entry \\ |
| 3473 |
\verb|\otherindexspace{c}|\ixcom{otherindexspace} & |
| 3474 |
heading for non-alphabetic entry \\ |
| 3475 |
\verb|\alphaindexspace{c}|\ixcom{alphaindexspace} & |
| 3476 |
heading for an alphabetic entry \\ \hline |
| 3477 |
\end{tabular} |
| 3478 |
\end{table} |
| 3479 |
|
| 3480 |
|
| 3481 |
\begin{note}The commands in \tref{tab:indexc} are defined in the |
| 3482 |
\file{iso}\ixclass{iso} class file. |
| 3483 |
\end{note} |
| 3484 |
\begin{note}If the commands are not defined in your system, |
| 3485 |
then you can define them |
| 3486 |
using the \latex{} \verb|\newcommand|\ixcom{newcommand} |
| 3487 |
command. On the other hand, if they are defined in your system, |
| 3488 |
you can change them using the |
| 3489 |
\latex{} \verb|\renewcommand|\ixcom{renewcommand} command. |
| 3490 |
\end{note} % end note |
| 3491 |
|
| 3492 |
|
| 3493 |
\begin{example} |
| 3494 |
This input file: |
| 3495 |
\begin{verbatim} |
| 3496 |
\indexentry{Freddy+Fred}{27} |
| 3497 |
\indexentry{Frederick*Fred}{29} |
| 3498 |
\indexentry{Fred}{42} |
| 3499 |
\indexentry{Fred}{52} |
| 3500 |
\indexentry{Fred}{43} |
| 3501 |
\end{verbatim} |
| 3502 |
will produce output like: |
| 3503 |
\begin{verbatim} |
| 3504 |
\begin{theindex} |
| 3505 |
\alphaindexspace{F} |
| 3506 |
\item Fred \indexfill 42--43, 52 |
| 3507 |
\item Frederick \indexsee{Fred} |
| 3508 |
\item Freddy \indexfill 27 \indexseealso{Fred} |
| 3509 |
\end{theindex} |
| 3510 |
\end{verbatim} |
| 3511 |
\end{example} % end example |
| 3512 |
|
| 3513 |
\sssclause{Indexfill commands} |
| 3514 |
|
| 3515 |
The commands \verb|\indexfill{|\meta{style}\verb|}|\ixcom{indexfill}, |
| 3516 |
\verb|\sindexfill{|\meta{style}\verb|}|\ixcom{sindexfill} and |
| 3517 |
\verb|\ssindexfill{|\meta{style}\verb|}|\ixcom{ssindexfill} |
| 3518 |
control the style of spacing between an indexed entry and its corresponding |
| 3519 |
page numbers. |
| 3520 |
|
| 3521 |
\begin{example} |
| 3522 |
If you want to have the page numbers right justified, with lines between the |
| 3523 |
main topics and their numbers, dots between sub-topics and pages, and |
| 3524 |
sub-subtopic numbers right justified, then you could define these commands as: |
| 3525 |
\begin{verbatim} |
| 3526 |
\newcommand{\indexfill}{\hrulefill} |
| 3527 |
\newcommand{\sindexfill}{\dotfill} |
| 3528 |
\newcommand{\ssindexfill}{\hfill} |
| 3529 |
\end{verbatim} |
| 3530 |
\end{example} % end example |
| 3531 |
|
| 3532 |
|
| 3533 |
\begin{anote}The usual \latex{} style is to have a small gap between the |
| 3534 |
topic and page number, the whole being set ragged right. |
| 3535 |
If this is what you want, then define the commands as: |
| 3536 |
\begin{verbatim} |
| 3537 |
\newcommand{\indexfill}{} |
| 3538 |
\newcommand{\sindexfill}{} |
| 3539 |
\newcommand{\ssindexfill}{} |
| 3540 |
\end{verbatim} |
| 3541 |
\end{anote} % end note |
| 3542 |
|
| 3543 |
\sssclause{Indexsee and indexseealso commands} |
| 3544 |
|
| 3545 |
The \verb?\indexsee{?\meta{text}\verb?}?\ixcom{indexsee} and |
| 3546 |
\verb?\indexseealso{?\meta{text}\verb?}?\ixcom{indexseealso} commands |
| 3547 |
control the appearance |
| 3548 |
of the \emph{see} and \emph{see also} text. |
| 3549 |
|
| 3550 |
|
| 3551 |
\begin{example} |
| 3552 |
These commands could be defined as: |
| 3553 |
\begin{verbatim} |
| 3554 |
\newcommand{\indexsee}[1]{\par \hspace*{2em} \emph{see} #1} |
| 3555 |
\newcommand{\indexseealso}[1]{\par \hspace*{2em} \emph{see also} #1} |
| 3556 |
\end{verbatim} |
| 3557 |
\end{example} % end example |
| 3558 |
|
| 3559 |
\sssclause{Index space commands} |
| 3560 |
\ixcom{alphaindexspace} |
| 3561 |
\ixcom{otherindexspace} |
| 3562 |
|
| 3563 |
The commands |
| 3564 |
\verb?\alphaindexspace{?\meta{c}\verb?}?\ixcom{alphaindexspace} and |
| 3565 |
\verb?\otherindexspace{?\meta{c}\verb?}?\ixcom{otherindexspace} |
| 3566 |
control the amount of space between blocks of index entries. |
| 3567 |
These are an extension of the |
| 3568 |
\latex{} \verb|\indexspace|\ixcom{indexspace} |
| 3569 |
command, which just inserts some vertical space into the index listing. |
| 3570 |
Both these commands take a single parameter, which is typically a single |
| 3571 |
character. |
| 3572 |
|
| 3573 |
\begin{anote} |
| 3574 |
GenIndex looks at the first character (call it \verb|c|) of the \verb|Key| |
| 3575 |
and if this changes |
| 3576 |
as it processes the ordered list of main topics, it puts that character |
| 3577 |
as the parameter for these commands. It writes \verb|\alphaindexspace{c}| if |
| 3578 |
the character is alphabetic (and \verb|c| is put into upper-case), |
| 3579 |
otherwise it writes \verb|\otherindexspace{c}|. |
| 3580 |
\end{anote} % end note |
| 3581 |
|
| 3582 |
\begin{example} |
| 3583 |
These commands could be defined as: |
| 3584 |
\begin{verbatim} |
| 3585 |
\newcommand{\alphaindexspace}[1]{\indexspace |
| 3586 |
{\bfseries #1}} |
| 3587 |
\newcommand{\otherindexspace}[1]{} |
| 3588 |
\end{verbatim} |
| 3589 |
which would result in the printing of a vertical space and a bold font text |
| 3590 |
for an alphabetic header, or nothing for anything else. |
| 3591 |
\end{example} % end example |
| 3592 |
|
| 3593 |
\ssclause{Running GenIndex} \index{genindex@GenIndex!run} |
| 3594 |
|
| 3595 |
To run GenIndex, first obtain a copy of the program, and compile it if |
| 3596 |
necessary. Execute the program on your data. |
| 3597 |
|
| 3598 |
GenIndex takes zero, one or two file names as parameters. If no files are |
| 3599 |
given then input and output is from and to \verb|stdin| and \verb|stdout| |
| 3600 |
respectively. |
| 3601 |
|
| 3602 |
If one file is given, then input is taken from this file, and output |
| 3603 |
is to \verb|stdout|. |
| 3604 |
|
| 3605 |
If two file names are given, then input is taken from the first and output |
| 3606 |
is to the second. |
| 3607 |
|
| 3608 |
\begin{example} |
| 3609 |
A typical usage would be: |
| 3610 |
\begin{verbatim} |
| 3611 |
GenIndex fred.idx fredidx.tex |
| 3612 |
\end{verbatim} |
| 3613 |
which would read the \file{fred.idx} file and write the resulting index data to |
| 3614 |
file \file{fredidx.tex}. |
| 3615 |
\end{example} % end example |
| 3616 |
|
| 3617 |
\end{comment} |
| 3618 |
|
| 3619 |
% sgmlannx.tex latex and SGML |
| 3620 |
|
| 3621 |
\infannex{LaTeX, the Web, and *ML} \label{anx:sgml} \index{SGML} |
| 3622 |
|
| 3623 |
ISO are becoming more interested in electronic sources for their |
| 3624 |
standards as well as the traditional camera-ready copy. Acronyms like |
| 3625 |
PDF, HTML, SGML and XML have been bandied about. Fortunately documents |
| 3626 |
written using \latex{} are well placed to be provided in a variety of |
| 3627 |
electronic formats. A comprehensive treatment of \latex{} with respect |
| 3628 |
to this topic is provided by Goossens and Rahtz~\bref{lwebcom}. |
| 3629 |
|
| 3630 |
SGML (Standard Generalized Markup Language) is a document tagging |
| 3631 |
language that is described in ISO~8879~\bref{sgml} and whose usage is described |
| 3632 |
in~\bref{bryan}, among others. The principal |
| 3633 |
mover behind SGML is Charles Goldfarb from IBM, who has authored a detailed |
| 3634 |
handbook~\bref{goldfarb} on the SGML standard. |
| 3635 |
|
| 3636 |
The concepts lying behind both \latex{} and SGML are similar, but on the face |
| 3637 |
of it they are distinctly different in both syntax and capabilities. ISO is |
| 3638 |
migrating towards electronic versions of its standard documents and, naturally, |
| 3639 |
would prefer these to be SGML tagged. |
| 3640 |
Like \latex, SGML has a |
| 3641 |
concept of style files, which are termed DTDs, and both systems support |
| 3642 |
powerful macro-like capabilities. SGML provides for logical document |
| 3643 |
markup and not typesetting --- commercial SGML systems often use |
| 3644 |
\TeX{} or \latex{} as their printing engine, as does the NIST SGML |
| 3645 |
environment for ISO~10303~\bref{pandl}. |
| 3646 |
|
| 3647 |
|
| 3648 |
|
| 3649 |
NIST have SGML tagged some ISO~10303 documents |
| 3650 |
using manual methods, which are time consuming and expensive. |
| 3651 |
About 1997 there was a NIST |
| 3652 |
effort underway to develop an auto-tagger that would (semi-) automatically convert |
| 3653 |
a \latex{} tagged document to one with SGML tags. This tool assumed a |
| 3654 |
fixed set of \latex{} macros and a fixed DTD. |
| 3655 |
The design of an auto-tagger |
| 3656 |
essentially boils down to being able to convert from a source document tagged |
| 3657 |
according to a \latex{} style file to one which is tagged according to an |
| 3658 |
SGML DTD. |
| 3659 |
Fully automatic conversion is really only possible if the authors' |
| 3660 |
of the documents to be translated avoid using any `non-standard' macros within |
| 3661 |
their documents. There is a program called \file{ltx2x}\index{ltx2x} available |
| 3662 |
from SOLIS, which replaces \latex{} commands within a document with |
| 3663 |
user-defined text strings~\bref{ltx2x}. This can be used as a basis for |
| 3664 |
a \latex{} to whatever auto-tagger, provided the \latex{} commands are not |
| 3665 |
too exotic. |
| 3666 |
|
| 3667 |
HTML is a simple markup language, based on SGML, and is used for the |
| 3668 |
publication of many documents on the Web. XML is a subset of SGML and appears |
| 3669 |
to being taken up by every man and his dog as \emph{the} document markup |
| 3670 |
language. HTML is being recast in terms of XML instead of SGML. PDF is a page |
| 3671 |
description language that is a popular format for display of documents |
| 3672 |
on the Web. |
| 3673 |
|
| 3674 |
\latex{} documents can be output in PDF by using pdfLaTeX. Instead |
| 3675 |
of a \file{.dvi} file being produced a \file{.pdf} file is output directly. |
| 3676 |
The best |
| 3677 |
results are obtained when PostScript fonts rather than Knuth's cm fonts |
| 3678 |
are used. Noting that the \file{iso} class provides an \verb|\ifpdf| command, |
| 3679 |
a general form for documents to be processed by either \latex{} or pdfLaTeX |
| 3680 |
is |
| 3681 |
\begin{verbatim} |
| 3682 |
\documentclass{isov2} |
| 3683 |
\usepackage{times} % PostScript fonts Times, Courier, Helvetica |
| 3684 |
\ifpdf |
| 3685 |
\pdfoutput=1 % request PDF output |
| 3686 |
\usepackage[pdftex]{graphicx} |
| 3687 |
\else |
| 3688 |
\usepackage{graphicx} |
| 3689 |
\fi |
| 3690 |
... |
| 3691 |
\end{verbatim} |
| 3692 |
|
| 3693 |
There are several converters available to transform a \latex{} document |
| 3694 |
into an HTML document, but like \file{ltx2x} they generally do their own |
| 3695 |
parsing of the source file, and unlike \file{ltx2x} are typically limited |
| 3696 |
to only generating HTML. Eitan Gurari's \file{TeX4ht}\index{TeX4ht} |
| 3697 |
suite is a notable |
| 3698 |
exception (see Chapter~4 and Appendix~B of~\bref{lwebcom}). It uses the |
| 3699 |
\file{.dvi} file as input, so that all the parsing is done by \TeX, and can be |
| 3700 |
configured to generate a wide variety of output formats. |
| 3701 |
A set of \file{TeX4ht} configuration files are available for converting |
| 3702 |
ISO \latex{} documents into HTML\footnote{Later, configuration files for XML |
| 3703 |
output will be developed.}. |
| 3704 |
|
| 3705 |
Some points to watch when writing \latex{} documents that will assist |
| 3706 |
in translations into *ML are given below. Typically, attention to these points |
| 3707 |
will make it easier to parse the \latex{} source. |
| 3708 |
|
| 3709 |
\begin{itemize} |
| 3710 |
\item Avoid using the \verb|\label|\ixcom{label} command within |
| 3711 |
clause headings or captions. It can just as easily be placed immediately |
| 3712 |
after these constructs. |
| 3713 |
\item Avoid using the \verb|\index|\ixcom{index} command within |
| 3714 |
clause headings or captions. It can just as easily be placed immediately |
| 3715 |
after these constructs. |
| 3716 |
\end{itemize} |
| 3717 |
|
| 3718 |
|
| 3719 |
|
| 3720 |
|
| 3721 |
|
| 3722 |
|
| 3723 |
\infannex{Obtaining LaTeX and friends} \label{anx:getstuff} |
| 3724 |
|
| 3725 |
\latex{} is a freely available document typesetting system. There are many |
| 3726 |
public domain additions to the basic system. |
| 3727 |
The information below gives pointers to where |
| 3728 |
you can obtain \latex{} etc., from the\index{Internet} Internet. |
| 3729 |
|
| 3730 |
\latex{} runs on a wide variety of hardware, from PCs to Crays. |
| 3731 |
Source to build a \latex{} system is freely available via anonymous |
| 3732 |
ftp\index{ftp} from what is called CTAN\index{CTAN} |
| 3733 |
(Comprehensive \tex{} Archive Network). |
| 3734 |
There are three sites; pick the one nearest to you. |
| 3735 |
\begin{itemize} |
| 3736 |
\item \url{ftp.dante.de} CTAN in Germany; |
| 3737 |
\item \url{ftp.tex.ac.uk} CTAN in the UK; |
| 3738 |
\item \url{ctan.tug.org} CTAN in the USA; |
| 3739 |
\end{itemize} |
| 3740 |
The top level CTAN directory for \latex{} and friends is |
| 3741 |
\url{/tex-archive}. CTAN contains a wide variety |
| 3742 |
of (La)TeX sources, style files, and software tools and scripts |
| 3743 |
to assist in document processing. |
| 3744 |
|
| 3745 |
\begin{anote} |
| 3746 |
CTAN is maintained by the \tex{} Users Group (TUG). Their homepage |
| 3747 |
\isourl{http://www.tug.org} should be consulted for the current |
| 3748 |
list of CTAN sites and mirrors. |
| 3749 |
\end{anote} |
| 3750 |
|
| 3751 |
\begin{comment} |
| 3752 |
|
| 3753 |
\sclause{SOLIS} \index{SOLIS} \label{anx:solis} |
| 3754 |
|
| 3755 |
SOLIS is the \emph{SC4 On Line Information Service}. It contains many electronic |
| 3756 |
sources of STEP related documents. The relevant top level directory is |
| 3757 |
\url{pub/subject/sc4}. |
| 3758 |
In particular, SOLIS contains the source for this document |
| 3759 |
and the \file{.sty} files, as well as other \latex{} related files. |
| 3760 |
The \latex{} root directory is \url{sc4/editing/latex}. The latest |
| 3761 |
versions of the \latex{} related files are kept in the sub-directory |
| 3762 |
\url{latex/current}. |
| 3763 |
Some \latex{} related programs are also available in the |
| 3764 |
\url{latex/programs} sub-directory. |
| 3765 |
|
| 3766 |
SOLIS can be reached at \isourl{http://www.nist.gov/sc4}. |
| 3767 |
|
| 3768 |
\end{comment} |
| 3769 |
|
| 3770 |
|
| 3771 |
\infannex{Changes in this release} \label{anx:changes} |
| 3772 |
|
| 3773 |
Many of the commands and environments have been redefined in order |
| 3774 |
to match the change in requirements from the the third to the fourth |
| 3775 |
edition of the ISO Directives. Usage of these is unaffected. |
| 3776 |
|
| 3777 |
The following changes have been made in this release: |
| 3778 |
\begin{itemize} |
| 3779 |
\item The \verb|cover|\ixenv{cover} environment has been added; |
| 3780 |
|
| 3781 |
\item The boolean test \verb|\ifpdf|\ixcom{ifpdf} has been added; |
| 3782 |
|
| 3783 |
\item The command \verb|\fwdnopatents|\ixcom{fwdnopatents} has been added |
| 3784 |
for patent boilerplate in the Foreword. |
| 3785 |
|
| 3786 |
\item The command \verb|\tpasfwdbp|\ixcom{tpasfwdbp} has been added |
| 3787 |
for TS/PAS Foreword boilerplate. |
| 3788 |
|
| 3789 |
\item The command \verb|\intropatents|\ixcom{intropatents} has been added |
| 3790 |
for patent boilerplate in the Introduction. |
| 3791 |
|
| 3792 |
\item The commands \verb|\pref|\ixcom{pref} and |
| 3793 |
\verb|\pagerefname|\ixcom{pagerefname} have been added. |
| 3794 |
|
| 3795 |
\item The command \verb|\trwfwdbpi|\ixcom{trfwdbpi} for Foreword boilerplate |
| 3796 |
in a Technical Report has been deleted. |
| 3797 |
|
| 3798 |
\item The \verb|notes|\ixenv{notes} and \verb|examples|\ixenv{examples} |
| 3799 |
environments have been deleted. |
| 3800 |
|
| 3801 |
\item Support is provided for the \file{hyperref}\ixpack{hyperref} |
| 3802 |
package. |
| 3803 |
|
| 3804 |
\end{itemize} |
| 3805 |
|
| 3806 |
|
| 3807 |
|
| 3808 |
\bibannex |
| 3809 |
%\label{biblio} |
| 3810 |
|
| 3811 |
\begin{references} |
| 3812 |
\reference{LAMPORT, L.,}{LaTeX --- A Document Preparation System,} |
| 3813 |
{Addison-Wesley Publishing Co., 2nd edition, 1994.} \label{lamport} |
| 3814 |
\reference{WILSON, P.R.,}{LaTeX files for typesetting ISO standards: |
| 3815 |
Source code,} |
| 3816 |
{NISTIR, National Institute of Standards and Technology, |
| 3817 |
Gaithersburg, MD 20899. June 1996.} \label{isoe} |
| 3818 |
\reference{WILSON, P.R.,}{LaTeX package files for ISO~10303: User manual,} |
| 3819 |
{NISTIR, National Institute of Standards and Technology, |
| 3820 |
Gaithersburg, MD 20899. June 1996.} \label{stepsty} |
| 3821 |
\reference{RAHTZ, S., and BARROCA, L.,}{A style option for rotated |
| 3822 |
objects in \latex,}{ TUGBoat, volume 13, number 2, pp 156--180, |
| 3823 |
July 1992.} \label{rahtz} |
| 3824 |
\reference{GOOSSENS, M., MITTELBACH, F. and SAMARIN, A.,}{% |
| 3825 |
The LaTeX Companion,} |
| 3826 |
{Addison-Wesley Publishing Co., 1994.} \label{goosens} |
| 3827 |
\reference{GOOSSENS, M., and RAHTZ, S.,}{% |
| 3828 |
The LaTeX Web Companion --- Integrating TeX, HTML and XML,} |
| 3829 |
{Addison-Wesley Publishing Co., 1999.} \label{lwebcom} |
| 3830 |
\reference{CHEN, P. and HARRISON, M.A.,}{Index preparation and |
| 3831 |
processing,}{Software--Practice and Experience, 19(9):897--915, |
| 3832 |
September 1988.} \label{chen} |
| 3833 |
%\reference{KOPKA, H. and DALY, P.W.,}{A Guide to LaTeX,} |
| 3834 |
% {Addison-Wesley Publishing Co., 1993.} \label{kopka} |
| 3835 |
%\reference{WALSH, N.,}{Making TeX Work,}{O'Reilly \& Associates, Inc., |
| 3836 |
% 103 Morris Street, Suite A, Sebastopol, CA 95472. 1994. } \label{walsh} |
| 3837 |
\reference{ISO 8879:1986,}{Information processing --- |
| 3838 |
Text and office systems --- |
| 3839 |
Standard Generalized Markup Language (SGML).}{} \label{sgml} |
| 3840 |
\reference{GOLDFARB, C.F.,}{The SGML Handbook,} |
| 3841 |
{Oxford University Press, 1990.} \label{goldfarb} |
| 3842 |
\reference{BRYAN, M.,}{SGML --- An Author's Guide to the Standard Generalized |
| 3843 |
Markup Language,}{Addison-Wesley Publishing Co., 1988. } \label{bryan} |
| 3844 |
\reference{PHILLIPS, L. and LUBELL, J.,}{An SGML Environment for STEP,}% |
| 3845 |
{NISTIR 5515, National Institute of Standards and Technology, |
| 3846 |
Gaithersburg, MD 20899. November 1994.} \label{pandl} |
| 3847 |
\reference{WILSON, P. R.,}{LTX2X: A LaTeX to X Auto-tagger,}% |
| 3848 |
{NISTIR, National Institute of Standards and Technology, |
| 3849 |
Gaithersburg, MD 20899. June 1996.} \label{ltx2x} |
| 3850 |
\begin{comment} |
| 3851 |
\reference{RESSLER, S.,}{The National PDES Testbed Mail Server User's Guide,} |
| 3852 |
{NSTIR 4508, National Institute of Standards and Technology, |
| 3853 |
Gaithersburg, MD 20899. January 1991.} \label{ressler} |
| 3854 |
\reference{RINAUDOT, G.R.,}{STEP On Line Information Service (SOLIS),} |
| 3855 |
{NISTIR 5511, National Institute of Standards and Technology, |
| 3856 |
Gaithersburg, MD 20899. October 1994. } \label{rinaudot} |
| 3857 |
\reference{KROL, E.,}{The Whole Internet --- User's Guide \& Catalog,} |
| 3858 |
{O'Reilly \& Associates, Inc., |
| 3859 |
103 Morris Street, Suite A, Sebastopol, CA 95472. 1993. } \label{krol} |
| 3860 |
\end{comment} |
| 3861 |
\reference{WILSON, P.R.,}{The hyphenat package,}% |
| 3862 |
{1999. (Available from CTAN)} \label{bib:hyphenat} |
| 3863 |
\reference{WILSON, P.R.,}{The xtab package,}% |
| 3864 |
{1998. (Available from CTAN)} \label{bib:xtab} |
| 3865 |
\end{references} |
| 3866 |
|
| 3867 |
|
| 3868 |
%%%%%%% here is the index at the end |
| 3869 |
%%\input{isomanidx} |
| 3870 |
\input{isoman.ind} |
| 3871 |
|
| 3872 |
|
| 3873 |
|
| 3874 |
\end{document} |