| 1 |
\begin{filecontents}{nrcdoc.sty} |
| 2 |
|
| 3 |
\ProvidesPackage{nrcdoc}[2002/03/14 v2.3 collection of commands for |
| 4 |
NRC documentation] |
| 5 |
% |
| 6 |
\newcommand\checkNRCDOCdate[1]{\@ifl@ter{sty}{nrcdoc}{#1}% |
| 7 |
{}% |
| 8 |
{\ClassWarningNoLine{nrcdoc}{An old version of nrcdoc.sty has been detected% |
| 9 |
\MessageBreak % |
| 10 |
Please *delete* nrcdoc.sty, to allow LaTeX to |
| 11 |
\MessageBreak generate a new version}}% |
| 12 |
} |
| 13 |
|
| 14 |
% converted to a 2e package, rf 1998/04/05 |
| 15 |
% also added \Status and provision for dealing with pdf output |
| 16 |
% |
| 17 |
% usage: |
| 18 |
% <processor> "\def\Status{<value>} \input <file>" |
| 19 |
% |
| 20 |
% for example: |
| 21 |
% pdflatex "\def\Status{1} \input user_guide" |
| 22 |
% |
| 23 |
% (that's un*x syntax, but the intent is (i hope) plain |
| 24 |
\providecommand{\Status}{0} |
| 25 |
\ifcase\Status |
| 26 |
% default case (0): using ordinary latex |
| 27 |
\PackageInfo{nrcdoc}{Regular LaTeX run} |
| 28 |
\def\href#1#2{#2} |
| 29 |
\or |
| 30 |
% case 1: using pdflatex to generate a copy of the file |
| 31 |
\PackageInfo{nrcdoc}{Generating hypertext pdf output} |
| 32 |
\RequirePackage[pdftex]{hyperref} |
| 33 |
\fi |
| 34 |
|
| 35 |
\RequirePackage{url} |
| 36 |
\newcommand{\email}{\begingroup \urlstyle{tt}\Url} |
| 37 |
% |
| 38 |
\def\EmailURL#1{\href{mailto:#1}{\email{#1}}} |
| 39 |
\def\ctanaddr#1{\href{ftp://ctan.tug.org/tex-archive/#1}{\path{#1}}} |
| 40 |
|
| 41 |
|
| 42 |
\def\ps@myheadings{\let\@mkboth\@gobbletwo |
| 43 |
\def\@oddhead{{\sl\rightmark}\hfil \rm\thepage}% |
| 44 |
\def\@oddfoot{Nov. 2002\hfill}% |
| 45 |
\def\@evenhead{\rm \thepage\hfil\sl\leftmark}% |
| 46 |
\def\@evenfoot{Oct. 2002\hfill}% |
| 47 |
\def\sectionmark##1{}\def\subsectionmark##1{}} |
| 48 |
|
| 49 |
\pagestyle{myheadings} |
| 50 |
|
| 51 |
\markboth{{\rm NRC:} \LaTeX{} User Guide for Journals} |
| 52 |
{{\rm NRC:} \LaTeX{} User Guide for Journals} |
| 53 |
|
| 54 |
|
| 55 |
%% Dimensions: |
| 56 |
|
| 57 |
%% CT> to get holes at left without touching text, changed |
| 58 |
%% a. margins from -3.5pc to -2pc |
| 59 |
%% b. textheight from 23cm to 24cm |
| 60 |
%% CT> 28 SEP 00: makes no sense to use these margins for the version |
| 61 |
%% to be posted on CTAN. Dimens now revert to original |
| 62 |
%% value of -3.5pc for left/rightmargins. The |
| 63 |
%% textheight, however, will remain at 24cm. |
| 64 |
%% |
| 65 |
\setlength{\textwidth}{19cm} |
| 66 |
\setlength{\textheight}{24cm} |
| 67 |
\setlength{\oddsidemargin}{-3.5pc} |
| 68 |
\setlength{\evensidemargin}{-3.5pc} |
| 69 |
\setlength{\headsep}{12pt} |
| 70 |
\setlength{\topmargin}{-3.5pc} |
| 71 |
\setlength{\columnsep}{1.5pc} |
| 72 |
|
| 73 |
|
| 74 |
%% Something Robin doesn't like but it's handy for tables: |
| 75 |
|
| 76 |
%% Spacing commands for {tabular} (from TTN 2,3:10 -- Claudio |
| 77 |
%% Beccari): |
| 78 |
|
| 79 |
\newcommand\T{\rule{0pt}{2.6ex}} % = `top' strut |
| 80 |
\newcommand\B{\rule[-1.2ex]{0pt}{0pt}} % = `bottom' strut |
| 81 |
|
| 82 |
|
| 83 |
%% Fonts: |
| 84 |
|
| 85 |
\font\bfsl=cmssi17 |
| 86 |
\font\sectiontt=cmtt12 scaled\magstep1 |
| 87 |
\font\stt=cmtt10 scaled 850 |
| 88 |
|
| 89 |
|
| 90 |
%% Macros: |
| 91 |
|
| 92 |
\newcommand{\NRC}{{\small NRC}} |
| 93 |
\newcommand{\blash}{{\stt\char'134}} |
| 94 |
|
| 95 |
\newcommand{\creditline}{{\footnotesize |
| 96 |
Carleton Production Centre (9/00)}} |
| 97 |
|
| 98 |
%% def'n for \LaTeXe taken from TUGboat's tugboat.cmn file: |
| 99 |
\newcount\TestCount \newbox\TestBox |
| 100 |
\def\La{\TestCount=\the\fam \leavevmode L% |
| 101 |
\setbox\TestBox=\hbox{$\fam\TestCount\scriptstyle A$}% |
| 102 |
\kern-.5\wd\TestBox\raise.42ex\box\TestBox} |
| 103 |
\def\LaTeX{\La\kern-.15em\TeX} |
| 104 |
\def\LaTeXe{\LaTeX{}\kern.05em2$_{\textstyle\varepsilon}$} |
| 105 |
|
| 106 |
|
| 107 |
%% \let-statements: |
| 108 |
|
| 109 |
\let\en=\enspace |
| 110 |
\let\nl=\newline |
| 111 |
|
| 112 |
\end{filecontents} |
| 113 |
|
| 114 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 115 |
|
| 116 |
\documentclass{article} |
| 117 |
\usepackage{nrcdoc} |
| 118 |
|
| 119 |
% check we're running against a copy of nrcdoc.sty generated from this |
| 120 |
% copy of userguide.tex. first we check that we're running against |
| 121 |
% something that's modern enough to have the command for checking |
| 122 |
% |
| 123 |
\expandafter\ifx\csname checkNRCDOCdate\endcsname\relax |
| 124 |
\typeout{*** An old version of nrcdoc.sty has been detected} |
| 125 |
\typeout{*** Please *delete* nrcdoc.sty to allow LaTeX to generate a |
| 126 |
new version} |
| 127 |
\else |
| 128 |
% |
| 129 |
% we are using a recent enough version: use the checking command to |
| 130 |
% compare with the date in the \ProvidePackage command in the package; |
| 131 |
% the date here *must* be updated, in the standard latex format, in |
| 132 |
% parallel with the date in the package. |
| 133 |
% |
| 134 |
\checkNRCDOCdate{2001/11/15} |
| 135 |
\fi |
| 136 |
|
| 137 |
\begin{document} |
| 138 |
|
| 139 |
%% Titleblock: |
| 140 |
\twocolumn[ |
| 141 |
\begin{center} |
| 142 |
\bfsl National Research Council \\ |
| 143 |
\vspace{.75pc} |
| 144 |
Research Press \\ |
| 145 |
\vspace{.5pc} |
| 146 |
\Large\bf \LaTeX{} User Guide for Journals\footnotemark |
| 147 |
\end{center} |
| 148 |
|
| 149 |
\vspace{1pc} |
| 150 |
|
| 151 |
] |
| 152 |
|
| 153 |
\footnotetext{This document is available from your local CTAN site in |
| 154 |
\texttt{macros/latex/contrib/supported/nrc/} in both \texttt{.ps} |
| 155 |
and \texttt{.pdf} formats.} |
| 156 |
|
| 157 |
|
| 158 |
%% Section 1: |
| 159 |
\section{Basic coding} |
| 160 |
|
| 161 |
All \LaTeX{} documents must include these three commands: |
| 162 |
|
| 163 |
\begin{verbatim} |
| 164 |
\documentclass{...} |
| 165 |
... <-- `preamble' |
| 166 |
\begin{document} |
| 167 |
... <-- `body' |
| 168 |
... |
| 169 |
\end{document} |
| 170 |
\end{verbatim} |
| 171 |
|
| 172 |
\begin{enumerate} \itemsep=0pt |
| 173 |
\item The \verb|documentclass| must be specified, either with a |
| 174 |
generic package, such as \verb|article| or a specific |
| 175 |
package, such as \verb|nrc1|). |
| 176 |
|
| 177 |
\item Between the first two commands comes the material known as |
| 178 |
the `preamble', which includes additional packages (and their |
| 179 |
options), as well as any file-specific macros. |
| 180 |
|
| 181 |
\item Between the 2nd and 3rd commands comes the actual contents of |
| 182 |
the article --- known as the `body' of the file. |
| 183 |
\end{enumerate} |
| 184 |
|
| 185 |
\noindent Commands are usually of the following types: |
| 186 |
|
| 187 |
\begin{enumerate} \itemsep=0pt |
| 188 |
\item {\bf control sequences} begin with a backslash ( \blash\ ). |
| 189 |
|
| 190 |
\item {\bf environments} use matching \verb|\begin{...}| and\break |
| 191 |
\verb|\end{...}| commands (i.e., \verb|\begin{document}| must |
| 192 |
eventually be matched with \verb|\end{document}|). |
| 193 |
|
| 194 |
\item {\bf optional} arguments are within square brackets \verb|[...]| |
| 195 |
\end{enumerate} |
| 196 |
|
| 197 |
|
| 198 |
%% Section 2: |
| 199 |
\section{Document classes and options} |
| 200 |
|
| 201 |
\NRC{} journals are set either in full-width, using the \texttt{nrc1} |
| 202 |
class, or in 2-column format, using the \texttt{nrc2} document class. |
| 203 |
|
| 204 |
The following represent the options for both document classes. Note |
| 205 |
that most articles will {\bf not} require all of them; as well, some |
| 206 |
options are only for \texttt{nrc2}. |
| 207 |
|
| 208 |
\begin{verbatim} |
| 209 |
\documentclass[<options here>]{<class here>} |
| 210 |
author nrc1 |
| 211 |
PLUS usecmfonts OR nrc2 |
| 212 |
OR type1rest |
| 213 |
french |
| 214 |
nonumbib |
| 215 |
nrc1 only: leqno |
| 216 |
nrc2 only: reqno |
| 217 |
|
| 218 |
\end{verbatim} |
| 219 |
|
| 220 |
\newpage |
| 221 |
|
| 222 |
\noindent To combine options, insert a comma between each option: |
| 223 |
|
| 224 |
\begin{verbatim} |
| 225 |
\documentclass[type1rest,genTeX,nonumbib]{nrc2} |
| 226 |
\end{verbatim} |
| 227 |
|
| 228 |
The following sections describe the options available to both classes, |
| 229 |
and then those options which are specific to \texttt{nrc1} or |
| 230 |
\texttt{nrc2} only. Options specific to in-house production work are |
| 231 |
described separately; see section~\ref{inhouse}. |
| 232 |
|
| 233 |
|
| 234 |
%% Section 2.1: |
| 235 |
\subsection{Options for both classes} |
| 236 |
|
| 237 |
{\bf Note:} Do not load options or packages which are never accessed; |
| 238 |
their presence implies they are required and may cause unnecessary |
| 239 |
searches for coded material which is not, in fact, present. |
| 240 |
|
| 241 |
For the convenience of authors, the publicly available class files for |
| 242 |
authors have a number of options already automated: |
| 243 |
% |
| 244 |
\begin{verbatim} |
| 245 |
author,genTeX,type1rest,usecmfonts |
| 246 |
\end{verbatim} |
| 247 |
% |
| 248 |
Additionally, a number of in-house diagnostic messages are turned off, |
| 249 |
so as not to interfere with processing. Where a default selection is |
| 250 |
not appropriate, the following provides information on these options. |
| 251 |
|
| 252 |
|
| 253 |
\begin{description} \itemsep=0pt |
| 254 |
\item [\texttt{author}] |
| 255 |
This option selects a configuration appropriate for author use |
| 256 |
of the class; it is enabled by default when a |
| 257 |
publicly distributed copy of the class is loaded. |
| 258 |
|
| 259 |
The \texttt{author} option automatically invokes the |
| 260 |
\texttt{genTeX} option, as well as one of the two font |
| 261 |
options: \texttt{type1rest} or \texttt{usecmfonts}. See below |
| 262 |
for details. |
| 263 |
|
| 264 |
|
| 265 |
\item [{\tt genTeX}] |
| 266 |
|
| 267 |
By use of this option, you declare that you are using a |
| 268 |
generic/public domain version of \TeX{}; it {\bf must} be |
| 269 |
used in conjunction with one of \texttt{usecmfonts} and |
| 270 |
\texttt{type1rest} (see below). |
| 271 |
|
| 272 |
The \texttt{author} option automatically selects the |
| 273 |
\texttt{genTeX} option. |
| 274 |
|
| 275 |
|
| 276 |
\item [{\tt type1rest}] |
| 277 |
|
| 278 |
By use of this option, you declare that you have access to a |
| 279 |
PostScript printer or other interpreter, and may use ``basic'' |
| 280 |
PostScript fonts to make a rough approximation to those that |
| 281 |
will be used in the published paper. Do not use this option in |
| 282 |
combination with the \texttt{usecmfonts} option. |
| 283 |
|
| 284 |
If the \texttt{author} option has been selected, the class |
| 285 |
will automatically decide whether to use \texttt{usecmfonts} |
| 286 |
or \texttt{type1rest} by default. The automatic selection may |
| 287 |
be incorrect, but you may over-ride it by specifying the |
| 288 |
\texttt{type1rest} option. |
| 289 |
|
| 290 |
|
| 291 |
\item [{\tt usecmfonts}] |
| 292 |
|
| 293 |
By use of this option, you declare that you do not have the |
| 294 |
``basic'' PostScript fonts to make a rough approximation to |
| 295 |
those that will be used in the published paper: the \verb|cm| |
| 296 |
(\emph{Computer Modern}) fonts that this option selects are |
| 297 |
available in any generic/public domain \TeX{} distribution, so |
| 298 |
this option will always be available. Do not use this option |
| 299 |
in combination with the \texttt{type1rest} option. |
| 300 |
|
| 301 |
If the \texttt{author} option has been selected, the class |
| 302 |
will automatically decide whether to use \texttt{usecmfonts} |
| 303 |
or \texttt{type1rest} by default. The automatic selection may |
| 304 |
be incorrect, but you may over-ride it by specifying the |
| 305 |
\texttt{usecmfonts} option. |
| 306 |
|
| 307 |
|
| 308 |
\item [{\tt french}] |
| 309 |
|
| 310 |
For French-language articles.\label{frenchclassoption} It |
| 311 |
configures the \NRC{} document classes to print all the |
| 312 |
auto\-mated textual ele\-ments (in the author IDbox, for |
| 313 |
figures, tables, biblio\-graphies, etc.)\ in French as per |
| 314 |
\NRC{} speci\-fi\-cations. To be used in concert with: |
| 315 |
|
| 316 |
\begin{verbatim} |
| 317 |
\usepackage[english,french]{babel} |
| 318 |
\end{verbatim} |
| 319 |
|
| 320 |
See section~\ref{babelinfo} for details on using the |
| 321 |
\textsf{babel} package in all articles, regardless of |
| 322 |
language. For two-column bilingual texts, see |
| 323 |
section~\ref{bilingpream}. |
| 324 |
|
| 325 |
|
| 326 |
\item [{\tt nonumbib}] |
| 327 |
|
| 328 |
This option removes numbers (i.e., `labels') from |
| 329 |
\verb|\bibitem| entries; material is set with a hanging |
| 330 |
indent. The default is to have numbered bibliographic |
| 331 |
entries. |
| 332 |
\end{description} |
| 333 |
|
| 334 |
|
| 335 |
%% Section 2.2: |
| 336 |
\subsection{Options specific to only one class} |
| 337 |
|
| 338 |
\begin{description} \itemsep=0pt |
| 339 |
\item [{\tt leqno}] \hfill for \texttt{nrc1} only |
| 340 |
|
| 341 |
This option puts equation numbers to the left margin; |
| 342 |
default is to have them on the right. |
| 343 |
|
| 344 |
\item [{\tt reqno}] \hfill for \texttt{nrc2} only |
| 345 |
|
| 346 |
This option puts equation numbers to the right margin; |
| 347 |
default is to have them on the left. |
| 348 |
\end{description} |
| 349 |
|
| 350 |
\noindent One other difference between the packages relates to the |
| 351 |
position of the \verb|\maketitle| command. See |
| 352 |
page~\pageref{maketitle} for details. |
| 353 |
|
| 354 |
|
| 355 |
%% Section 3: |
| 356 |
\section{The preamble} |
| 357 |
|
| 358 |
The preamble area of the file should specify all packages and macros |
| 359 |
definitions (if any) used; macros in particular should not be defined |
| 360 |
within the body of the file. |
| 361 |
|
| 362 |
|
| 363 |
%% Section 3.1: |
| 364 |
\subsection{Useful packages} |
| 365 |
|
| 366 |
The following packages and their options are often necessary (but note |
| 367 |
that \textsf{babel} is necessary at all times). Note that package |
| 368 |
order can be significant, on occasion. In particular, it is |
| 369 |
recommended that graphics packages be loaded immediately after the |
| 370 |
document class. |
| 371 |
|
| 372 |
\begin{description} \itemsep=0pt |
| 373 |
\item [{\tt \blash usepackage\char`\{graphicx\char`\}}] |
| 374 |
|
| 375 |
Graphics (figures, illustrations,\break and so on) should be |
| 376 |
included using the standard \LaTeX{} \texttt{graphicx} |
| 377 |
package: use of this package permits portability across |
| 378 |
different implementations of \TeX{} (which itself has no |
| 379 |
graphics primitive commands). |
| 380 |
|
| 381 |
Your \TeX/\LaTeX{} system may offer documentation; otherwise |
| 382 |
see \textsl{The \LaTeX{} Graphics Companion\/} (see |
| 383 |
section~\ref{documentation}). |
| 384 |
|
| 385 |
Remember to specify the printer driver as a package option, |
| 386 |
if necessary (e.g., \verb|dvips|, \verb|dvipsone|, etc.). |
| 387 |
|
| 388 |
\item [{\tt \blash usepackage[figuresright]\char`\{rotating\char`\}}] |
| 389 |
|
| 390 |
\quad The \verb|rotating|\break package\footnote{For the |
| 391 |
NRC's production use, the standard distribution version of |
| 392 |
this file is currently under revision. Authors can proceed |
| 393 |
with the public version of \texttt{rotating.sty}.} is only |
| 394 |
required when tables or figures need to be placed in |
| 395 |
landscape (`sideways') position. It must be preceded by the |
| 396 |
\verb|graphicx| package. |
| 397 |
|
| 398 |
The \verb|figuresright| option ensures that rotated |
| 399 |
elements are oriented with the caption at the left margin of |
| 400 |
the regular page, in accord with \NRC{} style requirements. |
| 401 |
|
| 402 |
\item [{\tt \blash usepackage\char`\{amsmath\char`\}}] |
| 403 |
|
| 404 |
A great deal of additional functionality is provided with |
| 405 |
this package, and the \NRC{} document classes have been |
| 406 |
designed to work smoothly with it. Using \texttt{amsmath} |
| 407 |
automatically loads the following packages: \texttt{amstext}, |
| 408 |
\texttt{amsgen}, and \texttt{amsbsy}. The \texttt{amsmath} |
| 409 |
package is described in great detail in three documents: |
| 410 |
|
| 411 |
\begin{enumerate} \itemsep=0pt |
| 412 |
\item The revised version of chap.~8 of {\sl The \LaTeX{} |
| 413 |
Companion} is a good guide (see section~\ref{documentation} |
| 414 |
for details). As printed in the book, chap.~8 is out of |
| 415 |
date and should not be referenced. |
| 416 |
|
| 417 |
\item A useful set of documentation is available via the {\small |
| 418 |
AMS}'s web site. {\small URL} |
| 419 |
% \texttt text broken so it doesn't run into the margin and |
| 420 |
% disappear; would be better to use the url package, but... |
| 421 |
\texttt{http://www.ams.org/tex/ amslatex.html} offers a |
| 422 |
``Short Math Guide'', a set of frequently asked questions |
| 423 |
(with answers), as well as various ``Readme'' files. |
| 424 |
|
| 425 |
\item Current \LaTeX{} installations have a file |
| 426 |
\texttt{amsldoc}; it is also available via the {\small |
| 427 |
AMS} web site (see above). The material is essentially the |
| 428 |
same as the revised chap.~8 mentioned above, but the |
| 429 |
differences in presentation are sometimes useful to |
| 430 |
consider. |
| 431 |
\end{enumerate} |
| 432 |
|
| 433 |
\item [{\tt \blash usepackage\char`\{amssymb\char`\}}] |
| 434 |
|
| 435 |
This package automatically loads the |
| 436 |
\texttt{amsfonts} package. Together, they provide |
| 437 |
special characters and symbols frequently used by the |
| 438 |
mathematics and scientific communities. |
| 439 |
|
| 440 |
The \texttt{amsfonts} package provides access to the |
| 441 |
following font sets: Euler (Fraktur, Roman, Script, |
| 442 |
extensions); Computer Modern (math bold ital\-ic, symbol, |
| 443 |
extensions, in the smaller sizes); Cyrillic (lightfact, bold, |
| 444 |
italic, smallcaps); and the \texttt{msam} and \texttt{msbm} |
| 445 |
fonts, familiar to Rev\TeX{} users. |
| 446 |
|
| 447 |
|
| 448 |
\item [{\tt \blash usepackage\char`\{bm\char`\}}] |
| 449 |
|
| 450 |
This package simplifies the use of bold symbols and other |
| 451 |
objects in math mode. It defines a single command, |
| 452 |
\verb|\bm{...}|, which is used in math mode, and causes its |
| 453 |
argument to be typeset in the appropriate math bold font. |
| 454 |
See \verb|bm.sty| documentation for details.\label{bm} |
| 455 |
|
| 456 |
{\bf Note:} If a warning message about too many math |
| 457 |
alphabets arises, insert the following code {\bf above} the |
| 458 |
\verb|\usepackage{bm}| line: |
| 459 |
|
| 460 |
\begin{verbatim} |
| 461 |
\newcommand\hmmax{0} % default 3 |
| 462 |
\usepackage{bm} |
| 463 |
\end{verbatim} |
| 464 |
% |
| 465 |
See \verb|bm.sty| documentation for details. |
| 466 |
|
| 467 |
|
| 468 |
\item [{\tt \blash usepackage\char`\{cite\char`\}}] |
| 469 |
|
| 470 |
Authors should use this package, which enhances the default |
| 471 |
options available in \LaTeX{} (e.g., \verb|\citen| prints |
| 472 |
cross-references without brackets). See \verb|cite.sty| |
| 473 |
documentation for additional features. |
| 474 |
|
| 475 |
\item [{\tt \blash usepackage[...,...]\char`\{babel\char`\}}] |
| 476 |
|
| 477 |
The \textsf{babel}\label{babelinfo} package is used to manage |
| 478 |
the typesetting requirements of multilingual documents. |
| 479 |
Different cultures have different typesetting conventions, |
| 480 |
and \textsf{babel} enables the \LaTeX{} user to apply the |
| 481 |
appropriate conventions to the different parts of a |
| 482 |
multilingual document. Since \NRC{} publications are |
| 483 |
typically multilingual, \textsf{babel} has an important |
| 484 |
r\^ole to play in their preparation. |
| 485 |
|
| 486 |
\begin{itemize} \itemsep=0pt |
| 487 |
\item English-language articles have a French-language |
| 488 |
`Resum\'e', which requires French hyphenation and |
| 489 |
punctuation. Insert the following line --- and notice the |
| 490 |
order of the language options: |
| 491 |
|
| 492 |
\begin{verbatim} |
| 493 |
\usepackage[french,english]{babel} |
| 494 |
\end{verbatim} |
| 495 |
|
| 496 |
\item French-language articles have an English-language |
| 497 |
`Abstract', which requires English hyphenation and |
| 498 |
punctuation. Insert the following line and again notice |
| 499 |
the order of the language |
| 500 |
options:\footnote{\textsf{Babel}, like so many computer |
| 501 |
programs, believes that the last should be first, and |
| 502 |
therefore proceeds backwards through its options, thus |
| 503 |
making the last one typed the one selected first.} |
| 504 |
|
| 505 |
\begin{verbatim} |
| 506 |
\usepackage[english,french]{babel} |
| 507 |
\end{verbatim} |
| 508 |
|
| 509 |
\textbf{In addition to} the \textsf{babel} package, |
| 510 |
French-language articles must \textbf{also} include the |
| 511 |
\verb|french| option to the document class, as mentioned |
| 512 |
earlier in section~\ref{frenchclassoption}. |
| 513 |
|
| 514 |
The \textsf{babel} package invokes French hyphenation |
| 515 |
patterns\footnote{Use \texttt{\blash-} to signal additional |
| 516 |
potential hyphenation points.} as well as some of the |
| 517 |
(European) French typesetting conventions (e.g., space before |
| 518 |
some punctuation). |
| 519 |
\end{itemize} |
| 520 |
\end{description} |
| 521 |
|
| 522 |
\noindent These packages and others can be found either on your |
| 523 |
machine or can be acquired from {\small CTAN}, the Comprehensive |
| 524 |
\TeX{} Archive Network; use the search facilities at |
| 525 |
\url{www.ctan.org/search}. The \NRC{} document classes and this |
| 526 |
documentation can be found on {\small CTAN} in |
| 527 |
\url{macros/latex/contrib/supported/nrc/}. |
| 528 |
|
| 529 |
|
| 530 |
%% Section 3.2: |
| 531 |
\subsection{Additional macros} |
| 532 |
|
| 533 |
\begin{enumerate} \itemsep=0pt |
| 534 |
\item Avoid creating too many personal macros, which may conflict |
| 535 |
with the \NRC{} document classes (and possibly with other |
| 536 |
packages) and thereby slow in-house processing of files. |
| 537 |
Where these are used, macros not actively invoked in the |
| 538 |
file should be pruned out. |
| 539 |
|
| 540 |
\item Whenever possible, define your macros using the \LaTeX{} |
| 541 |
\verb|\newcommand| mechanism, rather than the \TeX{} primitive |
| 542 |
\verb|\def|; this way, \LaTeX{} itself will detect any name |
| 543 |
clashes you may innocently introduce. |
| 544 |
|
| 545 |
\item Move all non-\NRC{} preamble material, including author |
| 546 |
macros, to the end of the file (after \verb|\end{document}|), |
| 547 |
rather than deleting it. Reintroduce only what is needed. |
| 548 |
|
| 549 |
\item Where author macros are needed, they should all be gathered |
| 550 |
at the top of the file in the preamble area, after all |
| 551 |
packages have been loaded, and clearly marked as being author |
| 552 |
macros:\label{authmacros} |
| 553 |
|
| 554 |
\begin{verbatim} |
| 555 |
%%%%%%%% Author macros begin: |
| 556 |
... |
| 557 |
... |
| 558 |
%%%%%%%% Author macros end |
| 559 |
\end{verbatim} |
| 560 |
|
| 561 |
\item Similarly, move all \verb|\let| statements to the preamble |
| 562 |
area, where they are immediately visible to the editor. |
| 563 |
\end{enumerate} |
| 564 |
|
| 565 |
|
| 566 |
%% Section 4: |
| 567 |
\section{The body} |
| 568 |
|
| 569 |
All articles have the following elements: |
| 570 |
|
| 571 |
\begin{enumerate} \itemsep=0pt |
| 572 |
\item titleblock and author information |
| 573 |
|
| 574 |
\item abstract and resum\'e |
| 575 |
|
| 576 |
\item headings and subheadings |
| 577 |
|
| 578 |
\item text |
| 579 |
|
| 580 |
\item bibliography |
| 581 |
\end{enumerate} |
| 582 |
|
| 583 |
\noindent Most articles also include some or all of the following |
| 584 |
elements: |
| 585 |
|
| 586 |
\begin{enumerate} \itemsep=0pt |
| 587 |
\item in-line and display mathematics |
| 588 |
|
| 589 |
\item enumerated lists |
| 590 |
|
| 591 |
\item tables |
| 592 |
|
| 593 |
\item figures and illustrations (e.g., PostScript) |
| 594 |
|
| 595 |
\item footnotes |
| 596 |
|
| 597 |
\item offset quoted passages |
| 598 |
|
| 599 |
\item acknowledgements |
| 600 |
\end{enumerate} |
| 601 |
|
| 602 |
|
| 603 |
%% Section 4.1: |
| 604 |
\subsection{Titleblock and author information} |
| 605 |
|
| 606 |
All elements of the titleblock are taken care of via macros, some of |
| 607 |
which have optional arguments, to allow for variant forms and for |
| 608 |
`labelling' of bits of text (for cross-referencing). |
| 609 |
|
| 610 |
\begin{description} \itemsep=0pt |
| 611 |
\item [{\tt \blash title\char`\{...\char`\}}] \mbox{} |
| 612 |
|
| 613 |
Lines will be broken automatically; line breaks can be forced |
| 614 |
by using \verb|\\|. |
| 615 |
|
| 616 |
For sub- and superscripts, use \verb|\textsubscript| and |
| 617 |
\verb|\textsuperscript|, respectively. |
| 618 |
|
| 619 |
Notes on the title may be inserted using the standard \LaTeX{} |
| 620 |
command \verb|\thanks|. The text will print in the IDbox, and |
| 621 |
numbering will be synchronised with that of the IDbox notes. |
| 622 |
|
| 623 |
\item [{\tt \blash author[...]\char`\{Author1\char`\}}] \mbox{} |
| 624 |
|
| 625 |
{\sl Author1\/}'s name as it will appear in the titleblock |
| 626 |
and the right running head. The optional argument allows a |
| 627 |
different form of the author's name to appear in the IDbox at |
| 628 |
page-bottom (e.g., full first name in titleblock, but |
| 629 |
initials only in IDbox). |
| 630 |
|
| 631 |
Each author is specified separately. The document class will |
| 632 |
automatically insert `and' (Fr.\ `et') between the last and |
| 633 |
second-last names, both in the titleblock and in the IDbox |
| 634 |
area. |
| 635 |
|
| 636 |
\item [{\tt \blash address[label1]\char`\{addr1\char`\}}] \mbox{} |
| 637 |
|
| 638 |
Address for {\sl Author1\/}; this should be immediately below |
| 639 |
the \verb|\author| entry. Each author's address is specified |
| 640 |
separately. If no address is specified before the next author |
| 641 |
entry, the immediately preceding address is used (an address |
| 642 |
for the first author {\bf must} therefore be specified). |
| 643 |
|
| 644 |
The optional \verb|[label1]| argument (any sequence of |
| 645 |
letters can be used) does not print anything; it makes it |
| 646 |
possible to relate one address to several authors (this is |
| 647 |
similar to \LaTeX's \verb|\label| and \verb|\ref| commands). |
| 648 |
\end{description} |
| 649 |
|
| 650 |
Below is an example of using the author-address cross-referencing |
| 651 |
macros. Notice that \verb|\address| always refers to the immediately |
| 652 |
preceding \verb|\author|. |
| 653 |
|
| 654 |
\begin{description} \itemsep=0pt |
| 655 |
\item \verb|\author{Author1}|\quad defines first author |
| 656 |
|
| 657 |
\item \verb|\address[label1]{Address1}|\quad defines an address for |
| 658 |
{\sl Author1\/} and tags it as \verb|[label1]| |
| 659 |
|
| 660 |
\item \verb|\author{Author2}|\quad this author doesn't have an |
| 661 |
address, so the IDbox will use the immediately preceeding |
| 662 |
author's address (i.e., {\sl Address1} |
| 663 |
|
| 664 |
\item \verb|\author{Author3}|\quad defines a third author |
| 665 |
|
| 666 |
\item \verb|\address{Address3}|\quad third author is at an address |
| 667 |
of their own |
| 668 |
|
| 669 |
\item \verb|\author{Author4}|\quad defines a fourth author |
| 670 |
|
| 671 |
\item \verb|\address[label1]|\quad fourth author uses the address |
| 672 |
associated with \verb|[label1]|, above |
| 673 |
|
| 674 |
The net result (assuming the \verb|breakaddress| option has |
| 675 |
been used) is the following: |
| 676 |
|
| 677 |
{\bf Author1, Author2, and Author4.} \\ |
| 678 |
Address1. |
| 679 |
|
| 680 |
{\bf Author3.} \\ |
| 681 |
Address3. |
| 682 |
|
| 683 |
\item [{\sl IDbox address notes}] \mbox{} |
| 684 |
|
| 685 |
Author addresses can be augmented with additional information |
| 686 |
via numbered notes, which appear below all the authors' names |
| 687 |
and main addresses. |
| 688 |
|
| 689 |
\begin{description} |
| 690 |
\item [{\tt \blash correspond\char`\{...\char`\}}] \mbox{} |
| 691 |
|
| 692 |
Usually one author is selected from all co-authors to deal |
| 693 |
with correspondence. Insert the author's e-mail address |
| 694 |
into the argument. The following text will be prepended: |
| 695 |
`Corresponding author (email: ).' and in French, |
| 696 |
`Auteur correspondant (courriel\,: )'. |
| 697 |
|
| 698 |
|
| 699 |
\item [{\tt \blash present\char`\{...\char`\}}] \mbox{} |
| 700 |
|
| 701 |
Authors may wish to indicate a temporary or current |
| 702 |
address, different from the main one provided via |
| 703 |
\verb|\address|. This note will begin with the text: |
| 704 |
`Present address:' (Fr.\ `Adresse actuelle\,:'). |
| 705 |
|
| 706 |
|
| 707 |
\item [\mbox{}{\tt \blash AddressNote\char`\{...\char`\}}] |
| 708 |
Obsolete. See \verb|\IDnote|, below. |
| 709 |
|
| 710 |
|
| 711 |
\item [{\tt \blash IDnote\char`\{...\char`\}}] \mbox{} |
| 712 |
|
| 713 |
Allows the user to input any information they wish, with |
| 714 |
no automatic text being added (formerly called |
| 715 |
\verb|\AddressNote|, which implied a more restricted |
| 716 |
use). Both macros are available but \verb|\IDnote| gives |
| 717 |
the user a more generic macro name to remember and use for |
| 718 |
any type of note within the IDbox. |
| 719 |
\end{description} |
| 720 |
|
| 721 |
\item [{\tt \blash dedication\char`\{...\char`\}}] \mbox{} |
| 722 |
|
| 723 |
Will print a dedicatory text (in italics) in the IDbox area, |
| 724 |
between the `Received/Accepted' and the author/address |
| 725 |
sections. |
| 726 |
|
| 727 |
\item [{\tt \blash abbreviations\char`\{...\char`\}}] \mbox{} |
| 728 |
|
| 729 |
Automatic printing of the word `\textit{Abbrevia\-tions: \/}' |
| 730 |
(Fr. `\textit{Abbr\'eviations\,: \/}'), followed by text |
| 731 |
input inside the argument (the curly braces). Forced line |
| 732 |
breaks (via \verb|\\|) can be used to separate entries. |
| 733 |
|
| 734 |
\item [{\tt \blash shortauthor\char`\{author list\char`\}}] |
| 735 |
\mbox{} |
| 736 |
|
| 737 |
Shortened list of author names for use in the right running |
| 738 |
header. This macro must be present (its absence generates an |
| 739 |
error message), and should appear below all the |
| 740 |
author-address information |
| 741 |
|
| 742 |
\newpage |
| 743 |
|
| 744 |
\item [{\tt \blash maketitle}] \mbox{}\label{maketitle} |
| 745 |
|
| 746 |
This command activates the titleblock commands. |
| 747 |
|
| 748 |
The \verb|nrc1| class requires this command to appear |
| 749 |
\textbf{before} the abstract/resum\'e block of text. |
| 750 |
|
| 751 |
The \verb|nrc2| class requires this command to appear |
| 752 |
\textbf{after} the abstract/resum\'e block of text. |
| 753 |
|
| 754 |
\item [{\tt \blash maketitle*}] \hfill [an \NRC\ macro]\mbox{} |
| 755 |
|
| 756 |
With the \verb|nrc2| class only, when Abstracts/Resumes spill |
| 757 |
over to a second page, a horizontal rule may be needed before |
| 758 |
the regular article text begins. To generate this rule use |
| 759 |
\verb|\maketitle*| instead of \verb|\maketitle|. |
| 760 |
\end{description} |
| 761 |
|
| 762 |
|
| 763 |
%% Section 4.2: |
| 764 |
\subsection{Abstracts/R\'esum\'es} |
| 765 |
|
| 766 |
The syntax is the normal one expected for environments: a matched set |
| 767 |
of either \verb|{abstract}| or \verb|{resume}|: |
| 768 |
|
| 769 |
\begin{description} \itemsep=0pt |
| 770 |
\item [{\tt \blash begin\char`\{abstract\char`\}\ ... \blash |
| 771 |
end\char`\{abstract\char`\}}] \hfill English |
| 772 |
|
| 773 |
\item [{\tt \blash begin\char`\{resume\char`\}\ ... \blash |
| 774 |
end\char`\{resume\char`\}}] \hfill French |
| 775 |
\end{description} |
| 776 |
|
| 777 |
\noindent Some journals may require the following, which should appear |
| 778 |
\textbf{inside} the abstract environments: |
| 779 |
|
| 780 |
\begin{description} \itemsep=0pt |
| 781 |
\item [{\tt \blash keywords\char`\{...\char`\}}] \hfill [an \NRC\ |
| 782 |
macro]\mbox{} |
| 783 |
|
| 784 |
Automatically prints `\textit{Keywords:}', followed by |
| 785 |
whatever text is input inside the argument (the curly |
| 786 |
braces). |
| 787 |
|
| 788 |
\item [{\tt \blash motscles\char`\{...\char`\}}] \hfill [an \NRC\ |
| 789 |
macro]\mbox{} |
| 790 |
|
| 791 |
Automatically prints `\textit{Mots cl\'es\,:}', followed by |
| 792 |
whatever text is input inside the argument (the curly |
| 793 |
braces). |
| 794 |
|
| 795 |
\item [{\tt \blash PACS\char`\{...\char`\}}] \hfill [an \NRC\ |
| 796 |
macro]\mbox{} |
| 797 |
|
| 798 |
Automatically prints `PACS Nos.:' (Fr. `PACS |
| 799 |
N\textsuperscript{os}\,:'), followed by whatever material is |
| 800 |
input inside the argument. |
| 801 |
|
| 802 |
\item [{\tt \blash PACS*\char`\{...\char`\}}] \hfill [an \NRC\ |
| 803 |
macro]\mbox{} |
| 804 |
|
| 805 |
Automatically prints `PACS No.:' (Fr. `PACS |
| 806 |
N\textsuperscript{o}\,:'), followed by whatever material is |
| 807 |
input inside the argument. |
| 808 |
\end{description} |
| 809 |
|
| 810 |
|
| 811 |
%% Section 4.3: |
| 812 |
\subsection{Headings and subheadings} |
| 813 |
|
| 814 |
Five levels, numbered automatically.\footnote{An alternate set of |
| 815 |
headings commands also exists: \texttt{\blash Asection}, |
| 816 |
\texttt{\blash Bsection}, \texttt{\blash Csection}, \texttt{\blash |
| 817 |
Dsection}, and \texttt{\blash Esection}, for levels 1 through 5, |
| 818 |
respectively.} Line breaks can be forced by using \verb|\\|. To |
| 819 |
suppress numbering (e.g., for `Acknowledgements'), use an asterisk |
| 820 |
before the opening curly brace: \verb|\section*{Acknowledgements}|. |
| 821 |
|
| 822 |
For sub- and superscripts in section titles, use the macros |
| 823 |
\verb|\textsubscript| and \verb|\textsuperscript|, respectively. |
| 824 |
|
| 825 |
\begin{enumerate} \itemsep=0pt |
| 826 |
\item {\tt \blash section\char`\{...\char`\}} Level-1 heading |
| 827 |
|
| 828 |
\item {\tt \blash subsection\char`\{...\char`\}} Level-2 heading |
| 829 |
|
| 830 |
\item {\tt \blash subsubsection\char`\{...\char`\}} Level-3 |
| 831 |
heading |
| 832 |
|
| 833 |
\item {\tt \blash subsubsubsection\char`\{...\char`\}} Level-4 |
| 834 |
heading \hfill [\NRC] |
| 835 |
|
| 836 |
\item {\tt \blash paragraph\char`\{...\char`\}} Level-5 heading |
| 837 |
\end{enumerate} |
| 838 |
|
| 839 |
|
| 840 |
%% Section 4.4: |
| 841 |
\subsection{Text} |
| 842 |
|
| 843 |
Same as the default \LaTeX{} commands: |
| 844 |
|
| 845 |
\begin{description} \itemsep=0pt |
| 846 |
\item [{\tt \blash begin\char`\{quote\char`\}\ ... \blash |
| 847 |
end\char`\{quote\char`\}}] |
| 848 |
|
| 849 |
\item [{\tt \blash begin\char`\{enumerate\char`\}\ ... \blash |
| 850 |
end\char`\{enumerate\char`\}}] |
| 851 |
|
| 852 |
\item [{\tt \blash begin\char`\{itemize\char`\}\ ... \blash |
| 853 |
end\char`\{itemize\char`\}}] |
| 854 |
|
| 855 |
\item [{\tt \blash begin\char`\{description\char`\}\ ... \blash |
| 856 |
end\char`\{description\char`\}}] |
| 857 |
|
| 858 |
\item [{\tt \blash footnote\char`\{...\char`\}}] |
| 859 |
\end{description} |
| 860 |
|
| 861 |
\noindent Where lists must be flushed to the left margin, there are |
| 862 |
two \NRC-specific environments to use: |
| 863 |
|
| 864 |
\begin{description} \itemsep=0pt |
| 865 |
\item [{\tt \blash begin\char`\{flenumerate\char`\}\ ... \blash |
| 866 |
end\char`\{flenumerate\char`\}}]\hfill [\NRC] \mbox{} |
| 867 |
|
| 868 |
Generates a numbered list (first level only) with labels |
| 869 |
flushed to the left margin. No nesting possible. |
| 870 |
|
| 871 |
\item [{\tt \blash begin\char`\{flitemize\char`\}\ ... \blash |
| 872 |
end\char`\{flitemize\char`\}}]\hfill [\NRC] \mbox{} |
| 873 |
|
| 874 |
Generates a bulletted list (first level only) with labels |
| 875 |
flushed to the left margin. No nesting possible. |
| 876 |
\end{description} |
| 877 |
|
| 878 |
|
| 879 |
%% Section 4.4.1: |
| 880 |
\subsubsection{Column switching in \texttt{nrc2}} |
| 881 |
|
| 882 |
On occasion, material for 2-column journals is best set full-width, |
| 883 |
interrupting the two text columns. For equations, the following |
| 884 |
customized code will achieve this effect: |
| 885 |
|
| 886 |
\begin{verbatim} |
| 887 |
\begin{FullWidth}[0.5] |
| 888 |
\LeftColumnBar |
| 889 |
<equation to span both columns> |
| 890 |
\RightColumnBar |
| 891 |
\end{FullWidth} |
| 892 |
\end{verbatim} |
| 893 |
|
| 894 |
The following description provides details of each step: |
| 895 |
|
| 896 |
\begin{description} \itemsep=0pt |
| 897 |
\item [{\tt \blash begin\char`\{FullWidth\char`\}\ ... \blash |
| 898 |
end\char`\{FullWidth\char`\}}] |
| 899 |
|
| 900 |
This environment encloses the material which is to span the |
| 901 |
two columns. The text for the two columns immediately above |
| 902 |
this environment will be balanced. Text immediately below |
| 903 |
the environment will resume the 2-column layout. |
| 904 |
|
| 905 |
The optional \texttt{[0.5]} argument (`one half' in this |
| 906 |
example) is an adjustment factor, affecting the split between |
| 907 |
left and right columns. Default is `1.0', the units are |
| 908 |
nominal line depths in the default font size; increasing the |
| 909 |
factor tends to increase the number of lines in the left |
| 910 |
column. |
| 911 |
|
| 912 |
\item [{\tt \blash LeftColumnBar}] \mbox{} |
| 913 |
|
| 914 |
This draws a rule below the left column of the 2-column text |
| 915 |
which is above the full-width material. |
| 916 |
|
| 917 |
\item [{\tt \blash RightColumnBar}] \mbox{} |
| 918 |
|
| 919 |
This draws a rule above the right column of 2-column text |
| 920 |
which is below the full-width material. |
| 921 |
|
| 922 |
\item [{\tt \blash BalanceColumns[0.5]}] \mbox{} |
| 923 |
|
| 924 |
This command is used at the end of a file, in order to |
| 925 |
balance the final page. |
| 926 |
|
| 927 |
The optional argument serves the same purpose and is used |
| 928 |
in the same way as that for \verb|\begin{FullWidth}|. |
| 929 |
\end{description} |
| 930 |
|
| 931 |
Where both equations and text must span two columns, the text portions |
| 932 |
must \textit{additionally} be enclosed in the following environment: |
| 933 |
|
| 934 |
\begin{verbatim} |
| 935 |
... |
| 936 |
\begin{WideText} |
| 937 |
<text material> |
| 938 |
\end{WideText} |
| 939 |
... |
| 940 |
\end{verbatim} |
| 941 |
% |
| 942 |
The text will then be flush left, and indented 3em from the right |
| 943 |
margin, as per \NRC{} requirements, while the equation numbers will be |
| 944 |
flushed to the right (where that is the style). The two combined will |
| 945 |
look like this: |
| 946 |
|
| 947 |
\begin{verbatim} |
| 948 |
\begin{FullWidth}[0] |
| 949 |
\LeftColumnBar |
| 950 |
\begin{equation} |
| 951 |
<equation material here> |
| 952 |
\end{equation} |
| 953 |
|
| 954 |
\begin{WideText} |
| 955 |
<text material> |
| 956 |
\end{WideText} |
| 957 |
|
| 958 |
\begin{equation} |
| 959 |
<equation material here> |
| 960 |
\end{equation} |
| 961 |
\RightColumnBar |
| 962 |
\end{FullWidth} |
| 963 |
\end{verbatim} |
| 964 |
|
| 965 |
|
| 966 |
%% Section 4.5: |
| 967 |
\subsection{Mathematics} |
| 968 |
|
| 969 |
In addition to default \LaTeX{} commands, the \texttt{amsmath} package |
| 970 |
provides a number of useful enhancements. Consult both the revised |
| 971 |
chap.~8 of \textsl{The \LaTeX{} Companion} and the AMS\LaTeX{} |
| 972 |
documentation for details (see section~\ref{documentation}). See also |
| 973 |
\verb|bm.sty| for enhanced font handling inside math mode |
| 974 |
(section~\ref{bm}). |
| 975 |
|
| 976 |
\begin{description} \itemsep=0pt |
| 977 |
\item [{\tt \blash begin\char`\{equation\char`\}\ ... \blash |
| 978 |
end\char`\{equation\char`\}}] \mbox{} |
| 979 |
|
| 980 |
\item [{\tt \blash begin\char`\{array\char`\}\ ... \blash |
| 981 |
end\char`\{array\char`\}}] \mbox{} |
| 982 |
|
| 983 |
\item [{\tt \blash begin\char`\{subequation\char`\}\ ... \blash |
| 984 |
end\char`\{subequation\char`\}}] \mbox{} |
| 985 |
|
| 986 |
This is an \verb|amsmath| environment {\bf within which} |
| 987 |
other environments are used, to achieve lettered sub-equation |
| 988 |
numbers: e.g., 1.2a, 1.2b, etc. There is a file |
| 989 |
\texttt{subeqn.tex} on most \TeX{} installations with |
| 990 |
additional details. |
| 991 |
\end{description} |
| 992 |
|
| 993 |
\noindent In addition to the usual environments, two \NRC\ macros |
| 994 |
allow further customisation of the form of the equation number: |
| 995 |
|
| 996 |
\begin{description} \itemsep=0pt |
| 997 |
\item [{\tt \blash |
| 998 |
numberby\char`\{...\char`\}\char`\{...\char`\}}] \hfill [an |
| 999 |
\NRC\ macro]\mbox{} |
| 1000 |
|
| 1001 |
For articles where equation numbers must include section |
| 1002 |
numbers (e.g., equation 3.2 is the second equation in |
| 1003 |
section~3), input the following in the preamble area, after |
| 1004 |
all \verb|\usepackage| commands:\footnote{This avoids having |
| 1005 |
to load the {\tt amsmath} package in order to access the {\tt |
| 1006 |
\blash numberwithin} command, which does the same thing.} |
| 1007 |
|
| 1008 |
\begin{verbatim} |
| 1009 |
\numberby{equation}{section} |
| 1010 |
\end{verbatim} |
| 1011 |
|
| 1012 |
The first argument contains what element is being numbered; |
| 1013 |
the second indicates that section numbers should be included |
| 1014 |
in that numbering. |
| 1015 |
|
| 1016 |
\item [{\tt \blash eqnoformat}] \hfill [an \NRC\ macro]\mbox{} |
| 1017 |
|
| 1018 |
The \verb|nrc2| class default format is for square brackets |
| 1019 |
around equation numbers. Other options (i.e., parenthe\-ses) |
| 1020 |
can be achieved via the following definition (placed in the |
| 1021 |
preamble, after all packages have been loaded): |
| 1022 |
|
| 1023 |
\begin{verbatim} |
| 1024 |
\renewcommand{\eqnoformat}[1]{(#1)} |
| 1025 |
\end{verbatim} |
| 1026 |
\end{description} |
| 1027 |
|
| 1028 |
|
| 1029 |
%% Section 4.6: |
| 1030 |
\subsection{Tables, Figures, Captions} |
| 1031 |
|
| 1032 |
The following float parameters are useful to include in the preamble |
| 1033 |
area: |
| 1034 |
|
| 1035 |
\begin{description} \itemsep=0pt |
| 1036 |
\item [nrc1] |
| 1037 |
\begin{verbatim} |
| 1038 |
\renewcommand{\topfraction}{.95} |
| 1039 |
\renewcommand{\textfraction}{.05} |
| 1040 |
\renewcommand{\floatpagefraction}{.95} |
| 1041 |
\end{verbatim} |
| 1042 |
|
| 1043 |
\item [nrc2] |
| 1044 |
\begin{verbatim} |
| 1045 |
\renewcommand{\topfraction}{.95} |
| 1046 |
\renewcommand{\floatpagefraction}{.95} |
| 1047 |
\renewcommand{\dbltopfraction}{.95} |
| 1048 |
\renewcommand{\textfraction}{.05} |
| 1049 |
\renewcommand{\dblfloatpagefraction}{.95} |
| 1050 |
\end{verbatim} |
| 1051 |
\end{description} |
| 1052 |
|
| 1053 |
|
| 1054 |
%% Section 4.6.1: |
| 1055 |
\subsubsection{Tables} |
| 1056 |
|
| 1057 |
\begin{description} \itemsep=0pt |
| 1058 |
\item [{\tt \blash begin\char`\{table\char`\}\ ... \blash |
| 1059 |
end\char`\{table\char`\}}] \mbox{} |
| 1060 |
|
| 1061 |
For regular tables, up to same width as text (page-wide or |
| 1062 |
column-wide). |
| 1063 |
|
| 1064 |
\item [{\tt \blash begin\char`\{table*\char`\}\ ... \blash |
| 1065 |
end\char`\{table*\char`\}}] \mbox{} |
| 1066 |
|
| 1067 |
For tables spanning two columns. |
| 1068 |
|
| 1069 |
\item [{\tt \blash begin\char`\{sidewaystable\char`\}\ ... \blash |
| 1070 |
end\char`\{sidewaystable\char`\}}] \mbox{} |
| 1071 |
|
| 1072 |
For rotating a table sideways. To ensure rotation is in |
| 1073 |
correct direction, remember to add the \verb|figuresright| |
| 1074 |
option to the \verb|rotating| package in the Preamble. |
| 1075 |
|
| 1076 |
\item [{\tt \blash begin\char`\{sidewaystable*\char`\}\ ... \blash |
| 1077 |
end\char`\{sidewaystable*\char`\}}] \mbox{} |
| 1078 |
|
| 1079 |
For rotating a table sideways across a 2-column page. As for |
| 1080 |
above, make sure the \verb|figuresright| option has been |
| 1081 |
added to the \verb|rotating| package, loaded in the Preamble. |
| 1082 |
|
| 1083 |
\item [{\tt \blash begin\char`\{tabular\char`\}\ ... \blash |
| 1084 |
end\char`\{tabular\char`\}}] \mbox{} |
| 1085 |
|
| 1086 |
{\bf Note:} use \verb|\tabcolsep| to slightly reduce/increase |
| 1087 |
intercolumn space. |
| 1088 |
|
| 1089 |
|
| 1090 |
\item [{\tt \blash hline*}]\hfill [an \NRC\ macro] \mbox{} |
| 1091 |
|
| 1092 |
For the thicker lines at top/bottom of tables. Regular 1pt |
| 1093 |
rules accessed via default \verb|\hline| command. |
| 1094 |
\end{description} |
| 1095 |
|
| 1096 |
|
| 1097 |
%% Section 4.6.2: |
| 1098 |
\subsubsection{Figures} |
| 1099 |
|
| 1100 |
\begin{description} \itemsep=0pt |
| 1101 |
\item [{\tt \blash begin\char`\{figure\char`\}\ ... \blash |
| 1102 |
end\char`\{figure\char`\}}] \mbox{} |
| 1103 |
|
| 1104 |
For regular figures, up to same width as text (page-wide or |
| 1105 |
column-wide). |
| 1106 |
|
| 1107 |
\item [{\tt \blash begin\char`\{figure*\char`\}\ ... \blash |
| 1108 |
end\char`\{figure*\char`\}}] \mbox{} |
| 1109 |
|
| 1110 |
For figures spanning two columns. |
| 1111 |
\end{description} |
| 1112 |
|
| 1113 |
|
| 1114 |
%% Section 4.6.3: |
| 1115 |
\subsubsection{Captions} |
| 1116 |
|
| 1117 |
\begin{description} \itemsep=0pt |
| 1118 |
\item [{\tt \blash topcaption\char`\{...\char`\}}] \hfill [an |
| 1119 |
\NRC\ macro]\mbox{} |
| 1120 |
|
| 1121 |
\NRC\ style has all captions at the top of their table or |
| 1122 |
figure. Syntax is the same as for \LaTeX{} default |
| 1123 |
\verb|\caption|. |
| 1124 |
|
| 1125 |
Captions will be automatically sized to the width of their |
| 1126 |
table, provided the file is processed at least twice. Should |
| 1127 |
a caption require a different width, the following code, used |
| 1128 |
inside the float environment, will work: |
| 1129 |
|
| 1130 |
\begin{verbatim} |
| 1131 |
\setlength{\captionwidth}{ ... } |
| 1132 |
\topcaption{ ... } |
| 1133 |
\end{verbatim} |
| 1134 |
|
| 1135 |
\item [{\tt \blash sepcaption\char`\{...\char`\}}] \hfill [an \NRC\ |
| 1136 |
macro]\mbox{} |
| 1137 |
|
| 1138 |
For captions separated from their full-column or full-page |
| 1139 |
tables and figures. Caption will appear at top of next column |
| 1140 |
or next page. Usage is \textbf{different} from regular |
| 1141 |
caption commands in that it must appear in its own separate |
| 1142 |
\texttt{table} environment: |
| 1143 |
% |
| 1144 |
\begin{verbatim} |
| 1145 |
\begin{table} |
| 1146 |
\sepcaption{.....} |
| 1147 |
\end{table} |
| 1148 |
|
| 1149 |
\begin{table} |
| 1150 |
<contents of table> |
| 1151 |
\end{table} |
| 1152 |
\end{verbatim} |
| 1153 |
\end{description} |
| 1154 |
|
| 1155 |
|
| 1156 |
%% Section 4.6.4: |
| 1157 |
\subsubsection{Centering} |
| 1158 |
|
| 1159 |
To centre any of these elements inside a float, the \verb|\centering| |
| 1160 |
command is preferred to the \verb|{center}| environment, which adds |
| 1161 |
its own vertical space and hence interferes with \NRC{} spacing |
| 1162 |
requirements. |
| 1163 |
|
| 1164 |
|
| 1165 |
%% Section 4.7: |
| 1166 |
\subsection{Cross-Referencing} |
| 1167 |
|
| 1168 |
As with all cross-referencing codes, process file 2 or even 3 times, |
| 1169 |
to ensure that all citations and labels have been resolved, until the |
| 1170 |
following message no longer appears:\footnote{Note, however, that if |
| 1171 |
cross-referencing codes are incomplete, \textbf{[?]} will remain. In |
| 1172 |
such cases, the warning message reads: \texttt{LaTeX Warning: There |
| 1173 |
were undefined references}.} |
| 1174 |
|
| 1175 |
\begin{verbatim} |
| 1176 |
LaTeX Warning: Label(s) may have changed. |
| 1177 |
Rerun to get cross-references right. |
| 1178 |
\end{verbatim} |
| 1179 |
|
| 1180 |
\noindent Components of an article affected by cross-referencing --- |
| 1181 |
and thus requiring several processing runs, include the following: |
| 1182 |
|
| 1183 |
\begin{itemize} \itemsep=0pt |
| 1184 |
\item cross-refs to tables and figures, and to equations, etc. \\ |
| 1185 |
(via \verb|\ref|, \verb|\pageref|, and \verb|\label|) |
| 1186 |
|
| 1187 |
\item automatic sizing of caption widths for floats \\ |
| 1188 |
(via \verb|\topcaption|) |
| 1189 |
|
| 1190 |
\item bibliographies \\ |
| 1191 |
(via \verb|\cite| et al., and \verb|\bibitem|) |
| 1192 |
\end{itemize} |
| 1193 |
|
| 1194 |
To ensure that cross-referencing via the \verb|\label| and \verb|\ref| |
| 1195 |
commands is correctly associated with the matching tables and figures, |
| 1196 |
it is recommended that the \verb|\label| command appear |
| 1197 |
\textbf{inside} the closing parentheses of caption commands. |
| 1198 |
|
| 1199 |
|
| 1200 |
%% Section 4.8: |
| 1201 |
\subsection{Bibliography} |
| 1202 |
|
| 1203 |
The default macros \verb|\cite| and \verb|\bibitem| are usually |
| 1204 |
adequate for citations and bibliography entries. Additional |
| 1205 |
flexibility can be had by using the \verb|cite| package; for more |
| 1206 |
complicated requirements, authors may choose to use the \verb|natbib| |
| 1207 |
package. Authors using the latter must remember to submit their |
| 1208 |
\verb|.bib| file, and are reminded to use the referencing style and |
| 1209 |
order of elements appropriate to the journal to which they are |
| 1210 |
submitting.\footnote{As yet, there is no \texttt{nrc.bst} file for the |
| 1211 |
NRC.} |
| 1212 |
|
| 1213 |
The main \verb|cite| commands are: |
| 1214 |
|
| 1215 |
\begin{description} \itemsep=0pt |
| 1216 |
\item [{\tt \blash cite\char`\{...\char`\}}] \mbox{} |
| 1217 |
|
| 1218 |
To produce cross-referencing digit or digits inside square |
| 1219 |
brackets. |
| 1220 |
|
| 1221 |
\item [{\tt \blash citen\char`\{...\char`\}}] \mbox{} |
| 1222 |
|
| 1223 |
To produce cross-referencing digit with {\bf no} brackets. |
| 1224 |
\end{description} |
| 1225 |
|
| 1226 |
\noindent Further options are described in the \verb|cite| |
| 1227 |
documentation. However, one in particular will be noted here, as some |
| 1228 |
\NRC{} journals require in-line citations to appear within |
| 1229 |
parentheses, rather than square brackets. If this is the case, the |
| 1230 |
following code should be added to the preamble (after all packages, |
| 1231 |
including \verb|cite|, have been loaded): |
| 1232 |
|
| 1233 |
\begin{verbatim} |
| 1234 |
\renewcommand{\citeleft}{(} |
| 1235 |
\renewcommand{\citeright}{)} |
| 1236 |
\end{verbatim} |
| 1237 |
|
| 1238 |
The references/bibliography section at the end of the paper uses the |
| 1239 |
default \LaTeX{} commands: |
| 1240 |
|
| 1241 |
\begin{verbatim} |
| 1242 |
\begin{thebibliography}{99} |
| 1243 |
\bibitem[...]{...} |
| 1244 |
|
| 1245 |
\bibitem[...]{...} |
| 1246 |
|
| 1247 |
\end{thebibliography} |
| 1248 |
\end{verbatim} |
| 1249 |
|
| 1250 |
|
| 1251 |
%% Section 4.9: |
| 1252 |
\subsection{Appendices} |
| 1253 |
|
| 1254 |
Where only the word `Appendix' is needed, use the command |
| 1255 |
\verb|\section*{Appendix}| (note that the asterisk suppresses any |
| 1256 |
section numbering, either by digit or letter). If equations within the |
| 1257 |
Appendix are to restart at `1', insert |
| 1258 |
|
| 1259 |
\begin{verbatim} |
| 1260 |
\setcounter{equation}{0} |
| 1261 |
\end{verbatim} |
| 1262 |
|
| 1263 |
If more than the word `Appendix' is to appear, then the |
| 1264 |
\verb|\section| command must be augmented by either \verb|\appendix| |
| 1265 |
or \verb|\appendix*|. |
| 1266 |
|
| 1267 |
The \verb|\appendix| command (unmodified) behaves as in the standard |
| 1268 |
\LaTeX{} classes; so, for `A. Title of First Appendix', the following |
| 1269 |
code is used: |
| 1270 |
% |
| 1271 |
\begin{verbatim} |
| 1272 |
\appendix |
| 1273 |
\section{Title of First Appendix} |
| 1274 |
\end{verbatim} |
| 1275 |
|
| 1276 |
For `Appendix A:' + a heading (and then `Appendix B:' + its heading, |
| 1277 |
etc.), the following code will do the job (notice that the word |
| 1278 |
`Appendix' is \textbf{not} input): |
| 1279 |
|
| 1280 |
\begin{verbatim} |
| 1281 |
\appendix* |
| 1282 |
\section{A subheading} |
| 1283 |
... |
| 1284 |
\section{Next subheading} |
| 1285 |
\end{verbatim} |
| 1286 |
|
| 1287 |
Both \verb|\appendix| and \verb|\appendix*| preserve \verb|\numberby| |
| 1288 |
commands, as one might expect: equations in appendix~A are numbered |
| 1289 |
`A.1', `A.2', etc. To ensure numbering is correctly applied throughout |
| 1290 |
all appendices, insert \verb|\numberby| {\bf before} the |
| 1291 |
\verb|\section| command. |
| 1292 |
|
| 1293 |
|
| 1294 |
%% Section 5: |
| 1295 |
\section{Resources} |
| 1296 |
|
| 1297 |
The following documentation, newsgroups, and web pages are useful |
| 1298 |
source to consult for help, news, and updates. Keep in mind, however, |
| 1299 |
that conflicts may arise when |
| 1300 |
|
| 1301 |
|
| 1302 |
%% Section 5.1 |
| 1303 |
\subsection{Books and articles\label{documentation}} |
| 1304 |
|
| 1305 |
\begin{description} \itemsep=0pt \raggedright \frenchspacing |
| 1306 |
\item [{\sl The \LaTeX{} Companion:}] by Michel Goossens, Frank |
| 1307 |
Mittelbach, and Alexander Samarin (Addison-Wesley, 1994). |
| 1308 |
|
| 1309 |
Contains many details to assist users. Caveats: |
| 1310 |
|
| 1311 |
Chapter~8 is no longer valid --- a revised version is |
| 1312 |
available in both {\tt .ps} and {\tt .pdf} formats from |
| 1313 |
{\small CTAN}.\footnote{CTAN = Comprehensive \TeX{} Archive |
| 1314 |
Network; a list of site addresses can be found on the {\small |
| 1315 |
TUG} home page {\tt www.tug.org}. Follow the links to {\tt |
| 1316 |
/tex-archive/info/companion-rev}.} |
| 1317 |
|
| 1318 |
As well, the sections on graphics and colour have been |
| 1319 |
superseded by material in {\sl The \LaTeX{} Graphics |
| 1320 |
Companion\/}. |
| 1321 |
|
| 1322 |
\item [{\sl The \LaTeX{} Graphics Companion:}]{\sl Illustrating |
| 1323 |
Documents\break with \TeX{} and PostScript\/}, by Michel |
| 1324 |
Goossens, Sebastian Rahtz, and Frank Mittelbach |
| 1325 |
(Addison-Wesley, 1997). |
| 1326 |
|
| 1327 |
\item [{\sl Math into \LaTeX:}] {\sl An Introduction to \LaTeX{} |
| 1328 |
and AMS\LaTeX{}}, by George Gr\"atzer (Birkh\"auser, Boston |
| 1329 |
and Springer Verlag, New York, 1996). |
| 1330 |
|
| 1331 |
\item [{\sl First Steps in \LaTeX:}] by George Gr\"atzer |
| 1332 |
(Birkh\"auser, Boston, 1999). |
| 1333 |
|
| 1334 |
\item [{\sl The \TeX book:}] by Donald E.~Knuth (Addison-Wesley, |
| 1335 |
1986). |
| 1336 |
|
| 1337 |
\item [{\sl \LaTeX:}] {\sl A Document Preparation System --- |
| 1338 |
User's Guide and Reference Manual\/}, by Leslie |
| 1339 |
Lamport (Addison-Wesley, 1994, 2nd ed). |
| 1340 |
|
| 1341 |
\item [{\sl A Guide to \LaTeXe:}] by Helmut Kopka and Patrick |
| 1342 |
W.~Daly (Addison-Wesley, 1998, 3rd ed). |
| 1343 |
|
| 1344 |
\item [{\rm Michael Downes:}] ``Breaking equations,'' {\sl TUGboat} |
| 1345 |
18,3 (Sept 1997): 182--194. |
| 1346 |
|
| 1347 |
\item [{\rm Keith Reckdahl:}] ``Using EPS graphics in \LaTeXe\ |
| 1348 |
documents,'' {\sl TUGboat} 17,1 (March 1996): 43--53. |
| 1349 |
|
| 1350 |
\item [{\rm Keith Reckdahl:}] ``Using EPS graphics in \LaTeXe\ documents, |
| 1351 |
Part 2: Floating figures, boxed figures, captions, and math |
| 1352 |
in figures,'' {\sl TUGboat} 17,3 (Sept.\ 1996): 288--310. |
| 1353 |
|
| 1354 |
The latest version of the Reckdahl material can be found on |
| 1355 |
{\small CTAN} in \texttt{info/epslatex} in both \texttt{.ps} |
| 1356 |
and \texttt{.pdf} formats. |
| 1357 |
\end{description} |
| 1358 |
|
| 1359 |
|
| 1360 |
%% Section 5.2 |
| 1361 |
\subsection{Electronic resources} |
| 1362 |
|
| 1363 |
\begin{description} \itemsep=0pt |
| 1364 |
\item [\href{http://www.tug.org/}{www.tug.org}:] the most complete |
| 1365 |
stepping-stone to the world-wide \TeX{} community, including |
| 1366 |
the {\small CTAN} archives, user groups, news, and so on. |
| 1367 |
|
| 1368 |
\item [comp.text.tex] a general all-purpose newgroup for \TeX{} |
| 1369 |
users. Consult your local technical support group to see |
| 1370 |
if newsgroup access if available via your browser. |
| 1371 |
|
| 1372 |
\item [FAQ:] put together by the UK \TeX{} Users Group; available |
| 1373 |
via the {\small TUG} web page. |
| 1374 |
|
| 1375 |
\item [Listserv lists:] there are a great number of specialised |
| 1376 |
lists. Consult the {\small TUG} web pages for details. |
| 1377 |
|
| 1378 |
\item [http://groups.google.com/] holds an archive of usenet |
| 1379 |
discussions, and may be used to review current topics of |
| 1380 |
concern, or to search for answers to specific questions. |
| 1381 |
Unfortunately, the service does {\bf not} offer facilities |
| 1382 |
for posting to usenet, at present. |
| 1383 |
\end{description} |
| 1384 |
|
| 1385 |
\newpage |
| 1386 |
|
| 1387 |
|
| 1388 |
%% Section 6: |
| 1389 |
\section{In-house Coding for Articles\label{inhouse}} |
| 1390 |
|
| 1391 |
A template file with all the main preamble lines of code already |
| 1392 |
input, is available (see Appendix~B). At the top of the new file, |
| 1393 |
insert the contents of: |
| 1394 |
% |
| 1395 |
\begin{verbatim} |
| 1396 |
nrc-opening.tex |
| 1397 |
\end{verbatim} |
| 1398 |
% |
| 1399 |
and begin to {\bf un}comment those lines which are pertinent for the |
| 1400 |
file. There are brief notes in the template, indicating the purpose of |
| 1401 |
each macro line, along with cross-references to pages in these |
| 1402 |
guidelines. Delete or leave commented those lines which are not |
| 1403 |
relevant to the file. |
| 1404 |
|
| 1405 |
{\bf Note:} Only invoke those packages and/or macros which are present |
| 1406 |
in the file; for example, it is misleading to load a graphics package |
| 1407 |
if there are no figures in the file. |
| 1408 |
|
| 1409 |
|
| 1410 |
|
| 1411 |
%% Section 6.1 |
| 1412 |
\subsection{Changing class option choices} |
| 1413 |
|
| 1414 |
Included in the main class options are some which are intended for |
| 1415 |
authors only; remove any of the following options before processing |
| 1416 |
author files in-house: |
| 1417 |
|
| 1418 |
\begin{verbatim} |
| 1419 |
author genTeX type1rest usecmfonts |
| 1420 |
\end{verbatim} |
| 1421 |
|
| 1422 |
\noindent On the other hand, there are a number of class options |
| 1423 |
related to various stages of in-house production and thus intended |
| 1424 |
only for \NRC{} editorial staff. Below is a list of these options, |
| 1425 |
followed by a brief description of their purpose: |
| 1426 |
|
| 1427 |
\begin{verbatim} |
| 1428 |
\documentclass[<options here>]{<class here>} |
| 1429 |
breakaddress nrc1 |
| 1430 |
for nrc2 only: twocolid OR nrc2 |
| 1431 |
for nrc2 only: twocolid* |
| 1432 |
preprint |
| 1433 |
proof |
| 1434 |
pagnf |
| 1435 |
trimmarks |
| 1436 |
finalverso |
| 1437 |
\end{verbatim} |
| 1438 |
|
| 1439 |
\begin{description} \itemsep=0pt |
| 1440 |
\item [{\tt breakaddress}] |
| 1441 |
% |
| 1442 |
This option affects the author IDbox at the bottom of the |
| 1443 |
titlepage. It inserts a linebreak between the author name and |
| 1444 |
address; the default setting has them print on the same line. |
| 1445 |
|
| 1446 |
\item [{\tt twocolid}] |
| 1447 |
% |
| 1448 |
For \texttt{nrc2} only. This option affects author |
| 1449 |
information (the IDbox at page bottom): the text spans both |
| 1450 |
columns.\footnote{The default is to set all IDbox material |
| 1451 |
into the bottom of the left column.} |
| 1452 |
|
| 1453 |
\item [{\tt twocolid*}] |
| 1454 |
% |
| 1455 |
For \texttt{nrc2} only. This variation for the IDbox also |
| 1456 |
spans both columns, but the material inside is itself set up |
| 1457 |
in two columns. |
| 1458 |
|
| 1459 |
\item [{\tt preprint}] |
| 1460 |
% |
| 1461 |
This affects headers and footers, omitting such items as |
| 1462 |
dates, page numbers, and so on. For any additional text in |
| 1463 |
running heads (e.g., `Rapid Communication'), use |
| 1464 |
\verb|\shortauthor|. |
| 1465 |
|
| 1466 |
\item [{\tt proof}] |
| 1467 |
% |
| 1468 |
Prints a centred footer on every page with the following |
| 1469 |
text: `Proof/\'Epreuve'.\label{proof-pagnf} |
| 1470 |
|
| 1471 |
{\bf Note:} Comment out when {\small DOI} line must appear at |
| 1472 |
bottom centre of opening page. See section~\ref{filenumber}. |
| 1473 |
|
| 1474 |
|
| 1475 |
\item [{\tt pagnf}] |
| 1476 |
% |
| 1477 |
Prints a centred footer on every page with the following |
| 1478 |
text: `Pagination not final/Pagination non |
| 1479 |
finale'. |
| 1480 |
|
| 1481 |
{\bf Note:} Comment out when {\small DOI} line must appear at |
| 1482 |
bottom centre of opening page. See section~\ref{filenumber}. |
| 1483 |
|
| 1484 |
|
| 1485 |
\item [{\tt trimmarks}] |
| 1486 |
% |
| 1487 |
Prints cropmarks at all four corners. Note that trimmarks for |
| 1488 |
\texttt{nrc2} are off the regular $8.5 \times 11$-inch paper, |
| 1489 |
but will be visible if oversized paper is used. |
| 1490 |
|
| 1491 |
|
| 1492 |
\item [{\tt finalverso}] |
| 1493 |
% |
| 1494 |
Specifies that the paper should end on a recto page (creating |
| 1495 |
a blank, unnumbered page if the text doesn't for itself; the |
| 1496 |
blank page does {\bf not} appear in the paper's page count. |
| 1497 |
|
| 1498 |
\end{description} |
| 1499 |
|
| 1500 |
|
| 1501 |
%% Section 6.2 |
| 1502 |
\subsection{Additional packages} |
| 1503 |
|
| 1504 |
A number of additional packages are included in the template file {\tt |
| 1505 |
nrc-opening.tex}. Uncomment those packages which will be needed for |
| 1506 |
each specific article. |
| 1507 |
|
| 1508 |
|
| 1509 |
\begin{description} \itemsep=0pt |
| 1510 |
\item [{\tt \blash usepackage\char`\{color\char`\}}] |
| 1511 |
|
| 1512 |
The \verb|color| package is used for in-house production of |
| 1513 |
reversed out text (white on black). Ensure that no driver |
| 1514 |
option is specified here, as it would over-ride the in-house |
| 1515 |
printer set-up. See section \ref{specialtitles} for details. |
| 1516 |
|
| 1517 |
\item [{\tt \blash usepackage\char`\{dcolumn\char`\}}] |
| 1518 |
|
| 1519 |
At present, this remains commented out as the \NRC's need for |
| 1520 |
left-justified decimal alignment is not possible via |
| 1521 |
\texttt{dcolumn}. Left-justified alignment at present is |
| 1522 |
achieved by using the \verb|\llap|, \verb|\rlap|, and |
| 1523 |
\verb|\phantom| commands. |
| 1524 |
|
| 1525 |
\item [{\tt \blash usepackage\char`\{url\char`\}}] |
| 1526 |
|
| 1527 |
Inserts line breaks into e-mail and website addresses. The |
| 1528 |
package \textbf{and} its additional line of code must be |
| 1529 |
uncommented. |
| 1530 |
|
| 1531 |
\item [{\tt \blash usepackage\char`\{array\char`\}}] |
| 1532 |
|
| 1533 |
Allows for raggedright columns in tables. The package |
| 1534 |
\textbf{and} its additional line of code must be uncommented. |
| 1535 |
|
| 1536 |
\item [{\tt \blash usepackage\char`\{cases\char`\}}] |
| 1537 |
|
| 1538 |
Makes it possible for a left curly brace to span several |
| 1539 |
lines of equations. The package \textbf{and} its additional |
| 1540 |
line of code must be uncommented. |
| 1541 |
|
| 1542 |
\item [personal macros] |
| 1543 |
|
| 1544 |
Over time, it may become apparent that some small |
| 1545 |
modifications or shorthands are used in almost all |
| 1546 |
papers. Until such changes are incorporated into the document |
| 1547 |
classes, these should not be inserted into each article file |
| 1548 |
but rather stored in a separate file, loaded via the |
| 1549 |
\verb|\usepackage| command and inserted after all other |
| 1550 |
packages. |
| 1551 |
\end{description} |
| 1552 |
|
| 1553 |
\newpage |
| 1554 |
|
| 1555 |
|
| 1556 |
%% Section 6.3 |
| 1557 |
\subsection{Package to remove} |
| 1558 |
|
| 1559 |
If the user has specified |
| 1560 |
% |
| 1561 |
\begin{verbatim} |
| 1562 |
\usepackage[T1]{fontenc} |
| 1563 |
\end{verbatim} |
| 1564 |
% |
| 1565 |
so as to enable French-language hyphenation to work when using {\small |
| 1566 |
CM} or restricted Type~1 fonts, the package invocation should be |
| 1567 |
deleted (the \NRC{} classes supply their own \verb|fontenc| |
| 1568 |
invocation). |
| 1569 |
|
| 1570 |
|
| 1571 |
%% Section 6.4 |
| 1572 |
\subsection{Additional macros} |
| 1573 |
|
| 1574 |
Following the loading of all packages and their options, files may |
| 1575 |
contain additional macros from the author (see |
| 1576 |
page~\pageref{authmacros} for instructions provided to authors). These |
| 1577 |
should be clearly marked off with, for example, a row of |
| 1578 |
\verb|%%|~signs both above and below. Keep in mind the potential for |
| 1579 |
author definitions to interfere or over-ride journal macros and |
| 1580 |
specifications; for example, authors may have commands to specify page |
| 1581 |
dimensions, or fonts for sections, or numbering schemes. Where these |
| 1582 |
do not collide with journal requirements, they can probably be safely |
| 1583 |
retained. However, where there is interference, journal definitions |
| 1584 |
take precedence. Ideally, authors will increasingly switch to using |
| 1585 |
the \NRC's document classes and reduce the chances of such problems. |
| 1586 |
|
| 1587 |
|
| 1588 |
%% Section 6.5 |
| 1589 |
\subsection{Other additions in the preamble area} |
| 1590 |
|
| 1591 |
Some if not all of the following macros are used by the \NRC's |
| 1592 |
in-house production team, and not by the author. They are input in the |
| 1593 |
file after all packages have been loaded, and before the |
| 1594 |
\verb|\begin{document}| statement: |
| 1595 |
|
| 1596 |
\begin{verbatim} |
| 1597 |
\setcounter{page}{<number>} |
| 1598 |
\journal{<abbrev.>} |
| 1599 |
\journalcode{<acro>} |
| 1600 |
\volyear{<vol no.>}[<copyright year>]{<year>} |
| 1601 |
\filenumber{<file no.>} |
| 1602 |
|
| 1603 |
\received{<complete date>} |
| 1604 |
\revreceived{<complete date>} |
| 1605 |
\accepted{<complete date>} |
| 1606 |
\revaccepted{<complete date>} |
| 1607 |
\IDdate or \IDdates{<Addit'nal text + date info>} |
| 1608 |
\webpub{<complete date>} |
| 1609 |
\commdate{<complete date>} |
| 1610 |
|
| 1611 |
\assoced{<name of assoc. ed.>} |
| 1612 |
\corred{<name of correspond. ed.>} |
| 1613 |
\end{verbatim} |
| 1614 |
|
| 1615 |
\begin{description} \itemsep=0pt |
| 1616 |
\item [{\tt \blash |
| 1617 |
setcounter\char`\{page\char`\}\char`\{...\char`\}}] \mbox{} |
| 1618 |
|
| 1619 |
Insert starting page number for article. The information will |
| 1620 |
be printed on the titlepage (bottom left) and in the running |
| 1621 |
head; the complete page range will be calculated and inserted |
| 1622 |
automatically when the file is run a second time. |
| 1623 |
|
| 1624 |
\newpage |
| 1625 |
|
| 1626 |
|
| 1627 |
\item [{\tt \blash journal\char`\{...\char`\}}] \mbox{} |
| 1628 |
|
| 1629 |
Specific journal abbreviations must be entered via this macro |
| 1630 |
(e.g., \verb|Can. J. Civ. Eng.|). |
| 1631 |
The \verb|\journal| command records the web address that |
| 1632 |
will be used for this paper when it is published on the web; |
| 1633 |
note that the \verb|\journalcode| command may be used as an |
| 1634 |
alternative to \verb|\journal|. |
| 1635 |
|
| 1636 |
See Appendix~A for complete list of journal abbreviations. |
| 1637 |
|
| 1638 |
|
| 1639 |
\item [{\tt \blash journalcode\char`\{...\char`\}}] \mbox{} |
| 1640 |
|
| 1641 |
The argument is the ``journal acronym'' (see table in |
| 1642 |
Appendix~A for a list). This acronym identifies the journal, |
| 1643 |
and the \verb|\journalcode| command uses it to set the |
| 1644 |
journal abbreviation and the web site addresses; note that |
| 1645 |
the \verb|\journal| command may be used as an alternative to |
| 1646 |
\verb|\journalcode|. |
| 1647 |
|
| 1648 |
|
| 1649 |
\item [{\tt \blash |
| 1650 |
volyear\char`\{...\char`\}[...]\char`\{...\char`\}}] \mbox{} |
| 1651 |
|
| 1652 |
First argument is for the volume number. The second |
| 1653 |
(optional) argument specifies the copyright year; if the |
| 1654 |
argument is not present, the copyright year is assumed to be |
| 1655 |
the same as the production year. The third argument |
| 1656 |
specifies the publication year, which is used in the |
| 1657 |
titlepage footer and in the left running head. |
| 1658 |
|
| 1659 |
|
| 1660 |
\item [{\tt \blash filenumber\char`\{...\char`\}}] \mbox{} |
| 1661 |
|
| 1662 |
Insert the \NRC's file number here.\label{filenumber} The |
| 1663 |
number will be appended to the canned text \verb|10-1139/|, |
| 1664 |
which appears bottom centre of the |
| 1665 |
opening page. If \verb|\filenumber| is missing, the following |
| 1666 |
will be printed: {\it Zxx-xxx\/}. |
| 1667 |
|
| 1668 |
{\bf Note:} The {\small DOI} line prints in the same location |
| 1669 |
as text for the class options \verb|proof| and |
| 1670 |
\verb|pagnf|. Comment these class options out once it becomes |
| 1671 |
necessary to have the {\small DOI} line print at bottom |
| 1672 |
centre of the opening page. See section~\ref{proof-pagnf}. |
| 1673 |
|
| 1674 |
|
| 1675 |
\item [{\tt \blash filenumber*\char`\{...\char`\}}] \mbox{} |
| 1676 |
|
| 1677 |
Add an asterisk to the \verb|\filenumber| macro when it is |
| 1678 |
necessary for the filenumber to be prefixed to the page |
| 1679 |
numbers, in addition to appearing in the DOI line. |
| 1680 |
|
| 1681 |
All page numbers in the headers, and on the opening page at |
| 1682 |
the bottom left will have the filenumber prefixed to them. |
| 1683 |
|
| 1684 |
{\bf Note:} The filenumber will {\bf not} be prefixed to any |
| 1685 |
page cross-references (via the \verb|\pageref| macro). |
| 1686 |
|
| 1687 |
|
| 1688 |
\item [{\tt \blash received\char`\{...\char`\}}] \mbox{} |
| 1689 |
|
| 1690 |
Insert date as per journal style --- e.g., June 6, 2001 --- |
| 1691 |
but without a final period (it is automatically inserted). |
| 1692 |
The word `Received' (Fr.\ `Re\c cu le') will be automatically |
| 1693 |
generated; however, the date must be input in French (e.g., 6 |
| 1694 |
juin 2001). This text appears in the author IDbox area. |
| 1695 |
|
| 1696 |
\newpage |
| 1697 |
|
| 1698 |
\item [{\tt \blash revreceived\char`\{...\char`\}}] \mbox{} |
| 1699 |
|
| 1700 |
Same instructions as for \texttt{\blash received}. The text |
| 1701 |
`Revision received' (Fr.\ `R\'evision re\c cue le') will be |
| 1702 |
automatically generated. This text appears in the author |
| 1703 |
IDbox area. |
| 1704 |
|
| 1705 |
|
| 1706 |
\item [{\tt \blash accepted\char`\{...\char`\}}] \mbox{} |
| 1707 |
|
| 1708 |
Same instructions as for \texttt{\blash received}. The word |
| 1709 |
`Accepted' (Fr.\ `Accept\'e le') will be automatically |
| 1710 |
generated. This text appears in the author IDbox area. |
| 1711 |
|
| 1712 |
|
| 1713 |
\item [{\tt \blash revaccepted\char`\{...\char`\}}] \mbox{} |
| 1714 |
|
| 1715 |
Same instructions as for \texttt{\blash received}. The text |
| 1716 |
`Revision accepted' (Fr.\ `R\'evision accept\'ee le') will be |
| 1717 |
automatically generated. This text appears in the author |
| 1718 |
IDbox area. |
| 1719 |
|
| 1720 |
|
| 1721 |
\item [{\tt \blash IDdates\char`\{...\char`\}}] \mbox{} |
| 1722 |
|
| 1723 |
Unlike \verb|\received| and \verb|\accepted|, no canned text or |
| 1724 |
final punctuation is included, allowing the user to insert |
| 1725 |
customised text and/or date information, which appears in the |
| 1726 |
author IDbox area. An alias, \verb|\IDdate|, is also |
| 1727 |
available. |
| 1728 |
|
| 1729 |
|
| 1730 |
\item [{\tt \blash webpub\char`\{...\char`\}}] \mbox{} |
| 1731 |
|
| 1732 |
Insert date of publication at the \NRC{} website as per |
| 1733 |
journal style --- e.g., June 6, 2001 --- but without a final |
| 1734 |
period (it is automatically inserted). The text will appear |
| 1735 |
in the author IDbox area. |
| 1736 |
|
| 1737 |
For English-language articles, the text `Published on the |
| 1738 |
{\small NRC} Research Press Web site at \verb|webaddress| on |
| 1739 |
\verb|date|' will be automatically generated. The website |
| 1740 |
address is generated by using either the \verb|\journal| or |
| 1741 |
\verb|\journalcode| macros. |
| 1742 |
|
| 1743 |
For French-language articles, the text `Publi\'{e} sur le |
| 1744 |
site Web des Presses scientifiques du {\small CNRC}, \`a |
| 1745 |
\verb|webaddress|, le \verb|date|' will be automatically |
| 1746 |
generated. Note that the date must be input in French (e.g., |
| 1747 |
6 juin 2001). |
| 1748 |
|
| 1749 |
|
| 1750 |
\item [{\tt \blash commdate\char`\{...\char`\}}] \mbox{} |
| 1751 |
|
| 1752 |
Insert date as per journal style --- e.g., June 6, 2001 --- |
| 1753 |
but without a final period (it is automatically inserted). |
| 1754 |
The text `Written discussion of this article is welcomed and |
| 1755 |
will be received by the Editor until' (Fr.\ `Les commentaires |
| 1756 |
sur le contenu de cet article doivent \^{e}tre envoy\'{e}s au |
| 1757 |
directeur scientifique de la revue avant le') will be |
| 1758 |
automatically generated; however, the date must be input in |
| 1759 |
French (e.g., 6 juin 2001). This text appears in the author |
| 1760 |
IDbox area. |
| 1761 |
|
| 1762 |
|
| 1763 |
\item [{\tt \blash assoced\char`\{...\char`\}}] \mbox{} |
| 1764 |
|
| 1765 |
Insert name of associate editor, without a final period. The |
| 1766 |
text `Paper handled by Associate Editor' (Fr.\ `Production de |
| 1767 |
l'article coordonn\'{e}e par le directeur scientifique |
| 1768 |
associ\'{e}') will be automatically generated. This text |
| 1769 |
appears in the author IDbox area. |
| 1770 |
|
| 1771 |
\newpage |
| 1772 |
|
| 1773 |
|
| 1774 |
\item [{\tt \blash corred\char`\{...\char`\}}] \mbox{} |
| 1775 |
|
| 1776 |
Insert name of associate editor, without a final period. The |
| 1777 |
text `Corresponding Editor:' (Fr.\ `Directeur scientifique |
| 1778 |
correspondant\,:') will be automatically generated. This text |
| 1779 |
appears in the author IDbox~area. |
| 1780 |
\end{description} |
| 1781 |
|
| 1782 |
|
| 1783 |
%% Section 6.6 |
| 1784 |
\subsection{Special titleblocks\label{specialtitles}} |
| 1785 |
|
| 1786 |
Some journal material requires a special heading: a solid black stripe |
| 1787 |
with reversed-out white lettering. The white-on-black effect requires |
| 1788 |
the presence of a special package in the preamble area, immediately |
| 1789 |
below the graphics package, in addition to the special title coding: |
| 1790 |
|
| 1791 |
\begin{verbatim} |
| 1792 |
\usepackage{color} |
| 1793 |
\end{verbatim} |
| 1794 |
|
| 1795 |
\noindent Since both the \texttt{graphicx} package and \texttt{color} |
| 1796 |
share the same option, it is possible to merge them into one line: |
| 1797 |
|
| 1798 |
\begin{verbatim} |
| 1799 |
\usepackage{graphicx,color} |
| 1800 |
\end{verbatim} |
| 1801 |
|
| 1802 |
\noindent Having added the \texttt{color} package, the actual special |
| 1803 |
title command will now work. There are two versions of the command: |
| 1804 |
|
| 1805 |
\begin{description} \itemsep=0pt |
| 1806 |
\item [{\tt \blash specialtitle}] \mbox{} |
| 1807 |
|
| 1808 |
This allows the regular titleblock (\verb|\title|, etc.) to |
| 1809 |
be included with the special title; for example, a review |
| 1810 |
article with its own title. |
| 1811 |
% |
| 1812 |
\begin{verbatim} |
| 1813 |
\begin{document} |
| 1814 |
\specialtitle{REVIEW/SYNTH\`ESE} |
| 1815 |
\title{Regular article title} |
| 1816 |
\author{Someone's name here} |
| 1817 |
\address{Someplace nice and warm} |
| 1818 |
\correspond |
| 1819 |
\shortauthor{Review/Synth\`ese} |
| 1820 |
\maketitle |
| 1821 |
\end{verbatim} |
| 1822 |
|
| 1823 |
\item [{\tt \blash specialtitle*}]\mbox{} |
| 1824 |
|
| 1825 |
The regular article titleblock cannot be used with this |
| 1826 |
variant; for example, an editorial or other non-article |
| 1827 |
material. |
| 1828 |
% |
| 1829 |
\begin{verbatim} |
| 1830 |
\begin{document} |
| 1831 |
\specialtitle*{EDITORIAL/\'EDITORIAL} |
| 1832 |
\shortauthor{Editorial/\'Editorial} |
| 1833 |
\maketitle |
| 1834 |
\end{verbatim} |
| 1835 |
|
| 1836 |
For non-articles, the headers and footers are changed by |
| 1837 |
using the \verb|\pagestyle{nrcplain}| command. The page |
| 1838 |
numbers will appear at bottom centre, the \NRC{} Canada |
| 1839 |
copyright footer is suppressed, and the running heads are |
| 1840 |
suppressed entirely. For further adjustments to pagination, |
| 1841 |
see `Miscellaneous adjustments'. |
| 1842 |
\end{description} |
| 1843 |
|
| 1844 |
|
| 1845 |
%% Section 6.7 |
| 1846 |
\subsection{Translations of abstracts/resum\'es} |
| 1847 |
|
| 1848 |
The following lines are inserted at the end of each abstract or |
| 1849 |
resum\'e, before the \verb|\end{...}| statement: |
| 1850 |
|
| 1851 |
\begin{description} \itemsep=0pt |
| 1852 |
\item [{\tt \blash translation}] generates the text: `[Journal |
| 1853 |
translation]'. |
| 1854 |
|
| 1855 |
\item [{\tt \blash traduit}] generates the text: `[Traduit par la |
| 1856 |
r\'edaction]'. |
| 1857 |
|
| 1858 |
\item [{\tt \blash Traduit}] generates the text: `[Traduit par la |
| 1859 |
R\'edaction]'. |
| 1860 |
\end{description} |
| 1861 |
|
| 1862 |
\noindent Note that author files will only have one: an abstract or a |
| 1863 |
resum\'e. It is useful to insert a suitable \verb|\vspace| to |
| 1864 |
represent the approximate space the translation would require, so that |
| 1865 |
page breaks will not be unduly affected by the additional text. |
| 1866 |
|
| 1867 |
|
| 1868 |
%% Section 6.8 |
| 1869 |
\subsection{Miscellaneous adjustments} |
| 1870 |
|
| 1871 |
\begin{enumerate} \itemsep=0pt |
| 1872 |
\item Journals requiring more space between lines will need the |
| 1873 |
following command inserted into the preamble area: |
| 1874 |
% |
| 1875 |
\begin{verbatim} |
| 1876 |
\easebaselines |
| 1877 |
\end{verbatim} |
| 1878 |
|
| 1879 |
This command will also adjust the inter-row spacing within |
| 1880 |
tables (value of \verb|\arraystretch| increases to 1.05). |
| 1881 |
|
| 1882 |
|
| 1883 |
\item For {\bf roman numerals}, with only page numbers in the |
| 1884 |
footers, insert the following lines at the end of the |
| 1885 |
preamble, just above the \verb|\begin{document}| line (notice |
| 1886 |
that, in this example, pagination will begin with roman iii): |
| 1887 |
% |
| 1888 |
\begin{verbatim} |
| 1889 |
\pagestyle{nrcplain} |
| 1890 |
\pagenumbering{roman} |
| 1891 |
\setcounter{page}{3} |
| 1892 |
\end{verbatim} |
| 1893 |
|
| 1894 |
\item To add parentheses (or any other design element) to (roman) |
| 1895 |
page numbers, insert the following just before the |
| 1896 |
\verb|\setcounter{page}{...}| command: |
| 1897 |
% |
| 1898 |
\begin{verbatim} |
| 1899 |
\renewcommand\thepage{(\roman{page})} |
| 1900 |
\end{verbatim} |
| 1901 |
|
| 1902 |
\item For full-width text spanning two columns, the default left |
| 1903 |
and right margins can be altered by using the following |
| 1904 |
optional argument to the \verb|{WideText}| environment |
| 1905 |
(recall that the default values are 0em on the left, 3em on |
| 1906 |
the right): |
| 1907 |
|
| 1908 |
\begin{verbatim} |
| 1909 |
\begin{WideText}[<l.margin>][<r.margin>] |
| 1910 |
<text here> |
| 1911 |
\end{WideText} |
| 1912 |
\end{verbatim} |
| 1913 |
\end{enumerate} |
| 1914 |
|
| 1915 |
|
| 1916 |
%% Section 6.9 |
| 1917 |
\subsection{Two-column bilingual texts} |
| 1918 |
|
| 1919 |
Special coding at both the top of the file and around the bilingual |
| 1920 |
paragraphs is required. |
| 1921 |
|
| 1922 |
|
| 1923 |
%% Section 6.9.1 |
| 1924 |
\subsubsection{In the preamble\label{bilingpream}} |
| 1925 |
|
| 1926 |
First, load the appropriate package and options. These are added after |
| 1927 |
the \verb|\documentclass| line in the preamble. |
| 1928 |
|
| 1929 |
\newpage |
| 1930 |
|
| 1931 |
\begin{enumerate} \itemsep=0pt |
| 1932 |
\item if main (left column) language is English: |
| 1933 |
|
| 1934 |
\verb|\usepackage[french,english]{babel}| |
| 1935 |
|
| 1936 |
As English is the default, there is no need to specify it as |
| 1937 |
an option to the document class. |
| 1938 |
|
| 1939 |
\item if main (left column) language is French, there is an |
| 1940 |
additional option to add to the document class line: |
| 1941 |
|
| 1942 |
\verb|\documentclass[french]{nrc1}| |
| 1943 |
|
| 1944 |
\verb|\usepackage[english,french]{babel}| |
| 1945 |
|
| 1946 |
See sections~\ref{frenchclassoption} and \ref{babelinfo}, |
| 1947 |
which also discuss the \textsf{babel} package. |
| 1948 |
\end{enumerate} |
| 1949 |
|
| 1950 |
|
| 1951 |
%% Section 6.9.2 |
| 1952 |
\subsubsection{In the bilingual text} |
| 1953 |
|
| 1954 |
The next step is to code the English and French texts so that the tops |
| 1955 |
of matching paragraphs align horizontally. One set of codes surrounds |
| 1956 |
the entire bilingual set of paragraphs; another set of codes is put |
| 1957 |
around each matched set of English-French paragraphs. |
| 1958 |
|
| 1959 |
\begin{verbatim} |
| 1960 |
1. \begin{par-text}[<language>] |
| 1961 |
2. \begin{par-para} |
| 1962 |
3. ... <English paragraph> ... |
| 1963 |
4. \othercol |
| 1964 |
5. ... <French paragraph> ... |
| 1965 |
6. \end{par-para} |
| 1966 |
7. |
| 1967 |
8. \begin{par-para} |
| 1968 |
9. ... <English paragraph> ... |
| 1969 |
10. \othercol |
| 1970 |
11. ... <French paragraph> ... |
| 1971 |
12. \end{par-para} |
| 1972 |
13. \end{par-text} |
| 1973 |
\end{verbatim} |
| 1974 |
|
| 1975 |
\begin{description} \itemsep=0pt |
| 1976 |
\item [lines 1, 13:] The entire 2-column section of matching |
| 1977 |
paragraphs is set inside a \verb|par-text| environment. This |
| 1978 |
separates the parallel text portion of a file from other |
| 1979 |
elements that may not require such formatting: headings or |
| 1980 |
other text, graphics inclusions, etc. The \verb|par-text| |
| 1981 |
command has one required option (language) and two width |
| 1982 |
options (to change from default values). |
| 1983 |
|
| 1984 |
\item [line 1: \tt{[<language>]}] When the left-column language |
| 1985 |
is\break English, \verb|[french]| is the right-column |
| 1986 |
`option'. |
| 1987 |
|
| 1988 |
When left-column language is French, the right-column |
| 1989 |
language option is \verb|[english]|. {\bf Also required} is |
| 1990 |
the preamble code specified in section~\ref{bilingpream}, |
| 1991 |
item~2. |
| 1992 |
|
| 1993 |
\item [line 1:] The default column widths, which do {\bf not} need |
| 1994 |
to be specified, are: |
| 1995 |
|
| 1996 |
\hspace{1pc}\begin{tabular}{lccc} |
| 1997 |
& left col & inter-col & right col \\ [2pt] |
| 1998 |
\tt nrc1 & 15.5pc & 1.5pc & 17pc \\ |
| 1999 |
\tt nrc2 & 20.75pc & 1.5pc & 20.75pc \\ |
| 2000 |
\end{tabular} |
| 2001 |
|
| 2002 |
To change left-column width and inter-column space (the right |
| 2003 |
column width is calculated, based on these other two |
| 2004 |
dimensions): |
| 2005 |
|
| 2006 |
\begin{verbatim} |
| 2007 |
\begin{par-text}[<lang.>][<dimen1>][<dimen2>] |
| 2008 |
\end{verbatim} |
| 2009 |
|
| 2010 |
where \verb|<dimen1>| is the new left column width, and |
| 2011 |
\verb|<dimen2>| is the new inter-column space. If only the |
| 2012 |
inter-column space, \verb|<dimen2>|, is to change, |
| 2013 |
\verb|<dimen1>| must still be inserted, in order for the |
| 2014 |
program to find the 2nd set of square brackets. |
| 2015 |
|
| 2016 |
\item [lines 2 and 6:] matching English/French paragraphs are set |
| 2017 |
inside a \verb|par-para| environment |
| 2018 |
|
| 2019 |
\item [lines 3 and 5:] the matched sets of paragraphs (which can of |
| 2020 |
course be longer than one line!) |
| 2021 |
|
| 2022 |
\item [lines 4 and 10:] to signal the end of the left-column |
| 2023 |
paragraph and the start of its matching right column |
| 2024 |
paragraph, use \verb|\othercol| |
| 2025 |
|
| 2026 |
\item [line 7:] to make it easier to read the source file, separate |
| 2027 |
each set of \verb|{par-para}| with a blank line or a {\tt \%} |
| 2028 |
sign |
| 2029 |
\end{description} |
| 2030 |
|
| 2031 |
\noindent {\bf Note:} The default vertical space between lines is set |
| 2032 |
at 1pc ($\approx$ one blank line). To change this at specific points, |
| 2033 |
explicit \verb|\vspace{...}| commands can be inserted between sets of |
| 2034 |
\verb|{par-para}|. To change this for the entire file, insert |
| 2035 |
\verb|\parallelparsep{<some dimen.>}| before \verb|{par-text}|. |
| 2036 |
|
| 2037 |
|
| 2038 |
%% Section 7: |
| 2039 |
\section{Final notes} |
| 2040 |
|
| 2041 |
\begin{enumerate} \itemsep=0pt |
| 2042 |
\item There is no dotless-j available in Adobe PostScript fonts. |
| 2043 |
The only dotless-j appears in math mode --- $\jmath$ --- |
| 2044 |
which is accessed by \verb|$\jmath$|. |
| 2045 |
|
| 2046 |
\item Only English and French hyphenation are currently set up; |
| 2047 |
English is the default, French is invoked by \textsf{babel}, |
| 2048 |
and the class selects French or English hyphenation as |
| 2049 |
necessary, as it goes along (provided the appropriate |
| 2050 |
hyphenation patterns have been installed). |
| 2051 |
\end{enumerate} |
| 2052 |
|
| 2053 |
\clearpage |
| 2054 |
|
| 2055 |
|
| 2056 |
\section*{Appendix A} |
| 2057 |
|
| 2058 |
\subsection*{Journal reference grid} |
| 2059 |
|
| 2060 |
{\footnotesize |
| 2061 |
\begin{tabular}{@{}lllll@{}} |
| 2062 |
\hline \hline |
| 2063 |
Journal name |
| 2064 |
& Journal abbreviation |
| 2065 |
& Journal |
| 2066 |
& English website |
| 2067 |
& French website \T \\ |
| 2068 |
& & acronym & & \B \\ |
| 2069 |
\hline |
| 2070 |
Biochemistry and Cell Biology\T |
| 2071 |
& Biochem. Cell Biol. |
| 2072 |
& bcb |
| 2073 |
& http://bcb.nrc.ca |
| 2074 |
& http://bbc.cnrc.ca \\ [2pt] |
| 2075 |
% |
| 2076 |
Canadian Geotechnical Journal |
| 2077 |
& Can. Geotech. J. |
| 2078 |
& cgj |
| 2079 |
& http://cgj.nrc.ca |
| 2080 |
& http://rcg.cnrc.ca \\ [2pt] |
| 2081 |
% |
| 2082 |
Canadian Journal of Botany |
| 2083 |
& Can. J. Bot. |
| 2084 |
& cjb |
| 2085 |
& http://canjbot.nrc.ca |
| 2086 |
& http://revcanbot.cnrc.ca \\ [2pt] |
| 2087 |
% |
| 2088 |
Canadian Journal of Chemistry |
| 2089 |
& Can. J. Chem. |
| 2090 |
& cjc |
| 2091 |
& http://canjchem.nrc.ca |
| 2092 |
& http://revcanchim.cnrc.ca \\ [2pt] |
| 2093 |
% |
| 2094 |
Canadian Journal of Civil Engineering |
| 2095 |
& Can. J. Civ. Eng. |
| 2096 |
& cjce |
| 2097 |
& http://cjce.nrc.ca |
| 2098 |
& http://rcgc.cnrc.ca \\ [2pt] |
| 2099 |
% |
| 2100 |
Canadian Journal of Earth Sciences |
| 2101 |
& Can. J. Earth Sci. |
| 2102 |
& cjes |
| 2103 |
& http://cjes.nrc.ca |
| 2104 |
& http://rcst.cnrc.ca \\ [2pt] |
| 2105 |
% |
| 2106 |
Canadian Journal of Fisheries |
| 2107 |
& Can. J. Fish. Aquat. Sci. |
| 2108 |
& cjfas |
| 2109 |
& http://cjfas.nrc.ca |
| 2110 |
& http://jcsha.cnrc.ca \\ |
| 2111 |
\quad and Aquatic Sciences \\ [2pt] |
| 2112 |
% |
| 2113 |
Canadian Journal of Forest Research |
| 2114 |
& Can. J. For. Res. |
| 2115 |
& cjfr |
| 2116 |
& http://cjfr.nrc.ca |
| 2117 |
& http://rcrf.cnrc.ca \\ [2pt] |
| 2118 |
% |
| 2119 |
Canadian Journal of Microbiology |
| 2120 |
& Can. J. Microbiol. |
| 2121 |
& cjm |
| 2122 |
& http://cjm.nrc.ca |
| 2123 |
& http://rcm.cnrc.ca \\ [2pt] |
| 2124 |
% |
| 2125 |
Canadian Journal of Physics |
| 2126 |
& Can. J. Phys. |
| 2127 |
& cjp |
| 2128 |
& http://cjp.nrc.ca |
| 2129 |
& http://rcp.cnrc.ca \\ [2pt] |
| 2130 |
% |
| 2131 |
Canadian Journal of Physiology |
| 2132 |
& Can. J. Physiol. |
| 2133 |
& cjpp |
| 2134 |
& http://cjpp.nrc.ca |
| 2135 |
& http://rcpp.cnrc.ca \\ |
| 2136 |
\quad and Pharmacology \\ [2pt] |
| 2137 |
% |
| 2138 |
Canadian Journal of Zoology |
| 2139 |
& Can. J. Zool. |
| 2140 |
& cjz |
| 2141 |
& http://cjz.nrc.ca |
| 2142 |
& http://rcz.cnrc.ca \\ [2pt] |
| 2143 |
% |
| 2144 |
Environmental Reviews |
| 2145 |
& Environ. Rev. |
| 2146 |
& er |
| 2147 |
& http://er.nrc.ca |
| 2148 |
& http://de.cnrc.ca \\ [2pt] |
| 2149 |
% |
| 2150 |
Genome |
| 2151 |
& Genome |
| 2152 |
& gen |
| 2153 |
& http://genome.nrc.ca |
| 2154 |
& http://genome.cnrc.ca \\ [2pt] |
| 2155 |
% |
| 2156 |
Journal of Environmental |
| 2157 |
& J. Environ. Eng. Sci. |
| 2158 |
& jees |
| 2159 |
& http://jees.nrc.ca |
| 2160 |
& http://rgse.cnrc.ca \\ |
| 2161 |
\quad Engineering and Science \B \\ |
| 2162 |
\hline \hline |
| 2163 |
\end{tabular} |
| 2164 |
} |
| 2165 |
|
| 2166 |
\clearpage |
| 2167 |
|
| 2168 |
\onecolumn |
| 2169 |
|
| 2170 |
\section*{Appendix B} |
| 2171 |
|
| 2172 |
\subsection*{Canned Preamble: \texttt{nrc-opening.tex}} |
| 2173 |
|
| 2174 |
\begin{verbatim} |
| 2175 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2176 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2177 |
%% |
| 2178 |
%% Typeset by , Research Press, NRC |
| 2179 |
%% Date: |
| 2180 |
%% NRC, <name of journal> |
| 2181 |
%% |
| 2182 |
%%%%%%%%%%%%%% |
| 2183 |
%% |
| 2184 |
%% 1. See original preamble material (at bottom of file) for |
| 2185 |
%% details on source of current .tex file: conversion |
| 2186 |
%% from word-processing program or author-generated TeX |
| 2187 |
%% code. |
| 2188 |
%% |
| 2189 |
%% 2. This template includes most options and packages used by |
| 2190 |
%% all the NRC journals. UNcomment those packages and options |
| 2191 |
%% which are REQUIRED. |
| 2192 |
%% |
| 2193 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2194 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2195 |
|
| 2196 |
|
| 2197 |
%% 1. Class file (nrc1 or nrc2) + options (see userguide, pp.1-2; p.9): |
| 2198 |
\documentclass[%% french, %% use with \usepackage[french]{babel} |
| 2199 |
%% leqno, %% only for nrc1 (default is right eqno) |
| 2200 |
%% reqno, %% only for nrc2 (default is left eqno) |
| 2201 |
%% nonumbib, %% biblio entries without nos. |
| 2202 |
% |
| 2203 |
%% breakaddress, %% linebreak btwn author(s) + address(es) |
| 2204 |
%% twocolid, %% IDbox spans 2 cols |
| 2205 |
%% twocolid*, %% 2-col IDbox |
| 2206 |
%% preprint, %% removes identifying nos. from headers/footers |
| 2207 |
%% proof, %% `Proof/Epreuve' in footer |
| 2208 |
%% pagnf, %% `Pagination not final/Pagination non finale' |
| 2209 |
%% trimmarks, %% add trimmarks |
| 2210 |
%% finalverso, %% final blank verso NOT included in pagerange |
| 2211 |
]{nrc2} %% choose one: nrc1 or nrc2 |
| 2212 |
|
| 2213 |
%% NOTE: authors may use the following options, which should be |
| 2214 |
%% DELETED once the file comes in-house: |
| 2215 |
%% |
| 2216 |
%% usecmfonts type1rest genTeX |
| 2217 |
|
| 2218 |
|
| 2219 |
%% 2. Frequently used packages -- see pp.2-3 of userguide: |
| 2220 |
%% a. graphics-related: |
| 2221 |
%% \usepackage{graphicx} %% color not usually needed |
| 2222 |
%% \usepackage[figuresright]{rotating} %% for landscape tables |
| 2223 |
|
| 2224 |
%% b. math-related: |
| 2225 |
%% \usepackage{amsmath} %% math macros in wide use |
| 2226 |
%% \usepackage{amssymb} %% additional math symbols |
| 2227 |
%% \usepackage{dcolumn} %% decimal alignment for tables |
| 2228 |
%% \usepackage{bm} %% `bold math' via \bm command |
| 2229 |
|
| 2230 |
%% c. for website addresses: |
| 2231 |
%% \usepackage{url} %% inserts linebreaks automatically |
| 2232 |
%% \NRCurl{url} |
| 2233 |
|
| 2234 |
%% d. biblio-related: |
| 2235 |
%% \usepackage{cite} %% enhances options for \cite commands |
| 2236 |
|
| 2237 |
%% e. for English-language papers: |
| 2238 |
%% \usepackage[french,english]{babel} |
| 2239 |
|
| 2240 |
%% f. for French-language papers: |
| 2241 |
%% \usepackage[english,french]{babel} %% remember to add french as a |
| 2242 |
%% CLASS option, above |
| 2243 |
%% g. for ragged-right tables: |
| 2244 |
%% \usepackage{array} |
| 2245 |
%% \newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp} |
| 2246 |
%% \let\PBS=\PreserveBackslash |
| 2247 |
|
| 2248 |
%% h. for left curly brace to span several lines of equations: |
| 2249 |
%% \usepackage{cases} |
| 2250 |
%% \expandafter\let\csname numc@left\expandafter\endcsname\csname |
| 2251 |
%% z@\endcsname |
| 2252 |
|
| 2253 |
|
| 2254 |
%% 3. Resetting float parameters: |
| 2255 |
%% a. in nrc1: |
| 2256 |
%% \renewcommand{\topfraction}{.95} |
| 2257 |
%% \renewcommand{\textfraction}{.05} |
| 2258 |
%% \renewcommand{\floatpagefraction}{.95} |
| 2259 |
|
| 2260 |
%% b. in nrc2: |
| 2261 |
%% \renewcommand{\topfraction}{.95} |
| 2262 |
%% \renewcommand{\floatpagefraction}{.95} |
| 2263 |
%% \renewcommand{\dbltopfraction}{.95} |
| 2264 |
%% \renewcommand{\textfraction}{.05} |
| 2265 |
%% \renewcommand{\dblfloatpagefraction}{.95} |
| 2266 |
|
| 2267 |
|
| 2268 |
%% 4. Resetting journal-specific parameters: |
| 2269 |
%% a. eqn nos. with section nos.: |
| 2270 |
%% \numberby {equation}{section} |
| 2271 |
%% \setcounter{equation}{0} |
| 2272 |
|
| 2273 |
%% b. in-line citations to use ( ) instead of default [ ]: |
| 2274 |
%% \renewcommand{\citeleft}{(} |
| 2275 |
%% \renewcommand{\citeright}{)} |
| 2276 |
|
| 2277 |
%% c. for JEES (to expand inter-line spacing; see p.12 of guide): |
| 2278 |
%% \easebaselines |
| 2279 |
|
| 2280 |
|
| 2281 |
%% 5. Miscellaneous macros to always have available: |
| 2282 |
%% a. shorthands: |
| 2283 |
\let\p=\phantom |
| 2284 |
\let\mc=\multicolumn |
| 2285 |
|
| 2286 |
%% b. struts for vertical spacing above/below rules in tables: |
| 2287 |
%%%%%%%%%%%%%%%%%% beginning of Claudio Beccari's code: |
| 2288 |
%% Spacing commands for {tabular} (from TTN 2,3:10 -- Claudio |
| 2289 |
%% Beccari): |
| 2290 |
%% Usage: a. use \T to put space below a line |
| 2291 |
%% (e.g., at top of a `cell' of text) |
| 2292 |
%% b. use \B to put space above a line |
| 2293 |
%% (e.g., at bottom of a `cell' of text) |
| 2294 |
\newcommand\T{\rule{0pt}{2.6ex}} % = `top' strut |
| 2295 |
\newcommand\B{\rule[-1.2ex]{0pt}{0pt}} % = `bottom' strut |
| 2296 |
%%%%%%%%%%%%%%%%%% end of Claudio's code |
| 2297 |
|
| 2298 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% end of class and package |
| 2299 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% options, additional macros |
| 2300 |
|
| 2301 |
|
| 2302 |
%% Journal-specific information for opening page -- pp.9-11 of guide: |
| 2303 |
%% a. numbers: |
| 2304 |
\setcounter{page}{1} %% replace 1 with starting page no. |
| 2305 |
\volyear{XX}{2001} %% volume, year of journal |
| 2306 |
\journal{} %% jrnl. abbrev. (see App.A of guide) |
| 2307 |
\journalcode{} %% jrnl. acro (see App.A of guide) |
| 2308 |
\filenumber{} %% NRC file number |
| 2309 |
%% \filenumber*{} %% prefixes \filenumber to all page nos. |
| 2310 |
%% NOTE: COMMENT OUT class options |
| 2311 |
%% pagnf |
| 2312 |
%% proof |
| 2313 |
%% once no longer needed |
| 2314 |
|
| 2315 |
|
| 2316 |
%% b. dates: |
| 2317 |
\received{} %% insert date, no period |
| 2318 |
\revreceived{} %% <same> |
| 2319 |
\accepted{} %% <same> |
| 2320 |
\revaccepted{} %% <same> |
| 2321 |
%% \IDdates{} %% <same>. Use for `Revised ...' etc. |
| 2322 |
%% \webpub{} %% insert date |
| 2323 |
%% \commdate{} %% <same> |
| 2324 |
|
| 2325 |
|
| 2326 |
%% c. miscellaneous: |
| 2327 |
%% \assoced{} %% insert name of Associate ed. |
| 2328 |
%% \corred{} %% insert name of Corresponding ed. |
| 2329 |
%% \dedication{} %% insert text as neede |
| 2330 |
%% \abbreviations{} %% insert as needed |
| 2331 |
|
| 2332 |
|
| 2333 |
\begin{document} |
| 2334 |
|
| 2335 |
%% Reversed titlebar -- see p.11 of userguide: |
| 2336 |
%% \specialtitle{} %% for black stripe + text + regular title |
| 2337 |
%% \specialtitle*{} %% black stripe + text only |
| 2338 |
|
| 2339 |
|
| 2340 |
|
| 2341 |
|
| 2342 |
%% Title, Author(s), Address(es) -- see p.4 of userguide for |
| 2343 |
%% various options to save time and keyboarding, esp. where |
| 2344 |
%% authors share same address(s). |
| 2345 |
|
| 2346 |
\title{} |
| 2347 |
|
| 2348 |
%% Author 1: |
| 2349 |
\author[J.L. Humar]{John Larry Humar} %% opt. arg. ONLY if IDbox |
| 2350 |
%% name is diff. from |
| 2351 |
%% titleblock name |
| 2352 |
\address{} %% address of 1st author |
| 2353 |
|
| 2354 |
|
| 2355 |
%% Author 2: |
| 2356 |
\author{M.A. Rahgozar} |
| 2357 |
\address{} |
| 2358 |
|
| 2359 |
%% Author 3: |
| 2360 |
\author{Fred Murray} |
| 2361 |
\address{} |
| 2362 |
|
| 2363 |
|
| 2364 |
\shortauthor{Humar, Rahgozar, and Murray} %% for headers |
| 2365 |
|
| 2366 |
%%%%%%%% |
| 2367 |
%% This line goes here in nrc1. |
| 2368 |
%% \maketitle |
| 2369 |
%%%%%%%% |
| 2370 |
|
| 2371 |
|
| 2372 |
%% Abstract/Resume area -- see pp.5,12 of userguide: |
| 2373 |
\begin{abstract} |
| 2374 |
Abstract text |
| 2375 |
%% \keywords{} |
| 2376 |
%% \translation |
| 2377 |
\end{abstract} |
| 2378 |
|
| 2379 |
\begin{resume} |
| 2380 |
Texte du resume |
| 2381 |
%% \motscles{} |
| 2382 |
%% \Traduit %% or \traduit |
| 2383 |
\end{resume} |
| 2384 |
|
| 2385 |
%%%%%%%% |
| 2386 |
%% This line goes here in nrc2. |
| 2387 |
%% \maketitle |
| 2388 |
%%%%%%%% |
| 2389 |
|
| 2390 |
%%%%%%%%%%%%%%%%%%%%%% END OF TEMPLATE %%%%%%%%%%%%%%%%%%%%%% |
| 2391 |
|
| 2392 |
%% Ch. -- 11 NOV 02 |
| 2393 |
|
| 2394 |
\end{verbatim} |
| 2395 |
|
| 2396 |
\end{document} |
| 2397 |
|
| 2398 |
|
| 2399 |
%% END OF FILE |