| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% isoe.dtx |
| 4 |
% |
| 5 |
% This work has been partially funded by the US government |
| 6 |
% and is not subject to copyright. |
| 7 |
% |
| 8 |
% This program is provided under the terms of the |
| 9 |
% LaTeX Project Public License distributed from CTAN |
| 10 |
% archives in directory macros/latex/base/lppl.txt. |
| 11 |
% |
| 12 |
% Author: Peter Wilson (CUA and NIST) |
| 13 |
% now at: [email protected] |
| 14 |
% |
| 15 |
% \fi |
| 16 |
% \CheckSum{3764} |
| 17 |
% |
| 18 |
% \changes{v11}{1997/09/30}{Output character table to class and package files only} |
| 19 |
% \changes{v2}{1997/12/01}{Moved xtab and uschyp package code to seperate files} |
| 20 |
% \changes{v2}{1997/12/04}{Moved isorot package code to seperate file} |
| 21 |
% \changes{v2.1}{1999/02/15}{General updates} |
| 22 |
% \changes{v2.1}{1999/02/15}{Character table not output at all} |
| 23 |
% \changes{v2.1}{1999/03/19}{Some changes to boilerplate} |
| 24 |
% \changes{v2.2}{2000/01/10}{Modified to support tex4ht} |
| 25 |
% \changes{v2.3}{2001/07/06}{Modified to match ISO 2001 requirements} |
| 26 |
% \changes{v2.3}{2002/01/10}{More changes to match ISO 2001 requirements} |
| 27 |
% \changes{v2.4}{2002/07/22}{Added support for pdf/hyperref bookmarking} |
| 28 |
% |
| 29 |
% ^^A \def\fileversion{v2.2} |
| 30 |
% ^^A \def\filedate{2000/01/10} |
| 31 |
% \def\fileversion{v2.3} |
| 32 |
% ^^A \def\filedate{2001/07/06} |
| 33 |
% \def\filedate{2002/01/10} |
| 34 |
% \def\fileversion{v2.4} |
| 35 |
% \def\filedate{2002/07/22} |
| 36 |
% \title{\LaTeX{} for ISO Standards: \\ |
| 37 |
% Source code\thanks{This |
| 38 |
% file has version number \fileversion, last revised |
| 39 |
% \filedate.}} |
| 40 |
% |
| 41 |
% \author{% |
| 42 |
% Peter Wilson\\ |
| 43 |
% Catholic University of America\thanks{This work was originally |
| 44 |
% performed as |
| 45 |
% a Guest Researcher at the National Institute of Standards and Technology.} \\ |
| 46 |
% Now at \texttt{[email protected]} |
| 47 |
% } |
| 48 |
% \date{\filedate} |
| 49 |
% \maketitle |
| 50 |
% \tableofcontents |
| 51 |
% |
| 52 |
% \StopEventually{} |
| 53 |
% |
| 54 |
% |
| 55 |
% |
| 56 |
% \section{Introduction} |
| 57 |
% |
| 58 |
% This document provides the commented source for \LaTeX{} |
| 59 |
% class and package files designed for the typesetting of |
| 60 |
% documents according to the rules for ISO international standards. |
| 61 |
% A seperate document provides the user manual~\cite{PRW96i}. |
| 62 |
% This manual is typeset according to the conventions of the |
| 63 |
% \LaTeX{} \textsc{docstrip} utility which enables the automatic |
| 64 |
% extraction of the \LaTeX{} macro source files~\cite{GOOSSENS94}. |
| 65 |
% |
| 66 |
% The original version of this class was used for the production |
| 67 |
% of camera ready copy |
| 68 |
% for the ISO~10303 standard \emph{Product data representation and |
| 69 |
% exchange}. The initial release of ISO~10303:1994 consisted of twelve |
| 70 |
% parts and over 2400 pages. The editorial board of the ISO Central |
| 71 |
% Secretariat in Geneva accepted the typographic conventions embodied |
| 72 |
% in those macros. |
| 73 |
% |
| 74 |
% ISO (the International Organization for Standardisation) specify |
| 75 |
% their document layout requirements in ISO Directives~\cite{ISOD397}. |
| 76 |
% Unfortunately these Directives do not completely define the document |
| 77 |
% layout, leaving several aspects open to interpretation by the |
| 78 |
% document editor and re-interpretation by the ISO editorial board. |
| 79 |
% At the request of the editors of ISO~10303, and no doubt others as |
| 80 |
% well, ISO has clarified the intent of their Directives~\cite{ISOD201}. |
| 81 |
% Also, since |
| 82 |
% they were published ISO has been considering how best to accept |
| 83 |
% and use electronic manuscripts instead of camer ready paper copy. |
| 84 |
% At the time of writing (July 2001) they will accept documents in |
| 85 |
% PDF format. This has also lead to some changes in requirements. |
| 86 |
% |
| 87 |
% The following specifications are a re-implementation of the |
| 88 |
% class macros published in July 2000. |
| 89 |
% |
| 90 |
% This manual is provided as a service for future developers |
| 91 |
% and maintainers of the |
| 92 |
% class and packages for ISO standards. It is assumed that any |
| 93 |
% any such person is \LaTeX{} literate and accustomed to supporting |
| 94 |
% complex class and package files~\cite{GOOSSENS94}. |
| 95 |
% |
| 96 |
% |
| 97 |
% Sections~\ref{sec:docstrip} through~\ref{sec:ic} describe some |
| 98 |
% administrative elements and code for general use later in the specification. |
| 99 |
% The macros forming the class file are defined in sections~\ref{sec:opt} |
| 100 |
% through~\ref{sec:init}. These are principally revisions of the |
| 101 |
% report class to meet ISO typographic requirements and many new macros |
| 102 |
% to support specific structural elements of an ISO standard to provide |
| 103 |
% logical markup capabilities. Section~\ref{sec:askinc} describes the |
| 104 |
% macros for the \texttt{askinc} package for interactive file inclusion. |
| 105 |
% |
| 106 |
% |
| 107 |
% \section{A driver for this document} \label{sec:docstrip} |
| 108 |
% |
| 109 |
% The next series of code contains the documentation driver file for |
| 110 |
% \LaTeX, i.e., the file that will produce the documentation you are |
| 111 |
% currently reading. This will be extracted from this file by the |
| 112 |
% \textsc{docstrip} program. |
| 113 |
% |
| 114 |
% \begin{macrocode} |
| 115 |
%<*driver> |
| 116 |
\documentclass{ltxdoc} |
| 117 |
% \end{macrocode} |
| 118 |
% |
| 119 |
% We do not want the following basic elements to appear in the index. |
| 120 |
% \begin{macrocode} |
| 121 |
\DoNotIndex{\',\.,\@M,\@@input,\@addtoreset,\@arabic,\@badmath} |
| 122 |
\DoNotIndex{\@centercr,\@cite} |
| 123 |
\DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue} |
| 124 |
\DoNotIndex{\@input,\@ixpt,\@m} |
| 125 |
\DoNotIndex{\@minus,\@mkboth,\@ne,\@nil,\@nomath,\@plus,\@set@topoint} |
| 126 |
\DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb} |
| 127 |
\DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt} |
| 128 |
\DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt} |
| 129 |
\DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace} |
| 130 |
\DoNotIndex{\advance,\Alph,\alph} |
| 131 |
\DoNotIndex{\arabic,\ast,\begin,\begingroup,\bfseries,\bgroup,\box} |
| 132 |
\DoNotIndex{\bullet} |
| 133 |
\DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption} |
| 134 |
\DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass} |
| 135 |
\DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist} |
| 136 |
\DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup} |
| 137 |
\DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter} |
| 138 |
\DoNotIndex{\fbox} |
| 139 |
\DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef} |
| 140 |
\DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule} |
| 141 |
\DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi} |
| 142 |
\DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi,\fi,\fi,\fi,\fi} |
| 143 |
\DoNotIndex{\input} |
| 144 |
\DoNotIndex{\jobname,\kern,\leavevmode,\let,\leftmark} |
| 145 |
\DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright} |
| 146 |
\DoNotIndex{\month,\newcommand,\newcounter,\newenvironment} |
| 147 |
\DoNotIndex{\NeedsTeXFormat,\newdimen} |
| 148 |
\DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\null,\number} |
| 149 |
\DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@} |
| 150 |
\DoNotIndex{\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip} |
| 151 |
\DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions} |
| 152 |
\DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright} |
| 153 |
\DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font} |
| 154 |
\DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily,\roman} |
| 155 |
\DoNotIndex{\roman,\secdef,\selectfont,\setbox,\setcounter,\setlength} |
| 156 |
\DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space} |
| 157 |
\DoNotIndex{\symbol,\the,\trivlist,\typeout,\tw@,\undefined,\uppercase} |
| 158 |
\DoNotIndex{\usecounter,\usefont,\usepackage,\vfil,\vfill,\viiipt} |
| 159 |
\DoNotIndex{\viipt,\vipt,\vskip,\vspace} |
| 160 |
\DoNotIndex{\wd,\xiipt,\year,\z@} |
| 161 |
% \end{macrocode} |
| 162 |
% We do want an index, using linenumbers, but not update information. |
| 163 |
% \begin{macrocode} |
| 164 |
\EnableCrossrefs |
| 165 |
\CodelineIndex |
| 166 |
%% \RecordChanges |
| 167 |
% \end{macrocode} |
| 168 |
% We use so many \file{docstrip} modules that we set the |
| 169 |
% \texttt{StandardModuleDepth} counter to 1. |
| 170 |
% \begin{macrocode} |
| 171 |
\setcounter{StandardModuleDepth}{1} |
| 172 |
% \end{macrocode} |
| 173 |
% Some commonly used abbreviations |
| 174 |
% \begin{macrocode} |
| 175 |
\newcommand*{\Lopt}[1]{\textsf {#1}} % typeset an option |
| 176 |
\newcommand*{\file}[1]{\texttt {#1}} % typeset a file |
| 177 |
\newcommand*{\Lcount}[1]{\textsl {\small#1}} % typeset a counter |
| 178 |
\newcommand*{\pstyle}[1]{\textsl {#1}} % typeset a pagestyle |
| 179 |
\newcommand*{\Lenv}[1]{\texttt {#1}} % typeset an environment |
| 180 |
\newcommand*{\Lpack}[1]{\textsf {#1}} % typeset a package |
| 181 |
% \end{macrocode} |
| 182 |
% We want the full details printed. |
| 183 |
% \begin{macrocode} |
| 184 |
\begin{document} |
| 185 |
\DocInput{isoe.dtx} |
| 186 |
\PrintIndex |
| 187 |
%% \PrintChanges |
| 188 |
\end{document} |
| 189 |
%</driver> |
| 190 |
% \end{macrocode} |
| 191 |
% |
| 192 |
% |
| 193 |
% |
| 194 |
% |
| 195 |
% |
| 196 |
% \section{Identification} \label{sec:id} |
| 197 |
% |
| 198 |
% \changes{v2}{1997/11/30}{Eliminated all native v2.09 support} |
| 199 |
% |
| 200 |
% The \file{iso} document class can only be used with \LaTeX 2e, so we make |
| 201 |
% sure that an appropriate message is displayed when another \TeX\ |
| 202 |
% format is used. |
| 203 |
% \begin{macrocode} |
| 204 |
%<iso>\NeedsTeXFormat{LaTeX2e} |
| 205 |
% \end{macrocode} |
| 206 |
% |
| 207 |
% Announce the name, option files and version for \LaTeX 2e files: |
| 208 |
% \begin{macrocode} |
| 209 |
%<iso>\ProvidesClass{isov2}[2002/07/22 v2.4 LaTeX ISO document class] |
| 210 |
%<9pt>\ProvidesFile{iso9.clo}[1997/11/30 v1.1 ISO class size option] |
| 211 |
%<10pt>\ProvidesFile{iso10.clo}[1997/11/30 v1.1 ISO class size option] |
| 212 |
%<11pt>\ProvidesFile{iso11.clo}[1997/11/30 v1.1 ISO class size option] |
| 213 |
%<inc>\ProvidesPackage{askincv1}[1995/05/31 Interactive include package] |
| 214 |
%<fwd1>\ProvidesFile{isofwdbp.tex}[2002/01/10 ISO Foreword boilerplate] |
| 215 |
%<trfwd1>\ProvidesFile{trfwd1.tex}[2002/01/10 PAS/TS Foreword boilerplate] |
| 216 |
% \end{macrocode} |
| 217 |
% |
| 218 |
% |
| 219 |
% \section{Initial Code} \label{sec:ic} |
| 220 |
% |
| 221 |
% \begin{macrocode} |
| 222 |
%<*iso> |
| 223 |
% \end{macrocode} |
| 224 |
% |
| 225 |
% \changes{v2.1}{1999/02/15}{Requires the url package} |
| 226 |
% The class requires the \file{url} package, so make sure |
| 227 |
% that it is loaded. |
| 228 |
% \begin{macrocode} |
| 229 |
\RequirePackage{url} |
| 230 |
% \end{macrocode} |
| 231 |
% |
| 232 |
% In this part we define a few commands that are used later on. |
| 233 |
% |
| 234 |
% \begin{macro}{\@ptsize} |
| 235 |
% This control sequence is used to store the second digit of the |
| 236 |
% pointsize we are typesetting in. So, normally, it's value is one |
| 237 |
% of 0, 1 or 2. |
| 238 |
% \begin{macrocode} |
| 239 |
\newcommand{\@ptsize}{} |
| 240 |
% \end{macrocode} |
| 241 |
% \end{macro} |
| 242 |
% |
| 243 |
% \begin{macro}{\if@restonecol} |
| 244 |
% When the document has to be printed in two columns, we sometimes |
| 245 |
% have to temporarily switch to one column. This switch is used to |
| 246 |
% remember to switch back. |
| 247 |
% \begin{macrocode} |
| 248 |
\newif\if@restonecol |
| 249 |
% \end{macrocode} |
| 250 |
% \end{macro} |
| 251 |
% |
| 252 |
% \begin{macro}{\isostringsequal} |
| 253 |
% \begin{macro}{\isoemptystring} |
| 254 |
% The command |\isostringsequal| is based on code in Stephan von |
| 255 |
% Bechtolsheim \emph{\TeX{} in Practice}, vol III page 334. |
| 256 |
% It enables the definition of specific commands for testing whether |
| 257 |
% two strings are equal. |
| 258 |
% \begin{macrocode} |
| 259 |
\def\isostringsequal #1#2{% |
| 260 |
TT\fi |
| 261 |
\edef\@is@str@ngsequali{#1}% |
| 262 |
\edef\@is@str@ngsequalii{#2}% |
| 263 |
\ifx\@is@str@ngsequali\@is@str@ngsequalii} |
| 264 |
% \end{macrocode} |
| 265 |
% Now we define the |\isoemptystring| command for use in testing |
| 266 |
% for an empty parameter. |
| 267 |
% \begin{macrocode} |
| 268 |
\def\isoemptystring #1{% |
| 269 |
TT\fi |
| 270 |
\if\isostringsequal{#1}{}} |
| 271 |
% \end{macrocode} |
| 272 |
% \end{macro} |
| 273 |
% \end{macro} |
| 274 |
% |
| 275 |
% \begin{macro}{\fillline} |
| 276 |
% This command draws a horizontal line across the page. |
| 277 |
% \begin{macrocode} |
| 278 |
\newcommand{\fillline}{\mbox{}\hrulefill\mbox{}} |
| 279 |
% \end{macrocode} |
| 280 |
% \end{macro} |
| 281 |
% |
| 282 |
% \begin{macro}{\makecommand} |
| 283 |
% \begin{macro}{\make@command} |
| 284 |
% \changes{v2.2}{2000/01/10}{Added makecommand} |
| 285 |
% The |\makecommand| macro is like the |\newcommand| macro except that it |
| 286 |
% always (re)defines a command. It is equivalent to the pair of commands: \\ |
| 287 |
% |\providecommand{\com}...\renewcommand{\com}...|. \\ |
| 288 |
% The code for |\make@command}| is a simplified version of the code |
| 289 |
% for |\renew@command| in file \file{ltdefns.dtx}. |
| 290 |
% \begin{macrocode} |
| 291 |
\newcommand{\makecommand}{\@star@or@long\make@command} |
| 292 |
\newcommand{\make@command}[1]{% |
| 293 |
\let\@ifdefinable\@rc@ifdefinable |
| 294 |
\new@command#1} |
| 295 |
% \end{macrocode} |
| 296 |
% \end{macro} |
| 297 |
% \end{macro} |
| 298 |
% |
| 299 |
% \begin{macro}{\ifpdf} |
| 300 |
% \changes{v2.2}{2000/01/10}{Added ifpdf to support pdfLaTeX} |
| 301 |
% This can be used to check whether or not a document is being processed |
| 302 |
% by LaTeX or pdfLaTeX. |
| 303 |
% \begin{macrocode} |
| 304 |
\newif\ifpdf |
| 305 |
\ifx\pdfoutput\undefined |
| 306 |
\pdffalse |
| 307 |
\else |
| 308 |
\pdftrue |
| 309 |
\fi |
| 310 |
% \end{macrocode} |
| 311 |
% \end{macro} |
| 312 |
% |
| 313 |
% \begin{macro}{\ifisohyper} |
| 314 |
% This can be used to check, after |\begin{document}| to check if |
| 315 |
% the \Lpack{hyperref} package has been used. |
| 316 |
% \changes{v2.4}{2002/07/22}{Added \cs{ifisohyper} to support hyperref} |
| 317 |
% \begin{macrocode} |
| 318 |
\newif\ifisohyper |
| 319 |
\isohyperfalse |
| 320 |
\AtBeginDocument{% |
| 321 |
\@ifpackageloaded{hyperref}% |
| 322 |
{\isohypertrue}% |
| 323 |
{\newcommand{\hyperpage}[1]{#1}}% |
| 324 |
} |
| 325 |
|
| 326 |
% \end{macrocode} |
| 327 |
% \end{macro} |
| 328 |
% |
| 329 |
% \section{Declaration of Options} \label{sec:opt} |
| 330 |
% |
| 331 |
% |
| 332 |
% \subsection{Setting Paper Sizes} |
| 333 |
% |
| 334 |
% The variables |\paperwidth| and |\paperheight| should reflect the |
| 335 |
% physical paper size after trimming. For desk printer output this |
| 336 |
% is usually the real paper size since there is no post-processing. |
| 337 |
% We assume that the document will only be printed on either ISO |
| 338 |
% standard A4 paper (option \Lopt{a4paper}) or on the most common |
| 339 |
% of the US paper sizes (option \Lopt{letterpaper}). |
| 340 |
% |
| 341 |
% Option \Lopt{a4paper} will be the default. |
| 342 |
% |
| 343 |
% \begin{macro}{\if@us} |
| 344 |
% A flag for the paper size option. |
| 345 |
% \begin{macrocode} |
| 346 |
\newif\if@us\@usfalse |
| 347 |
% \end{macrocode} |
| 348 |
% \end{macro} |
| 349 |
% Declare the paper size options. |
| 350 |
% \begin{macrocode} |
| 351 |
\DeclareOption{a4paper} |
| 352 |
{\setlength\paperheight {297mm}% %% 11.69in |
| 353 |
\setlength\paperwidth {210mm}} %% 8.27in |
| 354 |
\DeclareOption{letterpaper} |
| 355 |
{\setlength\paperheight {11in}% %% 279mm |
| 356 |
\setlength\paperwidth {8.5in}% %% 216mm |
| 357 |
\@ustrue} |
| 358 |
% \end{macrocode} |
| 359 |
% |
| 360 |
% \subsection{Choosing the type size} |
| 361 |
% |
| 362 |
% The type size options are handled by defining |\@ptsize| to contain |
| 363 |
% the last digit of the size in question and branching on |\ifcase| |
| 364 |
% statements. This is done for historical reasons to stay compatible |
| 365 |
% with other packages that use the |\@ptsize| variable to select |
| 366 |
% special actions. It makes the declarations of size options less |
| 367 |
% than 10pt difficult, although one can probably use \texttt{9} |
| 368 |
% assuming that a class will not define both |
| 369 |
% \Lopt{9pt} and \Lopt{19pt} options. |
| 370 |
% |
| 371 |
% Option \Lopt{11pt} will be the default. |
| 372 |
% |
| 373 |
% \begin{macrocode} |
| 374 |
\renewcommand{\@ptsize}{1} |
| 375 |
\DeclareOption{9pt}{\renewcommand{\@ptsize}{9}} |
| 376 |
\DeclareOption{10pt}{\renewcommand{\@ptsize}{0}} |
| 377 |
\DeclareOption{11pt}{\renewcommand{\@ptsize}{1}} |
| 378 |
% \end{macrocode} |
| 379 |
% |
| 380 |
% |
| 381 |
% \subsection{Two-side or one-side printing} |
| 382 |
% |
| 383 |
% For two-sided printing we use the switch |\if@twoside|. In |
| 384 |
% addition we have to set the |\if@mparswitch| to get any margin |
| 385 |
% paragraphs into the outside margin. In this class we always |
| 386 |
% use two-sided printing with marginal notes on the outside. |
| 387 |
% \begin{macro}{\if@twoside} |
| 388 |
% \begin{macro}{\if@mparswitch} |
| 389 |
% \begin{macrocode} |
| 390 |
\@twosidetrue \@mparswitchtrue |
| 391 |
% \end{macrocode} |
| 392 |
% \end{macro} |
| 393 |
% \end{macro} |
| 394 |
% |
| 395 |
% \changes{v2}{1997/11/30}{Eliminated the sect option} |
| 396 |
% |
| 397 |
% \subsection{Two column printing} |
| 398 |
% |
| 399 |
% Two-column and one-column printing is again realized via a switch |
| 400 |
% which is defined in the kernel. The default is single column printing. |
| 401 |
% |
| 402 |
% \begin{macro}{\if@twocolumn} |
| 403 |
% \begin{macrocode} |
| 404 |
\DeclareOption{onecolumn}{\@twocolumnfalse} |
| 405 |
\DeclareOption{twocolumn}{\@twocolumntrue} |
| 406 |
% \end{macrocode} |
| 407 |
% \end{macro} |
| 408 |
% |
| 409 |
% \subsection{The \Lopt{copyright} option} |
| 410 |
% |
| 411 |
% The default is not to print ISO copyright notices. This option |
| 412 |
% enables copyright notice printing. As usual, we employ a flag. |
| 413 |
% \changes{v11}{1997/09/30}{Added additional \cs{ifc@pyrightopt} flag} |
| 414 |
% \begin{macro}{\ifc@pyrightopt} |
| 415 |
% |c@pyrightopt| stores the user's option, while |c@pyright| will |
| 416 |
% be used to control printing of copyright notices and symbols |
| 417 |
% in the body of the document. |
| 418 |
% \begin{macrocode} |
| 419 |
\newif\ifc@pyright\c@pyrightfalse |
| 420 |
\newif\ifc@pyrightopt\c@pyrightoptfalse |
| 421 |
\DeclareOption{copyright}{\c@pyrightopttrue} |
| 422 |
\DeclareOption{notcopyright}{\c@pyrightoptfalse} |
| 423 |
% \end{macrocode} |
| 424 |
% \end{macro} |
| 425 |
% |
| 426 |
% \subsection{Document kind options \Lopt{is}, \Lopt{dis}, \Lopt{cd}, |
| 427 |
% \Lopt{wd}, \Lopt{techrep}, \Lopt{otherdoc} etc.} |
| 428 |
% |
| 429 |
% The default is to assume that an ISO standard in preparation is |
| 430 |
% to be printed (effectively this is the \Lopt{otherdoc} option). |
| 431 |
% The \Lopt{is} option declares that an International Standard (IS) |
| 432 |
% is to be printed. |
| 433 |
% The \Lopt{fdis} option declares that a Final Draft International |
| 434 |
% Standard (FDIS) is to be printed, and similarly the |
| 435 |
% \Lopt{dis} option declares that a Draft International Standard |
| 436 |
% (DIS) is to be printed. The \Lopt{cd} option is for Committee |
| 437 |
% Draft (CD) documents and the option \Lopt{wd} is for Working |
| 438 |
% Drafts. |
| 439 |
% |
| 440 |
% The \Lopt{techrep} option declares that a Technical Report (probably |
| 441 |
% type 1 or 2) is to be printed. |
| 442 |
% |
| 443 |
% The \Lopt{otherdoc} option indicates that |
| 444 |
% the document is not intended to become an ISO standard (e.g., is |
| 445 |
% an ISO internal report). |
| 446 |
% \begin{macro}{\ifisstandard} |
| 447 |
% \begin{macro}{\iffdisstandard} |
| 448 |
% \begin{macro}{\ifdisstandard} |
| 449 |
% \begin{macro}{\ifcdstandard} |
| 450 |
% \begin{macro}{\ifwdstandard} |
| 451 |
% \begin{macro}{\iftechrep} |
| 452 |
% \begin{macro}{\ifotherdoc} |
| 453 |
% We use flags for remembering which option is in effect. |
| 454 |
% \changes{v1.1}{1997/09/30}{Added options: fdis, cd, and wd} |
| 455 |
% \begin{macrocode} |
| 456 |
\newif\ifisstandard\isstandardfalse |
| 457 |
\newif\iffdisstandard\fdisstandardfalse |
| 458 |
\newif\ifdisstandard\disstandardfalse |
| 459 |
\newif\ifcdstandard\cdstandardfalse |
| 460 |
\newif\ifwdstandard\wdstandardfalse |
| 461 |
\newif\iftechrep\techrepfalse |
| 462 |
\newif\ifotherdoc\otherdocfalse |
| 463 |
% \end{macrocode} |
| 464 |
% \end{macro} |
| 465 |
% \end{macro} |
| 466 |
% \end{macro} |
| 467 |
% \end{macro} |
| 468 |
% \end{macro} |
| 469 |
% \end{macro} |
| 470 |
% \end{macro} |
| 471 |
% |
| 472 |
% \begin{macro}{\iftechspec} |
| 473 |
% \begin{macro}{\ifpaspec} |
| 474 |
% Flags for the \Lopt{techspec} Technical Specification and \Lopt{pas} |
| 475 |
% Publicly Available Specification options. |
| 476 |
% \changes{v2.3}{2001/07/06}{Added ts and pas options} |
| 477 |
% \begin{macrocode} |
| 478 |
\newif\iftechspec\techspecfalse |
| 479 |
\newif\ifpaspec\paspecfalse |
| 480 |
% \end{macrocode} |
| 481 |
% \end{macro} |
| 482 |
% \end{macro} |
| 483 |
% Now declare the options (including an \Lopt{is} option just for |
| 484 |
% completeness). We need to ensure (later) that, whatever copyright |
| 485 |
% option has been used, copyright notices are not printed for certain |
| 486 |
% kinds of documents. |
| 487 |
% \begin{macrocode} |
| 488 |
\DeclareOption{is}{\isstandardtrue |
| 489 |
\fdisstandardfalse |
| 490 |
\disstandardfalse |
| 491 |
\cdstandardfalse |
| 492 |
\wdstandardfalse |
| 493 |
\techrepfalse |
| 494 |
\techspecfalse |
| 495 |
\paspecfalse |
| 496 |
\otherdocfalse} |
| 497 |
\DeclareOption{fdis}{\isstandardfalse |
| 498 |
\fdisstandardtrue |
| 499 |
\disstandardfalse |
| 500 |
\cdstandardfalse |
| 501 |
\wdstandardfalse |
| 502 |
\techrepfalse |
| 503 |
\techspecfalse |
| 504 |
\paspecfalse |
| 505 |
\otherdocfalse} |
| 506 |
\DeclareOption{dis}{\isstandardfalse |
| 507 |
\fdisstandardfalse |
| 508 |
\disstandardtrue |
| 509 |
\cdstandardfalse |
| 510 |
\wdstandardfalse |
| 511 |
\techrepfalse |
| 512 |
\techspecfalse |
| 513 |
\paspecfalse |
| 514 |
\otherdocfalse} |
| 515 |
\DeclareOption{cd}{\isstandardfalse |
| 516 |
\fdisstandardfalse |
| 517 |
\disstandardfalse |
| 518 |
\cdstandardtrue |
| 519 |
\wdstandardfalse |
| 520 |
\techrepfalse |
| 521 |
\techspecfalse |
| 522 |
\paspecfalse |
| 523 |
\otherdocfalse |
| 524 |
\c@pyrightfalse} |
| 525 |
\DeclareOption{wd}{\isstandardfalse |
| 526 |
\fdisstandardfalse |
| 527 |
\disstandardfalse |
| 528 |
\cdstandardfalse |
| 529 |
\wdstandardtrue |
| 530 |
\techrepfalse |
| 531 |
\techspecfalse |
| 532 |
\paspecfalse |
| 533 |
\otherdocfalse |
| 534 |
\c@pyrightfalse} |
| 535 |
\DeclareOption{techrep}{\isstandardfalse |
| 536 |
\fdisstandardfalse |
| 537 |
\disstandardfalse |
| 538 |
\cdstandardfalse |
| 539 |
\wdstandardfalse |
| 540 |
\techreptrue |
| 541 |
\techspecfalse |
| 542 |
\paspecfalse |
| 543 |
\otherdocfalse} |
| 544 |
\DeclareOption{techspec}{\isstandardfalse |
| 545 |
\fdisstandardfalse |
| 546 |
\disstandardfalse |
| 547 |
\cdstandardfalse |
| 548 |
\wdstandardfalse |
| 549 |
\techrepfalse |
| 550 |
\techspectrue |
| 551 |
\paspecfalse |
| 552 |
\otherdocfalse} |
| 553 |
\DeclareOption{pas}{\isstandardfalse |
| 554 |
\fdisstandardfalse |
| 555 |
\disstandardfalse |
| 556 |
\cdstandardfalse |
| 557 |
\wdstandardfalse |
| 558 |
\techreptrue |
| 559 |
\techspecfalse |
| 560 |
\paspectrue |
| 561 |
\otherdocfalse} |
| 562 |
\DeclareOption{otherdoc}{\isstandardfalse |
| 563 |
\fdisstandardfalse |
| 564 |
\disstandardfalse |
| 565 |
\cdstandardfalse |
| 566 |
\wdstandardfalse |
| 567 |
\techrepfalse |
| 568 |
\techspecfalse |
| 569 |
\paspecfalse |
| 570 |
\otherdoctrue |
| 571 |
\c@pyrightfalse} |
| 572 |
% \end{macrocode} |
| 573 |
% |
| 574 |
% \subsection{The \Lopt{draft} option} |
| 575 |
% |
| 576 |
% If the user requests \Lopt{draft} we show any overfull boxes, |
| 577 |
% marginal notes are allowed, and any copyright notices are not |
| 578 |
% printed. For symmetry, we also define a \Lopt{final} option |
| 579 |
% which is the default. |
| 580 |
% \begin{macro}{\ifdr@ftd@c} |
| 581 |
% \begin{macrocode} |
| 582 |
\newif\ifdr@ftd@c\dr@ftd@cfalse |
| 583 |
\setlength{\overfullrule}{\z@} |
| 584 |
\DeclareOption{final}{\setlength{\overfullrule}{\z@} |
| 585 |
\dr@ftd@cfalse} |
| 586 |
\DeclareOption{draft}{\setlength\overfullrule{5pt}% |
| 587 |
\dr@ftd@ctrue} |
| 588 |
% \end{macrocode} |
| 589 |
% \end{macro} |
| 590 |
% |
| 591 |
% |
| 592 |
% |
| 593 |
% \section{Executing Options} \label{sec:xopt} |
| 594 |
% |
| 595 |
% Here we execute the default options to initialize certain |
| 596 |
% variables. Note that the document class \file{isoe} always uses two |
| 597 |
% sided printing. |
| 598 |
% \changes{v2.3}{2001/07/06}{Deleted the uglycaption option} |
| 599 |
% \begin{macrocode} |
| 600 |
\ExecuteOptions{notcopyright,otherdoc,final,a4paper,11pt,onecolumn} |
| 601 |
% \end{macrocode} |
| 602 |
% |
| 603 |
% The |\ProcessOptions| command causes the execution of the code |
| 604 |
% for every option \Lopt{FOO} |
| 605 |
% which is declared and for which the user typed |
| 606 |
% the \Lopt{FOO} option in his |
| 607 |
% |\documentclass| command. For every option \Lopt{BAR} he typed, |
| 608 |
% which is not declared, the option is assumed to be a global option. |
| 609 |
% All options will be passed as document options to any |
| 610 |
% |\usepackage| command in the document preamble. |
| 611 |
% \begin{macrocode} |
| 612 |
\ProcessOptions |
| 613 |
% \end{macrocode} |
| 614 |
% |
| 615 |
% \begin{macro}{\ifc@pyright} |
| 616 |
% Ensure that we have the correct value of |\ifc@pyright| no matter |
| 617 |
% the ordering in which the options are processed. |
| 618 |
% \changes{v11}{1997/09/30}{Added setting of c@pyright after option processing} |
| 619 |
% \changes{v2.3}{2001/07/06}{Changed copyright option to apply to all docs} |
| 620 |
% \begin{macrocode} |
| 621 |
\c@pyrightfalse |
| 622 |
\ifc@pyrightopt |
| 623 |
\c@pyrighttrue |
| 624 |
\fi |
| 625 |
% \end{macrocode} |
| 626 |
% \end{macro} |
| 627 |
% |
| 628 |
% Now that all the options have been executed we can load the |
| 629 |
% chosen class option file that contains all size dependent code. |
| 630 |
% \begin{macrocode} |
| 631 |
\ifnum\@ptsize < \tw@ |
| 632 |
\input{iso1\@ptsize.clo} |
| 633 |
\else |
| 634 |
\input{iso\@ptsize.clo} |
| 635 |
\fi |
| 636 |
% \end{macrocode} |
| 637 |
% |
| 638 |
% \section{Loading Packages} \label{sec:lpack} |
| 639 |
% |
| 640 |
% This class file does not load additional package files. |
| 641 |
% |
| 642 |
% |
| 643 |
% \section{Document Layout} \label{sec:docl} |
| 644 |
% \label{sec:maincode} |
| 645 |
% |
| 646 |
% In this section we deal with the more difficult typographical |
| 647 |
% details. |
| 648 |
% |
| 649 |
% \subsection{Fonts} |
| 650 |
% |
| 651 |
% \LaTeX\ offers the user commands to change the size of the font, |
| 652 |
% relative to the `main' size. Each relative size changing command |
| 653 |
% |\size| executes the command |
| 654 |
% |\@setfontsize||\size|\meta{font-size}\meta{baselineskip} where: |
| 655 |
% |
| 656 |
% \begin{description} |
| 657 |
% \item[\meta{font-size}] The absolute size of the font to use from |
| 658 |
% now on. |
| 659 |
% |
| 660 |
% \item[\meta{baselineskip}] The normal value of |\baselineskip| |
| 661 |
% for the size of the font selected. (The actual value will be |
| 662 |
% |\baselinestretch| * \meta{baselineskip}.) |
| 663 |
% \end{description} |
| 664 |
% |
| 665 |
% A number of commands, defined in the \LaTeX\ kernel, shorten the |
| 666 |
% following definitions and are used throughout. They are: |
| 667 |
% \begin{center} |
| 668 |
% \begin{tabular}{ll@{\qquad}ll@{\qquad}ll} |
| 669 |
% \verb=\@vpt= & 5 & \verb=\@vipt= & 6 & \verb=\@viipt= & 7 \\ |
| 670 |
% \verb=\@viiipt= & 8 & \verb=\@ixpt= & 9 & \verb=\@xpt= & 10 \\ |
| 671 |
% \verb=\@xipt= & 10.95 & \verb=\@xiipt= & 12 & \verb=\@xivpt= & 14.4\\ |
| 672 |
% \verb=\@xviipt= & 17.28 & \verb=\@xxpt= & 20.74 & \verb=\@xxvpt= & 24.88\\ |
| 673 |
% \end{tabular} |
| 674 |
% \end{center} |
| 675 |
% |
| 676 |
% \begin{macro}{\normalsize} |
| 677 |
% \begin{macro}{\@normalsize} |
| 678 |
% |
| 679 |
% The user level command for the main size is |\normalsize|. |
| 680 |
% Internally \LaTeX\ uses |\@normalsize| when it refers to the |
| 681 |
% main size. |\@normalsize| will be defined to work like |
| 682 |
% |\normalsize| if the latter is redefined from its default |
| 683 |
% definition (that just issues an error message). Otherwise |
| 684 |
% |\@normalsize| simply selects a 9pt/11pt size. |
| 685 |
% |
| 686 |
% The |\normalsize| macro also sets new values for\\ |
| 687 |
% |\abovedisplayskip|, |\abovedisplayshortskip| and |
| 688 |
% |\belowdisplayshortskip|. |
| 689 |
% |
| 690 |
% \begin{macrocode} |
| 691 |
%</iso> |
| 692 |
%<*9pt|10pt|11pt> |
| 693 |
\renewcommand{\normalsize}{% |
| 694 |
%<*9pt> |
| 695 |
\@setfontsize\normalsize\@ixpt\@xpt |
| 696 |
\abovedisplayskip 9\p@ \@plus 2\p@ \@minus 4.5\p@ |
| 697 |
\abovedisplayshortskip \z@ \@plus 3\p@ |
| 698 |
\belowdisplayshortskip 5.5\p@ \@plus 2.5\p@ \@minus 3\p@ |
| 699 |
%</9pt> |
| 700 |
%<*10pt> |
| 701 |
\@setfontsize\normalsize\@xpt\@xiipt |
| 702 |
\abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ |
| 703 |
\abovedisplayshortskip \z@ \@plus3\p@ |
| 704 |
\belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ |
| 705 |
%</10pt> |
| 706 |
%<*11pt> |
| 707 |
\@setfontsize\normalsize\@xipt{13.6}% |
| 708 |
\abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@ |
| 709 |
\abovedisplayshortskip \z@ \@plus3\p@ |
| 710 |
\belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@ |
| 711 |
%</11pt> |
| 712 |
% \end{macrocode} |
| 713 |
% The |\belowdisplayskip| is always equal to the |
| 714 |
% |\abovedisplayskip|. The parameters of the first level list are |
| 715 |
% always given by |\@listI|. |
| 716 |
% \begin{macrocode} |
| 717 |
\belowdisplayskip \abovedisplayskip |
| 718 |
\let\@listi\@listI} |
| 719 |
% \end{macrocode} |
| 720 |
% |
| 721 |
% We initially choose the normalsize font. |
| 722 |
% \begin{macrocode} |
| 723 |
\normalsize |
| 724 |
% \end{macrocode} |
| 725 |
% \end{macro} |
| 726 |
% \end{macro} |
| 727 |
% |
| 728 |
% |
| 729 |
% \begin{macro}{\@smidgeon} |
| 730 |
% \begin{macro}{\parskip} |
| 731 |
% \begin{macro}{\@onelineskip} |
| 732 |
% ISO typesetting is grid based, which is not something that \LaTeX{} |
| 733 |
% is good at. We use some `fixed' skips for before and after headings, |
| 734 |
% plus a flexible smidgeon. |
| 735 |
% |
| 736 |
% For the grid, we want a fixed size |\parskip|, dependant only on |
| 737 |
% the normal font, of one blank line (i.e., the |\baselineskip|). |
| 738 |
% |
| 739 |
% Just in case the value of |\parskip| gets changed, also keep |
| 740 |
% a similar value in |@onelineskip|. |
| 741 |
% \changes{v2}{1997/11/30}{parskip fixed and moved to .clo files} |
| 742 |
% \changes{v2}{1997/11/30}{Added \cs{@smidgeon} command} |
| 743 |
% \changes{v2}{1997/11/30}{Added \cs{@onelineskip} command} |
| 744 |
% \begin{macrocode} |
| 745 |
\newlength{\@smidgeon} |
| 746 |
\setlength{\@smidgeon}{0.5\p@ \@plus 1\p@ \@minus 1\p@} |
| 747 |
\newlength{\@onelineskip} |
| 748 |
%<9pt>\parskip \@xpt\p@ |
| 749 |
%<9pt>\setlength{\@onelineskip}{\@xpt\p@} |
| 750 |
%<10pt>\parskip \@xiipt\p@ |
| 751 |
%<10pt>\setlength{\@onelineskip}{\@xiipt\p@} |
| 752 |
%<11pt>\parskip 13.6\p@ |
| 753 |
%<11pt>\setlength{\@onelineskip}{13.6\p@} |
| 754 |
% \end{macrocode} |
| 755 |
% \end{macro} |
| 756 |
% \end{macro} |
| 757 |
% \end{macro} |
| 758 |
% |
| 759 |
% \begin{macro}{\small} |
| 760 |
% This code is similar to that for |\normalsize|. |
| 761 |
% \begin{macrocode} |
| 762 |
\newcommand{\small}{% |
| 763 |
%<*9pt> |
| 764 |
\@setfontsize\small\@viiipt{9} |
| 765 |
\abovedisplayskip 6\p@ \@plus 2\p@ \@minus 4\p@ |
| 766 |
\abovedisplayshortskip \z@ \@plus 2\p@ |
| 767 |
\belowdisplayshortskip 4\p@ \@plus 2\p@ \@minus 2\p@ |
| 768 |
\def\@listi{\leftmargin\leftmargini |
| 769 |
\topsep 2\p@ \@plus 2\p@ \@minus 2\p@ |
| 770 |
\parsep 1\p@ \@plus\p@ \@minus\p@ |
| 771 |
\itemsep \parsep |
| 772 |
\itemindent\z@ |
| 773 |
}% |
| 774 |
%</9pt> |
| 775 |
%<*10pt> |
| 776 |
\@setfontsize\small\@ixpt{11}% |
| 777 |
\abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@ |
| 778 |
\abovedisplayshortskip \z@ \@plus2\p@ |
| 779 |
\belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@ |
| 780 |
\def\@listi{\leftmargin\leftmargini |
| 781 |
\topsep 4\p@ \@plus2\p@ \@minus2\p@ |
| 782 |
\parsep 2\p@ \@plus\p@ \@minus\p@ |
| 783 |
\itemsep \parsep |
| 784 |
\itemindent\z@ |
| 785 |
}% |
| 786 |
%</10pt> |
| 787 |
%<*11pt> |
| 788 |
\@setfontsize\small\@xpt\@xiipt |
| 789 |
\abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ |
| 790 |
\abovedisplayshortskip \z@ \@plus3\p@ |
| 791 |
\belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ |
| 792 |
\def\@listi{\leftmargin\leftmargini |
| 793 |
\topsep 6\p@ \@plus2\p@ \@minus2\p@ |
| 794 |
\parsep 3\p@ \@plus2\p@ \@minus\p@ |
| 795 |
\itemsep \parsep |
| 796 |
\itemindent\z@ |
| 797 |
}% |
| 798 |
%</11pt> |
| 799 |
\belowdisplayskip \abovedisplayskip |
| 800 |
} |
| 801 |
% \end{macrocode} |
| 802 |
% \end{macro} |
| 803 |
% |
| 804 |
% \begin{macro}{\footnotesize} |
| 805 |
% This code is similar to that for |\normalsize|. |
| 806 |
% \begin{macrocode} |
| 807 |
\newcommand{\footnotesize}{% |
| 808 |
%<*9pt> |
| 809 |
\@setfontsize\footnotesize\@viiipt{9} |
| 810 |
\abovedisplayskip 6\p@ \@plus 2\p@ \@minus 4\p@ |
| 811 |
\abovedisplayshortskip \z@ \@plus 2\p@ |
| 812 |
\belowdisplayshortskip 4\p@ \@plus 2\p@ \@minus 2\p@ |
| 813 |
\def\@listi{\leftmargin\leftmargini |
| 814 |
\topsep 2\p@ \@plus 2\p@ \@minus 2\p@ |
| 815 |
\parsep 1\p@ \@plus\p@ \@minus\p@ |
| 816 |
\itemsep \parsep |
| 817 |
\itemindent\z@ |
| 818 |
}% |
| 819 |
%</9pt> |
| 820 |
%<*10pt> |
| 821 |
\@setfontsize\footnotesize\@viiipt{9.5}% |
| 822 |
\abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@ |
| 823 |
\abovedisplayshortskip \z@ \@plus\p@ |
| 824 |
\belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@ |
| 825 |
\def\@listi{\leftmargin\leftmargini |
| 826 |
\topsep 3\p@ \@plus\p@ \@minus\p@ |
| 827 |
\parsep 2\p@ \@plus\p@ \@minus\p@ |
| 828 |
\itemsep \parsep |
| 829 |
\itemindent\z@ |
| 830 |
}% |
| 831 |
%</10pt> |
| 832 |
%<*11pt> |
| 833 |
\@setfontsize\footnotesize\@ixpt{11}% |
| 834 |
\abovedisplayskip 8\p@ \@plus2\p@ \@minus4\p@ |
| 835 |
\abovedisplayshortskip \z@ \@plus\p@ |
| 836 |
\belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@ |
| 837 |
\def\@listi{\leftmargin\leftmargini |
| 838 |
\topsep 4\p@ \@plus2\p@ \@minus2\p@ |
| 839 |
\parsep 2\p@ \@plus\p@ \@minus\p@ |
| 840 |
\itemsep \parsep |
| 841 |
\itemindent\z@ |
| 842 |
}% |
| 843 |
%</11pt> |
| 844 |
\belowdisplayskip \abovedisplayskip |
| 845 |
} |
| 846 |
% \end{macrocode} |
| 847 |
% \end{macro} |
| 848 |
% |
| 849 |
% \begin{macro}{\scriptsize} |
| 850 |
% \begin{macro}{\tiny} |
| 851 |
% \begin{macro}{\large} |
| 852 |
% \begin{macro}{\Large} |
| 853 |
% \begin{macro}{\LARGE} |
| 854 |
% \begin{macro}{\huge} |
| 855 |
% \begin{macro}{\Huge} |
| 856 |
% These are all much simpler than the previous macros, they just |
| 857 |
% select a new fontsize, but leave the parameters for displays and |
| 858 |
% lists alone. |
| 859 |
% \begin{macrocode} |
| 860 |
%<*9pt> |
| 861 |
\newcommand{\tiny}{\@setfontsize\tiny\@vpt{6}} |
| 862 |
\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt{8}} |
| 863 |
\newcommand{\large}{\@setfontsize\large\@xpt{11}} |
| 864 |
\newcommand{\Large}{\@setfontsize\Large\@xipt{12}} |
| 865 |
\newcommand{\LARGE}{\@setfontsize\LARGE\@xivpt{18}} |
| 866 |
\newcommand{\huge}{\@setfontsize\huge\@xviipt{22}} |
| 867 |
\newcommand{\Huge}{\@setfontsize\Huge\@xxpt{25}} |
| 868 |
%</9pt> |
| 869 |
%<*10pt> |
| 870 |
\newcommand{\tiny}{\@setfontsize\tiny\@vipt{7}} |
| 871 |
\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9}} |
| 872 |
\newcommand{\large}{\@setfontsize\large\@xipt{12}} |
| 873 |
\newcommand{\Large}{\@setfontsize\Large\@xiipt{14}} |
| 874 |
\newcommand{\LARGE}{\@setfontsize\LARGE\@xivpt{18}} |
| 875 |
\newcommand{\huge}{\@setfontsize\huge\@xviipt{22}} |
| 876 |
\newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{30}} |
| 877 |
%</10pt> |
| 878 |
%<*11pt> |
| 879 |
\newcommand{\tiny}{\@setfontsize\tiny\@vipt{7}} |
| 880 |
\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9}} |
| 881 |
\newcommand{\large}{\@setfontsize\large\@xiipt{14}} |
| 882 |
\newcommand{\Large}{\@setfontsize\Large\@xivpt{18}} |
| 883 |
\newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{22}} |
| 884 |
\newcommand{\huge}{\@setfontsize\huge\@xxpt{25}} |
| 885 |
\newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{30}} |
| 886 |
%</11pt> |
| 887 |
% \end{macrocode} |
| 888 |
% \end{macro} |
| 889 |
% \end{macro} |
| 890 |
% \end{macro} |
| 891 |
% \end{macro} |
| 892 |
% \end{macro} |
| 893 |
% \end{macro} |
| 894 |
% \end{macro} |
| 895 |
% |
| 896 |
% \begin{macro}{\Gfont} |
| 897 |
% \begin{macro}{\Tfont} |
| 898 |
% \begin{macro}{\Cfont} |
| 899 |
% \begin{macro}{\SCfont} |
| 900 |
% \begin{macro}{\SSCfont} |
| 901 |
% \begin{macro}{\Nfont} |
| 902 |
% \begin{macro}{\Efont} |
| 903 |
% Define the font sizes for headings, captions, etc. |
| 904 |
% |\Gfont| is the normal size font for general text. |
| 905 |
% |\Tfont| is for the title of the standard. |
| 906 |
% |\Cfont| is for clause headings. Similarly |\SCfont| and |\SSCfont| |
| 907 |
% are for subheadings. |
| 908 |
% |\Nfont| is for notes, examples, footers, footnotes, copyright. |
| 909 |
% |\Efont| is for code in typewriter font. |
| 910 |
% \changes{v2}{1997/11/30}{New \cs{SCfont} and \cs{SSCfont} commands} |
| 911 |
% \changes{v2.3}{2001/07/06}{Added font series to heading font sizes} |
| 912 |
% \begin{macrocode} |
| 913 |
\newcommand{\Gfont}{\normalsize} |
| 914 |
\newcommand{\Nfont}{\small} |
| 915 |
\newcommand{\Efont}{\small} |
| 916 |
%<*9pt> |
| 917 |
%%%\newcommand{\Tfont}{\huge} |
| 918 |
\newcommand{\Tfont}{\@setfontsize\Tfont\@xviipt{22}\bfseries} |
| 919 |
\newcommand{\Cfont}{\Large\bfseries} |
| 920 |
\newcommand{\SCfont}{\large\bfseries} |
| 921 |
\newcommand{\SSCfont}{\normalsize\bfseries} |
| 922 |
|
| 923 |
%</9pt> |
| 924 |
%<*10pt> |
| 925 |
%%%\newcommand{\Tfont}{\huge} |
| 926 |
\newcommand{\Tfont}{\@setfontsize\Tfont\@xviipt{22}\bfseries} |
| 927 |
\newcommand{\Cfont}{\Large\bfseries} |
| 928 |
\newcommand{\SCfont}{\large\bfseries} |
| 929 |
\newcommand{\SSCfont}{\normalsize\bfseries} |
| 930 |
|
| 931 |
%</10pt> |
| 932 |
%<*11pt> |
| 933 |
%%%\newcommand{\Tfont}{\LARGE} |
| 934 |
\newcommand{\Tfont}{\LARGE\bfseries} |
| 935 |
\newcommand{\Cfont}{\Large\bfseries} |
| 936 |
\newcommand{\SCfont}{\large\bfseries} |
| 937 |
\newcommand{\SSCfont}{\normalsize\bfseries} |
| 938 |
|
| 939 |
%</11pt> |
| 940 |
|
| 941 |
% \end{macrocode} |
| 942 |
% \end{macro} |
| 943 |
% \end{macro} |
| 944 |
% \end{macro} |
| 945 |
% \end{macro} |
| 946 |
% \end{macro} |
| 947 |
% \end{macro} |
| 948 |
% \end{macro} |
| 949 |
% |
| 950 |
% |
| 951 |
% \begin{macro}{\beforecskip} |
| 952 |
% \begin{macro}{\aftercskip} |
| 953 |
% \begin{macro}{\beforescskip} |
| 954 |
% \begin{macro}{\afterscskip} |
| 955 |
% \begin{macro}{\beforesscskip} |
| 956 |
% \begin{macro}{\aftersscskip} |
| 957 |
% We define skips for before and after headings. ISO wants two blank |
| 958 |
% lines before a clause and one afterwards. For lower level sectioning |
| 959 |
% the spacing is one blank line before and one after. |
| 960 |
% |
| 961 |
% Remember that \LaTeX{} automatically adds |\parskip| before and |
| 962 |
% after headings. |
| 963 |
% \changes{v2}{1997/11/30}{New before and after clause skip commands} |
| 964 |
% \begin{macrocode} |
| 965 |
\newlength{\beforecskip} |
| 966 |
\setlength{\beforecskip}{\@smidgeon} |
| 967 |
\addtolength{\beforecskip}{2\@onelineskip} |
| 968 |
\addtolength{\beforecskip}{-\parskip} |
| 969 |
\newlength{\aftercskip} |
| 970 |
\setlength{\aftercskip}{\@smidgeon} |
| 971 |
\addtolength{\aftercskip}{\@onelineskip} |
| 972 |
\addtolength{\aftercskip}{-\parskip} |
| 973 |
\newlength{\beforescskip} |
| 974 |
\setlength{\beforescskip}{\@smidgeon} |
| 975 |
\addtolength{\beforescskip}{\@onelineskip} |
| 976 |
\addtolength{\beforescskip}{-\parskip} |
| 977 |
\newlength{\afterscskip} |
| 978 |
\setlength{\afterscskip}{\@smidgeon} |
| 979 |
\addtolength{\afterscskip}{\@onelineskip} |
| 980 |
\addtolength{\afterscskip}{-\parskip} |
| 981 |
\newlength{\beforesscskip} |
| 982 |
\setlength{\beforesscskip}{\@smidgeon} |
| 983 |
\addtolength{\beforesscskip}{\@onelineskip} |
| 984 |
\addtolength{\beforesscskip}{-\parskip} |
| 985 |
\newlength{\aftersscskip} |
| 986 |
\setlength{\aftersscskip}{\@smidgeon} |
| 987 |
\addtolength{\aftersscskip}{\@onelineskip} |
| 988 |
\addtolength{\aftersscskip}{-\parskip} |
| 989 |
|
| 990 |
% \end{macrocode} |
| 991 |
% \end{macro} |
| 992 |
% \end{macro} |
| 993 |
% \end{macro} |
| 994 |
% \end{macro} |
| 995 |
% \end{macro} |
| 996 |
% \end{macro} |
| 997 |
% |
| 998 |
% \begin{macrocode} |
| 999 |
%</9pt|10pt|11pt> |
| 1000 |
%<*iso> |
| 1001 |
% \end{macrocode} |
| 1002 |
% |
| 1003 |
% \begin{macro}{\captionsize} |
| 1004 |
% This internal command holds the font size for captions. Its value |
| 1005 |
% depends on the \Lopt{uglycaption} option. |
| 1006 |
% \changes{v1.1}{1997/07/31}{Added \cs{captionsize} command to support the uglycaption} |
| 1007 |
% \changes{v2.3}{2001/07/06}{\cs{captionsize} is just \cs{normalsize}} |
| 1008 |
% \begin{macrocode} |
| 1009 |
\newcommand{\captionsize}{\normalsize} |
| 1010 |
% \end{macrocode} |
| 1011 |
% \end{macro} |
| 1012 |
% |
| 1013 |
% \subsection{Paragraphing} |
| 1014 |
% |
| 1015 |
% \begin{macro}{\lineskip} |
| 1016 |
% \begin{macro}{\normallineskip} |
| 1017 |
% These parameters control \TeX's behaviour when two lines tend to |
| 1018 |
% come too close together. |
| 1019 |
% \begin{macrocode} |
| 1020 |
\setlength\lineskip{1\p@} |
| 1021 |
\setlength\normallineskip{1\p@} |
| 1022 |
% \end{macrocode} |
| 1023 |
% \end{macro} |
| 1024 |
% \end{macro} |
| 1025 |
% |
| 1026 |
% \begin{macro}{\baselinestretch} |
| 1027 |
% This is used as a multiplier for |\baselineskip|. The default is |
| 1028 |
% to \emph{not} stretch the baselines. |
| 1029 |
% \begin{macrocode} |
| 1030 |
\renewcommand{\baselinestretch}{} |
| 1031 |
% \end{macrocode} |
| 1032 |
% \end{macro} |
| 1033 |
% |
| 1034 |
% \begin{macro}{\parindent} |
| 1035 |
% |\parskip| gives extra vertical space between paragraphs and |
| 1036 |
% |\parindent| is the width of the paragraph indentation. |
| 1037 |
% (|\parskip| is defined in the \file{.clo} file.) |
| 1038 |
% \begin{macrocode} |
| 1039 |
\setlength\parindent{\z@} |
| 1040 |
% \end{macrocode} |
| 1041 |
% \end{macro} |
| 1042 |
% |
| 1043 |
% |
| 1044 |
% \begin{macro}{\@lowpenalty} |
| 1045 |
% \begin{macro}{\@medpenalty} |
| 1046 |
% \begin{macro}{\@highpenalty}% |
| 1047 |
% The commands |\nopagebreak| and |\nolinebreak| put in penalties |
| 1048 |
% to discourage these breaks at the point they are put in. |
| 1049 |
% They use |\@lowpenalty|, |\@medpenalty| or |\@highpenalty|, |
| 1050 |
% dependent on their argument. |
| 1051 |
% \begin{macrocode} |
| 1052 |
\@lowpenalty 51 |
| 1053 |
\@medpenalty 151 |
| 1054 |
\@highpenalty 301 |
| 1055 |
% \end{macrocode} |
| 1056 |
% \end{macro} |
| 1057 |
% \end{macro} |
| 1058 |
% \end{macro} |
| 1059 |
% |
| 1060 |
% \begin{macro}{\clubpenalty} |
| 1061 |
% \begin{macro}{\widowpenalty} |
| 1062 |
% These penalties are used to discourage club and widow lines. |
| 1063 |
% The default values are 150 each, but we want stronger discouragement. |
| 1064 |
% \begin{macrocode} |
| 1065 |
\clubpenalty 1000 |
| 1066 |
\widowpenalty 1000 |
| 1067 |
% \end{macrocode} |
| 1068 |
% \end{macro} |
| 1069 |
% \end{macro} |
| 1070 |
% |
| 1071 |
% \begin{macro}{\displaywidowpenalty} |
| 1072 |
% \begin{macro}{\predisplaypenalty} |
| 1073 |
% \begin{macro}{\postdisplaypenalty} |
| 1074 |
% Discourage, but do not prevent, widows in front of a math display |
| 1075 |
% and forbid breaking directly in front of a display. Allow break |
| 1076 |
% after a display without a penalty. The default values are |
| 1077 |
% used, therefore we only show them here. |
| 1078 |
% \begin{macrocode} |
| 1079 |
% \displaywidowpenalty 50 |
| 1080 |
% \predisplaypenalty 10000 |
| 1081 |
% \postdisplaypenalty 0 |
| 1082 |
% \end{macrocode} |
| 1083 |
% \end{macro} |
| 1084 |
% \end{macro} |
| 1085 |
% \end{macro} |
| 1086 |
% |
| 1087 |
% \begin{macro}{\interlinepenalty} |
| 1088 |
% Allow the breaking of a page in the middle of a paragraph. |
| 1089 |
% \begin{macrocode} |
| 1090 |
% \interlinepenalty 0 |
| 1091 |
% \end{macrocode} |
| 1092 |
% \end{macro} |
| 1093 |
% |
| 1094 |
% |
| 1095 |
% \begin{macro}{\brokenpenalty} |
| 1096 |
% We allow the breaking of a page after a hyphenated line. |
| 1097 |
% \begin{macrocode} |
| 1098 |
% \brokenpenalty 100 |
| 1099 |
% \end{macrocode} |
| 1100 |
% \end{macro} |
| 1101 |
% |
| 1102 |
% |
| 1103 |
% |
| 1104 |
% |
| 1105 |
% \subsection{Page Layout} |
| 1106 |
% |
| 1107 |
% All margin dimensions are measured from a point one inch from the |
| 1108 |
% top and lefthand side of the page. |
| 1109 |
% |
| 1110 |
% The ISO layout on A4 paper (297 by 210 mm) is 25mm sidemargins |
| 1111 |
% (make that 25.4mm for simplicity) |
| 1112 |
% 12mm above and below the header and footer, at least one blank line |
| 1113 |
% between the typeblock and headers/footers. This leads to |
| 1114 |
% |\...sidemargin = 0|, and |\textwidth = 159.2mm = 160mm| for convenience, |
| 1115 |
% and |\topmargin = -13.5mm|. |
| 1116 |
% |
| 1117 |
% Make |\headheight|, |
| 1118 |
% |\headskip| and footheight each be 12pt, then |\footskip = 24pt|. |
| 1119 |
% The total height of the typeblock is then 256mm; subtracting the |
| 1120 |
% |\topskip| (say 12pt = 4mm) gives |\textheight = 252mm|. |
| 1121 |
% \changes{v2.3}{2001/07/06}{Reconfigured the page layout} |
| 1122 |
% |
| 1123 |
% \subsubsection{Vertical spacing} |
| 1124 |
% |
| 1125 |
% \begin{macro}{\headheight} |
| 1126 |
% \begin{macro}{\headsep} |
| 1127 |
% \begin{macro}{\topskip} |
| 1128 |
% The |\headheight| is the height of the box that will contain the |
| 1129 |
% running head. The |\headsep| is the distance between the bottom |
| 1130 |
% of the running head and the top of the text. The |\topskip| is the |
| 1131 |
% |\baselineskip| for the first line on a page; |
| 1132 |
% \LaTeX's output routine will not work properly if it has the |
| 1133 |
% value 0pt, so do not do that! |
| 1134 |
% \begin{macrocode} |
| 1135 |
\setlength\headheight{12\p@} |
| 1136 |
\setlength\headsep{12\p@} |
| 1137 |
%</iso> |
| 1138 |
%<9pt>\setlength\topskip{12\p@} |
| 1139 |
%<10pt>\setlength\topskip{12\p@} |
| 1140 |
%<11pt>\setlength\topskip{12\p@} |
| 1141 |
%<*iso> |
| 1142 |
% \end{macrocode} |
| 1143 |
% \end{macro} |
| 1144 |
% \end{macro} |
| 1145 |
% \end{macro} |
| 1146 |
% |
| 1147 |
% \begin{macro}{\footskip} |
| 1148 |
% The distance from the baseline of the box which contains the |
| 1149 |
% running footer to the baseline of last line of text is controlled |
| 1150 |
% by the |\footskip|. |
| 1151 |
% \begin{macrocode} |
| 1152 |
\setlength\footskip{24\p@} |
| 1153 |
% \end{macrocode} |
| 1154 |
% \end{macro} |
| 1155 |
% |
| 1156 |
% \begin{macro}{\maxdepth} |
| 1157 |
% \begin{macro}{\@maxdepth} |
| 1158 |
% The \TeX\ primitive register |\maxdepth| has a function that is |
| 1159 |
% similar to that of |\topskip|. The register |\@maxdepth| should |
| 1160 |
% always contain a copy of |\maxdepth|. In both plain \TeX\ and |
| 1161 |
% \LaTeX~2.09 |\maxdepth| had a fixed value of \texttt{4pt}; in |
| 1162 |
% native \LaTeX 2e mode we let the value depend on the typesize. We |
| 1163 |
% set it so that |\maxdepth| $+$ |\topskip| $=$ typesize $\times |
| 1164 |
% 1.5$. As it happens, in these classes |\topskip| is equal to the |
| 1165 |
% typesize, therefor we set |\maxdepth| to half the value of |
| 1166 |
% |\topskip|. |
| 1167 |
% \begin{macrocode} |
| 1168 |
\setlength\maxdepth{.5\topskip} |
| 1169 |
\setlength\@maxdepth\maxdepth |
| 1170 |
% \end{macrocode} |
| 1171 |
% \end{macro} |
| 1172 |
% \end{macro} |
| 1173 |
% |
| 1174 |
% \subsubsection{The dimension of text} |
| 1175 |
% |
| 1176 |
% \begin{macro}{\textwidth} |
| 1177 |
% \begin{macro}{\textheight} |
| 1178 |
% \begin{macro}{\columnsep} |
| 1179 |
% The width and height of the text which are fixed in this class. |
| 1180 |
% Also, the gutter width when in two column mode. |
| 1181 |
% |
| 1182 |
% \begin{macrocode} |
| 1183 |
\setlength\textwidth{160mm} |
| 1184 |
%%%\setlength\textheight{221.5mm} |
| 1185 |
\setlength\textheight{252mm} |
| 1186 |
\setlength\columnsep{10mm} |
| 1187 |
% \end{macrocode} |
| 1188 |
% \end{macro} |
| 1189 |
% \end{macro} |
| 1190 |
% \end{macro} |
| 1191 |
% |
| 1192 |
% |
| 1193 |
% |
| 1194 |
% \subsubsection{Margins} |
| 1195 |
% |
| 1196 |
% \begin{macro}{\topmargin} |
| 1197 |
% \begin{macro}{\oddsidemargin} |
| 1198 |
% \begin{macro}{\evensidemargin} |
| 1199 |
% \begin{macro}{\marginparwidth} |
| 1200 |
% \begin{macro}{\marginparsep} |
| 1201 |
% \begin{macro}{\marginparpush} |
| 1202 |
% The margins are fixed in this class. |
| 1203 |
% \begin{macrocode} |
| 1204 |
%%%\setlength\topmargin{0mm} |
| 1205 |
\setlength\topmargin{-13.5mm} |
| 1206 |
\setlength\oddsidemargin{0mm} |
| 1207 |
\setlength\evensidemargin{0mm} |
| 1208 |
\setlength\marginparwidth{0pt} |
| 1209 |
\setlength\marginparsep{0pt} |
| 1210 |
\setlength\marginparpush{3mm} |
| 1211 |
% \end{macrocode} |
| 1212 |
% However, some of the options can change these values. The \Lopt{draft} |
| 1213 |
% option allows marginal notes. |
| 1214 |
% \begin{macrocode} |
| 1215 |
\ifdr@ftd@c |
| 1216 |
\setlength\marginparwidth{20mm} |
| 1217 |
\setlength\marginparsep{0.5mm} |
| 1218 |
\fi |
| 1219 |
% \end{macrocode} |
| 1220 |
% The \Lopt{letterpaper} (279 by 216 mm) option rearranges the text block on the page, |
| 1221 |
% trying to center it horizontally. |
| 1222 |
% \begin{macrocode} |
| 1223 |
\if@us |
| 1224 |
%%% \setlength\topmargin{-9.4mm} |
| 1225 |
%%% \setlength\oddsidemargin{1.55mm} |
| 1226 |
%%% \setlength\evensidemargin{1.55mm} |
| 1227 |
\addtolength{\topmargin}{-9mm} |
| 1228 |
\setlength\oddsidemargin{2mm} |
| 1229 |
\setlength\evensidemargin{2mm} |
| 1230 |
\typeout{ } |
| 1231 |
\typeout{*********************************************************} |
| 1232 |
\typeout{* Warning: You have used the letterpage option. *********} |
| 1233 |
\typeout{* This will not be acceptable as ISO camera ready copy. *} |
| 1234 |
\typeout{*********************************************************} |
| 1235 |
\typeout{ } |
| 1236 |
\fi |
| 1237 |
% \end{macrocode} |
| 1238 |
% \end{macro} |
| 1239 |
% \end{macro} |
| 1240 |
% \end{macro} |
| 1241 |
% \end{macro} |
| 1242 |
% \end{macro} |
| 1243 |
% \end{macro} |
| 1244 |
% |
| 1245 |
% |
| 1246 |
% |
| 1247 |
% \subsubsection{Footnotes} |
| 1248 |
% |
| 1249 |
% \begin{macro}{\footnotesep} |
| 1250 |
% |\footnotesep| is the height of the strut placed at the beginning |
| 1251 |
% of every footnote. |
| 1252 |
% \begin{macrocode} |
| 1253 |
\setlength\footnotesep{12\p@} |
| 1254 |
% \end{macrocode} |
| 1255 |
% \end{macro} |
| 1256 |
% |
| 1257 |
% \begin{macro}{\footins} |
| 1258 |
% |\skip\footins| is the space between the last line of the main |
| 1259 |
% text and the top of the first footnote. |
| 1260 |
% \begin{macrocode} |
| 1261 |
\setlength{\skip\footins}{6\p@ \@plus 2\p@ \@minus 2\p@} |
| 1262 |
% \end{macrocode} |
| 1263 |
% \end{macro} |
| 1264 |
% |
| 1265 |
% \subsubsection{Float placement parameters} |
| 1266 |
% |
| 1267 |
% All float parameters are given default values in the \LaTeX 2e |
| 1268 |
% kernel. For this reason counters only need to be set with |
| 1269 |
% |\setcounter| and other parameters are set using |\renewcommand|. |
| 1270 |
% |
| 1271 |
% \paragraph{Limits for the placement of floating objects} |
| 1272 |
% |
| 1273 |
% \begin{macro}{\c@topnumber} |
| 1274 |
% The \Lcount{topnumber} counter holds the maximum number of |
| 1275 |
% floats that can appear on the top of a text page (classically 2) |
| 1276 |
% \begin{macrocode} |
| 1277 |
\setcounter{topnumber}{2} |
| 1278 |
% \end{macrocode} |
| 1279 |
% \end{macro} |
| 1280 |
% |
| 1281 |
% \begin{macro}{\topfraction} |
| 1282 |
% This indicates the maximum part of a text page that can be |
| 1283 |
% occupied by floats at the top (classically 0.7). |
| 1284 |
% \begin{macrocode} |
| 1285 |
\renewcommand{\topfraction}{.8} |
| 1286 |
% \end{macrocode} |
| 1287 |
% \end{macro} |
| 1288 |
% |
| 1289 |
% \begin{macro}{\c@bottomnumber} |
| 1290 |
% The \Lcount{bottomnumber} counter holds the maximum number of |
| 1291 |
% floats that can appear on the bottom of a text page (classically 1). |
| 1292 |
% \begin{macrocode} |
| 1293 |
\setcounter{bottomnumber}{2} |
| 1294 |
% \end{macrocode} |
| 1295 |
% \end{macro} |
| 1296 |
% |
| 1297 |
% \begin{macro}{\bottomfraction} |
| 1298 |
% This indicates the maximum part of a text page that can be |
| 1299 |
% occupied by floats at the bottom (classically 0.3). |
| 1300 |
% \begin{macrocode} |
| 1301 |
\renewcommand{\bottomfraction}{.5} |
| 1302 |
% \end{macrocode} |
| 1303 |
% \end{macro} |
| 1304 |
% |
| 1305 |
% \begin{macro}{\c@totalnumber} |
| 1306 |
% This indicates the maximum number of floats that can appear on |
| 1307 |
% any text page (classically 3). |
| 1308 |
% \begin{macrocode} |
| 1309 |
\setcounter{totalnumber}{4} |
| 1310 |
% \end{macrocode} |
| 1311 |
% \end{macro} |
| 1312 |
% |
| 1313 |
% \begin{macro}{\textfraction} |
| 1314 |
% This indicates the minimum part of a text page that has to be |
| 1315 |
% occupied by text (classically 0.2). |
| 1316 |
% \begin{macrocode} |
| 1317 |
\renewcommand{\textfraction}{.1} |
| 1318 |
% \end{macrocode} |
| 1319 |
% \end{macro} |
| 1320 |
% |
| 1321 |
% \begin{macro}{\floatpagefraction} |
| 1322 |
% This indicates the minimum part of a page that has to be |
| 1323 |
% occupied by floating objects before a `float page' is |
| 1324 |
% produced (classically 0.5). |
| 1325 |
% \begin{macrocode} |
| 1326 |
\renewcommand{\floatpagefraction}{.7} |
| 1327 |
% \end{macrocode} |
| 1328 |
% \end{macro} |
| 1329 |
% |
| 1330 |
% \begin{macro}{\c@dbltopnumber} |
| 1331 |
% The \Lcount{dbltopnumber} counter holds the maximum number of |
| 1332 |
% two column floats that can appear on the top of a two column text |
| 1333 |
% page (classically 2). |
| 1334 |
% \begin{macrocode} |
| 1335 |
\setcounter{dbltopnumber}{2} |
| 1336 |
% \end{macrocode} |
| 1337 |
% \end{macro} |
| 1338 |
% |
| 1339 |
% \begin{macro}{\dbltopfraction} |
| 1340 |
% This indicates the maximum part of a two column text page that |
| 1341 |
% can be occupied by two column floats at the top (classically 0.7). |
| 1342 |
% \begin{macrocode} |
| 1343 |
\renewcommand{\dbltopfraction}{.8} |
| 1344 |
% \end{macrocode} |
| 1345 |
% \end{macro} |
| 1346 |
% |
| 1347 |
% \begin{macro}{\dblfloatpagefraction} |
| 1348 |
% This indicates the minimum part of a page that has to be |
| 1349 |
% occupied by two column wide floating objects before a `float |
| 1350 |
% page' is produced (classically 0.5). |
| 1351 |
% \begin{macrocode} |
| 1352 |
\renewcommand{\dblfloatpagefraction}{.7} |
| 1353 |
% \end{macrocode} |
| 1354 |
% \end{macro} |
| 1355 |
% |
| 1356 |
% \paragraph{Floats on a text page} |
| 1357 |
% |
| 1358 |
% \begin{macro}{\floatsep} |
| 1359 |
% \begin{macro}{\textfloatsep} |
| 1360 |
% \begin{macro}{\intextsep} |
| 1361 |
% When a floating object is placed on a page with text, these |
| 1362 |
% parameters control the separation between the float and the other |
| 1363 |
% objects on the page. These parameters are used for both |
| 1364 |
% one-column mode and single-column floats in two-column mode. |
| 1365 |
% |
| 1366 |
% |\floatsep| is the space between adjacent floats that are moved |
| 1367 |
% to the top or bottom of the text page. |
| 1368 |
% |
| 1369 |
% |\textfloatsep| is the space between the main text and floats |
| 1370 |
% at the top or bottom of the page. |
| 1371 |
% |
| 1372 |
% |\intextsep| is the space between in-text floats and the text. |
| 1373 |
% \begin{macrocode} |
| 1374 |
\setlength\floatsep {12\p@ \@plus 2\p@ \@minus 2\p@} |
| 1375 |
\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@} |
| 1376 |
\setlength\intextsep {12\p@ \@plus 2\p@ \@minus 2\p@} |
| 1377 |
% \end{macrocode} |
| 1378 |
% \end{macro} |
| 1379 |
% \end{macro} |
| 1380 |
% \end{macro} |
| 1381 |
% |
| 1382 |
% \begin{macro}{\dblfloatsep} |
| 1383 |
% \begin{macro}{\dbltextfloatsep} |
| 1384 |
% When floating objects that span the whole |\textwidth| are placed |
| 1385 |
% on a text page and \LaTeX{} is in twocolumn mode the separation |
| 1386 |
% between the float and the text is controlled by |\dblfloatsep| |
| 1387 |
% and |\dbltextfloatsep|. |
| 1388 |
% |
| 1389 |
% |\dblfloatsep| is the space between adjacent floats that are moved |
| 1390 |
% to the top or bottom of the text page. |
| 1391 |
% |
| 1392 |
% |\dbltextfloatsep| is the space between the main text and floats |
| 1393 |
% at the top or bottom of the page. |
| 1394 |
% |
| 1395 |
% \begin{macrocode} |
| 1396 |
\setlength\dblfloatsep {12\p@ \@plus 2\p@ \@minus 2\p@} |
| 1397 |
\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@} |
| 1398 |
% \end{macrocode} |
| 1399 |
% \end{macro} |
| 1400 |
% \end{macro} |
| 1401 |
% |
| 1402 |
% \paragraph{Floats on their own page or column} |
| 1403 |
% |
| 1404 |
% \begin{macro}{\@fptop} |
| 1405 |
% \begin{macro}{\@fpsep} |
| 1406 |
% \begin{macro}{\@fpbot} |
| 1407 |
% When floating objects are placed on separate pages the layout of |
| 1408 |
% such pages is controlled by these parameters. At the top of the |
| 1409 |
% page |\@fptop| amount of stretchable whitespace is inserted, at |
| 1410 |
% the bottom of the page we get an |\@fpbot| amount of stretchable |
| 1411 |
% whitespace. Between adjacent floats the |\@fpsep| is inserted. |
| 1412 |
% |
| 1413 |
% These parameters are used for the placement of floating objects |
| 1414 |
% in one column mode, or in single column floats in two column |
| 1415 |
% mode. |
| 1416 |
% |
| 1417 |
% Note that at least one of the two parameters |\@fptop| and |
| 1418 |
% |\@fpbot| should contain a |plus ...fil| to allow filling the |
| 1419 |
% remaining empty space. |
| 1420 |
% \begin{macrocode} |
| 1421 |
\setlength\@fptop{0\p@ \@plus 1fil} |
| 1422 |
\setlength\@fpsep{8\p@ \@plus 2fil} |
| 1423 |
\setlength\@fpbot{0\p@ \@plus 1fil} |
| 1424 |
% \end{macrocode} |
| 1425 |
% \end{macro} |
| 1426 |
% \end{macro} |
| 1427 |
% \end{macro} |
| 1428 |
% |
| 1429 |
% \begin{macro}{\@dblfptop} |
| 1430 |
% \begin{macro}{\@dblfpsep} |
| 1431 |
% \begin{macro}{\@dblfpbot} |
| 1432 |
% Double column floats in two column mode are handled with similar |
| 1433 |
% parameters. |
| 1434 |
% \begin{macrocode} |
| 1435 |
\setlength\@dblfptop{0\p@ \@plus 1fil} |
| 1436 |
\setlength\@dblfpsep{8\p@ \@plus 2fil} |
| 1437 |
\setlength\@dblfpbot{0\p@ \@plus 1fil} |
| 1438 |
% \end{macrocode} |
| 1439 |
% \end{macro} |
| 1440 |
% \end{macro} |
| 1441 |
% \end{macro} |
| 1442 |
% |
| 1443 |
% \subsection{Page Styles} |
| 1444 |
% |
| 1445 |
% The page style \pstyle{foo} is defined by defining the command |
| 1446 |
% |\ps@foo|. This command should make only local definitions. |
| 1447 |
% There should be no stray spaces in the definition, since they |
| 1448 |
% could lead to mysterious extra spaces in the output. |
| 1449 |
% |
| 1450 |
% \begin{macro}{\@evenhead} |
| 1451 |
% \begin{macro}{\@oddhead} |
| 1452 |
% \begin{macro}{\@evenfoot} |
| 1453 |
% \begin{macro}{\@oddfoot} |
| 1454 |
% The |\ps@...| command defines the macros |\@oddhead|, |
| 1455 |
% |\@oddfoot|, |\@evenhead|, and |\@evenfoot| to define the running |
| 1456 |
% heads and feet---e.g., |\@oddhead| is the macro to produce the |
| 1457 |
% contents of the heading box for odd-numbered pages. It is called |
| 1458 |
% inside an |\hbox| of width |\textwidth|. |
| 1459 |
% \end{macro} |
| 1460 |
% \end{macro} |
| 1461 |
% \end{macro} |
| 1462 |
% \end{macro} |
| 1463 |
% |
| 1464 |
% \subsubsection{Marking conventions} |
| 1465 |
% |
| 1466 |
% To make headings determined by the sectioning commands, the page |
| 1467 |
% style defines the commands |\chaptermark|, |\sectionmark|, |
| 1468 |
% \ldots,\\ |
| 1469 |
% where |\chaptermark{|\meta{TEXT}|}| is called by |
| 1470 |
% |\chapter| to set a mark, and so on. |
| 1471 |
% |
| 1472 |
% The |\...mark| commands and the |\...head| macros are defined |
| 1473 |
% with the help of the following macros. (All the |\...mark| |
| 1474 |
% commands should be initialized to no-ops.) |
| 1475 |
% |
| 1476 |
% \LaTeX{} extends \TeX's |\mark| facility by producing two kinds |
| 1477 |
% of marks, a `left' and a `right' mark, using the following |
| 1478 |
% commands: |
| 1479 |
% \begin{flushleft} |
| 1480 |
% |\markboth{|\meta{LEFT}|}{|\meta{RIGHT}|}|: Adds both marks. |
| 1481 |
% |
| 1482 |
% |\markright{|\meta{RIGHT}|}|: Adds a `right' mark. |
| 1483 |
% |
| 1484 |
% |\leftmark|: Used in the |\@oddhead|, |\@oddfoot|, |\@evenhead| |
| 1485 |
% or |\@evenfoot| macros, it gets the current `left' |
| 1486 |
% mark. |\leftmark| works like \TeX's |\botmark| |
| 1487 |
% command. |
| 1488 |
% |
| 1489 |
% |\rightmark|: Used in the |\@oddhead|, |\@oddfoot|, |\@evenhead| |
| 1490 |
% or |\@evenfoot| macros, it gets the current |
| 1491 |
% `right' mark. |\rightmark| works like \TeX's |
| 1492 |
% |\firstmark| command. |
| 1493 |
% \end{flushleft} |
| 1494 |
% |
| 1495 |
% The marking commands work reasonably well for right marks |
| 1496 |
% `numbered within' left marks--e.g., the left mark is changed by a |
| 1497 |
% |\chapter| command and the right mark is changed by a |\section| |
| 1498 |
% command. However, it does produce somewhat anomalous results if |
| 1499 |
% two |\markboth|'s occur on the same page. |
| 1500 |
% |
| 1501 |
% |
| 1502 |
% Commands like |\tableofcontents| that should set the marks in some |
| 1503 |
% page styles use a |\@mkboth| command, which is |\let| by the |
| 1504 |
% pagestyle command (|\ps@...|) to |\markboth| for setting the |
| 1505 |
% heading or to |\@gobbletwo| to do nothing. |
| 1506 |
% |
| 1507 |
% |
| 1508 |
% \begin{macrocode} |
| 1509 |
%%%\mark{{}{}} % Initializes TeX's marks <--- can vanish |
| 1510 |
% \end{macrocode} |
| 1511 |
% |
| 1512 |
% \begin{macro}{\standard} |
| 1513 |
% \begin{macro}{\yearofedition} |
| 1514 |
% \begin{macro}{\languageofedition} |
| 1515 |
% These commands are to be used in the document preamble. They |
| 1516 |
% are used to specify the identification of the standard, |
| 1517 |
% the year of the standard and the language of the standard. |
| 1518 |
% For example, for a DIS printed in 1995 in English: |
| 1519 |
% \begin{verbatim} |
| 1520 |
% \standard{ISO/DIS 10303-321} |
| 1521 |
% \yearofedition{1995} |
| 1522 |
% \languageofedition{(E)} |
| 1523 |
% \end{verbatim} |
| 1524 |
% \begin{macro}{\thestandard} |
| 1525 |
% \begin{macro}{\thesyear} |
| 1526 |
% \begin{macro}{\theslanguage} |
| 1527 |
% \begin{macro}{\@runninghead} |
| 1528 |
% |\thestandard| and |\thesyear| hold the number and year of the |
| 1529 |
% standard being documented. |\theslanguage| holds the ISO |
| 1530 |
% identification of the publication language; note that |
| 1531 |
% this must include parentheses around the code letter. |
| 1532 |
% \begin{macrocode} |
| 1533 |
\gdef\thestandard{} |
| 1534 |
\gdef\thesyear{} |
| 1535 |
\gdef\theslanguage{} |
| 1536 |
\def\standard#1{\gdef\thestandard{#1}} |
| 1537 |
\def\yearofedition#1{\gdef\thesyear{#1}} |
| 1538 |
\def\languageofedition#1{\gdef\theslanguage{#1}} |
| 1539 |
% \end{macrocode} |
| 1540 |
% |\@runninghead| contains the document identification text for |
| 1541 |
% the running head. Its value depends on the \Lopt{otherdoc} option. |
| 1542 |
% \begin{macrocode} |
| 1543 |
\ifotherdoc |
| 1544 |
% \end{macrocode} |
| 1545 |
% This is not intended to be a standard, so just use |\thestandard| text. |
| 1546 |
% \begin{macrocode} |
| 1547 |
\newcommand{\@runninghead}{\thestandard} |
| 1548 |
\else |
| 1549 |
% \end{macrocode} |
| 1550 |
% It either is, or is intended to become, a standard, |
| 1551 |
% `so the year and language are |
| 1552 |
% required as well; note the colon. |
| 1553 |
% \begin{macrocode} |
| 1554 |
\newcommand{\@runninghead}{\thestandard:\thesyear\theslanguage} |
| 1555 |
\fi |
| 1556 |
|
| 1557 |
% \end{macrocode} |
| 1558 |
% \end{macro} |
| 1559 |
% \end{macro} |
| 1560 |
% \end{macro} |
| 1561 |
% \end{macro} |
| 1562 |
% \end{macro} |
| 1563 |
% \end{macro} |
| 1564 |
% \end{macro} |
| 1565 |
% |
| 1566 |
% \begin{macro}{\copyrighthead} |
| 1567 |
% |
| 1568 |
% |\copyrighthead| contains the text for a copyright mark |
| 1569 |
% in a heading. |
| 1570 |
% However, it should be blank if the document is not copyrighted. |
| 1571 |
% \changes{v2.3}{2001/07/06}{Changed \cs{copyrighthead}} |
| 1572 |
% \begin{macrocode} |
| 1573 |
\newcommand{\copyrighthead}{\ifc@pyright |
| 1574 |
{\mbox{\copyright \textsc{\copyrightname} \thesyear{} --- All rights reserved}} |
| 1575 |
\else |
| 1576 |
\mbox{} |
| 1577 |
\fi} |
| 1578 |
|
| 1579 |
% \end{macrocode} |
| 1580 |
% \end{macro} |
| 1581 |
% |
| 1582 |
% \begin{macro}{\extrahead} |
| 1583 |
% |\extrahead| puts its contents into the page header (e.g., a document |
| 1584 |
% number). Use it in the preamble as |\renewcommand{\extrahead}{N5496}|. |
| 1585 |
% \changes{v2.3}{2001/07/06}{Added \cs{extrahead}} |
| 1586 |
% \begin{macrocode} |
| 1587 |
\newcommand{\extrahead}{\mbox{}} |
| 1588 |
|
| 1589 |
% \end{macrocode} |
| 1590 |
% \end{macro} |
| 1591 |
% |
| 1592 |
% \subsubsection{Defining the page styles} |
| 1593 |
% |
| 1594 |
% The pagestyles \pstyle{empty} and \pstyle{plain} are defined |
| 1595 |
% in \file{latex.dtx}. |
| 1596 |
% |
| 1597 |
% \begin{macro}{\ps@headings} |
| 1598 |
% \pstyle{headings} is the typical pagestyle throughout the document. |
| 1599 |
% The header contains the identification of the standard. |
| 1600 |
% The footer has the page number at the outer edge and a copyright |
| 1601 |
% notice at the inner. |
| 1602 |
% \changes{v2.3}{2001/07/06}{The headings pagestyle has been modified} |
| 1603 |
% \begin{macrocode} |
| 1604 |
\newcommand{\ps@headings}{% |
| 1605 |
\def\@oddhead{\bfseries\extrahead\hfil\@runninghead}% |
| 1606 |
\def\@evenhead{\bfseries\@runninghead\hfil\extrahead}% |
| 1607 |
\def\@oddfoot{\copyrighthead\hfil\thepage}% |
| 1608 |
\def\@evenfoot{\thepage\hfil\copyrighthead}} |
| 1609 |
% \end{macrocode} |
| 1610 |
% \end{macro} |
| 1611 |
% |
| 1612 |
% \begin{macro}{\ps@startpage} |
| 1613 |
% The \pstyle{startpage} page style is similar to \pstyle{headings} |
| 1614 |
% but without a copyright notice. |
| 1615 |
% \changes{v2.3}{2001/07/06}{The startpage pagestyle modified like headings} |
| 1616 |
% \begin{macrocode} |
| 1617 |
\newcommand{\ps@startpage}{% |
| 1618 |
\def\@oddhead{\bfseries\extrahead\hfil\@runninghead}% |
| 1619 |
\def\@evenhead{\bfseries\@runninghead\hfil\extrahead}% |
| 1620 |
\def\@oddfoot{\hfil\thepage}% |
| 1621 |
\def\@evenfoot{\thepage\hfil}} |
| 1622 |
% \end{macrocode} |
| 1623 |
% \end{macro} |
| 1624 |
% |
| 1625 |
% \begin{macro}{\ps@nohead} |
| 1626 |
% Pagestyle \pstyle{nohead} has no headers or footers. |
| 1627 |
% \begin{macrocode} |
| 1628 |
\newcommand{\ps@nohead}{% |
| 1629 |
\def\@oddhead{}% |
| 1630 |
\def\@evenhead{}% |
| 1631 |
\def\@oddfoot{}% |
| 1632 |
\def\@evenfoot{}} |
| 1633 |
% \end{macrocode} |
| 1634 |
% \end{macro} |
| 1635 |
% |
| 1636 |
% \begin{macro}{\rectoisotitlehead} |
| 1637 |
% \begin{macro}{\versoisotitlehead} |
| 1638 |
% \begin{macro}{\ps@isotitlehead} |
| 1639 |
% |
| 1640 |
% \pstyle{isotitlehead} is a special pagestyle for the title page of |
| 1641 |
% a standard. |\rectoisotitlehead| and |\versoisotitlehead| |
| 1642 |
% contain the relevent texts. |
| 1643 |
% \changes{v2.3}{2002/01/22}{Changed the isotitlehead pagestyle} |
| 1644 |
% \begin{macrocode} |
| 1645 |
\newcommand{\rectoisotitlehead}{% |
| 1646 |
\fillline\vspace{0.1\baselineskip}\linebreak% |
| 1647 |
{\bfseries \uppercase{\ISname}} |
| 1648 |
%% \mbox{\ifc@pyright\space\copyright {\scshape \copyrightname}\else |
| 1649 |
%% \space{\scshape (\copyrightname)}\fi} |
| 1650 |
\hfil {\bfseries \@runninghead}% |
| 1651 |
\vspace{-0.5\baselineskip}\linebreak\fillline} |
| 1652 |
% \end{macrocode} |
| 1653 |
% |
| 1654 |
% \begin{macrocode} |
| 1655 |
\newcommand{\versoisotitlehead}{% |
| 1656 |
\fillline\vspace{0.1\baselineskip}\linebreak% |
| 1657 |
{\bfseries \@runninghead} \hfil |
| 1658 |
{\bfseries \uppercase{\ISname}} |
| 1659 |
%% \mbox{\ifc@pyright\space\copyright {\scshape \copyrightname}\else |
| 1660 |
%% \space{\scshape (\copyrightname)}\fi} |
| 1661 |
\vspace{-0.5\baselineskip}\linebreak\fillline} |
| 1662 |
% \end{macrocode} |
| 1663 |
% |
| 1664 |
% \begin{macrocode} |
| 1665 |
\def\ps@isotitlehead{% |
| 1666 |
\def\@oddhead{\parbox{\textwidth}{\protect\rectoisotitlehead}}% |
| 1667 |
\def\@evenhead{\parbox{\textwidth}{\protect\versoisotitlehead}}% |
| 1668 |
%% \def\@oddfoot{\hfil\thepage}% |
| 1669 |
%% \def\@evenfoot{\thepage\hfil}} |
| 1670 |
\def\@oddfoot{\copyrighthead\hfil\thepage}% |
| 1671 |
\def\@evenfoot{\thepage\hfil\copyrighthead}} |
| 1672 |
% \end{macrocode} |
| 1673 |
% \end{macro} |
| 1674 |
% \end{macro} |
| 1675 |
% \end{macro} |
| 1676 |
% |
| 1677 |
% |
| 1678 |
% \section{Document Markup} \label{sec:docm} |
| 1679 |
% |
| 1680 |
% \subsection{The title} |
| 1681 |
% |
| 1682 |
% In this class the |\title| command is somewhat different to that |
| 1683 |
% in the standard classes. |
| 1684 |
% |
| 1685 |
% \begin{macro}{\title} |
| 1686 |
% \begin{macro}{\thetitle} |
| 1687 |
% \begin{macro}{\introelement} |
| 1688 |
% \begin{macro}{\mainelement} |
| 1689 |
% \begin{macro}{\compelement} |
| 1690 |
% The command |\title{|\meta{intro}|}{|\meta{main}|}{|\meta{comp}|}| |
| 1691 |
% produces a macro |\thetitle| which is used when generating the |
| 1692 |
% first normative clause. |
| 1693 |
% |
| 1694 |
% First define a default |\thetitle|. |
| 1695 |
% \begin{macrocode} |
| 1696 |
\gdef\thetitle{} |
| 1697 |
% \end{macrocode} |
| 1698 |
% Define the elements to be used in the title. |
| 1699 |
% \changes{v2}{1997/11/30}{Tweaked the \cs{title} command} |
| 1700 |
% \changes{v2.3}{2001/07/06}{Tweaked the \cs{title} command by adding \cs{par}} |
| 1701 |
% \begin{macrocode} |
| 1702 |
\newcommand{\introelement}[1]{\if\isoemptystring{#1}\else {#1 ---\newline}\fi} |
| 1703 |
\newcommand{\mainelement}[1]{#1} |
| 1704 |
\newcommand{\compelement}[1]{\if\isoemptystring{#1}\else { --- \newline #1}\fi} |
| 1705 |
% \end{macrocode} |
| 1706 |
% The |\title| command starts a new recto page with arabic numbering and |
| 1707 |
% initialises the counters. It also uses the |isotitlehead|. |
| 1708 |
% \begin{macrocode} |
| 1709 |
\renewcommand{\title}[3]{% |
| 1710 |
\cleardoublepage\pagenumbering{arabic}% |
| 1711 |
\setcounter{clause}{0}% |
| 1712 |
\ifotherdoc \else % |
| 1713 |
\protect\thispagestyle{isotitlehead} |
| 1714 |
\fi |
| 1715 |
\gdef\thetitle{{\Tfont \introelement{#1} % |
| 1716 |
\mainelement{#2} % |
| 1717 |
\compelement{#3}\par}} |
| 1718 |
\if@twocolumn |
| 1719 |
\twocolumn[\vspace*{2\baselineskip}\vbox to 35mm{\thetitle}] |
| 1720 |
\else |
| 1721 |
\vspace*{2\baselineskip}\vbox to 35mm{\thetitle} |
| 1722 |
\fi} |
| 1723 |
% \end{macrocode} |
| 1724 |
% \end{macro} |
| 1725 |
% \end{macro} |
| 1726 |
% \end{macro} |
| 1727 |
% \end{macro} |
| 1728 |
% \end{macro} |
| 1729 |
% |
| 1730 |
% \subsection{The cover} |
| 1731 |
% |
| 1732 |
% ISO will produce the cover (pages 1 and 2) for any documents they |
| 1733 |
% publish. It can be useful for editors to be able to provide their |
| 1734 |
% own, informal, cover sheet. |
| 1735 |
% |
| 1736 |
% \begin{environment}{cover} |
| 1737 |
% The |cover| environment is for typesetting an informal cover sheet. |
| 1738 |
% there is no restriction on what can go into it, except that if used it |
| 1739 |
% must be the first element in the document and the contents must not |
| 1740 |
% exceed a single page. |
| 1741 |
% \changes{v2.3}{2001/07/06}{Added the cover environment} |
| 1742 |
% \begin{macrocode} |
| 1743 |
\newenvironment{cover}{% |
| 1744 |
\if@twocolumn |
| 1745 |
\@restonecoltrue\onecolumn |
| 1746 |
\else |
| 1747 |
\@restonecolfalse |
| 1748 |
\fi |
| 1749 |
\setcounter{page}{1} \pagenumbering{roman} |
| 1750 |
\thispagestyle{empty}}{% |
| 1751 |
% \end{macrocode} |
| 1752 |
% A copyright notice has to go at the foot of the second page. |
| 1753 |
% \begin{macrocode} |
| 1754 |
%% \clearpage |
| 1755 |
\thispagestyle{startpage} |
| 1756 |
\mbox{} |
| 1757 |
\ifc@pyright\@copyrighttext\fi |
| 1758 |
\newpage |
| 1759 |
\if@restonecol\twocolumn\fi} |
| 1760 |
|
| 1761 |
% \end{macrocode} |
| 1762 |
% \end{environment} |
| 1763 |
% |
| 1764 |
% \subsection{Clauses} |
| 1765 |
% |
| 1766 |
% \subsubsection{Building blocks} The definitions in this part of a |
| 1767 |
% class file usually make use of two internal macros, |\@startsection| and |
| 1768 |
% |\secdef|. To understand |
| 1769 |
% what is going on here, we describe their syntax. |
| 1770 |
% |
| 1771 |
% The macro |\@startsection| has 6 required arguments, optionally |
| 1772 |
% followed by a $*$, an optional argument and a required argument: |
| 1773 |
% |
| 1774 |
% |\@startsection|\meta{name}\meta{level}\meta{indent}^^A |
| 1775 |
% \meta{beforeskip}\meta{afterskip}\meta{style} |
| 1776 |
% optional *\\ |
| 1777 |
% \null\hphantom{\bslash @startsection}^^A |
| 1778 |
% |[|\meta{altheading}|]|\meta{heading} |
| 1779 |
% |
| 1780 |
% It is a generic command to start a section, the arguments have |
| 1781 |
% the following meaning: |
| 1782 |
% |
| 1783 |
% \begin{description} |
| 1784 |
% \item[\meta{name}] The name of the user level command, e.g., |
| 1785 |
% `section'. |
| 1786 |
% \item[\meta{level}] A number, denoting the depth of the section |
| 1787 |
% -- e.g., chapter=1, section = 2, etc. A section number |
| 1788 |
% will be printed if and only if \meta{level} $<=$ the value |
| 1789 |
% of the \Lcount{secnumdepth} counter. |
| 1790 |
% \item[\meta{indent}] The indentation of the heading from the left |
| 1791 |
% margin |
| 1792 |
% \item[\meta{beforeskip}] The absolute value of this argument |
| 1793 |
% gives the skip to leave above the heading. If it is |
| 1794 |
% negative, then the paragraph indent of the text following |
| 1795 |
% the heading is suppressed. |
| 1796 |
% \item[\meta{afterskip}] If positive, this gives the skip to leave |
| 1797 |
% below the heading, else it gives the skip to leave to the |
| 1798 |
% right of a run-in heading. |
| 1799 |
% \item[\meta{style}] Commands to set the style of the heading. |
| 1800 |
% \item[$*$] When this is missing the heading is numbered and the |
| 1801 |
% corresponding counter is incremented. |
| 1802 |
% \item[\meta{altheading}] Gives an alternative heading to use in |
| 1803 |
% the table of contents and in the running heads. This should |
| 1804 |
% be present when the $*$ form is used. |
| 1805 |
% \item[\meta{heading}] The heading of the new section. |
| 1806 |
% \end{description} |
| 1807 |
% A sectioning command is normally defined to |\@startsection| and |
| 1808 |
% its first six arguments. |
| 1809 |
% |
| 1810 |
% The macro |\secdef| can be used when a sectioning command is |
| 1811 |
% defined without using |\@startsection|. It has two arguments: |
| 1812 |
% |
| 1813 |
% |\secdef|\meta{unstarcmds}\meta{starcmds} |
| 1814 |
% |
| 1815 |
% \begin{description} |
| 1816 |
% \item[\meta{unstarcmds}] Used for the normal form of a |
| 1817 |
% sectioning command. |
| 1818 |
% \item[\meta{starcmds}] Used for the $*$-form of a |
| 1819 |
% sectioning command. |
| 1820 |
% \end{description} |
| 1821 |
% |
| 1822 |
% You can use |\secdef| as follows: |
| 1823 |
% \begin{verbatim} |
| 1824 |
% \def\chapter { ... \secdef \CMDA \CMDB } |
| 1825 |
% \def\CMDA [#1]#2{ ... } % Command to define |
| 1826 |
% % \chapter[...]{...} |
| 1827 |
% \def\CMDB #1{ ... } % Command to define |
| 1828 |
% % \chapter*{...} |
| 1829 |
% \end{verbatim} |
| 1830 |
% |
| 1831 |
% \changes{v2.2}{2000/01/10}{deleted \cs{@prwstartsection} } |
| 1832 |
% |
| 1833 |
% \subsubsection{Overview} |
| 1834 |
% |
| 1835 |
% ISO terminology uses `clause' instead of the typical terms for |
| 1836 |
% subdivisions in a document, although they do use the term `section'. |
| 1837 |
% Accordingly, we have defined new terms for the document sectioning |
| 1838 |
% commands. We also use the shorthand `ss' for `subsub', and so on. |
| 1839 |
% |
| 1840 |
% \begin{center} |
| 1841 |
% \begin{tabular}{llc}\hline |
| 1842 |
% \LaTeX\ & ISO & level \\ \hline |
| 1843 |
% chapter & clause, annex & 1 \\ |
| 1844 |
% section & sclause & 2 \\ |
| 1845 |
% subsection & ssclause & 3 \\ |
| 1846 |
% subsubsection & sssclause & 4 \\ |
| 1847 |
% paragraph & ssssclause & 5 \\ |
| 1848 |
% subparagraph & sssssclause & 6 \\ \hline |
| 1849 |
% \end{tabular} |
| 1850 |
% \end{center} |
| 1851 |
% |
| 1852 |
% We also provide `annex' commands, which are equivalent to a `clause' |
| 1853 |
% command. |
| 1854 |
% |
| 1855 |
% \subsubsection{Hyperref ToC levels} |
| 1856 |
% |
| 1857 |
% \begin{macro}{\toclevel@clause} |
| 1858 |
% \begin{macro}{\toclevel@sclause} |
| 1859 |
% \begin{macro}{\toclevel@ssclause} |
| 1860 |
% \begin{macro}{\toclevel@sssclause} |
| 1861 |
% \begin{macro}{\toclevel@ssssclause} |
| 1862 |
% \begin{macro}{\toclevel@sssssclause} |
| 1863 |
% \begin{macro}{\toclevel@annex} |
| 1864 |
% \begin{macro}{\toclevel@index} |
| 1865 |
% The \Lpack{hyperref} package needs to know ToC entry levels. |
| 1866 |
% \changes{v2.4}{2002/07/22}{Added \cs{toclevel@} macros for hyperref} |
| 1867 |
% \begin{macrocode} |
| 1868 |
\newcommand*{\toclevel@clause}{1} |
| 1869 |
\newcommand*{\toclevel@sclause}{2} |
| 1870 |
\newcommand*{\toclevel@ssclause}{3} |
| 1871 |
\newcommand*{\toclevel@sssclause}{4} |
| 1872 |
\newcommand*{\toclevel@ssssclause}{5} |
| 1873 |
\newcommand*{\toclevel@sssssclause}{6} |
| 1874 |
\newcommand*{\toclevel@annex}{1} |
| 1875 |
\newcommand*{\toclevel@index}{1} |
| 1876 |
|
| 1877 |
% \end{macrocode} |
| 1878 |
% \end{macro} |
| 1879 |
% \end{macro} |
| 1880 |
% \end{macro} |
| 1881 |
% \end{macro} |
| 1882 |
% \end{macro} |
| 1883 |
% \end{macro} |
| 1884 |
% \end{macro} |
| 1885 |
% \end{macro} |
| 1886 |
% |
| 1887 |
% \subsubsection{Define Counters} |
| 1888 |
% |
| 1889 |
% \begin{macro}{\c@secnumdepth} |
| 1890 |
% The value of the counter \Lcount{secnumdepth} gives the depth of |
| 1891 |
% the highest-level sectioning command that is to produce section |
| 1892 |
% numbers. |
| 1893 |
% \begin{macrocode} |
| 1894 |
\setcounter{secnumdepth}{6} |
| 1895 |
% \end{macrocode} |
| 1896 |
% \end{macro} |
| 1897 |
% |
| 1898 |
% The macro\\ |
| 1899 |
% |\newcounter{|\meta{newctr}|}[|\meta{oldctr}|]|\\ |
| 1900 |
% defines\meta{newctr} to be a counter, which is reset to zero when |
| 1901 |
% counter \meta{oldctr} is stepped. Counter \meta{oldctr} must |
| 1902 |
% already be defined. |
| 1903 |
% |
| 1904 |
% \begin{macro}{\c@annex} |
| 1905 |
% \begin{macro}{\c@clause} |
| 1906 |
% \begin{macro}{\c@fibicl@use} |
| 1907 |
% These counters are used for the sectioning numbers. |
| 1908 |
% Clause and annex are the top level document divisions. |
| 1909 |
% \begin{macrocode} |
| 1910 |
\newcounter{annex} |
| 1911 |
\newcounter{clause} |
| 1912 |
\newcounter{fibicl@use} |
| 1913 |
% \end{macrocode} |
| 1914 |
% \end{macro} |
| 1915 |
% \end{macro} |
| 1916 |
% \end{macro} |
| 1917 |
% |
| 1918 |
% |
| 1919 |
% \begin{macro}{\c@sclause} |
| 1920 |
% \begin{macro}{\c@ssclause} |
| 1921 |
% \begin{macro}{\c@sssclause} |
| 1922 |
% \begin{macro}{\c@ssssclause} |
| 1923 |
% \begin{macro}{\c@sssssclause} |
| 1924 |
% The lower level divisions get reset by higher level divisions. |
| 1925 |
% \begin{macrocode} |
| 1926 |
\newcounter{sclause}[clause] |
| 1927 |
\newcounter{ssclause}[sclause] |
| 1928 |
\newcounter{sssclause}[ssclause] |
| 1929 |
\newcounter{ssssclause}[sssclause] |
| 1930 |
\newcounter{sssssclause}[ssssclause] |
| 1931 |
% \end{macrocode} |
| 1932 |
% \end{macro} |
| 1933 |
% \end{macro} |
| 1934 |
% \end{macro} |
| 1935 |
% \end{macro} |
| 1936 |
% \end{macro} |
| 1937 |
% |
| 1938 |
% \begin{macro}{\c@yextra} |
| 1939 |
% We need an extra counter for the \Lpack{hyperref} package. |
| 1940 |
% \changes{v2.4}{2002/07/22}{Added \cs{c@yextra} counter for hyperref} |
| 1941 |
% \begin{macrocode} |
| 1942 |
\newcounter{yextra} |
| 1943 |
|
| 1944 |
% \end{macrocode} |
| 1945 |
% \end{macro} |
| 1946 |
% |
| 1947 |
% For any counter \Lcount{CTR}, |\theCTR| is a macro that defines |
| 1948 |
% the printed version of counter \Lcount{CTR}. It is defined in |
| 1949 |
% terms of the following macros: |
| 1950 |
% |
| 1951 |
% |\arabic{|\Lcount{COUNTER}|}| prints the value of |
| 1952 |
% \Lcount{COUNTER} as an arabic numeral. |
| 1953 |
% |
| 1954 |
% |\roman{|\Lcount{COUNTER}|}| prints the value of |
| 1955 |
% \Lcount{COUNTER} as a lowercase roman numeral. |
| 1956 |
% |
| 1957 |
% |\Roman{|\Lcount{COUNTER}|}| prints the value of |
| 1958 |
% \Lcount{COUNTER} as an uppercase roman numeral. |
| 1959 |
% |
| 1960 |
% |\alph{|\Lcount{COUNTER}|}| prints the value of \Lcount{COUNTER} |
| 1961 |
% as a lowercase letter: $1 =$~a, $2 =$~ b, etc. |
| 1962 |
% |
| 1963 |
% |\Alph{|\Lcount{COUNTER}|}| prints the value of \Lcount{COUNTER} |
| 1964 |
% as an uppercase letter: $1 =$~A, $2 =$~B, etc. |
| 1965 |
% |
| 1966 |
% \begin{macro}{\theannex} |
| 1967 |
% \begin{macro}{\theclause} |
| 1968 |
% \begin{macro}{\thefibicl@use} |
| 1969 |
% The top level division numbers. |
| 1970 |
% \begin{macrocode} |
| 1971 |
\renewcommand{\theannex}{\Alph{annex}} |
| 1972 |
\renewcommand{\theclause}{\arabic{clause}} |
| 1973 |
\renewcommand{\thefibicl@use}{\arabic{fibicl@use}} |
| 1974 |
% \end{macrocode} |
| 1975 |
% \end{macro} |
| 1976 |
% \end{macro} |
| 1977 |
% \end{macro} |
| 1978 |
% |
| 1979 |
% \begin{macro}{\thesclause} |
| 1980 |
% \begin{macro}{\thessclause} |
| 1981 |
% \begin{macro}{\thesssclause} |
| 1982 |
% \begin{macro}{\thessssclause} |
| 1983 |
% \begin{macro}{\thesssssclause} |
| 1984 |
% The lower level division number representations. |
| 1985 |
% \begin{macrocode} |
| 1986 |
\renewcommand{\thesclause}{\theclause.\arabic{sclause}} |
| 1987 |
\renewcommand{\thessclause}{\thesclause.\arabic{ssclause}} |
| 1988 |
\renewcommand{\thesssclause}{\thessclause.\arabic{sssclause}} |
| 1989 |
\renewcommand{\thessssclause}{\thesssclause.\arabic{ssssclause}} |
| 1990 |
\renewcommand{\thesssssclause}{\thessssclause.\arabic{sssssclause}} |
| 1991 |
|
| 1992 |
% \end{macrocode} |
| 1993 |
% \end{macro} |
| 1994 |
% \end{macro} |
| 1995 |
% \end{macro} |
| 1996 |
% \end{macro} |
| 1997 |
% \end{macro} |
| 1998 |
% |
| 1999 |
% \begin{macro}{\theHannex} |
| 2000 |
% \begin{macro}{\theHclause} |
| 2001 |
% \begin{macro}{\theHsclause} |
| 2002 |
% \begin{macro}{\theHssclause} |
| 2003 |
% \begin{macro}{\theHsssclause} |
| 2004 |
% \begin{macro}{\theHssssclause} |
| 2005 |
% \begin{macro}{\theHsssssclause} |
| 2006 |
% For \Lpack{hyperref} we have to specify a similar set of |
| 2007 |
% number representations. |
| 2008 |
% \changes{v2.4}{2002/07/22}{Added a lot of \cs{theHsclause} like commands} |
| 2009 |
% \begin{macrocode} |
| 2010 |
\newcommand{\theHannex}{\Alph{annex}} |
| 2011 |
\newcommand{\theHclause}{\arabic{clause}} |
| 2012 |
\newcommand{\theHsclause}{\theHclause.\arabic{sclause}} |
| 2013 |
\newcommand{\theHssclause}{\theHsclause.\arabic{ssclause}} |
| 2014 |
\newcommand{\theHsssclause}{\theHssclause.\arabic{sssclause}} |
| 2015 |
\newcommand{\theHssssclause}{\theHsssclause.\arabic{ssssclause}} |
| 2016 |
\newcommand{\theHsssssclause}{\theHssssclause.\arabic{sssssclause}} |
| 2017 |
|
| 2018 |
% \end{macrocode} |
| 2019 |
% \end{macro} |
| 2020 |
% \end{macro} |
| 2021 |
% \end{macro} |
| 2022 |
% \end{macro} |
| 2023 |
% \end{macro} |
| 2024 |
% \end{macro} |
| 2025 |
% \end{macro} |
| 2026 |
% |
| 2027 |
% |
| 2028 |
% \subsubsection{Clauses} |
| 2029 |
% |
| 2030 |
% |
| 2031 |
% \begin{macro}{\zerocounters} |
| 2032 |
% \changes{v2.2}{2000/01/10}{Added \cs{zerocounters}} |
| 2033 |
% At the start of each document division counters like for notes and examples |
| 2034 |
% are zeroed. |
| 2035 |
% \begin{macrocode} |
| 2036 |
\newcommand{\zerocounters}{% |
| 2037 |
\setcounter{note}{0}\setcounter{example}{0}} |
| 2038 |
% \end{macrocode} |
| 2039 |
% \end{macro} |
| 2040 |
% |
| 2041 |
% \begin{macro}{\@hangfrom} |
| 2042 |
% Multiline clause headings are flushleft (block paragraph style). |
| 2043 |
% \changes{v2.3}{200/07/06}{Changed \cs{@hangfrom} for block para clauses} |
| 2044 |
% \begin{macrocode} |
| 2045 |
\renewcommand{\@hangfrom}[1]{#1} |
| 2046 |
|
| 2047 |
% \end{macrocode} |
| 2048 |
% \end{macro} |
| 2049 |
% |
| 2050 |
% \begin{macro}{\clause} |
| 2051 |
% The command to start a new clause. |
| 2052 |
% \changes{v2}{1997/11/30}{Use beforecskip and aftercskip for skips around clause headings} |
| 2053 |
% \changes{v2.2}{2000/01/10}{To support tex4ht all clausing commands use \cs{@startsection}} |
| 2054 |
% \begin{macrocode} |
| 2055 |
\newcommand{\clause}{\zerocounters |
| 2056 |
\addtocounter{clause}{1} |
| 2057 |
\typeout{Clause: \theclause} |
| 2058 |
\addtocounter{clause}{-1} |
| 2059 |
\tocskip{\tocentryskip} |
| 2060 |
\@startsection{clause}{1}% |
| 2061 |
{\z@}% |
| 2062 |
{\beforecskip}% |
| 2063 |
{\aftercskip}% |
| 2064 |
%% {\raggedright\Cfont\bfseries}} |
| 2065 |
{\raggedright\Cfont}} |
| 2066 |
% \end{macrocode} |
| 2067 |
% \end{macro} |
| 2068 |
% |
| 2069 |
% \begin{macro}{\fibicl@use} |
| 2070 |
% \changes{v2.2}{2000/01/10}{To support tex4ht added \cs{fibicl@use}} |
| 2071 |
% Document divisions like the Foreword and the Bibliography are |
| 2072 |
% effectively unnumbered clauses, but which appear in the ToC. In order |
| 2073 |
% to ease support for the \Lpack{tex4ht} package, |
| 2074 |
% the |\fibicl@use| command is defined, but should |
| 2075 |
% only be used in its starred form. |
| 2076 |
% \begin{macrocode} |
| 2077 |
\newcommand{\fibicl@use}{% |
| 2078 |
\@startsection{fibicl@use}{1}% |
| 2079 |
{\z@}% |
| 2080 |
{\beforecskip}% |
| 2081 |
{\aftercskip}% |
| 2082 |
%% {\raggedright\Cfont\bfseries}} |
| 2083 |
{\raggedright\Cfont}} |
| 2084 |
% \end{macrocode} |
| 2085 |
% \end{macro} |
| 2086 |
% |
| 2087 |
% |
| 2088 |
% \subsubsection{Lower level headings} |
| 2089 |
% |
| 2090 |
% These commands all make use of |\@startsection|. They also |
| 2091 |
% reinitialize the note and example counters. |
| 2092 |
% \begin{macro}{\sclause} |
| 2093 |
% \begin{macro}{\ssclause} |
| 2094 |
% \begin{macro}{\sssclause} |
| 2095 |
% \begin{macro}{\ssssclause} |
| 2096 |
% \begin{macro}{\sssssclause} |
| 2097 |
% \changes{v2}{1997/11/30}{Use beforescskip and afterscskip, etc, for skips around s...clause headings} |
| 2098 |
% \changes{v2}{1997/11/30}{s...clauses reset the example counter} |
| 2099 |
% \begin{macrocode} |
| 2100 |
\newcommand{\sclause}{\zerocounters |
| 2101 |
\@startsection{sclause}{2}% |
| 2102 |
{\z@}% |
| 2103 |
{\beforescskip}% |
| 2104 |
{\afterscskip}% |
| 2105 |
{\raggedright\SCfont}} |
| 2106 |
% \end{macrocode} |
| 2107 |
% |
| 2108 |
% \begin{macrocode} |
| 2109 |
\newcommand{\ssclause}{\zerocounters |
| 2110 |
\@startsection{ssclause}{3}% |
| 2111 |
{\z@}% |
| 2112 |
{\beforesscskip}% |
| 2113 |
{\aftersscskip}% |
| 2114 |
{\raggedright\SSCfont}} |
| 2115 |
% \end{macrocode} |
| 2116 |
% |
| 2117 |
% \begin{macrocode} |
| 2118 |
\newcommand{\sssclause}{\zerocounters |
| 2119 |
\@startsection{sssclause}{4}% |
| 2120 |
{\z@}% |
| 2121 |
{\beforesscskip}% |
| 2122 |
{\aftersscskip}% |
| 2123 |
{\raggedright\SSCfont}} |
| 2124 |
% \end{macrocode} |
| 2125 |
% |
| 2126 |
% \begin{macrocode} |
| 2127 |
\newcommand{\ssssclause}{\zerocounters |
| 2128 |
\@startsection{ssssclause}{5}% |
| 2129 |
{\z@}% |
| 2130 |
{\beforesscskip}% |
| 2131 |
{\aftersscskip}% |
| 2132 |
{\raggedright\SSCfont}} |
| 2133 |
% \end{macrocode} |
| 2134 |
% |
| 2135 |
% \begin{macrocode} |
| 2136 |
\newcommand{\sssssclause}{\zerocounters |
| 2137 |
\@startsection{sssssclause}{6}% |
| 2138 |
{\z@}% |
| 2139 |
{\beforesscskip}% |
| 2140 |
{\aftersscskip}% |
| 2141 |
{\raggedright\SSCfont}} |
| 2142 |
% \end{macrocode} |
| 2143 |
% Preloaded definitions. |
| 2144 |
% \begin{macrocode} |
| 2145 |
\def\clausemark#1{} |
| 2146 |
\def\sclausemark#1{} |
| 2147 |
\def\ssclausemark#1{} |
| 2148 |
\def\sssclausemark#1{} |
| 2149 |
\def\ssssclausemark#1{} |
| 2150 |
\def\sssssclausemark#1{} |
| 2151 |
% \end{macrocode} |
| 2152 |
% \end{macro} |
| 2153 |
% \end{macro} |
| 2154 |
% \end{macro} |
| 2155 |
% \end{macro} |
| 2156 |
% \end{macro} |
| 2157 |
% |
| 2158 |
% |
| 2159 |
% |
| 2160 |
% |
| 2161 |
% \subsubsection{Annexes} |
| 2162 |
% |
| 2163 |
% \begin{macro}{\init@nnex} |
| 2164 |
% As an annex command has to do quite a lot, we define the internal |
| 2165 |
% |\init@nnex| command as a worker. It has to: |
| 2166 |
% \begin{itemize} |
| 2167 |
% \item clear the page; |
| 2168 |
% \item reset the table and figure counters to zero; |
| 2169 |
% \item redefine the |\thefigure| and the |\thetable| to precede them |
| 2170 |
% with the annex letter; |
| 2171 |
% \item reset the |sclause| counter to zero; |
| 2172 |
% \item test for annexes I and O since these are not allowed by ISO. |
| 2173 |
% \end{itemize} |
| 2174 |
% Use as: |\@annex{|\meta{title}|}{|\meta{typeset body kind}|}{|\meta{typeset toc kind}|}| |
| 2175 |
% \changes{v1}{1996/06/19}{Added blank line after `annexes' title in toc.} |
| 2176 |
% \changes{v2}{1997/11/30}{Deleted Annex heading in the ToC} |
| 2177 |
% \changes{v2}{1997/11/30}{Added annex type to ToC} |
| 2178 |
% \changes{v2}{1997/11/30}{Annexes reset the note and example counters} |
| 2179 |
% \changes{v2}{1997/12/01}{Replaced \cs{typeout} by \cs{ClassError}} |
| 2180 |
% \changes{v2.2}{2000/01/10}{Reimplented annexes to support tex4ht} |
| 2181 |
% \changes{v2.4}{2002/07/22}{Changed \cs{init@nnex} for hyperref} |
| 2182 |
% \begin{macrocode} |
| 2183 |
\newcommand{\init@nnex}{% |
| 2184 |
\clearpage |
| 2185 |
% \end{macrocode} |
| 2186 |
% Reset the counters and test for illegal annex numbering |
| 2187 |
% \begin{macrocode} |
| 2188 |
\setcounter{table}{0} |
| 2189 |
\setcounter{figure}{0} |
| 2190 |
\setcounter{sclause}{0} |
| 2191 |
\zerocounters |
| 2192 |
\refstepcounter{annex} |
| 2193 |
\ifnum 9=\value{annex} \refstepcounter{annex}\fi |
| 2194 |
\ifnum 15=\value{annex} \refstepcounter{annex}\fi |
| 2195 |
% \end{macrocode} |
| 2196 |
% Reset the numbering scheme, but not just when first called. |
| 2197 |
% \begin{macrocode} |
| 2198 |
%%% \ifnum 1=\value{annex} |
| 2199 |
\renewcommand{\clause}{% |
| 2200 |
\ClassWarning{iso}{% |
| 2201 |
\protect\clause\space commands are not allowed after starting Annexes}{% |
| 2202 |
Type \space <return> to proceed and I'll ignore your \protect\clause.}} |
| 2203 |
\renewcommand{\thesclause}{\theannex.\arabic{sclause}} |
| 2204 |
\renewcommand{\thetable}{\theannex.\arabic{table}} |
| 2205 |
\renewcommand{\thefigure}{\theannex.\arabic{figure}} |
| 2206 |
\renewcommand{\theHsclause}{\theHannex.\arabic{sclause}} |
| 2207 |
\ifisohyper |
| 2208 |
\renewcommand{\theHtable}{\theHannex.\arabic{table}} |
| 2209 |
\renewcommand{\theHfigure}{\theHannex.\arabic{figure}} |
| 2210 |
\fi |
| 2211 |
%%% \fi |
| 2212 |
% \end{macrocode} |
| 2213 |
% Prevent floats appearing before the title. |
| 2214 |
% \begin{macrocode} |
| 2215 |
\global\@topnum\z@ |
| 2216 |
\@afterindentfalse |
| 2217 |
} |
| 2218 |
% \end{macrocode} |
| 2219 |
% \end{macro} |
| 2220 |
% |
| 2221 |
% \begin{macro}{\makepreannexhead} |
| 2222 |
% Command to typeset the first part of an annex title. Use as |
| 2223 |
% |\makepreannexhead{|\meta{type}|}|. |
| 2224 |
% \begin{macrocode} |
| 2225 |
\newcommand{\makepreannexhead}[1]{% |
| 2226 |
\begin{center} |
| 2227 |
{{\Cfont \annexname~\theannex}\\\Large #1} |
| 2228 |
\end{center} |
| 2229 |
} |
| 2230 |
% \end{macrocode} |
| 2231 |
% \end{macro} |
| 2232 |
% |
| 2233 |
% \begin{macro}{\makeannexhead} |
| 2234 |
% Typeset the title name of an annex. |
| 2235 |
% Use as |\makeannexhead{|\meta{title}|}|. |
| 2236 |
% \begin{macrocode} |
| 2237 |
\newcommand{\makeannexhead}[1]{% |
| 2238 |
\centerline{\Cfont #1} |
| 2239 |
\vskip 0.5\baselineskip |
| 2240 |
} |
| 2241 |
% \end{macrocode} |
| 2242 |
% \end{macro} |
| 2243 |
% |
| 2244 |
% \begin{macro}{\addannextotoc} |
| 2245 |
% Add an annex title to the ToC. |
| 2246 |
% Use as |\addannextotoc{|\meta{type}|}{|\meta{title}|}|. |
| 2247 |
% \changes{v2.4}{2002/07/22}{Fixed minor problem in \cs{addannextotoc}} |
| 2248 |
% \begin{macrocode} |
| 2249 |
\newcommand{\addannextotoc}[2]{% |
| 2250 |
\tocskip{\tocentryskip} |
| 2251 |
\addcontentsline{toc}{annex}{\ifnum2>\c@secnumdepth \else |
| 2252 |
\protect\numberline{\annexname~\theannex\space #1}\fi #2}% |
| 2253 |
} |
| 2254 |
% \end{macrocode} |
| 2255 |
% \end{macro} |
| 2256 |
% |
| 2257 |
% \begin{macro}{\@infannex} |
| 2258 |
% \begin{macro}{\infannex} |
| 2259 |
% \begin{macro}{\@normannex} |
| 2260 |
% \begin{macro}{\normannex} |
| 2261 |
% \begin{macro}{\@repannex} |
| 2262 |
% \begin{macro}{\repannex} |
| 2263 |
% Three kinds of annexes are provided. |\infannex| is an informative |
| 2264 |
% annex and |\normannex| is a normative annex. Just to round things |
| 2265 |
% out, |\repannex| is neither of these. |
| 2266 |
% |
| 2267 |
% All the titles are centered, together with the kind of annex. |
| 2268 |
% |
| 2269 |
% Here are the informative annex commands. |
| 2270 |
% \begin{macrocode} |
| 2271 |
\newcommand{\@infannex}[1]{% |
| 2272 |
\makepreannexhead{(\informativename)} |
| 2273 |
\makeannexhead{#1} |
| 2274 |
\addannextotoc{(\informativename)}{#1} |
| 2275 |
} |
| 2276 |
\newcommand{\infannex}[1]{% |
| 2277 |
\init@nnex |
| 2278 |
\@infannex{#1} |
| 2279 |
\typeout{Informative annex: #1} |
| 2280 |
} |
| 2281 |
% \end{macrocode} |
| 2282 |
% |
| 2283 |
% Here are the normative annex commands. |
| 2284 |
% \begin{macrocode} |
| 2285 |
\newcommand{\@normannex}[1]{% |
| 2286 |
\makepreannexhead{(\normativename)} |
| 2287 |
\makeannexhead{#1} |
| 2288 |
\addannextotoc{(\normativename)}{#1} |
| 2289 |
} |
| 2290 |
\newcommand{\normannex}[1]{% |
| 2291 |
\init@nnex |
| 2292 |
\@normannex{#1} |
| 2293 |
\typeout{Normative annex: #1} |
| 2294 |
} |
| 2295 |
% \end{macrocode} |
| 2296 |
% |
| 2297 |
% Here are the other annex commands. |
| 2298 |
% \begin{macrocode} |
| 2299 |
\newcommand{\@repannex}[1]{% |
| 2300 |
\makepreannexhead{} |
| 2301 |
\makeannexhead{#1} |
| 2302 |
\addannextotoc{}{#1} |
| 2303 |
} |
| 2304 |
\newcommand{\repannex}[1]{% |
| 2305 |
\init@nnex |
| 2306 |
\@repannex{#1} |
| 2307 |
\typeout{Annex: #1} |
| 2308 |
} |
| 2309 |
% \end{macrocode} |
| 2310 |
% \end{macro} |
| 2311 |
% \end{macro} |
| 2312 |
% \end{macro} |
| 2313 |
% \end{macro} |
| 2314 |
% \end{macro} |
| 2315 |
% \end{macro} |
| 2316 |
% |
| 2317 |
% \subsection{Lists} |
| 2318 |
% |
| 2319 |
% \subsubsection{General List Parameters} |
| 2320 |
% |
| 2321 |
% The following commands are used to set the default values for the list |
| 2322 |
% environment's parameters. See the \LaTeX{} manual for an explanation |
| 2323 |
% of the meanings of the parameters. Defaults for the list |
| 2324 |
% environment are set as follows. First, |\rightmargin|, |
| 2325 |
% |\listparindent| and |\itemindent| are set to 0pt. Then, for a Kth |
| 2326 |
% level list, the command |\@listK| is called, where `K' denotes `i', |
| 2327 |
% '`i', ... , `vi'. (I.e., |\@listiii| is called for a third-level |
| 2328 |
% list.) By convention, |\@listK| should set |\leftmargin| to |
| 2329 |
% |\leftmarginK|. |
| 2330 |
% |
| 2331 |
% \changes{v2}{1997/11/30}{list labels are flush with left margin} |
| 2332 |
% \changes{v2}{1997/11/30}{list text is indented 3 spaces from the label} |
| 2333 |
% |
| 2334 |
% \begin{macro}{\leftmargin} |
| 2335 |
% \begin{macro}{\leftmargini} |
| 2336 |
% \begin{macro}{\leftmarginii} |
| 2337 |
% \begin{macro}{\leftmarginiii} |
| 2338 |
% \begin{macro}{\leftmarginiv} |
| 2339 |
% \begin{macro}{\leftmarginv} |
| 2340 |
% \begin{macro}{\leftmarginvi} |
| 2341 |
% For efficiency, level-one list's values are defined at top level, and |
| 2342 |
% |\@listi| is defined to set only |\leftmargin|. |
| 2343 |
% |
| 2344 |
% \begin{macrocode} |
| 2345 |
\setlength{\leftmargini}{2em} |
| 2346 |
% \end{macrocode} |
| 2347 |
% The value of |\leftmargin| has to be set at this outer level. |
| 2348 |
% \begin{macrocode} |
| 2349 |
\leftmargin \leftmargini |
| 2350 |
% \end{macrocode} |
| 2351 |
% For ISO, all lists are indented the same amount. |
| 2352 |
% \begin{macrocode} |
| 2353 |
\setlength{\leftmarginii}{\leftmargini} |
| 2354 |
\setlength{\leftmarginiii}{\leftmargini} |
| 2355 |
\setlength{\leftmarginiv}{\leftmargini} |
| 2356 |
\setlength{\leftmarginv}{\leftmargini} |
| 2357 |
\setlength{\leftmarginvi}{\leftmargini} |
| 2358 |
% \end{macrocode} |
| 2359 |
% \end{macro} |
| 2360 |
% \end{macro} |
| 2361 |
% \end{macro} |
| 2362 |
% \end{macro} |
| 2363 |
% \end{macro} |
| 2364 |
% \end{macro} |
| 2365 |
% \end{macro} |
| 2366 |
% |
| 2367 |
% \begin{macro}{\itemindent} |
| 2368 |
% Here we set the |\itemindent| which is the extra indentation before |
| 2369 |
% a label. |
| 2370 |
% \begin{macrocode} |
| 2371 |
\setlength{\itemindent}{\z@} |
| 2372 |
% \end{macrocode} |
| 2373 |
% \end{macro} |
| 2374 |
% |
| 2375 |
% \begin{macro}{\labelsep} |
| 2376 |
% \begin{macro}{\labelwidth} |
| 2377 |
% |\labelsep| is the distance between the label and the text of an |
| 2378 |
% item; |\labelwidth| is the width of the label. |
| 2379 |
% \begin{macrocode} |
| 2380 |
\setlength{\labelsep}{0.5em} |
| 2381 |
\setlength{\labelwidth}{\leftmargini} |
| 2382 |
\addtolength{\labelwidth}{-\labelsep} |
| 2383 |
% \end{macrocode} |
| 2384 |
% \end{macro} |
| 2385 |
% \end{macro} |
| 2386 |
% |
| 2387 |
% \begin{macro}{\partopsep} |
| 2388 |
% When the user leaves a blank line before the environment an extra |
| 2389 |
% vertical space of |\partopsep| is inserted, in addition to |
| 2390 |
% |\parskip| and |\topsep|. |
| 2391 |
% \begin{macrocode} |
| 2392 |
%</iso> |
| 2393 |
%<*9pt|10pt|11pt> |
| 2394 |
\setlength\partopsep{2\p@ \@plus 1\p@ \@minus 1\p@} |
| 2395 |
%</9pt|10pt|11pt> |
| 2396 |
%<*iso> |
| 2397 |
% \end{macrocode} |
| 2398 |
% \end{macro} |
| 2399 |
% |
| 2400 |
% \begin{macro}{\@beginparpenalty} |
| 2401 |
% \begin{macro}{\@endparpenalty} |
| 2402 |
% These penalties are inserted before and after a list or paragraph |
| 2403 |
% environment. They are set to a bonus value to encourage page |
| 2404 |
% breaking at these points. |
| 2405 |
% \begin{macro}{\@itempenalty} |
| 2406 |
% This penalty is inserted between list items. |
| 2407 |
% \begin{macrocode} |
| 2408 |
\@beginparpenalty -\@lowpenalty |
| 2409 |
\@endparpenalty -\@lowpenalty |
| 2410 |
\@itempenalty -\@lowpenalty |
| 2411 |
% \end{macrocode} |
| 2412 |
% \end{macro} |
| 2413 |
% \end{macro} |
| 2414 |
% \end{macro} |
| 2415 |
% |
| 2416 |
% \begin{macro}{\@setitemparams} |
| 2417 |
% Lists may be called within other list environments with differing |
| 2418 |
% layouts. We use a routine to set the layout for \Lenv{itemize} and |
| 2419 |
% \Lenv{enumerate} lists. |
| 2420 |
% \changes{v2}{1997/12/02}{Added \cs{@setitemparams} routine} |
| 2421 |
% \begin{macrocode} |
| 2422 |
%</iso> |
| 2423 |
%<*9pt|10pt|11pt> |
| 2424 |
\newcommand{\@setitemparams}{% |
| 2425 |
\setlength{\labelsep}{0.5em} |
| 2426 |
\setlength{\labelwidth}{\leftmargini} |
| 2427 |
\addtolength{\labelwidth}{-\labelsep} |
| 2428 |
\setlength{\itemindent}{\z@} |
| 2429 |
\setlength{\parsep}{\baselineskip} |
| 2430 |
\topsep \z@ \@plus1\p@ \@minus1\p@ |
| 2431 |
\itemsep \z@ \@plus1\p@ \@minus1\p@} |
| 2432 |
% \end{macrocode} |
| 2433 |
% \end{macro} |
| 2434 |
% |
| 2435 |
% \begin{macro}{\@listI} |
| 2436 |
% \begin{macro}{\@listi} |
| 2437 |
% |\@listI| defines top level and |\@listi| values of |
| 2438 |
% |\leftmargin|, |\parsep|, |\topsep|, and |\itemsep| |
| 2439 |
% |
| 2440 |
% \begin{macrocode} |
| 2441 |
\def\@listi{\leftmargin\leftmargini |
| 2442 |
%%% \itemindent\labelsep |
| 2443 |
%% \itemindent\z@ |
| 2444 |
%% \parsep\baselineskip |
| 2445 |
%% \topsep 0\p@ \@plus1\p@ \@minus1\p@ |
| 2446 |
%% \itemsep0\p@ \@plus1\p@ \@minus1\p@} |
| 2447 |
\@setitemparams} |
| 2448 |
\let\@listI\@listi |
| 2449 |
% \end{macrocode} |
| 2450 |
% We have to initialise these parameters. |
| 2451 |
% \begin{macrocode} |
| 2452 |
\@listi |
| 2453 |
% \end{macrocode} |
| 2454 |
% \end{macro} |
| 2455 |
% \end{macro} |
| 2456 |
% |
| 2457 |
% \begin{macro}{\@listii} |
| 2458 |
% \begin{macro}{\@listiii} |
| 2459 |
% \begin{macro}{\@listiv} |
| 2460 |
% \begin{macro}{\@listv} |
| 2461 |
% \begin{macro}{\@listvi} |
| 2462 |
% Here are the same macros for the lower level lists. |
| 2463 |
% \begin{macrocode} |
| 2464 |
\def\@listii {\leftmargin\leftmarginii |
| 2465 |
%%% \itemindent\labelsep} |
| 2466 |
%% \itemindent\z@ |
| 2467 |
\@setitemparams |
| 2468 |
} |
| 2469 |
\def\@listiii{\leftmargin\leftmarginiii |
| 2470 |
%%% \itemindent\labelsep} |
| 2471 |
%% \itemindent\z@ |
| 2472 |
\@setitemparams |
| 2473 |
} |
| 2474 |
\def\@listiv {\leftmargin\leftmarginiv |
| 2475 |
%%% \itemindent\labelsep} |
| 2476 |
%% \itemindent\z@ |
| 2477 |
\@setitemparams |
| 2478 |
} |
| 2479 |
\def\@listv {\leftmargin\leftmarginv |
| 2480 |
%%% \itemindent\labelsep} |
| 2481 |
%% \itemindent\z@ |
| 2482 |
\@setitemparams |
| 2483 |
} |
| 2484 |
\def\@listvi {\leftmargin\leftmarginvi |
| 2485 |
%%% \itemindent\labelsep} |
| 2486 |
%% \itemindent\z@ |
| 2487 |
\@setitemparams |
| 2488 |
} |
| 2489 |
%</9pt|10pt|11pt> |
| 2490 |
%<*iso> |
| 2491 |
% \end{macrocode} |
| 2492 |
% \end{macro} |
| 2493 |
% \end{macro} |
| 2494 |
% \end{macro} |
| 2495 |
% \end{macro} |
| 2496 |
% \end{macro} |
| 2497 |
% |
| 2498 |
% \subsubsection{Enumerate} |
| 2499 |
% |
| 2500 |
% \changes{v2}{1997/11/30}{Enumeration increased from 3 to 4 levels} |
| 2501 |
% |
| 2502 |
% ISO only requires two levels of enumeration labelled `a)' and |
| 2503 |
% `1)'. We include a third level and fourth labelled `i)' and `A)', |
| 2504 |
% just in case. |
| 2505 |
% ISO has printed ISO 10303:1994 which includes all three levels |
| 2506 |
% defined here. |
| 2507 |
% The enumerate environment uses four counters: \Lcount{enumi}, |
| 2508 |
% \Lcount{enumii}, \Lcount{enumiii} and \Lcount{enumiv}, where |
| 2509 |
% \Lcount{enumN} controls the numbering of the Nth level |
| 2510 |
% enumeration. |
| 2511 |
% |
| 2512 |
% \begin{macro}{\theenumi} |
| 2513 |
% \begin{macro}{\theenumii} |
| 2514 |
% \begin{macro}{\theenumiii} |
| 2515 |
% \begin{macro}{\theenumiv} |
| 2516 |
% The counters are already defined in \file{latex.dtx}, but their |
| 2517 |
% representation is changed here. |
| 2518 |
% \changes{v2.3}{2001/07/06}{4th level enumerate now uses Roman, not Alph} |
| 2519 |
% \begin{macrocode} |
| 2520 |
\renewcommand{\theenumi}{\alph{enumi}} |
| 2521 |
\renewcommand{\theenumii}{\arabic{enumii}} |
| 2522 |
\renewcommand{\theenumiii}{\roman{enumiii}} |
| 2523 |
\renewcommand{\theenumiv}{\Roman{enumiv}} |
| 2524 |
% \end{macrocode} |
| 2525 |
% \end{macro} |
| 2526 |
% \end{macro} |
| 2527 |
% \end{macro} |
| 2528 |
% \end{macro} |
| 2529 |
% |
| 2530 |
% \begin{macro}{\labelenumi} |
| 2531 |
% \begin{macro}{\labelenumii} |
| 2532 |
% \begin{macro}{\labelenumiii} |
| 2533 |
% \begin{macro}{\labelenumiv} |
| 2534 |
% The label for each item is generated by the commands\\ |
| 2535 |
% |\labelenumi| \ldots\ |\labelenumiv|. |
| 2536 |
% \begin{macrocode} |
| 2537 |
\newcommand{\labelenumi}{\theenumi)} |
| 2538 |
\newcommand{\labelenumii}{\theenumii)} |
| 2539 |
\newcommand{\labelenumiii}{\theenumiii)} |
| 2540 |
\newcommand{\labelenumiv}{\theenumiv)} |
| 2541 |
% \end{macrocode} |
| 2542 |
% \end{macro} |
| 2543 |
% \end{macro} |
| 2544 |
% \end{macro} |
| 2545 |
% \end{macro} |
| 2546 |
% |
| 2547 |
% \begin{macro}{\p@enumii} |
| 2548 |
% \begin{macro}{\p@enumiii} |
| 2549 |
% \begin{macro}{\p@enumiv} |
| 2550 |
% The expansion of |\p@enumN||\theenumN| defines the output of a |
| 2551 |
% |\ref| command when referencing an item of the Nth level of an |
| 2552 |
% enumerated list. |
| 2553 |
% \begin{macrocode} |
| 2554 |
\renewcommand{\p@enumii}{\theenumi} |
| 2555 |
\renewcommand{\p@enumiii}{\p@enumii\theenumii} |
| 2556 |
\renewcommand{\p@enumiv}{\p@enumiii\theenumiii} |
| 2557 |
% \end{macrocode} |
| 2558 |
% \end{macro} |
| 2559 |
% \end{macro} |
| 2560 |
% \end{macro} |
| 2561 |
% |
| 2562 |
% \begin{environment}{enumerate} |
| 2563 |
% We modify the default |enumerate| environment to make labels |
| 2564 |
% flush left in the label box. |
| 2565 |
% \begin{macrocode} |
| 2566 |
\def\enumerate{% |
| 2567 |
\ifnum \@enumdepth >\thr@@\@toodeep\else |
| 2568 |
\advance\@enumdepth\@ne |
| 2569 |
\edef\@enumctr{enum\romannumeral\the\@enumdepth}% |
| 2570 |
|
| 2571 |
\expandafter |
| 2572 |
\list |
| 2573 |
\csname label\@enumctr\endcsname |
| 2574 |
{\usecounter\@enumctr\def\makelabel##1{##1\hfill}}% |
| 2575 |
\fi} |
| 2576 |
\let\endenumerate =\endlist |
| 2577 |
% \end{macrocode} |
| 2578 |
% \end{environment} |
| 2579 |
% |
| 2580 |
% \subsubsection{Itemize} |
| 2581 |
% |
| 2582 |
% \changes{v2}{1997/11/30}{Itemize increased from 3 to 4 levels} |
| 2583 |
% |
| 2584 |
% ISO only requires one level labelled with either a long dash |
| 2585 |
% or a bullet. We provide |
| 2586 |
% four levels, three of which have been used in ISO 10303:1994. |
| 2587 |
% |
| 2588 |
% \begin{macro}{\labelitemi} |
| 2589 |
% \begin{macro}{\labelitemii} |
| 2590 |
% \begin{macro}{\labelitemiii} |
| 2591 |
% \begin{macro}{\labelitemiii} |
| 2592 |
% Itemization is controlled by the commands: |\labelitemi|, |
| 2593 |
% |\labelitemii|, etc., which define |
| 2594 |
% the labels of the various itemization levels: the symbols used are |
| 2595 |
% bold em-dash, bullet, asterisk, and centered period. |
| 2596 |
% |
| 2597 |
% \changes{v2}{1997/11/30}{Itemize dash changed from en- to em-dash} |
| 2598 |
% \changes{v2}{1997/11/30}{1st and 2nd level itemize symbols swapped} |
| 2599 |
% \changes{v2.1}{1999/02/15}{1st and 2nd level itemize symbols swapped} |
| 2600 |
% \changes{v2.3}{2001/07/06}{All itemize labels are em dashes} |
| 2601 |
% \begin{macrocode} |
| 2602 |
\newcommand{\labelitemi}{{\normalfont\bfseries \textemdash}\hfill} |
| 2603 |
%%\newcommand{\labelitemii}{\textbullet\hfill} |
| 2604 |
%%\newcommand{\labelitemiii}{\textasteriskcentered} |
| 2605 |
%%\newcommand{\labelitemiv}{\textperiodcentered} |
| 2606 |
\newcommand{\labelitemii}{\labelitemi} |
| 2607 |
\newcommand{\labelitemiii}{\labelitemi} |
| 2608 |
\newcommand{\labelitemiv}{\labelitemi} |
| 2609 |
% \end{macrocode} |
| 2610 |
% \end{macro} |
| 2611 |
% \end{macro} |
| 2612 |
% \end{macro} |
| 2613 |
% \end{macro} |
| 2614 |
% |
| 2615 |
% \begin{environment}{itemize} |
| 2616 |
% We modify the default |itemize| environment to make the labels |
| 2617 |
% flush left in the label box. |
| 2618 |
% \begin{macrocode} |
| 2619 |
\def\itemize{% |
| 2620 |
\ifnum \@itemdepth >\thr@@\@toodeep\else |
| 2621 |
\advance\@itemdepth\@ne |
| 2622 |
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}% |
| 2623 |
|
| 2624 |
\expandafter |
| 2625 |
\list |
| 2626 |
\csname\@itemitem\endcsname |
| 2627 |
{\def\makelabel##1{##1\hfill}}% |
| 2628 |
\fi} |
| 2629 |
\let\enditemize =\endlist |
| 2630 |
% \end{macrocode} |
| 2631 |
% \end{environment} |
| 2632 |
% |
| 2633 |
% \subsubsection{Description} |
| 2634 |
% |
| 2635 |
% \begin{environment}{description} |
| 2636 |
% The description environment is defined here -- while the default itemize |
| 2637 |
% and enumerate environments are defined in \file{latex.dtx}. |
| 2638 |
% |
| 2639 |
% \begin{macrocode} |
| 2640 |
\newenvironment{description}% |
| 2641 |
{\list{}{\labelwidth\z@ \itemindent 0.5em \labelsep 0.5em |
| 2642 |
\let\makelabel\descriptionlabel}}% |
| 2643 |
{\endlist} |
| 2644 |
% \end{macrocode} |
| 2645 |
% \end{environment} |
| 2646 |
% |
| 2647 |
% \begin{macro}{\descriptionlabel} |
| 2648 |
% To change the formatting of the label, you must redefine |
| 2649 |
% |\descriptionlabel|. Note that the label includes a colon. |
| 2650 |
% |
| 2651 |
% \begin{macrocode} |
| 2652 |
\newcommand*{\descriptionlabel}[1]{\normalfont\bfseries #1:\hfill} |
| 2653 |
% \end{macrocode} |
| 2654 |
% \end{macro} |
| 2655 |
% |
| 2656 |
% \subsection{Defining new environments} |
| 2657 |
% |
| 2658 |
% |
| 2659 |
% \subsubsection{Quotation} |
| 2660 |
% |
| 2661 |
% This is not required by ISO, but we leave it in anyway. |
| 2662 |
% \begin{environment}{quotation} |
| 2663 |
% The quotation environment is defined by making clever use of |
| 2664 |
% the list environment's parameters. The lines in the environment |
| 2665 |
% are set smaller than |\textwidth|. The first line of a paragraph |
| 2666 |
% inside this environment is indented. |
| 2667 |
% |
| 2668 |
% \begin{macrocode} |
| 2669 |
\newenvironment{quotation}% |
| 2670 |
{\list{}{\listparindent 1.5em% |
| 2671 |
\itemindent \listparindent |
| 2672 |
\rightmargin \leftmargin |
| 2673 |
\parsep \z@ \@plus\p@}% |
| 2674 |
\item[]}% |
| 2675 |
{\endlist} |
| 2676 |
% \end{macrocode} |
| 2677 |
% \end{environment} |
| 2678 |
% |
| 2679 |
% \subsubsection{Quote} |
| 2680 |
% |
| 2681 |
% This is also not an ISO requirement, but leave it in anyway. |
| 2682 |
% |
| 2683 |
% \begin{environment}{quote} |
| 2684 |
% The quote environment is like the quotation environment except |
| 2685 |
% that paragraphs are not indented. |
| 2686 |
% |
| 2687 |
% \begin{macrocode} |
| 2688 |
\newenvironment{quote}% |
| 2689 |
{\list{}{\rightmargin\leftmargin}% |
| 2690 |
\item[]}% |
| 2691 |
{\endlist} |
| 2692 |
% \end{macrocode} |
| 2693 |
% \end{environment} |
| 2694 |
% |
| 2695 |
% \subsubsection{Theorem} |
| 2696 |
% |
| 2697 |
% This document class does not define it's own theorem environments, |
| 2698 |
% the defaults, supplied by \file{latex.dtx} are available. |
| 2699 |
% |
| 2700 |
% \subsubsection{Notes} |
| 2701 |
% |
| 2702 |
% ISO requires that information which is essential to the |
| 2703 |
% understanding of a standard but which is not a requirement |
| 2704 |
% is to be given in the form of a note. In the Directives edition 2, |
| 2705 |
% there were three |
| 2706 |
% styles of note: |
| 2707 |
% \begin{enumerate} |
| 2708 |
% \item isolated notes which are marked NOTE - 1, NOTE - 2, etc. |
| 2709 |
% \item a local grouping of notes marked \\ |
| 2710 |
% NOTES \\ |
| 2711 |
% 1 - \ldots \\ |
| 2712 |
% 2 - \ldots |
| 2713 |
% \item an isolated note that is not numbered because it is |
| 2714 |
% the only one in that (sub-) clause of the document. |
| 2715 |
% \end{enumerate} |
| 2716 |
% |
| 2717 |
% The 3rd edition removed the local grouping. |
| 2718 |
% |
| 2719 |
% \begin{macro}{\ifinfloat} |
| 2720 |
% Special consideration has to be given when notes appear within a float. |
| 2721 |
% \changes{v2}{1997/12/02}{Deleted \cs{ifintable} as \cs{ifinfloat} does the job} |
| 2722 |
% \begin{macrocode} |
| 2723 |
\newif\ifinfloat\infloatfalse |
| 2724 |
% \end{macrocode} |
| 2725 |
% \end{macro} |
| 2726 |
% |
| 2727 |
% \begin{macro}{\c@note} |
| 2728 |
% \begin{macro}{\c@floatnote} |
| 2729 |
% \begin{macro}{\thenote} |
| 2730 |
% \begin{macro}{\thefloatnote} |
| 2731 |
% Define note counters, where the counter \Lcount{note} for body |
| 2732 |
% notes gets reset within each new clause and notes |
| 2733 |
% within floats have their own numbering scheme |
| 2734 |
% via \Lcount{floatnote}. |
| 2735 |
% \begin{macrocode} |
| 2736 |
\newcounter{note}[clause] |
| 2737 |
\renewcommand{\thenote}{\arabic{note}} |
| 2738 |
\newcounter{floatnote} |
| 2739 |
\renewcommand{\thefloatnote}{\arabic{floatnote}} |
| 2740 |
% \end{macrocode} |
| 2741 |
% \end{macro} |
| 2742 |
% \end{macro} |
| 2743 |
% \end{macro} |
| 2744 |
% \end{macro} |
| 2745 |
% |
| 2746 |
% |
| 2747 |
% \begin{macro}{\theHnote} |
| 2748 |
% \begin{macro}{\theHfloatnote} |
| 2749 |
% We also need \Lpack{hyperref} representations. |
| 2750 |
% \changes{v2.4}{2002/07/22}{Added \cs{theHnote} and \cs{theHfloatnote}} |
| 2751 |
% \begin{macrocode} |
| 2752 |
\newcommand{\theHnote}{\thenote.\arabic{yextra}} |
| 2753 |
\newcommand{\theHfloatnote}{\thefloatnote.\arabic{yextra}} |
| 2754 |
|
| 2755 |
% \end{macrocode} |
| 2756 |
% \end{macro} |
| 2757 |
% \end{macro} |
| 2758 |
% |
| 2759 |
% |
| 2760 |
% \begin{macro}{\notelabel} |
| 2761 |
% Labeling of notes (and examples). |
| 2762 |
% \begin{macrocode} |
| 2763 |
\newcommand{\notelabel}[1]{{#1\hfill}} |
| 2764 |
% \end{macrocode} |
| 2765 |
% \end{macro} |
| 2766 |
% |
| 2767 |
% \begin{environment}{notes} |
| 2768 |
% This environment produced a fixed heading followed by a |
| 2769 |
% numbered list. The environment is defined in terms of a general list. |
| 2770 |
% |
| 2771 |
% Use as: |
| 2772 |
% \begin{verbatim} |
| 2773 |
% \begin{notes} |
| 2774 |
% \begin{note}Text of first note ... \end{note} |
| 2775 |
% \begin{note}Text of second note ... \end{note} |
| 2776 |
% \end{notes} |
| 2777 |
% \end{verbatim} |
| 2778 |
% |
| 2779 |
% With the 3rd edition of the ISO Directives, this has been made a no-op |
| 2780 |
% and is only retained for compatability. The original code was: |
| 2781 |
% \begin{verbatim} |
| 2782 |
% \newif\ifinnotes\innotesfalse |
| 2783 |
% \newenvironment{notes}{\list{}% |
| 2784 |
% {\ifinfloat \leftmargin 0em \else \leftmargin 2em\fi |
| 2785 |
% \itemindent 0.5em \labelwidth 0em |
| 2786 |
% \labelsep 0.5em \listparindent 0em |
| 2787 |
% \let\makelabel\notelabel} |
| 2788 |
% \innotestrue |
| 2789 |
% \Nfont\item[\notesname]\mbox{}\nopagebreak[2]}% |
| 2790 |
% {\innotesfalse\endlist} |
| 2791 |
% \end{verbatim} |
| 2792 |
% |
| 2793 |
% \changes{v2}{1997/11/30}{notes environment made a no-op} |
| 2794 |
% \changes{v2.3}{2001/07/06}{Deleted notes environment} |
| 2795 |
% \end{environment} |
| 2796 |
% |
| 2797 |
% \begin{macro}{\@setnoteparams} |
| 2798 |
% Because notes, and examples, have the same basic layout we use a |
| 2799 |
% routine to set the various parameters. |
| 2800 |
% \changes{v2}{1997/12/02}{Added \cs{@setnoteparams}} |
| 2801 |
% \changes{v2.3}{2001/07/06}{Notes not indented} |
| 2802 |
% \begin{macrocode} |
| 2803 |
\newcommand{\@setnoteparams}{% |
| 2804 |
\setlength{\partopsep}{\z@} |
| 2805 |
\setlength{\topsep}{\z@} |
| 2806 |
\setlength{\labelsep}{1em} |
| 2807 |
\setlength{\itemindent}{\labelsep} |
| 2808 |
\setlength{\labelwidth}{\z@} |
| 2809 |
\setlength{\listparindent}{\z@} |
| 2810 |
\setlength{\leftmargin}{\z@} % added in v2.3 |
| 2811 |
} |
| 2812 |
% \end{macrocode} |
| 2813 |
% \end{macro} |
| 2814 |
% |
| 2815 |
% \begin{environment}{anote} |
| 2816 |
% An isolated un-numbered note. |
| 2817 |
% \changes{v2}{1997/11/30}{dash removed from NOTE label} |
| 2818 |
% \changes{v2}{1997/12/02}{Adjusted anote margins when in a float} |
| 2819 |
% \begin{macrocode} |
| 2820 |
\newenvironment{anote}{\list{}{% |
| 2821 |
%% \ifinfloat \setlength{\leftmargin}{\z@} \else |
| 2822 |
%% \setlength{\leftmargin}{2em} \fi |
| 2823 |
\@setnoteparams} |
| 2824 |
\Nfont\item[\notename]}% |
| 2825 |
{\endlist} |
| 2826 |
% \end{macrocode} |
| 2827 |
% \end{environment} |
| 2828 |
% |
| 2829 |
% \begin{environment}{note} |
| 2830 |
% A numbered note. |
| 2831 |
% \changes{v2.4}{2002/07/22}{Changed note environment for hyperref} |
| 2832 |
% \begin{macrocode} |
| 2833 |
\newenvironment{note}{\list{}{% |
| 2834 |
% \end{macrocode} |
| 2835 |
% Use the appropriate counter: normally \Lcount{note} but |
| 2836 |
% \Lcount{floatnote} when in a floating environment. |
| 2837 |
% \begin{macrocode} |
| 2838 |
\stepcounter{yextra} |
| 2839 |
\ifinfloat |
| 2840 |
\refstepcounter{floatnote} |
| 2841 |
\let\thenote\thefloatnote |
| 2842 |
\else |
| 2843 |
\refstepcounter{note} |
| 2844 |
\fi |
| 2845 |
% \end{macrocode} |
| 2846 |
% Originally we adjusted the margins according to whether we were |
| 2847 |
% in a notes environment or not. |
| 2848 |
% \changes{v2}{1997/11/30}{Deleted the dash after NOTE number} |
| 2849 |
% \changes{v2}{1997/12/01}{Deleted \cs{ifinnotes} test from note environment} |
| 2850 |
% \changes{v2}{1997/12/02}{Added \cs{ifinfloat} test} |
| 2851 |
% \begin{macrocode} |
| 2852 |
%% \ifinfloat \setlength{\leftmargin}{\z@} \else |
| 2853 |
%% \setlength{\leftmargin}{2em} \fi |
| 2854 |
\@setnoteparams} |
| 2855 |
\Nfont\item[\notename~\thenote]}% |
| 2856 |
{\endlist} |
| 2857 |
% \end{macrocode} |
| 2858 |
% \end{environment} |
| 2859 |
% |
| 2860 |
% \subsubsection{Examples} |
| 2861 |
% |
| 2862 |
% ISO Directives part 3 (2nd edition) had no rules on how to display |
| 2863 |
% an example, but it did use examples itself; these examples were |
| 2864 |
% displayed in a format similar to notes. |
| 2865 |
% |
| 2866 |
% We provided two styles of example: |
| 2867 |
% \begin{enumerate} |
| 2868 |
% \item isolated examples which are marked EXAMPLE - 1, EXAMPLE - 2, etc. |
| 2869 |
% \item a local grouping of examples marked \\ |
| 2870 |
% EXAMPLES \\ |
| 2871 |
% 1 - \ldots \\ |
| 2872 |
% 2 - \ldots |
| 2873 |
% \end{enumerate} |
| 2874 |
% |
| 2875 |
% The 3rd edition of the Directives does specify some options for |
| 2876 |
% typesetting examples. A single example in a (sub) clause is |
| 2877 |
% preceeded by the word `EXAMPLE'. If there are several examples, |
| 2878 |
% then each is numbered (e.g., `EXAMPLE 3'). It also states that |
| 2879 |
% all lines of an example shall be inset from the margin or set |
| 2880 |
% in a smaller font, so that its extent can be determined. |
| 2881 |
% |
| 2882 |
% For now, we choose both options. |
| 2883 |
% |
| 2884 |
% Implementation is very similar to that for notes. |
| 2885 |
% |
| 2886 |
% \begin{macro}{\c@example} |
| 2887 |
% \begin{macro}{\theexample} |
| 2888 |
% \begin{macro}{\theHexample} |
| 2889 |
% Define example counter. Example numbering is only continuous |
| 2890 |
% within a (sub) clause (we used to have it continuous throughout |
| 2891 |
% the document). |
| 2892 |
% \changes{v2}{1997/11/30}{Reset example counter at each clause} |
| 2893 |
% \changes{v2.4}{2002/07/22}{Added \cs{theHexample}} |
| 2894 |
% \begin{macrocode} |
| 2895 |
\newcounter{example}[clause] |
| 2896 |
\renewcommand{\theexample}{\arabic{example}} |
| 2897 |
\newcommand{\theHexample}{theexample.\arabic{yextra}} |
| 2898 |
% \end{macrocode} |
| 2899 |
% \end{macro} |
| 2900 |
% \end{macro} |
| 2901 |
% \end{macro} |
| 2902 |
% |
| 2903 |
% |
| 2904 |
% \begin{environment}{examples} |
| 2905 |
% Originally, this environment produces a fixed heading followed by a |
| 2906 |
% numbered list. The environment is defined in terms of a general list. |
| 2907 |
% |
| 2908 |
% Use as: |
| 2909 |
% \begin{verbatim} |
| 2910 |
% \begin{examples} |
| 2911 |
% \begin{example}Text of first ...\end{example} |
| 2912 |
% \begin{example}Text of second ... \end{example} |
| 2913 |
% \end{examples} |
| 2914 |
% \end{verbatim} |
| 2915 |
% |
| 2916 |
% \changes{v2}{1997/11/30}{examples environment made into a no-op} |
| 2917 |
% With the 3rd edition of the ISO Directives the environment has been |
| 2918 |
% made a no-op, but is retained for compatibility. |
| 2919 |
% The code used to be: |
| 2920 |
% \begin{verbatim} |
| 2921 |
% \newif\ifinexamples\inexamplesfalse |
| 2922 |
% \newenvironment{examples}{\list{}% |
| 2923 |
% {\leftmargin 2em |
| 2924 |
% \itemindent 0.5em \labelwidth 0em |
| 2925 |
% \labelsep 0.5em \listparindent 0em |
| 2926 |
% \let\makelabel\notelabel} |
| 2927 |
% \inexamplestrue |
| 2928 |
% \Nfont\item[\examplesname]\mbox{}\nopagebreak[2]}% |
| 2929 |
% {\inexamplesfalse\endlist} |
| 2930 |
% \end{verbatim} |
| 2931 |
% \changes{v2.3}{2001/07/06}{Deleted examples environment} |
| 2932 |
% \end{environment} |
| 2933 |
% |
| 2934 |
% \begin{environment}{anexample} |
| 2935 |
% An isolated un-numbered example. |
| 2936 |
% \changes{v2}{1997/11/30}{Added anexample environment} |
| 2937 |
% \begin{macrocode} |
| 2938 |
\newenvironment{anexample}{\list{}{% |
| 2939 |
%% \ifinfloat \setlength{\leftmargin}{\z@} \else |
| 2940 |
%% \setlength{\leftmargin}{2em} \fi |
| 2941 |
\@setnoteparams} |
| 2942 |
\Nfont\item[\examplename]}{\endlist} |
| 2943 |
% \end{macrocode} |
| 2944 |
% \end{environment} |
| 2945 |
% |
| 2946 |
% \begin{environment}{example} |
| 2947 |
% Like the |note| environment. |
| 2948 |
% \changes{v2}{1997/11/30}{Deleted dash after examples number} |
| 2949 |
% \changes{v2}{1997/12/01}{Removed \cs{ifinexamples} test in example environment} |
| 2950 |
% \changes{v2}{1997/12/02}{Added \cs{ifinfloat} test} |
| 2951 |
% \changes{v2.4}{2002/07/22}{Changed example environment for hyperref} |
| 2952 |
% \begin{macrocode} |
| 2953 |
\newenvironment{example}{\list{}{% |
| 2954 |
\stepcounter{yextra} |
| 2955 |
\refstepcounter{example} |
| 2956 |
%% \ifinfloat \setlength{\leftmargin}{\z@} \else |
| 2957 |
%% \setlength{\leftmargin}{2em} \fi |
| 2958 |
\@setnoteparams} |
| 2959 |
\Nfont\item[\examplename~\theexample]}% |
| 2960 |
{\endlist} |
| 2961 |
% \end{macrocode} |
| 2962 |
% \end{environment} |
| 2963 |
% |
| 2964 |
% \subsubsection{Listing of references} |
| 2965 |
% |
| 2966 |
% ISO has three kinds of literature references, broken into two |
| 2967 |
% categories. The categories are normative and informative |
| 2968 |
% references. Within the normative category, references are |
| 2969 |
% to either published or `unpublished' standards (IS or DIS |
| 2970 |
% in ISO terminology). |
| 2971 |
% |
| 2972 |
% \begin{environment}{nreferences} |
| 2973 |
% |
| 2974 |
% The |nreferences| environment is for listing normative |
| 2975 |
% references. It is implemented as a list. |
| 2976 |
% |
| 2977 |
% \begin{macro}{\nreferencelabel} |
| 2978 |
% Labelling of normative references. |
| 2979 |
% \begin{macrocode} |
| 2980 |
\newcommand{\nreferencelabel}[1]{#1,\hfill} |
| 2981 |
% \end{macrocode} |
| 2982 |
% \end{macro} |
| 2983 |
% Define the environment. It is used as: |
| 2984 |
% \begin{verbatim} |
| 2985 |
% \begin{nreferences} |
| 2986 |
% \isref{id}{published standard title} |
| 2987 |
% \disref{id}{unpublished standard title} |
| 2988 |
% .... |
| 2989 |
% \end{nreferences} |
| 2990 |
% \end{verbatim} |
| 2991 |
% \begin{macrocode} |
| 2992 |
\newenvironment{nreferences}{\list{}% |
| 2993 |
{\leftmargin 0pt \itemindent 0.5em |
| 2994 |
\labelwidth\z@ \labelsep 0.5em |
| 2995 |
\let\makelabel\nreferencelabel}}% |
| 2996 |
{\endlist} |
| 2997 |
% \end{macrocode} |
| 2998 |
% \end{environment} |
| 2999 |
% |
| 3000 |
% \begin{macro}{\isref} |
| 3001 |
% This is a two parameter command for printing a normative reference to |
| 3002 |
% a published standard. |
| 3003 |
% \begin{macrocode} |
| 3004 |
\newcommand{\isref}[2]{\item[#1]{\itshape #2}} |
| 3005 |
% \end{macrocode} |
| 3006 |
% \end{macro} |
| 3007 |
% |
| 3008 |
% \begin{macro}{\disref} |
| 3009 |
% This is a two parameter command for printing a normative reference to |
| 3010 |
% an unpublished standard. ISO requires that each unpublished standard |
| 3011 |
% should be footnoted as `unpublished'. Awkwardly, only one footnote |
| 3012 |
% is permitted. This means we have to fiddle with the footnote counter. |
| 3013 |
% \changes{v2.2}{2000/01/10}{Simplified definition of \cs{disref}} |
| 3014 |
% \begin{macro}{\ifd@is} |
| 3015 |
% A flag to denote if there have been any previous disrefs. |
| 3016 |
% \begin{macrocode} |
| 3017 |
\newif\ifd@is\d@isfalse |
| 3018 |
% \end{macrocode} |
| 3019 |
% \end{macro} |
| 3020 |
% Now define the |\disref| command. |
| 3021 |
% \begin{macrocode} |
| 3022 |
\newcommand{\disref}[2]{\begingroup |
| 3023 |
\ifd@is |
| 3024 |
% \end{macrocode} |
| 3025 |
% This is not the first call to |\disref|, so just footnotemark the entry |
| 3026 |
% \begin{macrocode} |
| 3027 |
{\item[#1\protect\@footnotemark]{\itshape #2}} |
| 3028 |
\else |
| 3029 |
% \end{macrocode} |
| 3030 |
% This is the first call, so we have to make the footnote |
| 3031 |
% \begin{macrocode} |
| 3032 |
\addtocounter{footnote}{1} |
| 3033 |
\xdef\@thefnmark{\thefootnote} |
| 3034 |
\item[#1\protect\@footnotemark]{\itshape #2}% |
| 3035 |
\footnotetext[\value{footnote}]{\tbpname} |
| 3036 |
\d@istrue |
| 3037 |
\fi |
| 3038 |
\endgroup\d@istrue} |
| 3039 |
% \end{macrocode} |
| 3040 |
% \end{macro} |
| 3041 |
% |
| 3042 |
% \begin{environment}{references} |
| 3043 |
% |
| 3044 |
% The |references| environment is for listing informative |
| 3045 |
% references. It is implemented as a list. |
| 3046 |
% |
| 3047 |
% \begin{macro}{\c@infrefctr} |
| 3048 |
% \begin{macro}{\p@infrefctr} |
| 3049 |
% \begin{macro}{\theinfrefctr} |
| 3050 |
% \begin{macro}{\labelinfref} |
| 3051 |
% Informative references are labelled with a number enclosed in |
| 3052 |
% square brackets. |
| 3053 |
% |
| 3054 |
% In the body of the text, a reference to an informatively |
| 3055 |
% listed document |n| has to be printed as |[n]|. Use the |
| 3056 |
% standard \LaTeX\ |\label| command and the|\bref| command for this. |
| 3057 |
% \begin{macrocode} |
| 3058 |
\newcounter{infrefctr} |
| 3059 |
\renewcommand{\p@infrefctr}{} |
| 3060 |
\renewcommand{\theinfrefctr}{\arabic{infrefctr}} |
| 3061 |
\newcommand{\labelinfref}{[\arabic{infrefctr}]} |
| 3062 |
% \end{macrocode} |
| 3063 |
% \end{macro} |
| 3064 |
% \end{macro} |
| 3065 |
% \end{macro} |
| 3066 |
% \end{macro} |
| 3067 |
% Define the environment. It is used as: |
| 3068 |
% \begin{verbatim} |
| 3069 |
% \begin{references} |
| 3070 |
% \reference{authors}{title}{publisher and date} |
| 3071 |
% .... |
| 3072 |
% \end{references} |
| 3073 |
% \end{verbatim} |
| 3074 |
% \begin{macrocode} |
| 3075 |
\newenvironment{references}{\list{\labelinfref}{\usecounter{infrefctr} |
| 3076 |
\leftmargin 0pt \itemindent 0.5em |
| 3077 |
\labelwidth\z@ \labelsep 0.5em}}% |
| 3078 |
{\endlist} |
| 3079 |
% \end{macrocode} |
| 3080 |
% \end{environment} |
| 3081 |
% |
| 3082 |
% \begin{macro}{\reference} |
| 3083 |
% This is a three parameter command for printing an informatively |
| 3084 |
% listed reference document. \\ |
| 3085 |
% |\reference{|\meta{authors}|}{|\meta{title}|}{|\meta{publisher and date}|}| |
| 3086 |
% \begin{macrocode} |
| 3087 |
\newcommand{\reference}[3]{\item {#1} {{\itshape #2}} {#3}} |
| 3088 |
% \end{macrocode} |
| 3089 |
% \end{macro} |
| 3090 |
% |
| 3091 |
% \subsubsection{Listing of definitions} |
| 3092 |
% |
| 3093 |
% One element of an ISO standard is the listing of definitions |
| 3094 |
% of terms. |
| 3095 |
% |
| 3096 |
% \begin{environment}{olddefinitions} |
| 3097 |
% The |olddefinitions| environment is for listing terms which |
| 3098 |
% have been defined in some other standard. It is defined |
| 3099 |
% in terms of the |itemize| environment. |
| 3100 |
% \begin{macrocode} |
| 3101 |
\newenvironment{olddefinitions}% |
| 3102 |
{\begin{itemize}}% |
| 3103 |
{\end{itemize}} |
| 3104 |
% \end{macrocode} |
| 3105 |
% \end{environment} |
| 3106 |
% |
| 3107 |
% \begin{macro}{\olddefinition} |
| 3108 |
% Within an |olddefinitions| environment each term is specified by |
| 3109 |
% the \\ |
| 3110 |
% |\olddefinition{|\meta{phrase}|}{|\meta{supplement}|}| |
| 3111 |
% command. |
| 3112 |
% \begin{macrocode} |
| 3113 |
\newcommand{\olddefinition}[2]{\item #1 #2} |
| 3114 |
% \end{macrocode} |
| 3115 |
% \end{macro} |
| 3116 |
% |
| 3117 |
% \begin{environment}{definitions} |
| 3118 |
% Terms being defined within the current document are listed within |
| 3119 |
% the |definitions| environment. ISO requires that each definition |
| 3120 |
% be sequentially numbered within the clause in which it is defined. |
| 3121 |
% This numbering is as though the definition formed a sub-clause. |
| 3122 |
% \changes{v11}{1997/09/30}{Reimplemented definitions as clauses} |
| 3123 |
% \changes{v2}{1997/11/30}{Reimplemented definitions} |
| 3124 |
% \begin{macro}{\c@cl@level} |
| 3125 |
% A counter for determing the current sectioning level. |
| 3126 |
% \begin{macrocode} |
| 3127 |
\newcounter{cl@level} |
| 3128 |
% \end{macrocode} |
| 3129 |
% \end{macro} |
| 3130 |
% \begin{macro}{\@defcl} |
| 3131 |
% We use this internally for the |\definition| command. A default |
| 3132 |
% definition is suplied here as we are going to renew it, possibly |
| 3133 |
% several times. |
| 3134 |
% \begin{macrocode} |
| 3135 |
\newcommand{\@defcl}[1]{} |
| 3136 |
% \end{macrocode} |
| 3137 |
% \end{macro} |
| 3138 |
% Now we define the |definitions| environment. |
| 3139 |
% \begin{macrocode} |
| 3140 |
\newenvironment{definitions}{% |
| 3141 |
% \end{macrocode} |
| 3142 |
% First, set the \Lcount{cl@level} according to the sectioning |
| 3143 |
% level within which the environment is called. |
| 3144 |
% \begin{macrocode} |
| 3145 |
\setcounter{cl@level}{6} |
| 3146 |
\ifnum\value{sssssclause}=0 \setcounter{cl@level}{5} \fi |
| 3147 |
\ifnum\value{ssssclause}=0 \setcounter{cl@level}{4} \fi |
| 3148 |
\ifnum\value{sssclause}=0 \setcounter{cl@level}{3} \fi |
| 3149 |
\ifnum\value{ssclause}=0 \setcounter{cl@level}{2} \fi |
| 3150 |
\ifnum\value{sclause}=0 \setcounter{cl@level}{1} \fi |
| 3151 |
\ifnum\value{clause}=0 \setcounter{cl@level}{0} \fi |
| 3152 |
% \end{macrocode} |
| 3153 |
% Now redefine an appropriate (s)clause definition to get a number |
| 3154 |
% on one line, followed by the heading on the next line |
| 3155 |
% with a bold normal font. A new paragraph is not started after |
| 3156 |
% the heading, and there is no entry in the ToC. |
| 3157 |
% As this is done within the |
| 3158 |
% group automatically set up be the environment, any original definitions |
| 3159 |
% will get restored afterwards. |
| 3160 |
% \begin{macrocode} |
| 3161 |
\ifcase\value{cl@level} % 0, NOT YET IN A CLAUSE |
| 3162 |
\ClassWarning{iso}{Definitions started before the initial clause} |
| 3163 |
\renewcommand{\@defcl}[1]{\setcounter{note}{0}\setcounter{example}{0} |
| 3164 |
\par |
| 3165 |
\addvspace{\beforecskip} |
| 3166 |
\@afterindentfalse |
| 3167 |
\refstepcounter{clause} |
| 3168 |
{\raggedright\bfseries \theclause\\ ##1\\}} |
| 3169 |
% \end{macrocode} |
| 3170 |
% Do similar things for the other cases. |
| 3171 |
% \begin{macrocode} |
| 3172 |
\or % 1, called in a clause |
| 3173 |
\renewcommand{\@defcl}[1]{\setcounter{note}{0}\setcounter{example}{0} |
| 3174 |
\par |
| 3175 |
\addvspace{\beforescskip} |
| 3176 |
\@afterindentfalse |
| 3177 |
\refstepcounter{sclause} |
| 3178 |
{\raggedright\bfseries \thesclause\\ ##1\\}} |
| 3179 |
\or % 2, called in an sclause |
| 3180 |
\renewcommand{\@defcl}[1]{\setcounter{note}{0}\setcounter{example}{0} |
| 3181 |
\par |
| 3182 |
\addvspace{\beforesscskip} |
| 3183 |
\@afterindentfalse |
| 3184 |
\refstepcounter{ssclause} |
| 3185 |
{\raggedright\bfseries \thessclause\\ ##1\\}} |
| 3186 |
\or % 3, called in an ssclause |
| 3187 |
\renewcommand{\@defcl}[1]{\setcounter{note}{0}\setcounter{example}{0} |
| 3188 |
\par |
| 3189 |
\addvspace{\beforesscskip} |
| 3190 |
\@afterindentfalse |
| 3191 |
\refstepcounter{sssclause} |
| 3192 |
{\raggedright\bfseries \thesssclause\\ ##1\\}} |
| 3193 |
\or % 4, called in an sssclause |
| 3194 |
\renewcommand{\@defcl}[1]{\setcounter{note}{0}\setcounter{example}{0} |
| 3195 |
\par |
| 3196 |
\addvspace{\beforesscskip} |
| 3197 |
\@afterindentfalse |
| 3198 |
\refstepcounter{ssssclause} |
| 3199 |
{\raggedright\bfseries \thessssclause\\ ##1\\}} |
| 3200 |
\or % 5, called in an ssssclause |
| 3201 |
\renewcommand{\@defcl}[1]{\setcounter{note}{0}\setcounter{example}{0} |
| 3202 |
\par |
| 3203 |
\addvspace{\beforesscskip} |
| 3204 |
\@afterindentfalse |
| 3205 |
\refstepcounter{sssssclause} |
| 3206 |
{\raggedright\bfseries \thesssssclause\\ ##1\\}} |
| 3207 |
\else % 5+, called in an sssssclause or lower |
| 3208 |
\ClassWarning{iso}{Definitions too deeply nested} |
| 3209 |
\renewcommand{\@defcl}[1]{ |
| 3210 |
\par |
| 3211 |
\addvspace{\beforesscskip} |
| 3212 |
\@afterindentfalse |
| 3213 |
\refstepcounter{sssssclause} |
| 3214 |
{\raggedright\bfseries \thesssssclause\\ ##1\\}} |
| 3215 |
\fi}% |
| 3216 |
{} |
| 3217 |
% \end{macrocode} |
| 3218 |
% \end{environment} |
| 3219 |
% |
| 3220 |
% \begin{macro}{\definition} |
| 3221 |
% Within a |definitions| environment the command |
| 3222 |
% |\definition{|\meta{phrase}|}{|\meta{definition text}|}| |
| 3223 |
% is used to specify and define each term. It uses the sectional heading |
| 3224 |
% definition stored in |\@defcl| set up by the environment. |
| 3225 |
% \begin{macrocode} |
| 3226 |
\newcommand{\definition}[2]{\@defcl{#1} #2} |
| 3227 |
% \end{macrocode} |
| 3228 |
% \end{macro} |
| 3229 |
% |
| 3230 |
% \subsubsection{Listing of symbols and abbreviations} |
| 3231 |
% |
| 3232 |
% Another possible element in a standard is the listing of symbols |
| 3233 |
% and abbreviations. This is similar to the original |definitions| |
| 3234 |
% listing, except that terms are not treated as clauses. |
| 3235 |
% |
| 3236 |
% \begin{environment}{symbols} |
| 3237 |
% \begin{macro}{\symbollabel} |
| 3238 |
% \begin{macrocode} |
| 3239 |
\newcommand{\symbollabel}[1]{{#1 \hfill}} |
| 3240 |
% \end{macrocode} |
| 3241 |
% \end{macro} |
| 3242 |
% \begin{macrocode} |
| 3243 |
\newenvironment{symbols}{\list{}% |
| 3244 |
{\itemindent 0em \leftmargin 8em |
| 3245 |
\labelsep 1em \labelwidth 5em |
| 3246 |
\let\makelabel\symbollabel}}% |
| 3247 |
{\endlist} |
| 3248 |
% \end{macrocode} |
| 3249 |
% \end{environment} |
| 3250 |
% |
| 3251 |
% \begin{macro}{\symboldef} |
| 3252 |
% Within a |symbols| environment the command |
| 3253 |
% |\symboldef{|\meta{symbol}|}{|\meta{meaning}|}| |
| 3254 |
% is used to specify and explain each symbol or abbreviation. |
| 3255 |
% \begin{macrocode} |
| 3256 |
\newcommand{\symboldef}[2]{\item[#1] #2} |
| 3257 |
% \end{macrocode} |
| 3258 |
% \end{macro} |
| 3259 |
% |
| 3260 |
% \subsubsection{Listing of scope items} |
| 3261 |
% |
| 3262 |
% Another possible element in a standard is the listing of |
| 3263 |
% items that are within the scope; conversely, listing |
| 3264 |
% of items that are out of scope may also be useful. |
| 3265 |
% |
| 3266 |
% \begin{environment}{inscope} |
| 3267 |
% \begin{environment}{outofscope} |
| 3268 |
% We define synonyms for the |itemize| list environment, and |
| 3269 |
% initiate the lists with some boilerplate. Use as, for example: |
| 3270 |
% \begin{verbatim} |
| 3271 |
% \begin{inscope}{international standard} |
| 3272 |
% \item ... |
| 3273 |
% \item ... |
| 3274 |
% \end{inscope} |
| 3275 |
% \end{verbatim} |
| 3276 |
% \begin{macrocode} |
| 3277 |
\newenvironment{inscope}[1]{% |
| 3278 |
\inscopename #1: |
| 3279 |
\begin{itemize}}% |
| 3280 |
{\end{itemize}} |
| 3281 |
\newenvironment{outofscope}[1]{% |
| 3282 |
\outofscopename #1: |
| 3283 |
\begin{itemize}}% |
| 3284 |
{\end{itemize}} |
| 3285 |
% \end{macrocode} |
| 3286 |
% \end{environment} |
| 3287 |
% \end{environment} |
| 3288 |
% |
| 3289 |
% |
| 3290 |
% \subsection{Setting parameters for existing environments} |
| 3291 |
% |
| 3292 |
% \subsubsection{Array and tabular} |
| 3293 |
% |
| 3294 |
% \begin{macro}{\arraycolsep} |
| 3295 |
% The columns in an array environment are separated by |
| 3296 |
% 2|\arraycolsep|. |
| 3297 |
% \begin{macrocode} |
| 3298 |
\setlength\arraycolsep{4\p@} |
| 3299 |
% \end{macrocode} |
| 3300 |
% \end{macro} |
| 3301 |
% |
| 3302 |
% \begin{macro}{\tabcolsep} |
| 3303 |
% The columns in an tabular environment are separated by |
| 3304 |
% 2|\tabcolsep|. |
| 3305 |
% \begin{macrocode} |
| 3306 |
\setlength\tabcolsep{4\p@} |
| 3307 |
% \end{macrocode} |
| 3308 |
% \end{macro} |
| 3309 |
% |
| 3310 |
% \begin{macro}{\arrayrulewidth} |
| 3311 |
% The width of rules in the array and tabular environments is given |
| 3312 |
% by\\ |\arrayrulewidth|. |
| 3313 |
% \begin{macrocode} |
| 3314 |
\setlength\arrayrulewidth{.4\p@} |
| 3315 |
% \end{macrocode} |
| 3316 |
% \end{macro} |
| 3317 |
% |
| 3318 |
% \begin{macro}{\doublerulesep} |
| 3319 |
% The space between adjacent rules in the array and tabular |
| 3320 |
% environments is given by |\doublerulesep|. |
| 3321 |
% \begin{macrocode} |
| 3322 |
\setlength\doublerulesep{2\p@} |
| 3323 |
% \end{macrocode} |
| 3324 |
% \end{macro} |
| 3325 |
% |
| 3326 |
% \subsubsection{Tabbing} |
| 3327 |
% |
| 3328 |
% \begin{macro}{\tabbingsep} |
| 3329 |
% This controls the space that the |\'| command puts in. (See |
| 3330 |
% \LaTeX{} manual for an explanation.) |
| 3331 |
% \begin{macrocode} |
| 3332 |
\setlength\tabbingsep{\labelsep} |
| 3333 |
% \end{macrocode} |
| 3334 |
% \end{macro} |
| 3335 |
% |
| 3336 |
% \subsubsection{Minipage} |
| 3337 |
% |
| 3338 |
% \begin{macro}{\@minipagerestore} |
| 3339 |
% The macro |\@minipagerestore| is called upon entry to a minipage |
| 3340 |
% environment to set up things that are to be handled differently |
| 3341 |
% inside a minipage environment. In the current styles, it does |
| 3342 |
% nothing. |
| 3343 |
% \end{macro} |
| 3344 |
% |
| 3345 |
% \begin{macro}{\@mpfootins} |
| 3346 |
% Minipages have their own footnotes; |\skip||\@mpfootins| plays |
| 3347 |
% same r\^ole for footnotes in a minipage as |\skip||\footins| does |
| 3348 |
% for ordinary footnotes. |
| 3349 |
% |
| 3350 |
% \begin{macrocode} |
| 3351 |
\skip\@mpfootins = \skip\footins |
| 3352 |
% \end{macrocode} |
| 3353 |
% \end{macro} |
| 3354 |
% |
| 3355 |
% \subsubsection{Framed boxes} |
| 3356 |
% |
| 3357 |
% \begin{macro}{\fboxsep} |
| 3358 |
% The space left by |\fbox| and |\framebox| between the box and the |
| 3359 |
% text in it. |
| 3360 |
% \begin{macro}{\fboxrule} |
| 3361 |
% The width of the rules in the box made by |\fbox| and |\framebox|. |
| 3362 |
% \begin{macrocode} |
| 3363 |
\setlength\fboxsep{3\p@} |
| 3364 |
\setlength\fboxrule{.4\p@} |
| 3365 |
% \end{macrocode} |
| 3366 |
% \end{macro} |
| 3367 |
% \end{macro} |
| 3368 |
% |
| 3369 |
% \subsubsection{Equation and eqnarray} |
| 3370 |
% |
| 3371 |
% |equation| and |eqnarray| counters are not required by ISO, and |
| 3372 |
% the equations are to be left-justified. The default is for the |
| 3373 |
% left-hand side of equations to be flushleft. |
| 3374 |
|
| 3375 |
% \begin{macro}{\theequation} |
| 3376 |
% The equation counter will be reset at beginning of a new chapter |
| 3377 |
% and the equation number will be prefixed by the chapter number. |
| 3378 |
% |
| 3379 |
% This code must follow the |\chapter| definition, or more exactly |
| 3380 |
% the definition of the chapter counter. |
| 3381 |
% \begin{macrocode} |
| 3382 |
\renewcommand{\theequation}{\arabic{equation}} |
| 3383 |
% \end{macrocode} |
| 3384 |
% \end{macro} |
| 3385 |
% |
| 3386 |
% \begin{macro}{\jot} |
| 3387 |
% |\jot| is the extra space added between lines of an eqnarray |
| 3388 |
% environment. The default value is used. |
| 3389 |
% \begin{macrocode} |
| 3390 |
% \setlength\jot{3pt} |
| 3391 |
% \end{macrocode} |
| 3392 |
% \end{macro} |
| 3393 |
% |
| 3394 |
% \begin{macro}{\@eqnnum} |
| 3395 |
% The macro |\@eqnnum| defines how equation numbers are to appear in |
| 3396 |
% equations. Again the default is used. |
| 3397 |
% |
| 3398 |
% \begin{macrocode} |
| 3399 |
% \def\@eqnnum{(\theequation)} |
| 3400 |
% \end{macrocode} |
| 3401 |
% \end{macro} |
| 3402 |
% |
| 3403 |
% \subsection{Floating objects} |
| 3404 |
% |
| 3405 |
% The file \file{latex.dtx} only defines a number of tools with |
| 3406 |
% which floating objects can be defined. This is done in the |
| 3407 |
% document class. It needs to define the following macros for each |
| 3408 |
% floating object of type \texttt{TYPE} (e.g., \texttt{TYPE} = |
| 3409 |
% figure). |
| 3410 |
% |
| 3411 |
% \begin{description} |
| 3412 |
% \item[\texttt{\bslash fps@TYPE}] |
| 3413 |
% The default placement specifier for floats of type |
| 3414 |
% \texttt{TYPE}. |
| 3415 |
% |
| 3416 |
% \item[\texttt{\bslash ftype@TYPE}] |
| 3417 |
% The type number for floats of type \texttt{TYPE}. Each |
| 3418 |
% \texttt{TYPE} has associated a unique positive \texttt |
| 3419 |
% {TYPE} number, which is a power of two. E.g., figures might |
| 3420 |
% have type number 1, tables type number 2, programs type |
| 3421 |
% number 4, etc. |
| 3422 |
% |
| 3423 |
% \item[\texttt{\bslash ext@TYPE}] |
| 3424 |
% The file extension indicating the file on which the contents |
| 3425 |
% list for float type \texttt{TYPE} is stored. For example, |
| 3426 |
% |\ext@figure| = `lof'. |
| 3427 |
% |
| 3428 |
% \item[\texttt{\bslash fnum@TYPE}] |
| 3429 |
% A macro to generate the figure number for a caption. For |
| 3430 |
% example, |\fnum@TYPE| == `Figure |\thefigure|'. |
| 3431 |
% |
| 3432 |
% \item[\texttt{\bslash @makecaption}{\meta{num}}{\meta{text}}] |
| 3433 |
% A macro to make a caption, with \meta{num} the value produced |
| 3434 |
% by |\fnum@...| and \meta{text} the text of the caption. It |
| 3435 |
% can assume it's in a |\parbox| of the appropriate width. |
| 3436 |
% This will be used for \emph{all} floating objects. |
| 3437 |
% |
| 3438 |
% \end{description} |
| 3439 |
% |
| 3440 |
% The actual environment that implements a floating object such as |
| 3441 |
% a figure is defined using the macros |\@float| and |\end@float|, |
| 3442 |
% which are defined in \file{latex.dtx}. |
| 3443 |
% |
| 3444 |
% An environment that implements a single column floating object is |
| 3445 |
% started with |\@float{|\texttt{TYPE}|}[|\meta{placement}|]| of type |
| 3446 |
% \texttt{TYPE} with \meta{placement} as the placement specifier. |
| 3447 |
% The default value of \meta{PLACEMENT} is defined by |\fps@TYPE|. |
| 3448 |
% |
| 3449 |
% The environment is ended by |\end@float|. E.g., |\figure| == |
| 3450 |
% |\@float|{figure}, |\endfigure| == |\end@float|. |
| 3451 |
% |
| 3452 |
% \subsubsection{Figure} |
| 3453 |
% |
| 3454 |
% Here is the implementation of the figure environment. |
| 3455 |
% |
| 3456 |
% \begin{macro}{\c@figure} |
| 3457 |
% First we have to allocate a counter to number the figures. In this |
| 3458 |
% class figures are numbered sequentially. |
| 3459 |
% \begin{macrocode} |
| 3460 |
\newcounter{figure} |
| 3461 |
\renewcommand{\thefigure}{\@arabic\c@figure} |
| 3462 |
% \end{macrocode} |
| 3463 |
% \end{macro} |
| 3464 |
% |
| 3465 |
% \begin{macro}{\fps@figure} |
| 3466 |
% \begin{macro}{\ftype@figure} |
| 3467 |
% \begin{macro}{\ext@figure} |
| 3468 |
% \begin{macro}{\fnum@figure} |
| 3469 |
% Here are the parameters for the floating objects of type `figure'. |
| 3470 |
% \begin{macrocode} |
| 3471 |
\def\fps@figure{tbp} |
| 3472 |
\def\ftype@figure{1} |
| 3473 |
\def\ext@figure{lof} |
| 3474 |
\def\fnum@figure{\figurename~\thefigure} |
| 3475 |
% \end{macrocode} |
| 3476 |
% \end{macro} |
| 3477 |
% \end{macro} |
| 3478 |
% \end{macro} |
| 3479 |
% \end{macro} |
| 3480 |
% |
| 3481 |
% \begin{macro}{\iffigs} |
| 3482 |
% We define a flag to tell whether the document contains any figures. |
| 3483 |
% Elsewhere a flag, |\ifinfloat|, is defined to tell if we are in a float. |
| 3484 |
% \begin{macrocode} |
| 3485 |
\newif\iffigs\figsfalse |
| 3486 |
% \end{macrocode} |
| 3487 |
% \end{macro} |
| 3488 |
% |
| 3489 |
% \begin{macro}{\@initisofig} |
| 3490 |
% At the start of a |figure| environment we have to set a flag and do |
| 3491 |
% some work to deal with the ISO requirements |
| 3492 |
% for the ToC, and also zero the floatnote counter. |
| 3493 |
% \changes{v2.2}{2000/01/10}{Added \cs{@initisofig} command} |
| 3494 |
% \begin{macrocode} |
| 3495 |
\newcommand{\@initisofig}{% |
| 3496 |
\iffigs\else\figstrue |
| 3497 |
\if@filesw \immediate\write\@mainaux{% |
| 3498 |
\string\gdef\string\setfigs{% |
| 3499 |
\string\floatlist{\listfigurename}{lof}}} |
| 3500 |
\fi |
| 3501 |
\fi |
| 3502 |
% \end{macrocode} |
| 3503 |
% Now deal with the possibility that the float may contain notes. |
| 3504 |
% \begin{macrocode} |
| 3505 |
\infloattrue\setcounter{floatnote}{0} |
| 3506 |
} |
| 3507 |
% \end{macrocode} |
| 3508 |
% \end{macro} |
| 3509 |
% |
| 3510 |
% \begin{environment}{figure} |
| 3511 |
% \begin{environment}{figure*} |
| 3512 |
% This is the definition of the actual environment. The form with the |
| 3513 |
% |*| is used for double column figures. |
| 3514 |
% \begin{macrocode} |
| 3515 |
\newenvironment{figure}{% |
| 3516 |
\@initisofig |
| 3517 |
\@float{figure}}% |
| 3518 |
% \end{macrocode} |
| 3519 |
% At the end of the environment we are no longer in a float. |
| 3520 |
% \begin{macrocode} |
| 3521 |
{\end@float\infloatfalse} |
| 3522 |
% \end{macrocode} |
| 3523 |
% The starred version is similar. |
| 3524 |
% \begin{macrocode} |
| 3525 |
\newenvironment{figure*}{% |
| 3526 |
\@initisofig |
| 3527 |
\@dblfloat{figure}}% |
| 3528 |
{\end@dblfloat\infloatfalse} |
| 3529 |
% \end{macrocode} |
| 3530 |
% \end{environment} |
| 3531 |
% \end{environment} |
| 3532 |
% |
| 3533 |
% \subsubsection{Table} |
| 3534 |
% |
| 3535 |
% Here is the implementation of the table environment. It is very |
| 3536 |
% much the same as the figure environment, the additional complication |
| 3537 |
% being that we have to flag that we are in a table, as well as |
| 3538 |
% being in a float. |
| 3539 |
% |
| 3540 |
% \begin{macro}{\c@table} |
| 3541 |
% First we have to allocate a counter to number the tables. In this |
| 3542 |
% class tables are numbered sequentially. |
| 3543 |
% \begin{macrocode} |
| 3544 |
\newcounter{table} |
| 3545 |
\renewcommand{\thetable}{\@arabic\c@table} |
| 3546 |
% \end{macrocode} |
| 3547 |
% \end{macro} |
| 3548 |
% |
| 3549 |
% \begin{macro}{\fps@table} |
| 3550 |
% \begin{macro}{\ftype@table} |
| 3551 |
% \begin{macro}{\ext@table} |
| 3552 |
% \begin{macro}{\fnum@table} |
| 3553 |
% Here are the parameters for the floating objects of type `table'. |
| 3554 |
% \begin{macrocode} |
| 3555 |
\def\fps@table{tbp} |
| 3556 |
\def\ftype@table{2} |
| 3557 |
\def\ext@table{lot} |
| 3558 |
\def\fnum@table{\tablename~\thetable} |
| 3559 |
% \end{macrocode} |
| 3560 |
% \end{macro} |
| 3561 |
% \end{macro} |
| 3562 |
% \end{macro} |
| 3563 |
% \end{macro} |
| 3564 |
% |
| 3565 |
% \begin{macro}{\iftabs} |
| 3566 |
% We define a flag to tell whether the document contains any tables. |
| 3567 |
% Elsewhere a flag, |\ifinfloat|, is defined to tell if we are in a float. |
| 3568 |
% \begin{macrocode} |
| 3569 |
\newif\iftabs\tabsfalse |
| 3570 |
% \end{macrocode} |
| 3571 |
% \end{macro} |
| 3572 |
% |
| 3573 |
% \begin{macro}{\@initisotab} |
| 3574 |
% Initial code at the start of a |table| environment. |
| 3575 |
% \changes{v2.2}{2000/01/10}{Added \cs{@initisotab} command} |
| 3576 |
% \begin{macrocode} |
| 3577 |
\newcommand{\@initisotab}{% |
| 3578 |
\iftabs\else\tabstrue |
| 3579 |
\if@filesw \immediate\write\@mainaux{% |
| 3580 |
\string\gdef\string\settabs{% |
| 3581 |
\string\floatlist{\listtablename}{lot}}} |
| 3582 |
\fi |
| 3583 |
\fi |
| 3584 |
\infloattrue\setcounter{floatnote}{0} |
| 3585 |
} |
| 3586 |
% \end{macrocode} |
| 3587 |
% \end{macro} |
| 3588 |
% |
| 3589 |
% \begin{environment}{table} |
| 3590 |
% \begin{environment}{table*} |
| 3591 |
% This is the definition of the actual environment. The form with the |
| 3592 |
% |*| is used for double column tables. |
| 3593 |
% \begin{macrocode} |
| 3594 |
\newenvironment{table}{% |
| 3595 |
\@initisotab |
| 3596 |
\@float{table}}% |
| 3597 |
{\end@float\infloatfalse} |
| 3598 |
% \end{macrocode} |
| 3599 |
% The starred version is similar. |
| 3600 |
% \begin{macrocode} |
| 3601 |
\newenvironment{table*}{% |
| 3602 |
\@initisotab |
| 3603 |
\@dblfloat{table}}% |
| 3604 |
{\end@dblfloat\infloatfalse} |
| 3605 |
% \end{macrocode} |
| 3606 |
% \end{environment} |
| 3607 |
% \end{environment} |
| 3608 |
% |
| 3609 |
% \subsubsection{A bottom float} |
| 3610 |
% |
| 3611 |
% We define an additional float environment. Unless something |
| 3612 |
% additional is done, this will not be listed in the table |
| 3613 |
% of contents. |
| 3614 |
% |
| 3615 |
% \begin{macro}{\c@bottomfloat} |
| 3616 |
% \begin{macro}{\thebottomfloat} |
| 3617 |
% First we have to allocate a counter to number the float. |
| 3618 |
% \begin{macrocode} |
| 3619 |
\newcounter{bottomfloat} |
| 3620 |
\renewcommand{\thebottomfloat}{\@arabic\c@bottomfloat} |
| 3621 |
% \end{macrocode} |
| 3622 |
% \end{macro} |
| 3623 |
% \end{macro} |
| 3624 |
% |
| 3625 |
% \begin{macro}{\fps@bottomfloat} |
| 3626 |
% \begin{macro}{\ftype@bottomfloat} |
| 3627 |
% \begin{macro}{\ext@bottomfloat} |
| 3628 |
% \begin{macro}{\fnum@bottomfloat} |
| 3629 |
% Here are the parameters for the floating objects of type `bottomfloat'. |
| 3630 |
% \begin{macrocode} |
| 3631 |
\def\fps@bottomfloat{b} |
| 3632 |
\def\ftype@bottomfloat{4} |
| 3633 |
\def\ext@bottomfloat{lbf} |
| 3634 |
\def\fnum@bottomfloat{\thebottomfloat} |
| 3635 |
% \end{macrocode} |
| 3636 |
% \end{macro} |
| 3637 |
% \end{macro} |
| 3638 |
% \end{macro} |
| 3639 |
% \end{macro} |
| 3640 |
% |
| 3641 |
% \begin{environment}{bottomfloat} |
| 3642 |
% \begin{environment}{bottomfloat*} |
| 3643 |
% This is the definition of the actual environment. The form with the |
| 3644 |
% |*| is used for double column floats. |
| 3645 |
% \begin{macrocode} |
| 3646 |
\newenvironment{bottomfloat}% |
| 3647 |
{\@float{bottomfloat}}% |
| 3648 |
{\end@float} |
| 3649 |
\newenvironment{bottomfloat*}% |
| 3650 |
{\@dblfloat{bottomfloat}}% |
| 3651 |
{\end@dblfloat} |
| 3652 |
% \end{macrocode} |
| 3653 |
% \end{environment} |
| 3654 |
% \end{environment} |
| 3655 |
% |
| 3656 |
% |
| 3657 |
% \subsubsection{Captions} |
| 3658 |
% |
| 3659 |
% \begin{macro}{\@makecaption} |
| 3660 |
% The |\caption| command calls |\@makecaption| to format the |
| 3661 |
% caption of floating objects. It gets two arguments, |
| 3662 |
% \meta{number}, the number of the floating object and \meta{text}, |
| 3663 |
% the text of the caption. Usually \meta{number} contains a string |
| 3664 |
% such as `Figure 3.2'. The macro can assume it is called inside a |
| 3665 |
% |\parbox| of right width, with |\normalsize|. |
| 3666 |
% |
| 3667 |
% \begin{macro}{\abovecaptionskip} |
| 3668 |
% \begin{macro}{\belowcaptionskip} |
| 3669 |
% These lengths contain the amount of white space to leave above |
| 3670 |
% and below the caption. |
| 3671 |
% \begin{macrocode} |
| 3672 |
\newlength\abovecaptionskip |
| 3673 |
\newlength\belowcaptionskip |
| 3674 |
\setlength\abovecaptionskip{10\p@} |
| 3675 |
\setlength\belowcaptionskip{10\p@} |
| 3676 |
% \end{macrocode} |
| 3677 |
% \end{macro} |
| 3678 |
% \end{macro} |
| 3679 |
% |
| 3680 |
% The definition of this macro is |\long| in order to allow more |
| 3681 |
% then one paragraph in a caption. |
| 3682 |
% \begin{macrocode} |
| 3683 |
\long\def\@makecaption#1#2{% |
| 3684 |
\vskip\abovecaptionskip |
| 3685 |
% \end{macrocode} |
| 3686 |
% We want to see if the caption fits on one line on the page, |
| 3687 |
% therefore we first typeset it in a temporary box. |
| 3688 |
% \begin{macrocode} |
| 3689 |
\sbox\@tempboxa{{\captionsize\bfseries #1 -- #2}}% |
| 3690 |
% \end{macrocode} |
| 3691 |
% We can the measure its width. It that is larger than the current |
| 3692 |
% |\hsize| we typeset the caption as a centered paragraph. |
| 3693 |
% \begin{macrocode} |
| 3694 |
\ifdim \wd\@tempboxa >\hsize |
| 3695 |
{\centering {\captionsize\bfseries #1 -- #2}\par} |
| 3696 |
% \end{macrocode} |
| 3697 |
% If the caption fits, we center it. Because this uses an |\hbox| |
| 3698 |
% directly in vertical mode, it does not execute the |\everypar| |
| 3699 |
% tokens; the only thing that could be needed here is resetting the |
| 3700 |
% `minipage flag' so we do this explicitly. |
| 3701 |
% \begin{macrocode} |
| 3702 |
\else |
| 3703 |
\global \@minipagefalse |
| 3704 |
\hbox to\hsize{\hfil\box\@tempboxa\hfil}% |
| 3705 |
\fi |
| 3706 |
\vskip\belowcaptionskip} |
| 3707 |
% \end{macrocode} |
| 3708 |
% \end{macro} |
| 3709 |
% |
| 3710 |
% \begin{macro}{\contcaption} |
| 3711 |
% The |\contcaption| command can be used to put a `continuation' |
| 3712 |
% caption into a float. It neither increments the float number |
| 3713 |
% nor makes any entry in the toc listings. |
| 3714 |
% |
| 3715 |
% It is called as |
| 3716 |
% |\contcaption{|\meta{continued/concluded}|}{|\meta{optional text}|}| |
| 3717 |
% \begin{macrocode} |
| 3718 |
\newcommand{\contcaption}{\@contcaption\@captype} |
| 3719 |
% \end{macrocode} |
| 3720 |
% \begin{macro}{\@contcaption} |
| 3721 |
% This does the work for us. |
| 3722 |
% \begin{macrocode} |
| 3723 |
\long\def\@contcaption#1#2{% |
| 3724 |
\begingroup |
| 3725 |
\@parboxrestore |
| 3726 |
\normalsize |
| 3727 |
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #2}\par |
| 3728 |
\endgroup} |
| 3729 |
% \end{macrocode} |
| 3730 |
% \end{macro} |
| 3731 |
% \end{macro} |
| 3732 |
% |
| 3733 |
% |
| 3734 |
% \subsection{Font changing} |
| 3735 |
% |
| 3736 |
% Here we supply the declarative font changing commands that were |
| 3737 |
% common in \LaTeX\ version 2.09 and earlier. These commands work |
| 3738 |
% in text mode \emph{and} in math mode. They are provided for |
| 3739 |
% compatibility, but one should start using the |\text...| and |
| 3740 |
% |\math...| commands instead. These commands are defined using |
| 3741 |
% |\DeclareTextFontCommand|, a command with three arguments: the |
| 3742 |
% user command to be defined; \LaTeX\ commands to execute in text |
| 3743 |
% mode and \LaTeX\ commands to execute in math mode. |
| 3744 |
% |
| 3745 |
% \begin{macro}{\rm} |
| 3746 |
% \begin{macro}{\tt} |
| 3747 |
% \begin{macro}{\sf} |
| 3748 |
% |
| 3749 |
% The commands to change the family. When in compatibility mode we |
| 3750 |
% select the `default' font first, to get \LaTeX2.09 behviour. |
| 3751 |
% \begin{macrocode} |
| 3752 |
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm} |
| 3753 |
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf} |
| 3754 |
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt} |
| 3755 |
% \end{macrocode} |
| 3756 |
% \end{macro} |
| 3757 |
% \end{macro} |
| 3758 |
% \end{macro} |
| 3759 |
% |
| 3760 |
% \begin{macro}{\bf} |
| 3761 |
% The command to change to the bold series. One should use |
| 3762 |
% |\mdseries| to explicitly switch back to medium series. |
| 3763 |
% \begin{macrocode} |
| 3764 |
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf} |
| 3765 |
% \end{macrocode} |
| 3766 |
% \end{macro} |
| 3767 |
% |
| 3768 |
% \begin{macro}{\sl} |
| 3769 |
% \begin{macro}{\it} |
| 3770 |
% \begin{macro}{\sc} |
| 3771 |
% |
| 3772 |
% And the commands to change the shape of the font. The slanted and |
| 3773 |
% small caps shapes are not available by default as math alphabets, |
| 3774 |
% so those changes do nothing in math mode. However, we do warn the |
| 3775 |
% user that the selection will not have any effect.One should use |
| 3776 |
% |\upshape| to explicitly change back to the upright shape. |
| 3777 |
% \begin{macrocode} |
| 3778 |
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit} |
| 3779 |
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl} |
| 3780 |
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc} |
| 3781 |
% \end{macrocode} |
| 3782 |
% \end{macro} |
| 3783 |
% \end{macro} |
| 3784 |
% \end{macro} |
| 3785 |
% |
| 3786 |
% \begin{macro}{\cal} |
| 3787 |
% \begin{macro}{\mit} |
| 3788 |
% |
| 3789 |
% The commands |\cal| and |\mit| should only be used in math mode, |
| 3790 |
% outside math mode they have no effect. Currently the New Font |
| 3791 |
% Selection Scheme defines these commands to generate warning |
| 3792 |
% messages. Therefore we have to define them `by hand'. |
| 3793 |
% \begin{macrocode} |
| 3794 |
\DeclareRobustCommand*{\cal}{\@fontswitch{\relax}{\mathcal}} |
| 3795 |
\DeclareRobustCommand*{\mit}{\@fontswitch{\relax}{\mathnormal}} |
| 3796 |
% \end{macrocode} |
| 3797 |
% \end{macro} |
| 3798 |
% \end{macro} |
| 3799 |
% |
| 3800 |
% \subsection{Urls, etc} |
| 3801 |
% |
| 3802 |
% \changes{v2.1}{1999/02/15}{Added the isourl command} |
| 3803 |
% ISO uses its own format for typesetting urls. This is implemented here |
| 3804 |
% via the \file{url} package. |
| 3805 |
% \begin{macro}{\url} |
| 3806 |
% \begin{macro}{\isourl} |
| 3807 |
% The |\url{|\meta{text}|}| command is provided by the \file{url} package. |
| 3808 |
% It may be used for typesetting email addresses. The |
| 3809 |
% |\isourl{|\meta{text}|}| command typesets \meta{text} in the format |
| 3810 |
% required by ISO for an url; that is, the address is underlined and enclosed |
| 3811 |
% within (not-underlined) angle brackets. |
| 3812 |
% |
| 3813 |
% NOTE: The underlining prohibits linebreaking in the url. I also tried |
| 3814 |
% the \file{ulem} package's |\uline| command, but this also prevented any |
| 3815 |
% linebreaking, so we might as well stick to the \TeX{} |\underline|. |
| 3816 |
% \changes{v2.3}{2002/01/10}{Removed underline from \cs{isourl}} |
| 3817 |
% \begin{macrocode} |
| 3818 |
%%\newcommand{\isourl}[1]{\texttt{<}\underline{\url{#1}}\texttt{>}} |
| 3819 |
\newcommand{\isourl}[1]{\texttt{<}\url{#1}\texttt{>}} |
| 3820 |
% \end{macrocode} |
| 3821 |
% \end{macro} |
| 3822 |
% \end{macro} |
| 3823 |
% |
| 3824 |
% |
| 3825 |
% \section{Cross Referencing} \label{sec:xref} |
| 3826 |
% |
| 3827 |
% \subsection{Label referencing} |
| 3828 |
% |
| 3829 |
% \begin{macro}{\aref} |
| 3830 |
% \begin{macro}{\bref} |
| 3831 |
% \begin{macro}{\cref} |
| 3832 |
% \begin{macro}{\eref} |
| 3833 |
% \begin{macro}{\fref} |
| 3834 |
% \begin{macro}{\nref} |
| 3835 |
% \begin{macro}{\tref} |
| 3836 |
% \begin{macro}{\pref} |
| 3837 |
% Named references to labeled elements. |\bref{|\meta{label id}|}| is |
| 3838 |
% a reference to a labeled informative bibliographic element (similar |
| 3839 |
% to the standard \LaTeX\ |\cite| command. The others are to named |
| 3840 |
% elements of the document. |
| 3841 |
% \changes{v2.3}{2001/07/06}{Added \cs{pref}} |
| 3842 |
% \begin{macrocode} |
| 3843 |
\newcommand{\aref}[1]{\annexrefname~\ref{#1}} |
| 3844 |
\newcommand{\bref}[1]{[\ref{#1}]} |
| 3845 |
\newcommand{\cref}[1]{\clauserefname~\ref{#1}} |
| 3846 |
\newcommand{\eref}[1]{\examplerefname~\ref{#1}} |
| 3847 |
\newcommand{\fref}[1]{\figurerefname~\ref{#1}} |
| 3848 |
\newcommand{\nref}[1]{\noterefname~\ref{#1}} |
| 3849 |
\newcommand{\tref}[1]{\tablerefname~\ref{#1}} |
| 3850 |
\newcommand{\pref}[1]{\pagerefname~\pageref{#1}} |
| 3851 |
% \end{macrocode} |
| 3852 |
% \end{macro} |
| 3853 |
% \end{macro} |
| 3854 |
% \end{macro} |
| 3855 |
% \end{macro} |
| 3856 |
% \end{macro} |
| 3857 |
% \end{macro} |
| 3858 |
% \end{macro} |
| 3859 |
% \end{macro} |
| 3860 |
% |
| 3861 |
% \subsection{Table of Contents, etc.} |
| 3862 |
% |
| 3863 |
% A |\section| command writes a |
| 3864 |
% |\contentsline{section}{|\meta{title}|}{|\meta{page}|}| command |
| 3865 |
% on the \file{.toc} file, where \meta{title} contains the |
| 3866 |
% contents of the entry and \meta{page} is the page number. If |
| 3867 |
% sections are being numbered, then \meta{title} will be of the |
| 3868 |
% form |\numberline{|\meta{num}|}{|\meta{heading}|}| where |
| 3869 |
% \meta{num} is the number produced by |\thesection|. Other |
| 3870 |
% sectioning commands work similarly. |
| 3871 |
% |
| 3872 |
% A |\caption| command in a `figure' environment writes |
| 3873 |
% |
| 3874 |
% |\contentsline{figure}{\numberline{|\meta{num}|}{|% |
| 3875 |
% \meta{caption}|}}{|\meta{page}|}| |
| 3876 |
% |
| 3877 |
% on the .\file{lof} file, where \meta{num} is the number produced |
| 3878 |
% by |\thefigure| and \meta{caption} is the figure caption. It |
| 3879 |
% works similarly for a `table' environment. |
| 3880 |
% |
| 3881 |
% The command |\contentsline{|\meta{name}|}| expands to |
| 3882 |
% |\l@|\meta{name}. So, to specify the table of contents, we must |
| 3883 |
% define |\l@chapter|, |\l@section|, |\l@subsection|, ... ; to |
| 3884 |
% specify the list of figures, we must define |\l@figure|; and so |
| 3885 |
% on. Most of these can be defined with the |\@dottedtocline| |
| 3886 |
% command, which works as follows. |
| 3887 |
% |
| 3888 |
% |\@dottedtocline{|\meta{level}|}{|\meta{indent}|}{|^^A |
| 3889 |
% \meta{numwidth}|}{|^^A |
| 3890 |
% \meta{title}|}{|\meta{page}|}| |
| 3891 |
% |
| 3892 |
% \begin{description} |
| 3893 |
% \item[\meta{level}] An entry is produced only if\meta{ level} |
| 3894 |
% $<=$ value of the \Lcount{tocdepth} counter. Note, |
| 3895 |
% |\chapter| is level 0, |\section| is level 1, etc. |
| 3896 |
% \item[\meta{indent}] The indentation from the outer left margin |
| 3897 |
% of the start of the contents line. |
| 3898 |
% \item[\meta{numwidth}] The width of a box in which the section |
| 3899 |
% number is to go, if \meta{title} includes a |\numberline| |
| 3900 |
% command. |
| 3901 |
% \end{description} |
| 3902 |
% |
| 3903 |
% \begin{macro}{\@pnumwidth} |
| 3904 |
% \begin{macro}{\@tocrmarg} |
| 3905 |
% \begin{macro}{\@dotsep} |
| 3906 |
% This command uses the following three parameters, which are set |
| 3907 |
% with a |\newcommand| (so em's can be used to make them depend upon |
| 3908 |
% the font). |
| 3909 |
% \begin{description} |
| 3910 |
% \item[\texttt{\bslash @pnumwidth}] The width of a box in which the |
| 3911 |
% page number is put. |
| 3912 |
% \item[\texttt{\bslash @tocrmarg}] The right margin for multiple |
| 3913 |
% line entries. One wants |\@tocrmarg| $\ge$ |\@pnumwidth| |
| 3914 |
% \item[\texttt{\bslash @dotsep}] Separation between dots, in mu |
| 3915 |
% units. Should be defined as a number like 2 or 1.7 |
| 3916 |
% \end{description} |
| 3917 |
% |
| 3918 |
% \begin{macrocode} |
| 3919 |
\newcommand{\@pnumwidth}{1.55em} |
| 3920 |
\newcommand{\@tocrmarg} {2.55em} |
| 3921 |
\newcommand{\@dotsep}{4.5} |
| 3922 |
% \end{macrocode} |
| 3923 |
% \end{macro} |
| 3924 |
% \end{macro} |
| 3925 |
% \end{macro} |
| 3926 |
% |
| 3927 |
% \begin{macro}{\tocentryskip} |
| 3928 |
% \begin{macro}{\tocbaseline} |
| 3929 |
% \begin{macro}{\tocskip} |
| 3930 |
% We define two lengths and a utility command. |
| 3931 |
% \begin{macrocode} |
| 3932 |
\newlength{\tocentryskip} \setlength{\tocentryskip}{1em} |
| 3933 |
\newlength{\tocbaseline} \setlength{\tocbaseline}{20pt} |
| 3934 |
\newcommand{\tocskip}[1]{% |
| 3935 |
\addtocontents{toc}{\protect\vspace{#1}}} |
| 3936 |
% \end{macrocode} |
| 3937 |
% \end{macro} |
| 3938 |
% \end{macro} |
| 3939 |
% \end{macro} |
| 3940 |
% |
| 3941 |
% \subsubsection{Table of Contents} |
| 3942 |
% |
| 3943 |
% \begin{macro}{\tableofcontents} |
| 3944 |
% This macro is used to request that \LaTeX{} produces a table of |
| 3945 |
% contents. In this class the tables of |
| 3946 |
% contents, figures etc. are always set in single-column style. |
| 3947 |
% |
| 3948 |
% \changes{v1}{1995/05/31}{Added `page' above page numbers in |
| 3949 |
% table of contents.} |
| 3950 |
% \changes{v2.3}{2001/07/06}{copyright at foot of page ii, not ToC} |
| 3951 |
% \begin{macrocode} |
| 3952 |
\newcommand{\tableofcontents}{% |
| 3953 |
\if@twocolumn |
| 3954 |
\@restonecoltrue\onecolumn |
| 3955 |
\else |
| 3956 |
\@restonecolfalse |
| 3957 |
\fi |
| 3958 |
% \end{macrocode} |
| 3959 |
% If the document is copyrighted, then the copyright notice is |
| 3960 |
% placed at the foot of page ii. |
| 3961 |
% \begin{macrocode} |
| 3962 |
%%% \setcounter{page}{2} |
| 3963 |
%%% \thispagestyle{startpage} |
| 3964 |
%%% \mbox{} |
| 3965 |
%%% \ifc@pyright\@copyrighttext\fi |
| 3966 |
% \end{macrocode} |
| 3967 |
% Set the title for the toc, which must start on page (iii) of the |
| 3968 |
% document. The actual table of contents is made by calling |
| 3969 |
% |\@starttoc{toc}|. |
| 3970 |
% \begin{macrocode} |
| 3971 |
%%% \cleardoublepage |
| 3972 |
\setcounter{page}{3} |
| 3973 |
\pagestyle{headings} |
| 3974 |
\hbox to \textwidth{{\Cfont \contentsname}\hfil\pagename} |
| 3975 |
% \end{macrocode} |
| 3976 |
% Add a locator for a bookmark. |
| 3977 |
% \changes{v2.4}{2002/07/22}{Added bookmark to \cs{tableofcontents}} |
| 3978 |
% \begin{macrocode} |
| 3979 |
\ifisohyper |
| 3980 |
\pdfbookmark[1]{\contentsname}{isotoc}% |
| 3981 |
\fi |
| 3982 |
\begingroup |
| 3983 |
\parskip\z@ |
| 3984 |
\@starttoc{toc} |
| 3985 |
\endgroup |
| 3986 |
% \end{macrocode} |
| 3987 |
% Finish by restoring two column mode if necessary. |
| 3988 |
% \begin{macrocode} |
| 3989 |
\if@restonecol\twocolumn\fi} |
| 3990 |
% \end{macrocode} |
| 3991 |
% \end{macro} |
| 3992 |
% \begin{macrocode} |
| 3993 |
% \end{macrocode} |
| 3994 |
% |
| 3995 |
% Each sectioning command needs an additional macro to format its |
| 3996 |
% entry in the table of contents, as described above. In this class |
| 3997 |
% the formatting depends on whether or not the |sect| option |
| 3998 |
% is used. |
| 3999 |
% \begin{macro}{\l@clause} |
| 4000 |
% \begin{macro}{\l@sclause} |
| 4001 |
% \begin{macro}{\l@ssclause} |
| 4002 |
% \begin{macro}{\l@sssclause} |
| 4003 |
% \begin{macro}{\l@ssssclause} |
| 4004 |
% \begin{macro}{\l@sssssclause} |
| 4005 |
% \begin{macro}{\l@annex} |
| 4006 |
% First the default specifications. |
| 4007 |
% \begin{macrocode} |
| 4008 |
\newcommand{\l@clause}{\@dottedtocline{1}{0em}{2.3em}} |
| 4009 |
\newcommand{\l@sclause}{\@dottedtocline{2}{1.5em}{3.2em}} |
| 4010 |
\newcommand{\l@ssclause}{\@dottedtocline{3}{3em}{4.1em}} |
| 4011 |
\newcommand{\l@sssclause}{\@dottedtocline{4}{4.5em}{5em}} |
| 4012 |
\newcommand{\l@ssssclause}{\@dottedtocline{5}{6em}{5.9em}} |
| 4013 |
\newcommand{\l@sssssclause}{\@dottedtocline{6}{7.5em}{6.8em}} |
| 4014 |
\newcommand{\l@annex}{\@dottedtocline{1}{0em}{11.0em}} |
| 4015 |
% \end{macrocode} |
| 4016 |
% \end{macro} |
| 4017 |
% \end{macro} |
| 4018 |
% \end{macro} |
| 4019 |
% \end{macro} |
| 4020 |
% \end{macro} |
| 4021 |
% \end{macro} |
| 4022 |
% \end{macro} |
| 4023 |
% |
| 4024 |
% In this class lists of floats are made to appear as though they |
| 4025 |
% were an integral part of the table of contents. Further, headings |
| 4026 |
% are only printed if there is at least one float of the given kind |
| 4027 |
% in the body of the document. |
| 4028 |
% |
| 4029 |
% \begin{macro}{\floatlist} |
| 4030 |
% For print a heading for a list of floats. |
| 4031 |
% \changes{v2}{1997/12/04}{Doubled beforeskip in ToC} |
| 4032 |
% \changes{v2}{1997/12/04}{Added \cs{nopagebreak} after heading text} |
| 4033 |
% \begin{macrocode} |
| 4034 |
\newcommand{\floatlist}[2]{% |
| 4035 |
\vspace{2\tocentryskip} |
| 4036 |
\hbox to \textwidth{\bfseries #1\hfil} |
| 4037 |
\vspace*{\tocentryskip} |
| 4038 |
\nopagebreak |
| 4039 |
\begingroup |
| 4040 |
\parskip\z@ |
| 4041 |
\@starttoc{#2} |
| 4042 |
\endgroup} |
| 4043 |
% \end{macrocode} |
| 4044 |
% \end{macro} |
| 4045 |
% |
| 4046 |
% \subsubsection{List of figures} |
| 4047 |
% |
| 4048 |
% |
| 4049 |
% \begin{macro}{\iffigs} |
| 4050 |
% A flag for figure floats. |
| 4051 |
% \begin{macrocode} |
| 4052 |
\newif\iffigs\figsfalse |
| 4053 |
% \end{macrocode} |
| 4054 |
% \end{macro} |
| 4055 |
% |
| 4056 |
% \begin{macro}{\listoffigures} |
| 4057 |
% This macro is used to request that \LaTeX{} produces a list of |
| 4058 |
% figures. |
| 4059 |
% |
| 4060 |
% \begin{macrocode} |
| 4061 |
\newcommand{\listoffigures}{% |
| 4062 |
\ifx\undefined\setfigs\else\setfigs\fi} |
| 4063 |
% \end{macrocode} |
| 4064 |
% \end{macro} |
| 4065 |
% |
| 4066 |
% \begin{macro}{\loftnumberline} |
| 4067 |
% Used to add a dash after a figure/table number in the listing. |
| 4068 |
% \changes{v2.3}{2001/07/06}{Added \cs{loftnumberline}} |
| 4069 |
% \begin{macrocode} |
| 4070 |
\newcommand{\loftnumberline}[1]{#1 --- } |
| 4071 |
|
| 4072 |
% \end{macrocode} |
| 4073 |
% \end{macro} |
| 4074 |
% |
| 4075 |
% \begin{macro}{\l@figure} |
| 4076 |
% This macro produces an entry in the list of figures. |
| 4077 |
% Note that \verb*?Figure M.999 ? is 6.15em. |
| 4078 |
% \changes{v11}{1997/11/24}{Increased ToC figure number space from 2.3em to 3.0em (caters for M.999)} |
| 4079 |
% \changes{v2.3}{2001/07/06}{Increased ToC fignum space to 7.5em to cater for name} |
| 4080 |
% \begin{macrocode} |
| 4081 |
\newcommand{\l@figure}{\@dottedtocline{1}{0em}{7.5em}} |
| 4082 |
% \end{macrocode} |
| 4083 |
% |
| 4084 |
% \begin{macrocode} |
| 4085 |
\renewcommand{\l@figure}[2]{% |
| 4086 |
\vskip \z@ \@plus.2\p@ |
| 4087 |
{% |
| 4088 |
\leftskip 0em |
| 4089 |
\rightskip \@tocrmarg |
| 4090 |
\parfillskip -\rightskip |
| 4091 |
\parindent 0em\@afterindenttrue |
| 4092 |
\interlinepenalty\@M |
| 4093 |
\leavevmode |
| 4094 |
\@tempdima 3.15em |
| 4095 |
\advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip |
| 4096 |
{\let\numberline\loftnumberline \normalfont\figurename{} #1}\nobreak |
| 4097 |
\loftfillnum{#2}} |
| 4098 |
} |
| 4099 |
|
| 4100 |
\newcommand{\loftfillnum}[1]{\normalfont% |
| 4101 |
{\leaders\hbox{$\m@th\mkern 4.5mu\hbox{.}\mkern 4.5mu$}\hfill}\nobreak |
| 4102 |
\hb@xt@\@pnumwidth{\hfil #1}\par} |
| 4103 |
|
| 4104 |
|
| 4105 |
% \end{macrocode} |
| 4106 |
% \end{macro} |
| 4107 |
% |
| 4108 |
% \subsubsection{List of tables} |
| 4109 |
% |
| 4110 |
% \begin{macro}{\iftabs} |
| 4111 |
% A flag for table floats. |
| 4112 |
% \begin{macrocode} |
| 4113 |
\newif\iftabs\tabsfalse |
| 4114 |
% \end{macrocode} |
| 4115 |
% \end{macro} |
| 4116 |
% |
| 4117 |
% \begin{macro}{\listoftables} |
| 4118 |
% This macro is used to request that \LaTeX{} produces a list of |
| 4119 |
% tables. It is very similar to |\listoffigures|. Note that |
| 4120 |
% \verb*?Table M.999 ? is 5.75em. |
| 4121 |
% |
| 4122 |
% \begin{macrocode} |
| 4123 |
\newcommand{\listoftables}{% |
| 4124 |
\ifx\undefined\settabs\else\settabs\fi} |
| 4125 |
% \end{macrocode} |
| 4126 |
% |
| 4127 |
% \begin{macro}{\l@table} |
| 4128 |
% This macro produces an entry in the list of tables. |
| 4129 |
% \changes{v2.3}{2001/07/06}{Defined \cs{l@table} as a macro} |
| 4130 |
% \begin{macrocode} |
| 4131 |
\newcommand{\l@table}{\@dottedtocline{1}{0em}{6.5em}} |
| 4132 |
|
| 4133 |
\renewcommand{\l@table}[2]{% |
| 4134 |
\vskip \z@ \@plus.2\p@ |
| 4135 |
{% |
| 4136 |
\leftskip 0em |
| 4137 |
\rightskip \@tocrmarg |
| 4138 |
\parfillskip -\rightskip |
| 4139 |
\parindent 0em\@afterindenttrue |
| 4140 |
\interlinepenalty\@M |
| 4141 |
\leavevmode |
| 4142 |
\@tempdima 2.75em |
| 4143 |
\advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip |
| 4144 |
{\let\numberline\loftnumberline \normalfont\tablename{} #1}\nobreak |
| 4145 |
\loftfillnum{#2}} |
| 4146 |
} |
| 4147 |
|
| 4148 |
% \end{macrocode} |
| 4149 |
% \end{macro} |
| 4150 |
% \end{macro} |
| 4151 |
% |
| 4152 |
% \begin{macro}{\@caption} |
| 4153 |
% This is a reimplementation of the kernel |\@caption| macro (ltfloat.dtx) |
| 4154 |
% to cater for the peculiarity of putting the float name before the number in |
| 4155 |
% the List of\ldots |
| 4156 |
% \changes{v2.3}{2001/07/06}{Redefined the \cs{@caption} kernel macro} |
| 4157 |
% \begin{macrocode} |
| 4158 |
\long\def\@isocaption#1[#2]#3{% |
| 4159 |
\par |
| 4160 |
\addcontentsline{\csname ext@#1\endcsname}{#1}% |
| 4161 |
{\protect\numberline{{\@nameuse{#1name}} {\@nameuse{the#1}} --- }% |
| 4162 |
{\ignorespaces #2}}% |
| 4163 |
\begingroup |
| 4164 |
\@parboxrestore |
| 4165 |
\if@minipage |
| 4166 |
\@setminipage |
| 4167 |
\fi |
| 4168 |
\normalsize |
| 4169 |
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par |
| 4170 |
\endgroup} |
| 4171 |
|
| 4172 |
% \end{macrocode} |
| 4173 |
% \end{macro} |
| 4174 |
% |
| 4175 |
% \subsubsection{ToC and clause numbering} |
| 4176 |
% |
| 4177 |
% Commands are provided, based on the \Lpack{tocvsec2} package, for changing |
| 4178 |
% the section numbering level and the ToC entry level. |
| 4179 |
% \changes{v2.2}{2000/01/10}{Added tocvsec2-like commands} |
| 4180 |
% |
| 4181 |
% \begin{macro}{\if@knownclause} |
| 4182 |
% \begin{macro}{\@setclcnt} |
| 4183 |
% Helper macro to set a sectioning-related counter. Use as |
| 4184 |
% |\@setclcnt{|\meta{sec}|}{|\meta{counter}|}| to set \Lcount{counter} |
| 4185 |
% to the level of \meta{sec}. |
| 4186 |
% \begin{macrocode} |
| 4187 |
\newif\if@knownclause |
| 4188 |
\newcommand{\@setclcnt}[2]{ |
| 4189 |
\@knownclausefalse |
| 4190 |
\if\isostringsequal{#1}{none} |
| 4191 |
\setcounter{#2}{-10} |
| 4192 |
\@knownclausetrue |
| 4193 |
\fi |
| 4194 |
\if\isostringsequal{#1}{clause} |
| 4195 |
\setcounter{#2}{1} |
| 4196 |
\@knownclausetrue |
| 4197 |
\fi |
| 4198 |
\if\isostringsequal{#1}{sclause} |
| 4199 |
\setcounter{#2}{2} |
| 4200 |
\@knownclausetrue |
| 4201 |
\fi |
| 4202 |
\if\isostringsequal{#1}{ssclause} |
| 4203 |
\setcounter{#2}{3} |
| 4204 |
\@knownclausetrue |
| 4205 |
\fi |
| 4206 |
\if\isostringsequal{#1}{sssclause} |
| 4207 |
\setcounter{#2}{4} |
| 4208 |
\@knownclausetrue |
| 4209 |
\fi |
| 4210 |
\if\isostringsequal{#1}{ssssclause} |
| 4211 |
\setcounter{#2}{5} |
| 4212 |
\@knownclausetrue |
| 4213 |
\fi |
| 4214 |
\if\isostringsequal{#1}{sssssclause} |
| 4215 |
\setcounter{#2}{6} |
| 4216 |
\@knownclausetrue |
| 4217 |
\fi |
| 4218 |
\if\isostringsequal{#1}{all} |
| 4219 |
\setcounter{#2}{50} |
| 4220 |
\@knownclausetrue |
| 4221 |
\fi |
| 4222 |
\if@knownclause\else |
| 4223 |
\ClassError{isov2}{% |
| 4224 |
Unknown clause command name (#1) |
| 4225 |
}{% |
| 4226 |
I'll ignore it. Type \space <return> and I'll continue.\MessageBreak |
| 4227 |
If you haven't mistyped the name then use \protect\setcounter\space instead.} |
| 4228 |
\fi |
| 4229 |
} |
| 4230 |
% \end{macrocode} |
| 4231 |
% \end{macro} |
| 4232 |
% \end{macro} |
| 4233 |
% |
| 4234 |
% \begin{macro}{\settocdepth} |
| 4235 |
% |\settocdepth{|\meta{sec}|}| is the user command for setting |
| 4236 |
% \Lcount{tocdepth} in the \file{.toc} file to the value corresponding to |
| 4237 |
% \meta{sec}. It can only be used after the preamble. |
| 4238 |
% \begin{macrocode} |
| 4239 |
\newcommand{\settocdepth}[1]{% |
| 4240 |
\@knownclausefalse |
| 4241 |
\if\isostringsequal{#1}{none} |
| 4242 |
\addtocontents{toc}{\protect\setcounter{tocdepth}{-10}} |
| 4243 |
\@knownclausetrue |
| 4244 |
\fi |
| 4245 |
\if\isostringsequal{#1}{clause} |
| 4246 |
\addtocontents{toc}{\protect\setcounter{tocdepth}{1}} |
| 4247 |
\@knownclausetrue |
| 4248 |
\fi |
| 4249 |
\if\isostringsequal{#1}{sclause} |
| 4250 |
\addtocontents{toc}{\protect\setcounter{tocdepth}{2}} |
| 4251 |
\@knownclausetrue |
| 4252 |
\fi |
| 4253 |
\if\isostringsequal{#1}{ssclause} |
| 4254 |
\addtocontents{toc}{\protect\setcounter{tocdepth}{3}} |
| 4255 |
\@knownclausetrue |
| 4256 |
\fi |
| 4257 |
\if\isostringsequal{#1}{sssclause} |
| 4258 |
\addtocontents{toc}{\protect\setcounter{tocdepth}{4}} |
| 4259 |
\@knownclausetrue |
| 4260 |
\fi |
| 4261 |
\if\isostringsequal{#1}{ssssclause} |
| 4262 |
\addtocontents{toc}{\protect\setcounter{tocdepth}{5}} |
| 4263 |
\@knownclausetrue |
| 4264 |
\fi |
| 4265 |
\if\isostringsequal{#1}{sssssclause} |
| 4266 |
\addtocontents{toc}{\protect\setcounter{tocdepth}{6}} |
| 4267 |
\@knownclausetrue |
| 4268 |
\fi |
| 4269 |
\if\isostringsequal{#1}{all} |
| 4270 |
\addtocontents{toc}{\protect\setcounter{tocdepth}{50}} |
| 4271 |
\@knownclausetrue |
| 4272 |
\fi |
| 4273 |
\if@knownclause\else |
| 4274 |
\ClassError{isov2}{% |
| 4275 |
Unknown clause command name (#1) |
| 4276 |
}{% |
| 4277 |
I'll ignore it. Type \space <return> and I'll continue.} |
| 4278 |
\fi |
| 4279 |
} |
| 4280 |
% \end{macrocode} |
| 4281 |
% \end{macro} |
| 4282 |
% |
| 4283 |
% \begin{macro}{\maxtocdepth} |
| 4284 |
% |\maxtocdepth{|\meta{sec}|}| can be used to initialise \Lcount{tocdepth} |
| 4285 |
% to the value corresponding to \meta{sec}. This can only be used |
| 4286 |
% between the end of the preamble and the |\tableofcontents| command. |
| 4287 |
% \begin{macrocode} |
| 4288 |
\newcommand{\maxtocdepth}[1]{% |
| 4289 |
\@setclcnt{#1}{tocdepth} |
| 4290 |
} |
| 4291 |
% \end{macrocode} |
| 4292 |
% \end{macro} |
| 4293 |
% |
| 4294 |
% \begin{macro}{\setsecnumdepth} |
| 4295 |
% |\setsecnumdepth{|\meta{sec}|}| is the user command for setting |
| 4296 |
% \Lcount{secnumdepth} to the value for \meta{sec}. It can only be used after |
| 4297 |
% the preamble. |
| 4298 |
% \begin{macrocode} |
| 4299 |
\newcommand{\setsecnumdepth}[1]{\leavevmode% |
| 4300 |
\@setclcnt{#1}{secnumdepth} |
| 4301 |
} |
| 4302 |
% \end{macrocode} |
| 4303 |
% \end{macro} |
| 4304 |
% |
| 4305 |
% \begin{macro}{\maxsecnumdepth} |
| 4306 |
% |\maxsecnumdepth{|\meta{sec}|}| can be used to initialise |
| 4307 |
% \Lcount{secnumdepth} |
| 4308 |
% after the preamble to the value corresponding to \meta{sec}. |
| 4309 |
% \begin{macrocode} |
| 4310 |
\newcommand{\maxsecnumdepth}[1]{% |
| 4311 |
\@setclcnt{#1}{secnumdepth} |
| 4312 |
} |
| 4313 |
% \end{macrocode} |
| 4314 |
% \end{macro} |
| 4315 |
% |
| 4316 |
% |
| 4317 |
% |
| 4318 |
% \subsection{Bibliography} |
| 4319 |
% |
| 4320 |
% This class does not implement a bibliography. The |references| |
| 4321 |
% environment is defined instead. |
| 4322 |
% |
| 4323 |
% \subsection{The index} |
| 4324 |
% |
| 4325 |
% \begin{environment}{theindex} |
| 4326 |
% \changes{v2.2}{2000/01/10}{Reconfigured theindex to use \cs{fibicl@use}} |
| 4327 |
% The environment `theindex' can be used for indices. It makes an |
| 4328 |
% index with one column, with each entry a separate paragraph. At |
| 4329 |
% the user level the commands |\item|, |\subitem| and |\subsubitem| |
| 4330 |
% are used to produce index entries of various levels. When a new |
| 4331 |
% letter of the alphabet is encountered an amount of |\indexspace| |
| 4332 |
% white space can be added. |
| 4333 |
% |
| 4334 |
% ISO requires that an index, if present, must be the last element |
| 4335 |
% in the document. |
| 4336 |
% |
| 4337 |
% |
| 4338 |
% \begin{macrocode} |
| 4339 |
\newenvironment{theindex}% |
| 4340 |
{\clearpage |
| 4341 |
\typeout{Index}% |
| 4342 |
\refstepcounter{clause}% |
| 4343 |
\tocskip{\tocentryskip}% |
| 4344 |
\addcontentsline{toc}{index}{\indexname}% |
| 4345 |
\columnseprule \z@ |
| 4346 |
\onecolumn{\fibicl@use*{\indexname}} |
| 4347 |
\parindent\z@ |
| 4348 |
\parskip\z@ \@plus .3\p@\relax |
| 4349 |
\let\item\@idxitem}% |
| 4350 |
{\clearpage} |
| 4351 |
% \end{macrocode} |
| 4352 |
% \end{environment} |
| 4353 |
% |
| 4354 |
% \begin{macro}{\l@index} |
| 4355 |
% Format the index entry in the table of contents. |
| 4356 |
% \begin{macrocode} |
| 4357 |
\newcommand{\l@index}{\@dottedtocline{1}{0em}{0pt}} |
| 4358 |
% \end{macrocode} |
| 4359 |
% \end{macro} |
| 4360 |
% |
| 4361 |
% \begin{macro}{\@idxitem} |
| 4362 |
% \begin{macro}{\subitem} |
| 4363 |
% \begin{macro}{\subsubitem} |
| 4364 |
% Thsee macros are used to format the entries in the index. |
| 4365 |
% \begin{macrocode} |
| 4366 |
\newcommand{\@idxitem} {\par\hangindent 40\p@} |
| 4367 |
\newcommand{\subitem} {\par\hangindent 40\p@ \hspace*{20\p@}} |
| 4368 |
\newcommand{\subsubitem}{\par\hangindent 40\p@ \hspace*{30\p@}} |
| 4369 |
% \end{macrocode} |
| 4370 |
% \end{macro} |
| 4371 |
% \end{macro} |
| 4372 |
% \end{macro} |
| 4373 |
% |
| 4374 |
% \begin{macro}{\indexspace} |
| 4375 |
% The amount of white space that is inserted between `letter |
| 4376 |
% blocks' in the index. |
| 4377 |
% \begin{macrocode} |
| 4378 |
\newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax} |
| 4379 |
% \end{macrocode} |
| 4380 |
% \end{macro} |
| 4381 |
% |
| 4382 |
% The program GenIndex, written for processing ISO documents, |
| 4383 |
% takes an \file{.idx} file and converts it to a |theindex| format. |
| 4384 |
% The following are the formatting commands output by GenIndex. |
| 4385 |
% |
| 4386 |
% \begin{macro}{\indexfill} |
| 4387 |
% \begin{macro}{\sindexfill} |
| 4388 |
% \begin{macro}{\ssindexfill} |
| 4389 |
% Thse define the format of leaders between the (sub-) topic and |
| 4390 |
% the page number. ISO requires a dotted line between each index |
| 4391 |
% entry and the page number. |
| 4392 |
% \begin{macrocode} |
| 4393 |
\newcommand{\indexfill}{\dotfill} |
| 4394 |
\newcommand{\sindexfill}{\dotfill} |
| 4395 |
\newcommand{\ssindexfill}{\dotfill} |
| 4396 |
% \end{macrocode} |
| 4397 |
% \end{macro} |
| 4398 |
% \end{macro} |
| 4399 |
% \end{macro} |
| 4400 |
% |
| 4401 |
% \begin{macro}{\indexsee} |
| 4402 |
% \begin{macro}{\indexseealso} |
| 4403 |
% These format entries of type `see \ldots' and `see also \ldots'. |
| 4404 |
% \begin{macrocode} |
| 4405 |
\newcommand{\indexsee}[1]{\par \hspace*{2em} \emph{see} #1} |
| 4406 |
\newcommand{\indexseealso}[1]{\par \hspace*{2em} \emph{see also} #1} |
| 4407 |
% \end{macrocode} |
| 4408 |
% \end{macro} |
| 4409 |
% \end{macro} |
| 4410 |
% |
| 4411 |
% \begin{macro}{\alphaindexspace} |
| 4412 |
% \begin{macro}{\otherindexspace} |
| 4413 |
% These format the space between each alphabetic block of entries, |
| 4414 |
% and correspondingly for entries that begin with an analpahbetic |
| 4415 |
% character. ISO requires no additional spacing. |
| 4416 |
% |
| 4417 |
% These commands take one parameter, intended to be the |
| 4418 |
% (letter) heading for the next block of entries. For example, |
| 4419 |
% we could have defined: |
| 4420 |
% \begin{verbatim} |
| 4421 |
% \newcommand{\alphaindexspace}[1]{\indexspace |
| 4422 |
% {\bfseries #1}} |
| 4423 |
% \end{verbatim} |
| 4424 |
% for printing a vertical space and a bold heading. |
| 4425 |
% \begin{macrocode} |
| 4426 |
\newcommand{\alphaindexspace}[1]{} |
| 4427 |
\newcommand{\otherindexspace}[1]{} |
| 4428 |
% \end{macrocode} |
| 4429 |
% \end{macro} |
| 4430 |
% \end{macro} |
| 4431 |
% |
| 4432 |
% For good measure we provide a style file for users of the |
| 4433 |
% {\sc makeindex} program. |
| 4434 |
% |
| 4435 |
% \begin{macrocode} |
| 4436 |
%</iso> |
| 4437 |
%<*ist> |
| 4438 |
%%%%iso.ist Makeindex style file for ISO documents |
| 4439 |
group_skip "\n\n" % no vertical space between blocks |
| 4440 |
headings_flag 0 % make sure headings are turned off |
| 4441 |
delim_0 " \\dotfill " % dot leaders between entry and page numbers |
| 4442 |
delim_1 " \\dotfill " |
| 4443 |
delim_2 " \\dotfill " |
| 4444 |
|
| 4445 |
%</ist> |
| 4446 |
%<*iso> |
| 4447 |
% \end{macrocode} |
| 4448 |
% |
| 4449 |
% \subsection{Footnotes} |
| 4450 |
% |
| 4451 |
% \begin{macro}{\footnoterule} |
| 4452 |
% Usually, footnotes are separated from the main body of the text |
| 4453 |
% by a small rule. This rule is drawn by the macro |\footnoterule|. |
| 4454 |
% We have to make sure that the rule takes no vertical space (see |
| 4455 |
% \file{plain.tex}) so we compensate for the natural heigth of the |
| 4456 |
% rule of 0.4pt by adding the right amount of vertical skip. |
| 4457 |
% |
| 4458 |
% To prevent the rule from colliding with the footnote we first add |
| 4459 |
% a little negative vertical skip, then we put the rule and make |
| 4460 |
% sure we end up at the same point where we begun this operation. |
| 4461 |
% \begin{macrocode} |
| 4462 |
\renewcommand{\footnoterule}{% |
| 4463 |
\kern-3\p@ |
| 4464 |
\hrule width .4\columnwidth |
| 4465 |
\kern 2.6\p@} |
| 4466 |
% \end{macrocode} |
| 4467 |
% \end{macro} |
| 4468 |
% |
| 4469 |
% \begin{macro}{\c@footnote} |
| 4470 |
% Footnotes are numbered sequentially throughout the document. |
| 4471 |
% ISO requires footnotes to be a superscripted arabic numeral |
| 4472 |
% with a right parenthesis. The counter is predefined. |
| 4473 |
% \begin{macrocode} |
| 4474 |
% \newcounter{footnote} |
| 4475 |
\renewcommand{\thefootnote}{\arabic{footnote})} |
| 4476 |
% \end{macrocode} |
| 4477 |
% \end{macro} |
| 4478 |
% |
| 4479 |
% \begin{macro}{\@makefntext} |
| 4480 |
% The footnote mechanism of \LaTeX{} calls the macro |\@makefntext| |
| 4481 |
% to produce the actual footnote. The macro gets the text of the |
| 4482 |
% footnote as its argument and should use |\@thefnmark| as the mark |
| 4483 |
% of the footnote. The macro |\@makefntext|is called when |
| 4484 |
% effectively inside a |\parbox| of width |\columnwidth| (i.e., |
| 4485 |
% with |\hsize| = |\columnwidth|). |
| 4486 |
% |
| 4487 |
% An example of what can be achieved is given by the following piece |
| 4488 |
% of \TeX\ code. |
| 4489 |
% \begin{verbatim} |
| 4490 |
% \long\def\@makefntext#1{% |
| 4491 |
% \@setpar{\@@par |
| 4492 |
% \@tempdima = \hsize |
| 4493 |
% \advance\@tempdima-10pt |
| 4494 |
% \parshape \@ne 10pt \@tempdima}% |
| 4495 |
% \par |
| 4496 |
% \parindent 1em\noindent |
| 4497 |
% \hbox to \z@{\hss\@makefnmark}#1} |
| 4498 |
% \end{verbatim} |
| 4499 |
% The effect of this definition is that all lines of the footnote |
| 4500 |
% are indented by 10pt, while the first line of a new paragraph is |
| 4501 |
% indented by 1em. To change these dimensions, just substitute the |
| 4502 |
% desired value for `10pt' (in both places) or `1em'. The mark is |
| 4503 |
% flushright against the footnote. |
| 4504 |
% |
| 4505 |
% In this document class we use a simpler macro, in which the |
| 4506 |
% footnote text is set like an ordinary text paragraph, with no |
| 4507 |
% indentation except on the first line of a paragraph, and the |
| 4508 |
% first line of the footnote. Thus, all the macro must do is set |
| 4509 |
% |\parindent| to the appropriate value for succeeding paragraphs |
| 4510 |
% and put the proper indentation before the mark. |
| 4511 |
% |
| 4512 |
% |
| 4513 |
% \begin{macrocode} |
| 4514 |
\long\def\@makefntext#1{% |
| 4515 |
\parindent 1em% |
| 4516 |
\noindent |
| 4517 |
\hbox to 1.8em{\hss\@makefnmark}#1} |
| 4518 |
% \end{macrocode} |
| 4519 |
% \end{macro} |
| 4520 |
% |
| 4521 |
% \begin{macro}{\@makefnmark} |
| 4522 |
% The footnote markers that are printed in the text to point to the |
| 4523 |
% footnotes should be produced by the macro |\@makefnmark|. We use |
| 4524 |
% the default definition for it. |
| 4525 |
% \begin{macrocode} |
| 4526 |
%\def\@makefnmark{\hbox{$^{\@thefnmark}\m@th$}} |
| 4527 |
% \end{macrocode} |
| 4528 |
% \end{macro} |
| 4529 |
% |
| 4530 |
% |
| 4531 |
% \section{Version control tools} \label{sec:vct} |
| 4532 |
% |
| 4533 |
% When preparing an international standard the document goes through |
| 4534 |
% several iterations. In particular it may change due to international |
| 4535 |
% ballot comments. The commands provided may be used to identify |
| 4536 |
% changes made to a document during its life cycle. |
| 4537 |
% |
| 4538 |
% \subsection{Print control} |
| 4539 |
% |
| 4540 |
% Members of the development group often need to see the changes |
| 4541 |
% between document versions, while the general public does not. |
| 4542 |
% \begin{macro}{\ifchangemarks} |
| 4543 |
% This controls the appearence of the version controls defined |
| 4544 |
% below. |
| 4545 |
% \begin{macrocode} |
| 4546 |
\newif\ifchangemarks\changemarksfalse |
| 4547 |
% \end{macrocode} |
| 4548 |
% The version controls only work properly when the |draft| option |
| 4549 |
% is in effect. Also, the command |\changemarkstrue| must be |
| 4550 |
% put in the document preamble. |
| 4551 |
% \end{macro} |
| 4552 |
% |
| 4553 |
% \begin{macro}{\v@rid} |
| 4554 |
% This acts as an alias for |\marginpar| when both |changemarks| is |
| 4555 |
% true and the |draft| option is in effect, otherwise it throws |
| 4556 |
% away its two arguments. |
| 4557 |
% \begin{macrocode} |
| 4558 |
\newcommand{\v@rid}[2]{% |
| 4559 |
\ifchangemarks |
| 4560 |
\ifdr@ftd@c |
| 4561 |
\marginpar[#1]{#2}% |
| 4562 |
\fi\fi} |
| 4563 |
% \end{macrocode} |
| 4564 |
% \end{macro} |
| 4565 |
% |
| 4566 |
% \subsection{Change marking} |
| 4567 |
% |
| 4568 |
% The following commands flag changes in the typeset document. Each of |
| 4569 |
% the commands takes one parameter which is intended to be a |
| 4570 |
% `change number' for tracking purposes. Some also take a text |
| 4571 |
% parameter which is the changed text. |
| 4572 |
% |
| 4573 |
% \begin{macro}{\editorial} |
| 4574 |
% |\editorial{|\meta{change id}|}| |
| 4575 |
% Places the \meta{change id} in the document to indicate an editorial |
| 4576 |
% change. |
| 4577 |
% \begin{macrocode} |
| 4578 |
\newcommand{\editorial}[1]{% |
| 4579 |
\@bsphack |
| 4580 |
\ifchangemarks |
| 4581 |
\v@rid{\small\hfill$^{#1}$ED}% |
| 4582 |
{\small ED$^{#1}$\hfill}% |
| 4583 |
\fi\@esphack} |
| 4584 |
% \end{macrocode} |
| 4585 |
% \end{macro} |
| 4586 |
% |
| 4587 |
% \begin{macro}{\added} |
| 4588 |
% |\added{|\meta{text}|}{|\meta{change id}|}| |
| 4589 |
% Flags the additional \meta{text} with the \meta{change id}. |
| 4590 |
% \begin{macrocode} |
| 4591 |
\long\def\added#1#2{% |
| 4592 |
\@bsphack |
| 4593 |
\ifchangemarks |
| 4594 |
\v@rid{\small\hfill$^{#2}\Rightarrow$}% |
| 4595 |
{\small $\Leftarrow^{#2}$\hfill}% |
| 4596 |
\emph{#1}% |
| 4597 |
\else |
| 4598 |
#1 |
| 4599 |
\fi\@esphack} |
| 4600 |
% \end{macrocode} |
| 4601 |
% \end{macro} |
| 4602 |
% |
| 4603 |
% \begin{macro}{\deleted} |
| 4604 |
% |\deleted{|\meta{change id}|}| |
| 4605 |
% Places the \meta{change id} in the document to indicate that |
| 4606 |
% some text has been deleted. |
| 4607 |
% \begin{macrocode} |
| 4608 |
\newcommand{\deleted}[1]{% |
| 4609 |
\@bsphack |
| 4610 |
\ifchangemarks |
| 4611 |
\v@rid{\small\hfill$^{#1}\Leftarrow$}% |
| 4612 |
{\small $\Rightarrow^{#1}$\hfill}% |
| 4613 |
\fi\@esphack} |
| 4614 |
% \end{macrocode} |
| 4615 |
% \end{macro} |
| 4616 |
% |
| 4617 |
% \begin{macro}{\moved} |
| 4618 |
% |\moved{|\meta{text}|}{|\meta{change id}|}| |
| 4619 |
% Flags the moved \meta{text} with the \meta{change id}. |
| 4620 |
% \begin{macrocode} |
| 4621 |
\long\def\moved#1#2{% |
| 4622 |
\@bsphack |
| 4623 |
\ifchangemarks |
| 4624 |
\v@rid{\small\hfill$^{#2}\Leftrightarrow$}% |
| 4625 |
{\small $\Leftrightarrow^{#2}$\hfill}% |
| 4626 |
\emph{#1}% |
| 4627 |
\else |
| 4628 |
#1 |
| 4629 |
\fi\@esphack} |
| 4630 |
% \end{macrocode} |
| 4631 |
% \end{macro} |
| 4632 |
% |
| 4633 |
% \section{Structure and boilerplate} \label{sec:bp} |
| 4634 |
% |
| 4635 |
% ISO standard documents have certain required elements and boilerplate. |
| 4636 |
% |
| 4637 |
% \subsection{Structural elements} |
| 4638 |
% |
| 4639 |
% \begin{environment}{foreword} |
| 4640 |
% The |foreword| environment initializes the front matter for a standard |
| 4641 |
% and starts an unnumbered foreword clause. To ensure that the |
| 4642 |
% front matter is set in single column we use an environment. |
| 4643 |
% \changes{v2}{1997/12/04}{Added Foreword to ToC} |
| 4644 |
% \changes{v2.1}{1999/02/15}{Deleted Foreword from ToC} |
| 4645 |
% \changes{v2.2}{2000/01/10}{Reconfigured Foreword to use \cs{fibicl@use}} |
| 4646 |
% \changes{v2.4}{2002/07/22}{Added bookmark to the foreword} |
| 4647 |
% \begin{macrocode} |
| 4648 |
\newenvironment{foreword}% |
| 4649 |
{\tableofcontents |
| 4650 |
\listoffigures |
| 4651 |
\listoftables |
| 4652 |
\clearpage |
| 4653 |
\if@twocolumn |
| 4654 |
\@restonecoltrue\onecolumn |
| 4655 |
\else |
| 4656 |
\@restonecolfalse |
| 4657 |
\fi |
| 4658 |
\fibicl@use*{\forewordname}% |
| 4659 |
%% \tocskip{\tocentryskip}% |
| 4660 |
%% \addcontentsline{toc}{clause}{\forewordname}% |
| 4661 |
\ifisohyper |
| 4662 |
\pdfbookmark[1]{\forewordname}{isofwd}% |
| 4663 |
\fi}% |
| 4664 |
{\if@restonecol\twocolumn\fi} |
| 4665 |
% \end{macrocode} |
| 4666 |
% \end{environment} |
| 4667 |
% |
| 4668 |
% \begin{macro}{\@copyrighttext} |
| 4669 |
% This command sets up the copyright notice on the first page of |
| 4670 |
% the table of contents. The text is set in a |bottomfloat| |
| 4671 |
% environment in a small size. |
| 4672 |
% \begin{macrocode} |
| 4673 |
\newcommand{\@copyrighttext}{% |
| 4674 |
\vfill |
| 4675 |
%%% \begin{bottomfloat}[b] |
| 4676 |
\begin{small} |
| 4677 |
\copyrightnotice |
| 4678 |
\end{small} |
| 4679 |
%%% \end{bottomfloat} |
| 4680 |
} |
| 4681 |
% \end{macrocode} |
| 4682 |
% \end{macro} |
| 4683 |
% |
| 4684 |
% \begin{environment}{introduction} |
| 4685 |
% Starts a new unnumbered introduction clause, the body of which is set |
| 4686 |
% in single column, so we use an environment. |
| 4687 |
% \changes{v2}{1997/12/04}{Added Introduction to ToC} |
| 4688 |
% \changes{v2.1}{1999/02/15}{Deleted Introduction from Toc} |
| 4689 |
% \changes{v2.2}{2000/01/10}{Changed introduction to use \cs{fibicl@use}} |
| 4690 |
% \changes{v2.4}{2002/07/22}{Added bookmark to introduction} |
| 4691 |
% \begin{macrocode} |
| 4692 |
\newenvironment{introduction}% |
| 4693 |
{\clearpage |
| 4694 |
\if@twocolumn |
| 4695 |
\@restonecoltrue\onecolumn |
| 4696 |
\else |
| 4697 |
\@restonecolfalse |
| 4698 |
\fi |
| 4699 |
\fibicl@use*{\introductionname}% |
| 4700 |
%% \tocskip{\tocentryskip} |
| 4701 |
%% \addcontentsline{toc}{clause}{\introductionname}% |
| 4702 |
\ifisohyper |
| 4703 |
\pdfbookmark[1]{\introductionname}{isointro} |
| 4704 |
\fi}% |
| 4705 |
{\if@restonecol\twocolumn\fi} |
| 4706 |
% \end{macrocode} |
| 4707 |
% \end{environment} |
| 4708 |
% |
| 4709 |
% \begin{macro}{\scopeclause} |
| 4710 |
% Starts a new numbered scope clause. |
| 4711 |
% This is given the label |;i1| as it is the first numbered clause. |
| 4712 |
% \changes{v2.2}{2000/01/10}{Scope clause labelled ;i1} |
| 4713 |
% \begin{macrocode} |
| 4714 |
\newcommand{\scopeclause}{\clause{\scopename}\label{;i1}} |
| 4715 |
% \end{macrocode} |
| 4716 |
% \end{macro} |
| 4717 |
% |
| 4718 |
% \begin{macro}{\normrefsclause} |
| 4719 |
% Starts a new numbered normative references clause. |
| 4720 |
% This is given the label |;i2| as it is the second numbered clause. |
| 4721 |
% \changes{v2.2}{2000/01/10}{Normrefs clause labelled ;i2} |
| 4722 |
% \begin{macrocode} |
| 4723 |
\newcommand{\normrefsclause}{\clause{\normrefsname}\label{;i2}} |
| 4724 |
% \end{macrocode} |
| 4725 |
% \end{macro} |
| 4726 |
% |
| 4727 |
% \begin{macro}{\defclause} |
| 4728 |
% \begin{macro}{\symclause} |
| 4729 |
% \begin{macro}{\abbclause} |
| 4730 |
% \begin{macro}{\defsymclause} |
| 4731 |
% \begin{macro}{\defabbclause} |
| 4732 |
% \begin{macro}{\symabbclause} |
| 4733 |
% \begin{macro}{\defsymabbclause} |
| 4734 |
% These macros start new clauses for definitions, symbols and abbreviations. |
| 4735 |
% ISO allows these to be grouped in various ways, depending on the |
| 4736 |
% amount of material in the respective categories. |
| 4737 |
% These are each given the label |;i3| as one should be the third numbered clause. |
| 4738 |
% \changes{v2.2}{2000/01/10}{Definition clauses labelled ;i3} |
| 4739 |
% \begin{macrocode} |
| 4740 |
\newcommand{\defclause}{\clause{\defname}\label{;i3}} |
| 4741 |
\newcommand{\symclause}{\clause{\symname}\label{;i3}} |
| 4742 |
\newcommand{\abbclause}{\clause{\abbname}\label{;i3}} |
| 4743 |
\newcommand{\defsymclause}{\clause{\defsymname}\label{;i3}} |
| 4744 |
\newcommand{\defabbclause}{\clause{\defabbname}\label{;i3}} |
| 4745 |
\newcommand{\symabbclause}{\clause{\symabbname}\label{;i3}} |
| 4746 |
\newcommand{\defsymabbclause}{\clause{\defsymabbname}\label{;i3}} |
| 4747 |
% \end{macrocode} |
| 4748 |
% \end{macro} |
| 4749 |
% \end{macro} |
| 4750 |
% \end{macro} |
| 4751 |
% \end{macro} |
| 4752 |
% \end{macro} |
| 4753 |
% \end{macro} |
| 4754 |
% \end{macro} |
| 4755 |
% |
| 4756 |
% \begin{macro}{\defsubclause} |
| 4757 |
% \begin{macro}{\symsubclause} |
| 4758 |
% \begin{macro}{\abbsubclause} |
| 4759 |
% \begin{macro}{\defsymsubclause} |
| 4760 |
% \begin{macro}{\defabbsubclause} |
| 4761 |
% \begin{macro}{\symabbsubclause} |
| 4762 |
% These macros start new sub-clauses for definitions, symbols and abbreviations. |
| 4763 |
% ISO allows these to be grouped in various ways, depending on the |
| 4764 |
% amount of material in the respective categories. |
| 4765 |
% \begin{macrocode} |
| 4766 |
\newcommand{\defsubclause}{\sclause{\defname}} |
| 4767 |
\newcommand{\symsubclause}{\sclause{\symname}} |
| 4768 |
\newcommand{\abbsubclause}{\sclause{\abbname}} |
| 4769 |
\newcommand{\defsymsubclause}{\sclause{\defsymname}} |
| 4770 |
\newcommand{\defabbsubclause}{\sclause{\defabbname}} |
| 4771 |
\newcommand{\symabbsubclause}{\sclause{\symabbname}} |
| 4772 |
% \end{macrocode} |
| 4773 |
% \end{macro} |
| 4774 |
% \end{macro} |
| 4775 |
% \end{macro} |
| 4776 |
% \end{macro} |
| 4777 |
% \end{macro} |
| 4778 |
% \end{macro} |
| 4779 |
% |
| 4780 |
% \begin{macro}{\fcandaclause} |
| 4781 |
% This macro starts a clause `Fundamental concepts and assumptions'. |
| 4782 |
% The actual title is given by the value of |\fcandaname|. |
| 4783 |
% \begin{macrocode} |
| 4784 |
\newcommand{\fcandaclause}{\clause{\fcandaname}} |
| 4785 |
% \end{macrocode} |
| 4786 |
% \end{macro} |
| 4787 |
% |
| 4788 |
% \begin{macro}{\bibannex} |
| 4789 |
% This macro starts a bibliography (which used to be an |
| 4790 |
% informative annex). |
| 4791 |
% |
| 4792 |
% \changes{v2}{1997}{Bibliography is no longer an informative annex} |
| 4793 |
% \changes{v2.2}{2000/01/10}{Reconfigured \cs{bibannex} to use \cs{fibicl@use}} |
| 4794 |
% \begin{macrocode} |
| 4795 |
\newcommand{\bibannex}{% |
| 4796 |
\typeout{Bibliography} |
| 4797 |
\clearpage |
| 4798 |
\fibicl@use*{\bibname} |
| 4799 |
\tocskip{\tocentryskip} |
| 4800 |
\addcontentsline{toc}{index}{\bibname} |
| 4801 |
} |
| 4802 |
% \end{macrocode} |
| 4803 |
% \end{macro} |
| 4804 |
% |
| 4805 |
% \subsection{Boilerplate} |
| 4806 |
% |
| 4807 |
% ISO defines the wording of certain textual elements within a |
| 4808 |
% standard. |
| 4809 |
% |
| 4810 |
% This class has been prepared for standard documents in the |
| 4811 |
% English language. The boilerplate text commands must be |
| 4812 |
% redefined for other languages. |
| 4813 |
% |
| 4814 |
% \begin{macro}{\copyrightnotice} |
| 4815 |
% The required English text of the copyright notice. |
| 4816 |
% \changes{v2.3}{2001/07/06}{Text of \cs{copyrightnotice} changed} |
| 4817 |
% \begin{macrocode} |
| 4818 |
\newcommand{\copyrightnotice}{% |
| 4819 |
\copyright\quad \copyrightname\quad \thesyear\newline |
| 4820 |
All rights reserved. Unless otherwise specified, no part of |
| 4821 |
this publication may be reproduced or utilized in any form or |
| 4822 |
by any means, electronic or mechanical, including photocopying |
| 4823 |
and microfilm, without permission in writing from %%% the publisher. |
| 4824 |
%%%\makebox[\textwidth][r]{% |
| 4825 |
%%%ISO/IEC Copyright Office $\bullet$ Case Postale 56 $\bullet$ |
| 4826 |
%%%CH-1211 Gen{\`e}ve 20 $\bullet$ Switzerland} |
| 4827 |
%%\vspace{\baselineskip}\newline |
| 4828 |
%%\hspace*{1em} International Organization for Standardization\newline |
| 4829 |
%%\hspace*{1em} Case Postale 56 $\bullet$ CH-2111 Gen{\`e}ve 20 $\bullet$ Switzerland |
| 4830 |
either ISO at the address below or ISO's member body in the country |
| 4831 |
of the requester. |
| 4832 |
\par |
| 4833 |
\noindent ISO copyright office \\ |
| 4834 |
Case postale 56. CH-1211 Geneva 20 \\ |
| 4835 |
Tel. +41 22 749 01 11 \\ |
| 4836 |
Fax +41 22 734 10 79 \\ |
| 4837 |
E-mail \texttt{[email protected]} \\ |
| 4838 |
Web \texttt{www.iso.ch} |
| 4839 |
% \end{macrocode} |
| 4840 |
% For an IS or a Tech Report, need a blank line and place of printing |
| 4841 |
% \begin{macrocode} |
| 4842 |
%%\ifisst@ndard \ifc@pyright |
| 4843 |
%% \vspace{\baselineskip}\newline\noindent |
| 4844 |
%% Printed in Switzerland |
| 4845 |
%%\fi\fi |
| 4846 |
%%\ift@chrep \ifc@pyright |
| 4847 |
%% \vspace{\baselineskip}\newline\noindent |
| 4848 |
%% Printed in Switzerland |
| 4849 |
%%\fi\fi |
| 4850 |
} |
| 4851 |
% \end{macrocode} |
| 4852 |
% \end{macro} |
| 4853 |
% |
| 4854 |
% \begin{macro}{\fwdbp} |
| 4855 |
% |
| 4856 |
% The prescribed text of the initial paragraphs in an ISO Standard |
| 4857 |
% Foreword. |
| 4858 |
% \begin{macrocode} |
| 4859 |
\newcommand{\fwdbp}{\input{isofwdbp}} |
| 4860 |
% \end{macrocode} |
| 4861 |
% |
| 4862 |
% The following is the text contained in the file \file{isofwdbp.tex}. |
| 4863 |
% \changes{v2.1}{1999/02/15}{Change to foreword boilerplate} |
| 4864 |
% \changes{v2.3}{2001/07/06}{Change to foreword boilerplate} |
| 4865 |
% \changes{v2.3}{2001/08/29}{Yet another ISO change to foreword boilerplate} |
| 4866 |
% \begin{macrocode} |
| 4867 |
%</iso> |
| 4868 |
%<*fwd1> |
| 4869 |
\ProvidesFile{isofwdbp.tex}[2001/08/29 Boilerplate for start of Foreword] |
| 4870 |
|
| 4871 |
ISO (the International Organization for Standardization) is a worldwide |
| 4872 |
federation of national standards bodies (ISO member bodies). The work |
| 4873 |
of preparing International Standards is normally carried out through |
| 4874 |
ISO technical committees. Each member body interested in a subject for |
| 4875 |
which a technical committee has been established has the right to be |
| 4876 |
represented on that committee. International organizations, |
| 4877 |
governmental and non-governmental, in liaison with ISO, also take part |
| 4878 |
in the work. ISO collaborates closely with the International |
| 4879 |
Electrotechnical Commission (IEC) on all matters of electrotechnical |
| 4880 |
standardization. |
| 4881 |
|
| 4882 |
International Standards are drafted in accordance with the rules given |
| 4883 |
in the ISO/IEC Directives, Part~2. |
| 4884 |
|
| 4885 |
The main task of technical committees is to prepare International Standards. |
| 4886 |
Draft International Standards adopted by the technical committees are |
| 4887 |
circulated to the member bodies for voting. Publication as an |
| 4888 |
International Standard requires approval by at least 75\% of the member |
| 4889 |
bodies casting a vote. |
| 4890 |
\par |
| 4891 |
|
| 4892 |
%</fwd1> |
| 4893 |
%<*iso> |
| 4894 |
% \end{macrocode} |
| 4895 |
% \end{macro} |
| 4896 |
% |
| 4897 |
% \begin{macro}{\tspasfwdbp} |
| 4898 |
% |
| 4899 |
% The prescribed text of the initial paragraphs in an ISO |
| 4900 |
% Technical Specification or PAS Foreword. |
| 4901 |
% \begin{macrocode} |
| 4902 |
\newcommand{\tspasfwdbp}{\input{tspasfwdbp}} |
| 4903 |
% \end{macrocode} |
| 4904 |
% |
| 4905 |
% The following is the text contained in the file \file{tspasfwdbp.tex}. |
| 4906 |
% \changes{v2.3}{2001/07/06}{Added TS/PAS foreword boilerplate} |
| 4907 |
% \changes{v2.3}{2002/01/10}{Modified TS/PAS foreword boilerplate} |
| 4908 |
% \begin{macrocode} |
| 4909 |
%</iso> |
| 4910 |
%<*tspasfwd1> |
| 4911 |
\ProvidesFile{tspasfwdbp.tex}[2001/07/06 Boilerplate for start of TS/PAS Foreword] |
| 4912 |
|
| 4913 |
ISO (the International Organization for Standardization) is a worldwide |
| 4914 |
federation of national standards bodies (ISO member bodies). The work |
| 4915 |
of preparing International Standards is normally carried out through |
| 4916 |
ISO technical committees. Each member body interested in a subject for |
| 4917 |
which a technical committee has been established has the right to be |
| 4918 |
represented on that committee. International organizations, |
| 4919 |
governmental and non-governmental, in liaison with ISO, also take part |
| 4920 |
in the work. ISO collaborates closely with the International |
| 4921 |
Electrotechnical Commission (IEC) on all matters of electrotechnical |
| 4922 |
standardization. |
| 4923 |
|
| 4924 |
International Standards are drafted in accordance with the rules given |
| 4925 |
in the ISO/IEC Directives, Part~2. |
| 4926 |
|
| 4927 |
The main task of technical committees is to prepare International |
| 4928 |
Standards. |
| 4929 |
Draft International Standards adopted by the technical committees are |
| 4930 |
circulated to the member bodies for voting. Publication as an |
| 4931 |
International Standard requires approval by at least 75\% of the member |
| 4932 |
bodies casting a vote. |
| 4933 |
|
| 4934 |
In other circumstances, particularly when there is an urgent market |
| 4935 |
requirement for such documents, a technical committee may decide to |
| 4936 |
publish other types of normative document: |
| 4937 |
\begin{itemize} |
| 4938 |
\item an ISO Publicly Available Specification (ISO/PAS) represents an |
| 4939 |
agreement between technical experts in an ISO working group and is |
| 4940 |
accepted for publication if it is approved by more than 50\% of the |
| 4941 |
members of the parent committee casting a vote; |
| 4942 |
|
| 4943 |
\item an ISO Technical Specification (ISO/TS) represents an agreement |
| 4944 |
between the members of a technical committee and is accepted for |
| 4945 |
publication if it is approved by 2/3 of the members of the committee |
| 4946 |
casting a vote. |
| 4947 |
\end{itemize} |
| 4948 |
|
| 4949 |
An ISO/PAS or ISO/TS is reviewed every three years with a view to |
| 4950 |
deciding whether it can be transformed into an International Standard. |
| 4951 |
\par |
| 4952 |
|
| 4953 |
%</tspasfwd1> |
| 4954 |
% \end{macrocode} |
| 4955 |
% \end{macro} |
| 4956 |
% |
| 4957 |
% The following is the text contained in the file \file{trfwd1.tex}. |
| 4958 |
% \begin{macrocode} |
| 4959 |
%<*trfwd1> |
| 4960 |
%% trfwd1.tex Boilerplate for start of a tech rep Foreword clause |
| 4961 |
% |
| 4962 |
|
| 4963 |
ISO (the International Organization for Standardization) is a worldwide |
| 4964 |
federation of national standards bodies (ISO member bodies). The work |
| 4965 |
of preparing International Standards is normally carried out through |
| 4966 |
ISO technical committees. Each member body interested in a subject for |
| 4967 |
which a technical committee has been established has the right to be |
| 4968 |
represented on that committee. International organizations, |
| 4969 |
governmental and non-governmental, in liaison with ISO, also take part |
| 4970 |
in the work. ISO collaborates closely with the International |
| 4971 |
Electrotechnical Commission (IEC) on all matters of electrotechnical |
| 4972 |
standardization. |
| 4973 |
|
| 4974 |
International Standards are drafted in accordance with the rules |
| 4975 |
given in the ISO/IEC Directives, Part 3. |
| 4976 |
|
| 4977 |
The main task of technical committees is to prepare International |
| 4978 |
Standards. Draft International Standards adopted by the technical |
| 4979 |
committees are circulated to the member bodies for voting. Publication |
| 4980 |
as an International Standard requires approval by at least 75\% of the |
| 4981 |
member bodies casting a vote. |
| 4982 |
|
| 4983 |
In other circumstances, particularly when there is an urgent market |
| 4984 |
requirement for such documents, a technical committee may decide to |
| 4985 |
publish other types of normative document: |
| 4986 |
\begin{itemize} |
| 4987 |
\item an ISO Publicly Available Specification (ISO/PAS) represents an |
| 4988 |
agreement between technical experts in an ISO working group and is |
| 4989 |
accepted for publication if it is approved by more than 50\% of the |
| 4990 |
members of the parent committee casting a vote; |
| 4991 |
|
| 4992 |
\item an ISO Technical Specification (ISO/TS) represents an agreement |
| 4993 |
between the members of a technical committee and is accepted for |
| 4994 |
publication if it is approved by 2/3 of the members of the committee |
| 4995 |
casting a vote. |
| 4996 |
\end{itemize} |
| 4997 |
|
| 4998 |
An ISO/PAS or ISO/TS is reviewed every three years with a view to |
| 4999 |
deciding whether it can be transformed into an International Standard. |
| 5000 |
\par |
| 5001 |
|
| 5002 |
|
| 5003 |
%</trfwd1> |
| 5004 |
%<*iso> |
| 5005 |
% \end{macrocode} |
| 5006 |
% |
| 5007 |
% |
| 5008 |
% \begin{macro}{\trfwdbpi} |
| 5009 |
% \begin{macro}{\trfwdbpii} |
| 5010 |
% \changes{v2.1}{1999/03/19}{Removed trfwdbpii command} |
| 5011 |
% Required texts for a technical report foreword. |
| 5012 |
% Use as: |\trfwdbpii{|\meta{application field}|}|. |
| 5013 |
% \begin{macrocode} |
| 5014 |
\newcommand{\trfwdbpi}{\input{trfwd1}} |
| 5015 |
\newcommand{\trfwdbpii}[1]{% |
| 5016 |
\ClassError{iso}{The \protect\trfwdpbii\space command has been removed}% |
| 5017 |
{Type <return> to proceed, and change your source file before |
| 5018 |
running LaTeX again.} |
| 5019 |
} |
| 5020 |
% \end{macrocode} |
| 5021 |
% \end{macro} |
| 5022 |
% \end{macro} |
| 5023 |
% |
| 5024 |
% \begin{macro}{\intropatents} |
| 5025 |
% |\intropatents| is the boilerplate for the last Introduction |
| 5026 |
% paragraph dealing with potential additional patent rights. |
| 5027 |
% \changes{v2.3}{2001/07/06}{Added \cs{fwdpatents} macro} |
| 5028 |
% \changes{v2.3}{2001/08/29}{Changed \cs{fwdpatents} macro} |
| 5029 |
% \changes{v2.3}{2002/01/10}{Changed \cs{fwdpatents} macro to \cs{intropatents}} |
| 5030 |
% \begin{macrocode} |
| 5031 |
\newcommand{\intropatents}{\par |
| 5032 |
Attention is drawn to the possibility that some of the elements of this |
| 5033 |
document may be the subject of patent rights |
| 5034 |
other than those mentioned above. |
| 5035 |
ISO [and/or] IEC shall not be held responsible |
| 5036 |
for identifying any or all such patent rights.\par} |
| 5037 |
|
| 5038 |
% \end{macrocode} |
| 5039 |
% \end{macro} |
| 5040 |
% |
| 5041 |
% \begin{macro}{\fwdnopatents} |
| 5042 |
% |\fwdnopatents| is the boilerplate for the Foreword |
| 5043 |
% paragraph dealing with potential patent rights. |
| 5044 |
% \changes{v2.3}{2001/08/29}{Added \cs{fwdnopatents} macro} |
| 5045 |
% \begin{macrocode} |
| 5046 |
\newcommand{\fwdnopatents}{\par |
| 5047 |
Attention is drawn to the possibility that some of the elements of this |
| 5048 |
document may be the subject of patent rights. |
| 5049 |
ISO shall not be held responsible |
| 5050 |
for identifying any or all such patent rights.\par} |
| 5051 |
|
| 5052 |
% \end{macrocode} |
| 5053 |
% \end{macro} |
| 5054 |
% |
| 5055 |
% |
| 5056 |
% \begin{macro}{\normrefbp} |
| 5057 |
% The required text for the introduction |
| 5058 |
% of the normative references clause. Use as: |
| 5059 |
% |\normrefbp{|\meta{standard identifier}|}| |
| 5060 |
% \changes{v2}{1997/11/30}{\cs{normrefbp} boilerplate modified} |
| 5061 |
% \begin{macrocode} |
| 5062 |
\newcommand{\normrefbp}[1]{% |
| 5063 |
|
| 5064 |
The following normative documents contain provisions which, through |
| 5065 |
reference in this text, constitute provisions of this #1. |
| 5066 |
For dated references, subsequent amendments to, or revisions of, |
| 5067 |
any of these publications do not apply. |
| 5068 |
However, parties |
| 5069 |
to agreements based on this #1 |
| 5070 |
are encouraged to investigate the possibility of applying |
| 5071 |
the most recent editions of the normative documents indicated below. |
| 5072 |
For undated references, the latest edition of the normative |
| 5073 |
document referred to applies. |
| 5074 |
Members of ISO and IEC maintain registers of currently |
| 5075 |
valid International Standards. |
| 5076 |
|
| 5077 |
} |
| 5078 |
% \end{macrocode} |
| 5079 |
% \end{macro} |
| 5080 |
% |
| 5081 |
% |
| 5082 |
% \section{Initialization} \label{sec:init} |
| 5083 |
% |
| 5084 |
% \subsection{Words and phrases} |
| 5085 |
% |
| 5086 |
% \begin{macro}{\annexname} |
| 5087 |
% \begin{macro}{\bibname} |
| 5088 |
% \begin{macro}{\contentsname} |
| 5089 |
% \begin{macro}{\defname} |
| 5090 |
% \begin{macro}{\symname} |
| 5091 |
% \begin{macro}{\abbname} |
| 5092 |
% \begin{macro}{\defabbname} |
| 5093 |
% \begin{macro}{\defsymname} |
| 5094 |
% \begin{macro}{\defsymabbname} |
| 5095 |
% \begin{macro}{\fcandaname} |
| 5096 |
% \begin{macro}{\forewordname} |
| 5097 |
% \begin{macro}{\indexname} |
| 5098 |
% \begin{macro}{\informativename} |
| 5099 |
% \begin{macro}{\introductionname} |
| 5100 |
% \begin{macro}{\normativename} |
| 5101 |
% \begin{macro}{\normrefsname} |
| 5102 |
% \begin{macro}{\scopename} |
| 5103 |
% \begin{macro}{\sectionname} |
| 5104 |
% \begin{macro}{\symabbname} |
| 5105 |
% This document class is for documents prepared in the English language. |
| 5106 |
% To prepare a version for another language, various English words |
| 5107 |
% and phrases must |
| 5108 |
% be replaced. The English elements that require replacement are |
| 5109 |
% defined below in command names. |
| 5110 |
% |
| 5111 |
% This list is for titles of document sections. |
| 5112 |
% |
| 5113 |
% \changes{v2.1}{1999/02/15}{Changed defname, defabbname, defsymname, defsymabbname} |
| 5114 |
% \begin{macrocode} |
| 5115 |
\newcommand{\abbname}{Abbreviations} |
| 5116 |
\newcommand{\annexname}{Annex} |
| 5117 |
\newcommand{\bibname}{Bibliography} |
| 5118 |
\newcommand{\contentsname}{Contents} |
| 5119 |
\newcommand{\defname}{Terms and definitions} |
| 5120 |
\newcommand{\defabbname}{Terms, definitions, and abbreviations} |
| 5121 |
\newcommand{\defsymname}{Terms, definitions, and symbols} |
| 5122 |
\newcommand{\defsymabbname}{Terms, definitions, abbreviations, and symbols} |
| 5123 |
\newcommand{\fcandaname}{Fundamental concepts and assumptions} |
| 5124 |
\newcommand{\forewordname}{Foreword} |
| 5125 |
\newcommand{\indexname}{Index} |
| 5126 |
\newcommand{\informativename}{informative} |
| 5127 |
\newcommand{\introductionname}{Introduction} |
| 5128 |
\newcommand{\normativename}{normative} |
| 5129 |
\newcommand{\normrefsname}{Normative references} |
| 5130 |
\newcommand{\scopename}{Scope} |
| 5131 |
\newcommand{\sectionname}{Section} |
| 5132 |
\newcommand{\symname}{Symbols} |
| 5133 |
\newcommand{\symabbname}{Symbols and abbreviations} |
| 5134 |
% \end{macrocode} |
| 5135 |
% \end{macro} |
| 5136 |
% \end{macro} |
| 5137 |
% \end{macro} |
| 5138 |
% \end{macro} |
| 5139 |
% \end{macro} |
| 5140 |
% \end{macro} |
| 5141 |
% \end{macro} |
| 5142 |
% \end{macro} |
| 5143 |
% \end{macro} |
| 5144 |
% \end{macro} |
| 5145 |
% \end{macro} |
| 5146 |
% \end{macro} |
| 5147 |
% \end{macro} |
| 5148 |
% \end{macro} |
| 5149 |
% \end{macro} |
| 5150 |
% \end{macro} |
| 5151 |
% \end{macro} |
| 5152 |
% \end{macro} |
| 5153 |
% \end{macro} |
| 5154 |
% |
| 5155 |
% \begin{macro}{\copyrightname} |
| 5156 |
% \begin{macro}{\examplename} |
| 5157 |
% \begin{macro}{\figurename} |
| 5158 |
% \begin{macro}{\inscopename} |
| 5159 |
% \begin{macro}{\ISname} |
| 5160 |
% \begin{macro}{\listannexname} |
| 5161 |
% \begin{macro}{\listfigurename} |
| 5162 |
% \begin{macro}{\listtablename} |
| 5163 |
% \begin{macro}{\notename} |
| 5164 |
% \begin{macro}{\outofscopename} |
| 5165 |
% \begin{macro}{\pagename} |
| 5166 |
% \begin{macro}{\tablename} |
| 5167 |
% \begin{macro}{\tbpname} |
| 5168 |
% |
| 5169 |
% These are the names and phrases used for general elements. |
| 5170 |
% |
| 5171 |
% \changes{v2}{1997/11/30}{\cs{examplesname} and \cs{notesname} deleted} |
| 5172 |
% \changes{v2.3}{2001/07/06}{Additional forms of \cs{ISname}} |
| 5173 |
% \begin{macrocode} |
| 5174 |
\newcommand{\copyrightname}{ISO} |
| 5175 |
\newcommand{\examplename}{EXAMPLE} |
| 5176 |
%%%\newcommand{\examplesname}{EXAMPLES} |
| 5177 |
\newcommand{\figurename}{Figure} |
| 5178 |
\newcommand{\inscopename}{The following are within the scope of this } |
| 5179 |
\newcommand{\ISname}{INTERNATIONAL STANDARD} |
| 5180 |
\iffdisstandard\renewcommand{\ISname}{FINAL DRAFT INTERNATIONAL STANDARD}\fi |
| 5181 |
\ifdisstandard\renewcommand{\ISname}{DRAFT INTERNATIONAL STANDARD}\fi |
| 5182 |
\ifcdstandard\renewcommand{\ISname}{COMMITTEE DRAFT}\fi |
| 5183 |
\ifwdstandard\renewcommand{\ISname}{WORKING DRAFT}\fi |
| 5184 |
\iftechrep\renewcommand{\ISname}{TECHNICAL REPORT}\fi |
| 5185 |
\iftechspec\renewcommand{\ISname}{TECHNICAL SPECIFICATION}\fi |
| 5186 |
\ifpaspec\renewcommand{\ISname}{PUBLICLY AVAILABLE SPECIFICATION}\fi |
| 5187 |
\ifotherdoc\renewcommand{\ISname}{}\fi |
| 5188 |
\newcommand{\listannexname}{Annexes} |
| 5189 |
\newcommand{\listfigurename}{Figures} |
| 5190 |
\newcommand{\listtablename}{Tables} |
| 5191 |
\newcommand{\notename}{NOTE} |
| 5192 |
%%%\newcommand{\notesname}{NOTES} |
| 5193 |
\newcommand{\outofscopename}{The following are outside the scope of this } |
| 5194 |
\newcommand{\pagename}{Page} |
| 5195 |
\newcommand{\tablename}{Table} |
| 5196 |
\newcommand{\tbpname}{To be published.} |
| 5197 |
% \end{macrocode} |
| 5198 |
% \end{macro} |
| 5199 |
% \end{macro} |
| 5200 |
% \end{macro} |
| 5201 |
% \end{macro} |
| 5202 |
% \end{macro} |
| 5203 |
% \end{macro} |
| 5204 |
% \end{macro} |
| 5205 |
% \end{macro} |
| 5206 |
% \end{macro} |
| 5207 |
% \end{macro} |
| 5208 |
% \end{macro} |
| 5209 |
% \end{macro} |
| 5210 |
% \end{macro} |
| 5211 |
% |
| 5212 |
% \begin{macro}{\annexrefname} |
| 5213 |
% \begin{macro}{\clauserefname} |
| 5214 |
% \begin{macro}{\examplerefname} |
| 5215 |
% \begin{macro}{\figurerefname} |
| 5216 |
% \begin{macro}{\noterefname} |
| 5217 |
% \begin{macro}{\tablerefname} |
| 5218 |
% \begin{macro}{\pagerefname} |
| 5219 |
% These are the names for referenced document elements. Except when |
| 5220 |
% starting a sentence or referring to a figure, references to document |
| 5221 |
% elements start with |
| 5222 |
% a lower case letter. |
| 5223 |
% \changes{v2}{1997/11/30}{\cs{figurename} changed to print Figure} |
| 5224 |
% \changes{v2}{1997/11/30}{\cs{tablerefname} changed to print Table} |
| 5225 |
% \changes{v2}{1997/11/30}{Added \cs{noterefname} command} |
| 5226 |
% \changes{v2.3}{2001/07/06}{Added \cs{pagerefname} command} |
| 5227 |
% \begin{macrocode} |
| 5228 |
\newcommand{\annexrefname}{annex} |
| 5229 |
\newcommand{\clauserefname}{clause} |
| 5230 |
\newcommand{\examplerefname}{example} |
| 5231 |
\newcommand{\figurerefname}{Figure} |
| 5232 |
\newcommand{\noterefname}{note} |
| 5233 |
\newcommand{\tablerefname}{Table} |
| 5234 |
\newcommand{\pagerefname}{page} |
| 5235 |
% \end{macrocode} |
| 5236 |
% \end{macro} |
| 5237 |
% \end{macro} |
| 5238 |
% \end{macro} |
| 5239 |
% \end{macro} |
| 5240 |
% \end{macro} |
| 5241 |
% \end{macro} |
| 5242 |
% \end{macro} |
| 5243 |
% |
| 5244 |
% \begin{macro}{\abstractname} |
| 5245 |
% \begin{macro}{\appendixname} |
| 5246 |
% \begin{macro}{\chaptername} |
| 5247 |
% \begin{macro}{\partname} |
| 5248 |
% \begin{macro}{\refname} |
| 5249 |
% These names are used in the standard \LaTeX\ classes but are not |
| 5250 |
% applicable in this class. We just make them null. |
| 5251 |
% \begin{macrocode} |
| 5252 |
\newcommand{\abstractname}{} |
| 5253 |
\newcommand{\appendixname}{} |
| 5254 |
\newcommand{\chaptername}{} |
| 5255 |
\newcommand{\partname}{} |
| 5256 |
\newcommand{\refname}{} |
| 5257 |
% \end{macrocode} |
| 5258 |
% \end{macro} |
| 5259 |
% \end{macro} |
| 5260 |
% \end{macro} |
| 5261 |
% \end{macro} |
| 5262 |
% \end{macro} |
| 5263 |
% |
| 5264 |
% \subsection{Date} |
| 5265 |
% |
| 5266 |
% \begin{macro}{\today} |
| 5267 |
% This macro uses the \TeX\ primitives |\month|, |\day| and |\year| |
| 5268 |
% to provide the date of the \LaTeX-run. |
| 5269 |
% \begin{macrocode} |
| 5270 |
\newcommand{\today}{\ifcase\month\or |
| 5271 |
January\or February\or March\or April\or May\or June\or |
| 5272 |
July\or August\or September\or October\or November\or December\fi |
| 5273 |
\space\number\day, \number\year} |
| 5274 |
% \end{macrocode} |
| 5275 |
% \end{macro} |
| 5276 |
% |
| 5277 |
% \subsection{Two column mode} |
| 5278 |
% |
| 5279 |
% \begin{macro}{\columnsep} |
| 5280 |
% This gives the distance between two columns in two column mode. |
| 5281 |
% \begin{macrocode} |
| 5282 |
\setlength\columnsep{10\p@} |
| 5283 |
% \end{macrocode} |
| 5284 |
% \end{macro} |
| 5285 |
% |
| 5286 |
% \begin{macro}{\columnseprule} |
| 5287 |
% This gives the width of the rule between two columns in two |
| 5288 |
% column mode. We have no visible rule. |
| 5289 |
% \begin{macrocode} |
| 5290 |
\setlength\columnseprule{0\p@} |
| 5291 |
% \end{macrocode} |
| 5292 |
% \end{macro} |
| 5293 |
% |
| 5294 |
% \subsection{The page style} |
| 5295 |
% We use the page style \pstyle{headings} by |
| 5296 |
% default and start with roman numbering for the |
| 5297 |
% front matter, this being reset to arabic by the title |
| 5298 |
% or first main matter section/clause. |
| 5299 |
% \begin{macrocode} |
| 5300 |
\pagestyle{headings} |
| 5301 |
\pagenumbering{roman} |
| 5302 |
% \end{macrocode} |
| 5303 |
% We set the sectional counters to zero and the |tocdepth| to |
| 5304 |
% one (clauses only listed). |
| 5305 |
% \begin{macrocode} |
| 5306 |
\setcounter{clause}{0} |
| 5307 |
\setcounter{annex}{0} |
| 5308 |
\setcounter{tocdepth}{1} |
| 5309 |
% \end{macrocode} |
| 5310 |
% |
| 5311 |
% |
| 5312 |
% \subsection{Single or double sided printing} |
| 5313 |
% |
| 5314 |
% |
| 5315 |
% We do not try to make each page as long as all the others, even |
| 5316 |
% though it is two-side printing. |
| 5317 |
% \begin{macrocode} |
| 5318 |
\@twosidetrue |
| 5319 |
\raggedbottom |
| 5320 |
% \end{macrocode} |
| 5321 |
% When the \Lopt{twocolumn} option was specified we call |
| 5322 |
% |\twocolumn| to activate this mode. We try to make each column as |
| 5323 |
% long as the others, but call |sloppy| to make our life easier. |
| 5324 |
% \begin{macrocode} |
| 5325 |
\if@twocolumn |
| 5326 |
\twocolumn |
| 5327 |
\sloppy |
| 5328 |
\flushbottom |
| 5329 |
% \end{macrocode} |
| 5330 |
% Normally we call |\onecolumn| to initiate typesetting in one |
| 5331 |
% column. |
| 5332 |
% \begin{macrocode} |
| 5333 |
\else |
| 5334 |
\onecolumn |
| 5335 |
\fi |
| 5336 |
% \end{macrocode} |
| 5337 |
% |
| 5338 |
% The end of the class definitions. |
| 5339 |
% \begin{macrocode} |
| 5340 |
%</iso> |
| 5341 |
% \end{macrocode} |
| 5342 |
% |
| 5343 |
% |
| 5344 |
% |
| 5345 |
% \section{The \file{askinc} package} \label{sec:askinc} |
| 5346 |
% |
| 5347 |
% This package provides an interactive `include' facility. It was developed |
| 5348 |
% by Phil Spiby of CADDETC, Leeds, United Kingdom in the late eighties. |
| 5349 |
% \begin{macrocode} |
| 5350 |
%<*inc> |
| 5351 |
% \end{macrocode} |
| 5352 |
% |
| 5353 |
% \begin{macro}{\infile} |
| 5354 |
% The |\infile{|\meta{file name}|}| command is a cross between the |
| 5355 |
% |\input| and |\include| commands. When this package is used, at |
| 5356 |
% runtime the user is asked to interactively specify a comma-seperated |
| 5357 |
% list of the names of |\infile|d files that are to be processed. In |
| 5358 |
% this sense it acts like the |\include| and |\includeonly| pair of |
| 5359 |
% commands. If no list is entered at the terminal (by hitting the |
| 5360 |
% \meta{RETURN} key) then all |\infile|d files are processed. In this |
| 5361 |
% sense it acts like the |\input| command. However, like the |\include| |
| 5362 |
% command, an |\infile|d file cannot contain any other |\infile|d file. |
| 5363 |
% |
| 5364 |
% \begin{macro}{temp} |
| 5365 |
% Define a counter \Lcount{temp} for general use within the include files. |
| 5366 |
% This is required to ensure that the contents of |\incfiles| is |
| 5367 |
% used and not |\incfiles| the string. |
| 5368 |
% \begin{macrocode} |
| 5369 |
\newcounter{temp} |
| 5370 |
% \end{macrocode} |
| 5371 |
% \end{macro} |
| 5372 |
% Now for the rest of the definition. |
| 5373 |
% \begin{macrocode} |
| 5374 |
\def\readinclude#1\endread{\gdef\myincludeonly{\includeonly{#1}}} |
| 5375 |
\long\def\stripspace#1 \nextspace{#1} |
| 5376 |
\typeout{Which files do you want processing ?} |
| 5377 |
\message{enter names (separated by commas) or <RET> for all.} |
| 5378 |
\message{}\global\read-1 to\incfiles |
| 5379 |
\if\incfiles\par\let\infile\input |
| 5380 |
\else\let\infile\include |
| 5381 |
\edef\incfiles{\expandafter\stripspace\incfiles\nextspace} |
| 5382 |
\expandafter\readinclude\incfiles\endread\myincludeonly\fi |
| 5383 |
% \end{macrocode} |
| 5384 |
% \end{macro} |
| 5385 |
% |
| 5386 |
% The end of the askinc package. |
| 5387 |
% \begin{macrocode} |
| 5388 |
%</inc> |
| 5389 |
% \end{macrocode} |
| 5390 |
% |
| 5391 |
% |
| 5392 |
% |
| 5393 |
% |
| 5394 |
% |
| 5395 |
% |
| 5396 |
% \bibliographystyle{alpha} |
| 5397 |
% |
| 5398 |
% \begin{thebibliography}{GMS94} |
| 5399 |
% |
| 5400 |
% \bibitem[GMS94]{GOOSSENS94} |
| 5401 |
% Michel Goossens, Frank Mittelbach, and Alexander Samarin. |
| 5402 |
% \newblock \emph{The LaTeX Companion}. |
| 5403 |
% \newblock Addison-Wesley Publishing Company, 1994. |
| 5404 |
% |
| 5405 |
% \bibitem[ISO97]{ISOD397} |
| 5406 |
% ISO/IEC Directives Part 3. |
| 5407 |
% \newblock \emph{Drafting and presentation of International |
| 5408 |
% Standards}, Third edition, 1997. |
| 5409 |
% |
| 5410 |
% \bibitem[ISO01]{ISOD201} |
| 5411 |
% ISO/IEC Directives Part 2. |
| 5412 |
% \newblock \emph{Rules for the structure and drafting |
| 5413 |
% of International Standards}, Fourth edition, 2001. |
| 5414 |
% |
| 5415 |
% \bibitem[Wil96]{PRW96i} |
| 5416 |
% Peter~R. Wilson. |
| 5417 |
% \newblock \emph{{LaTeX for standards: The LaTeX package files user manual}}. |
| 5418 |
% \newblock NIST Report NISTIR, June 1996. |
| 5419 |
% |
| 5420 |
% \end{thebibliography} |
| 5421 |
% |
| 5422 |
% |
| 5423 |
% \Finale |
| 5424 |
% |
| 5425 |
\endinput |
| 5426 |
|
| 5427 |
%% \CharacterTable |
| 5428 |
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 5429 |
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 5430 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 5431 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 5432 |
%% Dollar \$ Percent \% Ampersand \& |
| 5433 |
%% Acute accent \' Left paren \( Right paren \) |
| 5434 |
%% Asterisk \* Plus \+ Comma \, |
| 5435 |
%% Minus \- Point \. Solidus \/ |
| 5436 |
%% Colon \: Semicolon \; Less than \< |
| 5437 |
%% Equals \= Greater than \> Question mark \? |
| 5438 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 5439 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 5440 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 5441 |
%% Right brace \} Tilde \~} |
| 5442 |
|
| 5443 |
|
| 5444 |
|