| 1 |
\documentclass[11pt]{ncc} |
| 2 |
\ToCenter[h]{160mm}{240mm} |
| 3 |
|
| 4 |
\title{\Huge NCC-\LaTeX} |
| 5 |
\author{by Alexander I. Rozhenko} |
| 6 |
\usepackage[headings]{ncchdr} |
| 7 |
|
| 8 |
\TitleBeforeAuthor |
| 9 |
\sectionstyle{center} |
| 10 |
\indentaftersection |
| 11 |
|
| 12 |
\newcommand*\package[1]{\textbf{#1}} |
| 13 |
\newcommand*\bungle[1]{\textit{#1}} |
| 14 |
\newcommand*\Opt[1]{\texttt{\textbf{#1}}} |
| 15 |
|
| 16 |
\newcommand*\Meta[1]{\texttt{\upshape#1}} |
| 17 |
\newcommand*\com[1]{\Meta{\symbol{"5C}#1}} |
| 18 |
\newcommand*\meta[1]{\Meta{\symbol{"7B}{\itshape #1}\symbol{"7D}}} |
| 19 |
\newcommand*\opt[1]{\Meta{[{\itshape #1}]}} |
| 20 |
|
| 21 |
\begin{document} |
| 22 |
\maketitle |
| 23 |
|
| 24 |
\thispageheading{\footnotesize This document was prepared in |
| 25 |
\com{sectionstyle}\meta{\upshape center} with \com{indentaftersection}.\\ |
| 26 |
This heading was printed with \com{thispageheading} command from |
| 27 |
the \package{watermark} package} |
| 28 |
|
| 29 |
\begin{abstract} |
| 30 |
This document describes classes and packages from NCC-\LaTeX. We |
| 31 |
compare the \package{ncc} class with standard \LaTeX's classes |
| 32 |
and point out a difference between the \package{ncc} class and |
| 33 |
\package{ncclatex} package. Packages from the \bungle{ncclatex} |
| 34 |
and \bungle{ncctools} bungles are partially described here. |
| 35 |
\end{abstract} |
| 36 |
|
| 37 |
\tableofcontents |
| 38 |
\newpage |
| 39 |
|
| 40 |
\section{The ncc class} |
| 41 |
|
| 42 |
To mark out features of the \package{ncc} class, we compare it |
| 43 |
with standard \LaTeX\ classes \package{article}, \package{book}, |
| 44 |
and \package{report}. The first and the main distinction is that |
| 45 |
preparing of articles, books, and reports in NCC-\LaTeX\ is |
| 46 |
provided with special options (called \textbf{styles}) of the |
| 47 |
\package{ncc} class instead of using different classes. The |
| 48 |
following style options are allowed for this: |
| 49 |
|
| 50 |
\begin{description}[\Opt{preprint}] |
| 51 |
\item[\Opt{article}] prepares an article. |
| 52 |
|
| 53 |
\item[\Opt{preprint}] prepares an article with a title going on a separate page. The |
| 54 |
\com{preprint}\meta{No} command allows inserting a preprint |
| 55 |
number under the preprint title. |
| 56 |
|
| 57 |
\item[\Opt{book}] prepares a book. The \com{bookeditor}\meta{text} |
| 58 |
command allows inserting a text under the book title. |
| 59 |
|
| 60 |
\item[\Opt{report}] is equivalent to the \Opt{book} option used |
| 61 |
together with the \Opt{oneside} option. |
| 62 |
\end{description} |
| 63 |
|
| 64 |
The \Opt{titlepage} and \Opt{notitlepage} options are not used in |
| 65 |
the \package{ncc} class. The appearance of a title on a separate |
| 66 |
page is controlled in a style used. An \Opt{article} style |
| 67 |
specifies running title and others specify a title on a separate |
| 68 |
page. The \Meta{abstract} environment is defined in all styles. |
| 69 |
It is prepared on a separate page if a title is prepared on a |
| 70 |
separate page. |
| 71 |
|
| 72 |
The page style \Meta{headings} is set by default in all styles except |
| 73 |
articles for which the \Meta{myheadings} style is used. |
| 74 |
|
| 75 |
The default options for the \package{ncc} class are \Opt{10pt}, |
| 76 |
\Opt{a4paper}, \Opt{article}, \Opt{twoside}, \Opt{onecolumn}, |
| 77 |
\Opt{final}, \Opt{openany}. |
| 78 |
|
| 79 |
The class sets \com{unitlength} to 1~mm (i.e. all coordinates in |
| 80 |
the \Meta{picture} environment are calculated in millimeters). |
| 81 |
|
| 82 |
\subsection{Page layout} |
| 83 |
|
| 84 |
All standard paper size options are supported, namely |
| 85 |
\Opt{a4paper}, \Opt{a5paper}, \Opt{b5paper},\linebreak |
| 86 |
\Opt{letterpaper}, \Opt{legalpaper}, \Opt{executivepaper}, and |
| 87 |
\Opt{landscape}. One more paper size option is introduced: |
| 88 |
\Opt{a5a4paper}. It is useful for printing a5 papers on a4 |
| 89 |
printer having centered tray. |
| 90 |
|
| 91 |
In contrast to standard classes, the width and height of the text |
| 92 |
field isn't automatically expanded on the entire page. Text field |
| 93 |
dimensions are defined depending on the base point size: |
| 94 |
|
| 95 |
\begin{center}\renewcommand{\cboxstyle}{\small\bf} |
| 96 |
\setlength\tabcolsep{20pt} |
| 97 |
\begin{tabular}{|c|c|c|}\hline |
| 98 |
\cbox{Point size} & \cbox{Text width} & \cbox{Text height} |
| 99 |
\\\hline |
| 100 |
\Strut/1/ |
| 101 |
10 pt & 110 mm & 157 mm \\ |
| 102 |
11 pt & \jhbox{111}[r]{126.5} mm & 199 mm \\ |
| 103 |
12 pt & 145 mm & 233 mm \\ |
| 104 |
\bstrut |
| 105 |
14 pt & 160 mm & 240 mm \\\hline |
| 106 |
\end{tabular} |
| 107 |
\end{center} |
| 108 |
|
| 109 |
If you want to fit the text field to the entire page in the same |
| 110 |
manner as in standard classes, use the \Opt{fittopage} option. |
| 111 |
|
| 112 |
The text field is centered on the page taking into account the |
| 113 |
header field also, but the margin from the top is corrected |
| 114 |
to be at most 1.5~inch. If you want to center the text field |
| 115 |
taking into account the marginal notes, header, and footer, use |
| 116 |
the command |
| 117 |
\begin{verbatim} |
| 118 |
\ToCenter[hfm]{\textwidth}{\textheight} |
| 119 |
\end{verbatim} |
| 120 |
in the preamble of a document. The optional parameter of this |
| 121 |
command enumerates fields counted while centering. Using this |
| 122 |
command, you can change the width and height of the text field |
| 123 |
and center the result on the page. Other way for changing the |
| 124 |
width and height is using the \com{FromMargins} command. For |
| 125 |
example, the following command |
| 126 |
\begin{verbatim} |
| 127 |
\FromMargins[hf]{20mm}{10mm}{25mm}{15mm} |
| 128 |
\end{verbatim} |
| 129 |
calculates the text field dimensions and margins in such a way to |
| 130 |
provide 20~mm distance from the left border of the page, 10~mm |
| 131 |
distance from the right border, 25~mm distance from the top, and |
| 132 |
15~mm distance from the bottom in assumption that header and |
| 133 |
footer are in use. In two-side printing the left and right |
| 134 |
distances are swapped for even pages. |
| 135 |
|
| 136 |
\subsection{Base point size options} |
| 137 |
|
| 138 |
Along with standard base point size options \Opt{10pt}, |
| 139 |
\Opt{11pt}, and \Opt{12pt}, the \Opt{14pt} size option is |
| 140 |
introduced. In 14~pt, font sizes \com{huge} and \com{Huge} are |
| 141 |
equal to \com{LARGE}. |
| 142 |
|
| 143 |
Sometimes, the standard sizes of fonts used in section markup |
| 144 |
commands are a bit larger than necessary. This case appears when |
| 145 |
a page size is small enough or a base font size is too large. The |
| 146 |
\Opt{small} option can be used in this cases to reduce font sizes |
| 147 |
used in section markup commands. The \Opt{14pt} option applies it. |
| 148 |
|
| 149 |
\subsection{Other options} |
| 150 |
|
| 151 |
The following standard options can be used with the \package{ncc} |
| 152 |
class: \Opt{oneside}, \Opt{twoside}, \Opt{draft}, \Opt{final}, |
| 153 |
\Opt{openright}, \Opt{openany}, \Opt{onecolumn}, \Opt{twocolumn}, |
| 154 |
\Opt{openbib}, \Opt{fleqn}, and \Opt{leqno}. |
| 155 |
|
| 156 |
The \Opt{russian} option loads the \package{babel} package with |
| 157 |
the \Meta{[russian]} optional parameter. |
| 158 |
|
| 159 |
\subsection{Packages loaded by the ncc class}\label{s:load} |
| 160 |
|
| 161 |
The \package{ncc} class loads many packages from |
| 162 |
\bungle{ncclatex} and \bungle{ncctools} bungles. They are: |
| 163 |
\begin{description}[\package{watermark}] |
| 164 |
\item[\package{ncclatex}] is the kernel of NCC-\LaTeX; |
| 165 |
|
| 166 |
\item[\package{nccltrus}] is loaded when the \Opt{russian} option |
| 167 |
is used. It redefines titles of captions to russian ones; |
| 168 |
|
| 169 |
\item[\package{nccold}] provides some obsolete commands from old |
| 170 |
NCC-\LaTeX, namely \com{no}, \com{eref},\linebreak \com{Eq}, |
| 171 |
\com{Eqs}, \com{Eqalign}, \com{tbox}, \com{bbox}, \com{tbbox}, |
| 172 |
\com{emline}, and \com{emlinewidth}; |
| 173 |
|
| 174 |
\item[\package{dcounter}] provides dynamic counters; |
| 175 |
|
| 176 |
\item[\package{desclist}] improves the \Meta{description} |
| 177 |
environment, and provides the \Meta{desclist} environment with |
| 178 |
better control of marker in descriptions; |
| 179 |
|
| 180 |
\item[\package{extdash}] provides shortcut commands \com{-/}, \com{--}, |
| 181 |
\com{---}, \com{=/}, \com{==}, and \com{===} for better control |
| 182 |
of hyphenation of compound words; |
| 183 |
|
| 184 |
\item[\package{nccboxes}] provides more boxes; |
| 185 |
|
| 186 |
\item[\package{nccfloats}] provides commands \com{minifig}, \com{fig}, |
| 187 |
\com{figs}, \com{minitabl}, \com{tabl}, and \com{tabls} covering |
| 188 |
standard \LaTeX\ floats and preparing the floating material in |
| 189 |
NCC-\LaTeX\ style (a text in NCC-\LaTeX\ floats is centered and |
| 190 |
prepared in the \com{footnotesize}). New features, \com{sidefig} |
| 191 |
and \com{sidetabl}, simplify creation of minifloats posed |
| 192 |
on the outer side of page; |
| 193 |
|
| 194 |
\item[\package{nccfoots}] provides commands \com{Footnote}, |
| 195 |
\com{Footnotemark}, and \com{Footnotetext} for manual management |
| 196 |
of footnote markers. |
| 197 |
|
| 198 |
\item[\package{nccmath}] extends the \package{amsmath} package |
| 199 |
with NCC-\LaTeX\ commands for preparing display equations |
| 200 |
(\com{eq}, \com{eqs}, \com{eqalign}), redefines the |
| 201 |
\Meta{eqnarray} environment to work properly together with \AmS\ |
| 202 |
display equations, introduces the \Meta{darray}, \Meta{fleqn}, |
| 203 |
and \Meta{ceqn} environments; |
| 204 |
|
| 205 |
\item[\package{nccpic}] is an envelop for the \package{graphicx} |
| 206 |
package (provides extension lists for useful dvi-drivers, |
| 207 |
introduces the \com{putimage} command for compatibility with old |
| 208 |
NCC-\LaTeX, and defines the \com{ipic} command); |
| 209 |
|
| 210 |
\item[\package{nccsect}] provides an improved section, caption, |
| 211 |
and TOC-entries management; |
| 212 |
|
| 213 |
\item[\package{nccthm}] theorems in NCC-\LaTeX\ style |
| 214 |
(customizable layout, many new features); |
| 215 |
|
| 216 |
\item[\package{tocenter}] provides the \com{ToCenter} and |
| 217 |
\com{FromMargins} commands; |
| 218 |
|
| 219 |
\item[\package{watermark}] provides watermarks. |
| 220 |
|
| 221 |
\end{description} |
| 222 |
|
| 223 |
The \package{ncc} class loads some standard \LaTeX\ packages. |
| 224 |
They are \package{amsmath}, \package{graphicx}, and \package{makeidx}. The |
| 225 |
\package{babel} package is also loaded if the \Opt{russian} |
| 226 |
option is used. |
| 227 |
|
| 228 |
\subsection{New commands of the ncc class} |
| 229 |
|
| 230 |
We describe here new commands introduced in the \package{ncc} |
| 231 |
class only. Other new commands are introduced in packages of |
| 232 |
\bungle{ncclatex} and \bungle{ncctools} bungles (most of them are |
| 233 |
common for the \package{ncc} class and \package{ncclatex} |
| 234 |
package). |
| 235 |
|
| 236 |
\begin{desclist}{}{} |
| 237 |
\item[\com{partmark}\meta{text}] is used for control the header and |
| 238 |
footer marks after a new part. |
| 239 |
|
| 240 |
\item[\com{openrightorany}] produces the \com{clearpage} or |
| 241 |
\com{cleardoublepage} command depending on open mode selected in |
| 242 |
the class options. If an empty even page is created, its header |
| 243 |
mark is set empty. |
| 244 |
|
| 245 |
\item[\com{AuthorBeforeTitle} and \com{TitleBeforeAuthor}] determine |
| 246 |
what item must go first in the title: author text or title text. |
| 247 |
In article style the title text goes first and in other styles |
| 248 |
the author goes first. These commands should be used in the |
| 249 |
preamble. |
| 250 |
|
| 251 |
\item[\com{noeqbreak} and \com{alloweqbreak}] manage the |
| 252 |
possibility of page break between a text and display equation |
| 253 |
following after. The first command forbids such page breaks and |
| 254 |
the last command allows them. The default is \com{alloweqbreak}. |
| 255 |
|
| 256 |
\item[\com{SetTOCStyle}\meta{style}] sets a style for table of |
| 257 |
contents, list of tables, and list of figures. The default style |
| 258 |
is empty. For example, the use of \verb+\SetTOCStyle{\small}+ in |
| 259 |
the preamble of the document sets a small font for output in TOC. |
| 260 |
|
| 261 |
\item[\com{setyear}\meta{year}, \com{theyear}:] the first command |
| 262 |
sets a year and the second one prints an year set before. The |
| 263 |
\verb+\setyear+ command doesn't change the \verb+\year+ counter. |
| 264 |
The default value for the \verb+\theyear+ command is the current |
| 265 |
value of the \verb+\year+ counter. |
| 266 |
|
| 267 |
\item[\Meta{biblist}] is a new environment: |
| 268 |
|
| 269 |
\com{begin}\meta{\upshape biblist}\opt{starting |
| 270 |
No}\meta{prototype} \ldots \com{end}\meta{\upshape biblist}. |
| 271 |
|
| 272 |
It prints a pure bibliography list without heading. The first |
| 273 |
optional parameter sets an initial value for the bibliography |
| 274 |
counter. The style of preparing the bibliography is controlled |
| 275 |
with the \com{bibliststyle} command (its default value is |
| 276 |
\verb+\small+). The \texttt{thebibliography} environment is |
| 277 |
prepared on the base of the \texttt{biblist}. |
| 278 |
|
| 279 |
\item[\Meta{theglossary}] environment is introduced. The |
| 280 |
\com{printindex}, \com{see}, and \com{seealso} commands are |
| 281 |
loaded by the \package{makeidx} package. The \com{printglossary} |
| 282 |
command is introduced. |
| 283 |
|
| 284 |
\end{desclist} |
| 285 |
|
| 286 |
The \Meta{figure} and \Meta{table} counters are declared |
| 287 |
dynamically. So, they are controlled with the \com{countstyle} |
| 288 |
command. The default count style for article and preprint is |
| 289 |
empty, and for book and report the \verb+\countstyle{chapter}+ is |
| 290 |
used. The \Meta{equation} counter is also controlled with the |
| 291 |
\com{countstyle} command. |
| 292 |
|
| 293 |
\paragraph{Specific commands for the article style.} |
| 294 |
Three new commands |
| 295 |
\begin{center} |
| 296 |
\com{setseries}\meta{text}, \com{setvolume}\meta{Volume No}, and |
| 297 |
\com{setissue}\meta{Issue No} |
| 298 |
\end{center} |
| 299 |
are allowed in the article style. They produce the commands |
| 300 |
\com{theseries}, \com{thevolume}, and \com{theissue} which can be |
| 301 |
used in publishing. In the article style the \package{ncc} class |
| 302 |
tries to load an \package{nccadd.sty} file. This style file is |
| 303 |
useful in publishing to set common information for all articles |
| 304 |
in a journal issue. The number of the last page is marked with the |
| 305 |
\Meta{NCC@lastpage} label. Its \verb+\pageref+ value can be used |
| 306 |
in publishing to automate the substitution of article last page |
| 307 |
number. If the \Opt{openright} option is used, |
| 308 |
\verb+\cleardoublepage+ action is applied at the end of article. |
| 309 |
|
| 310 |
\paragraph{Specific commands for the preprint style.} |
| 311 |
The \com{preprint}\meta{Preprint No} command is introduced. If a |
| 312 |
preprint number is defined, the following text |
| 313 |
\begin{center}\bf Preprint\\number\end{center} |
| 314 |
is inserted below the title of preprint. |
| 315 |
|
| 316 |
\paragraph{Specific commands for the book and report styles.} |
| 317 |
The \com{frontmatter}, \com{mainmatter}, and \com{backmatter} |
| 318 |
commands can be used. The \com{bookeditor}\meta{text} command |
| 319 |
inserts the specified text below the title of book. A style of |
| 320 |
chapter prefixing in running head and in the table of contents is |
| 321 |
controlled with the \com{ChapterPrefixStyle}\meta{list} command. |
| 322 |
The list can contain comma separated words \Meta{header} and |
| 323 |
\Meta{toc}. Using them you set prefix style for header and/or toc |
| 324 |
respectively. In prefix style the chapter number is preceded with |
| 325 |
the \textbf{Chapter} or \textbf{Appendix} text. |
| 326 |
|
| 327 |
\subsection{Using fancy headers with the ncc class} |
| 328 |
|
| 329 |
The headers in \package{ncc} class are maintained a bit different |
| 330 |
from standard classes. So, if you want to use fancy headers |
| 331 |
together with the \package{ncc} class, type |
| 332 |
\begin{quote} |
| 333 |
\com{usepackage}\opt{list-of-page-styles}\verb+{ncchdr}+ |
| 334 |
\end{quote} |
| 335 |
in the preamble of document. The |
| 336 |
\Meta{\textit{list-of-page-styles}} parameter must contain a list |
| 337 |
of page styles to be redefined, i.e., something from \Opt{empty}, |
| 338 |
\Opt{plain}, \Opt{headings}, and \Opt{myheadings}. The last style |
| 339 |
in the list is set after using of this package. |
| 340 |
|
| 341 |
Note: the \Opt{headings} and \Opt{myheadings} styles have a |
| 342 |
common part in the \package{ncc} class which is redefined in this |
| 343 |
package. So, redefining one of these page styles you automatically |
| 344 |
redefine another style also. Additional fancy page style |
| 345 |
\Opt{title} is provided with the \package{ncchdr} package. It |
| 346 |
uses three title marks, namely \com{lefttitlemark}, |
| 347 |
\com{titlemark} (in center), and \com{righttitlemark}. To load |
| 348 |
this style use the \Opt{title} option with the package. |
| 349 |
|
| 350 |
The package is based on the \package{nccfancyhdr} package from the |
| 351 |
\bungle{ncctools} bungle. |
| 352 |
|
| 353 |
\section{The ncclatex package} |
| 354 |
|
| 355 |
The most part of the \package{ncc} class is loaded in the |
| 356 |
\package{ncclatex} package. To provide almost all functionality |
| 357 |
of NCC-\LaTeX\ with standard \LaTeX\ classes, you can use this |
| 358 |
package. The package loads many packages also. It is easy to say |
| 359 |
what packages it does not load from the list specified in the |
| 360 |
Section~\ref{s:load}. Only three of them are not loaded, namely |
| 361 |
\package{nccold}, \package{tocenter}, and \package{watermark}. |
| 362 |
|
| 363 |
If you want to pass additional options to a package loaded with |
| 364 |
\package{ncclatex}, load it in the \com{usepackage} command before |
| 365 |
loading the \package{ncclatex}. |
| 366 |
|
| 367 |
The \package{ncclatex} package has two options: \Opt{small} and |
| 368 |
\Opt{russian}. Using of the \Opt{small} option provides smaller |
| 369 |
fonts in section markup commands. The \Opt{russian} option tries |
| 370 |
to load the \package{babel} package with \Opt{[russian]} optional |
| 371 |
parameter, redefines captions of mathematical statements in |
| 372 |
Russian by loading the \package{nccltrus} package, and redefines |
| 373 |
\com{alph} and \com{Alph} commands to produce russian alphanumeric |
| 374 |
numbers. Original latin variants of alphanumeric numbering are |
| 375 |
saved in \com{alphlatin} and \com{Alphlatin}. |
| 376 |
|
| 377 |
The package sets \com{unitlength} to 1~mm (millimeters are |
| 378 |
default units in NCC-\LaTeX). |
| 379 |
|
| 380 |
\subsection{Sections, captions, and toc-entries in NCC-\LaTeX{}} |
| 381 |
|
| 382 |
\subsubsection{Sections} |
| 383 |
|
| 384 |
Section markup commands of level 0 and greater are redefined |
| 385 |
using the \package{nccsect} package from \bungle{ncctoools} (the |
| 386 |
level 0 command is \com{chapter} or \com{part} depending on class |
| 387 |
used; the commands of greater levels are \com{section}, |
| 388 |
\com{subsection}, \ldots, \com{subparagraph}). All section markup |
| 389 |
commands are divided into two categories: display sections (until |
| 390 |
\com{subsubsection}) and run-in sections (\com{paragraph} and |
| 391 |
\com{subparagraph}). |
| 392 |
|
| 393 |
The package uses floating horizontal alignment for display sections |
| 394 |
which is controlled with the |
| 395 |
\begin{quote} |
| 396 |
\com{sectionstyle}\meta{style} |
| 397 |
\end{quote} |
| 398 |
command. The following styles are allowed: |
| 399 |
\begin{description}[\Meta{hangindent*}] |
| 400 |
\item[\Meta{hangindent}] is the standard \LaTeX\ style. |
| 401 |
\item[\Meta{hangindent*}] is the same as \Meta{hangindent}, but ragged right. |
| 402 |
\item[\Meta{parindent}] sections are indented on \com{parindent} without hanged number. |
| 403 |
\item[\Meta{parindent*}] is the same as \Meta{parindent}, but ragged right. |
| 404 |
\item[\Meta{center}] section headers are centered. |
| 405 |
\end{description} |
| 406 |
The \com{indentaftersection} and \com{noindentaftersection} |
| 407 |
commands control indentation after sections. |
| 408 |
The \package{nccsect} package sets style and indentation to standard \LaTeX\ defaults, |
| 409 |
\verb+\sectionstyle{hangindent}+ and \com{noindentaftersection}. But the \package{ncclatex} |
| 410 |
package uses \verb+\sectionstyle{hangindent*}+. |
| 411 |
|
| 412 |
The \package{nccsect} package essentially improves the management |
| 413 |
of section number tags, running heads, and writing to aux-file: |
| 414 |
\begin{itemize} |
| 415 |
\item If you want to suppress generation of running head in a |
| 416 |
section markup command, type \com{norunninghead} before it. |
| 417 |
|
| 418 |
\item If you want to replace the text of running head to another |
| 419 |
one, type \com{runninghead}\meta{text} before a section. |
| 420 |
|
| 421 |
\item If you want to suppress a number in a section or in a caption |
| 422 |
of float, type \com{noheadingtag} before the section or caption |
| 423 |
markup command. Note that the text of used markup command goes to |
| 424 |
the running head and to the aux-file. This is the easier way to |
| 425 |
produce a section without number which must appear in the table |
| 426 |
of contents and in the header. |
| 427 |
|
| 428 |
\item If you want to replace a number in a section or caption to |
| 429 |
something else, type the \linebreak \com{headingtag}\meta{other |
| 430 |
number} before the section or caption markup command. Note that |
| 431 |
the replaced number goes to the running head and to the aux-file. |
| 432 |
It must contain robust commands only. Fragile commands in it must |
| 433 |
be protected with the \com{protect} command. The associated |
| 434 |
counter is not incremented in this case. |
| 435 |
|
| 436 |
\item If you want entirely replace a number in a section or |
| 437 |
caption (including prefix and suffix automatically inserted by |
| 438 |
section and caption markup commands) to something else, type |
| 439 |
\com{headingtag*}\meta{other number} before the section or caption |
| 440 |
markup command. In this case, the writing to running head and to |
| 441 |
aux-file is suppressed. |
| 442 |
|
| 443 |
\item If you want to suppress writing text of a section or |
| 444 |
caption to aux-file, type the\linebreak \com{skipwritingtoaux} |
| 445 |
command before the section or caption markup command. |
| 446 |
\end{itemize} |
| 447 |
|
| 448 |
\subsubsection{Captions} |
| 449 |
|
| 450 |
The \com{caption} command useful in floats is also redefined in |
| 451 |
the \package{nccsect} package. The caption creation method |
| 452 |
internally differs from the standard method. You can use line |
| 453 |
breaking commands in it, but be sure that line break in caption |
| 454 |
does not go to the aux-file (use an optional parameter with |
| 455 |
caption to define an argument going to the aux-file). The |
| 456 |
\com{centering} command can be used in captions without worrying |
| 457 |
(it is automatically suppressed while writing to aux-file). The |
| 458 |
\com{caption*} command is allowed to produce a caption without |
| 459 |
number tag (the words `Figure' or `Table' belong to the tag!). A |
| 460 |
text of such a caption does not go to the aux-file. |
| 461 |
|
| 462 |
The package defines \textit{different} caption commands for |
| 463 |
tables and figures. A table caption usually goes above a table. |
| 464 |
So, a vertical skip after table caption is necessary, but a skip |
| 465 |
before table caption is unnecessary. A figure caption usually |
| 466 |
goes below a figure. In this case vertical skips are different: |
| 467 |
skip before is needed, but skip after is unnecessary. This is the |
| 468 |
reason why table and figure captions are prepared differently. |
| 469 |
|
| 470 |
\subsubsection{TOC-entries} |
| 471 |
|
| 472 |
The management of toc-, lot- and lof-entries is also redefined in |
| 473 |
the \package{nccsect} package. Every toc-entry is specified with |
| 474 |
2 parameters: a left margin and a value of hang indentation. The |
| 475 |
\package{nccsect} package calculates the left margin for a |
| 476 |
toc-entry by summation of margin skips defined in toc-entries of |
| 477 |
lower levels. For example, if a toc-entry of 2nd level is typed |
| 478 |
out, its left margin will be a sum of margin skips defined in |
| 479 |
toc-entries of 0th and 1st levels. This is much more flexible way |
| 480 |
than the standard one in which the left margin was coded just in |
| 481 |
the toc-command. |
| 482 |
|
| 483 |
The margin skip and hang indent skip are determined using |
| 484 |
prototyping technique. This method provides very easy way for |
| 485 |
redeclaring toc-entries. For example, if your book contains not |
| 486 |
more than 9 sections, and more than 9 subsections in some |
| 487 |
sections, you can redeclare the subsection toc-entry as follows: |
| 488 |
\begin{verbatim} |
| 489 |
\DeclareTOCEntry{2}{}{}{9.99}{}[9.99] |
| 490 |
\end{verbatim} |
| 491 |
This command contains the following parameters: the toc-entry |
| 492 |
level, an action applied before toc-entry (you can insert a |
| 493 |
vertical skip for example), a prefix before a toc-entry number (a |
| 494 |
section sign for example), a number prototype for calculation of |
| 495 |
hang indentation, and a style applied to the toc-entry. The 6th |
| 496 |
optional parameter in square brackets is used for calculation of |
| 497 |
margin skip for the next toc-level. If it is omitted, |
| 498 |
the skip is equal to the hang indentation value of this toc-entry. |
| 499 |
|
| 500 |
\subsubsection{Customization commands} |
| 501 |
|
| 502 |
In conclusion, we show customization commands with their default |
| 503 |
values for the \package{ncclatex} package: |
| 504 |
\begin{description} |
| 505 |
\item[\com{SectionTagSuffix}\meta{\upshape.\com{hskip} .6em}] is a suffix |
| 506 |
inserted after a section number tag (excluding sections of 0th |
| 507 |
level). Numbers in sections in NCC-\LaTeX\ are ended with the |
| 508 |
decimal point. |
| 509 |
|
| 510 |
\item[\com{CaptionTagSuffix}\meta{\upshape.\com{hskip} .6em plus .2em minus .1em}] |
| 511 |
is a suffix inserted after a caption number tag. |
| 512 |
|
| 513 |
\item[\com{NumberlineSuffix}\meta{\upshape.\com{hskip} .6em}\meta{\upshape.\com{hskip} .4em}] |
| 514 |
describes 2 suffices: the first one is used in calculation of |
| 515 |
hang indentation of toc-entries and the last one is inserted |
| 516 |
after a number in toc-entries. The last suffix is usually |
| 517 |
narrower that the first one. This allows to decrease a distance |
| 518 |
between number and text if the width of number exceed the |
| 519 |
prototype width just a little. Note: the \com{numberline} command |
| 520 |
from standard \LaTeX\ is modified in the \package{nccsect} |
| 521 |
package to prevent an overlapping of a text on a number if a |
| 522 |
number is wider than hung indentation value. |
| 523 |
|
| 524 |
\item[\com{PnumPrototype}\meta{\upshape99}] is a prototype of page number |
| 525 |
used for calculation of right margin in toc. It is supposed that a |
| 526 |
book contains not more than 99 pages by default. To change the |
| 527 |
page number width to 3-digit pattern, use the |
| 528 |
\com{PnumPrototype}\meta{\upshape999} command. |
| 529 |
|
| 530 |
\end{description} |
| 531 |
|
| 532 |
\subsection{Theorems in NCC-\LaTeX{}} |
| 533 |
|
| 534 |
The \package{ncclatex} package defines a number of math |
| 535 |
statements using the \package{nccthm} package from the |
| 536 |
\bungle{ncctools} bungle. A brief introduction is needed to |
| 537 |
explain the possibilities of the \package{nccthm} package. In |
| 538 |
this section we call all math statements as \textit{theorems} for |
| 539 |
simplicity. |
| 540 |
|
| 541 |
\subsubsection{Overview} |
| 542 |
|
| 543 |
In mathematical manuscripts, two modes of theorems numbering are |
| 544 |
useful. In ordinary mode, a number goes after the theorem title |
| 545 |
(e.g., \textbf{Theorem~1}, \textbf{Example~1}, |
| 546 |
\textbf{Theorem~2}, etc.). In this mode, theorems with different |
| 547 |
titles are usually numbered independently. Another mode requires |
| 548 |
a number going before a theorem title. We call this mode the |
| 549 |
\textit{apar} mode. In apar mode, theorems with different titles |
| 550 |
are numbered sequentially (e.g., \textbf{1~Theorem}, |
| 551 |
\textbf{2~Example}, \textbf{3~Theorem}, etc.). Both modes can be |
| 552 |
mixed together in one manuscript. |
| 553 |
|
| 554 |
Theorems with different titles can be shown differently. For |
| 555 |
example, a Theorem statement is shown with bold header and italic |
| 556 |
body (a comment after header is prepared with normal font). But |
| 557 |
an Example statement can be shown with italic header and normal |
| 558 |
body. We call a presentation of a theorem by the \textit{theorem |
| 559 |
type}. The \package{nccthm} package provides two default theorem |
| 560 |
types named \texttt{theorem} and \texttt{remark}. New theorem |
| 561 |
types can be created and existing theorem types can be redefined. |
| 562 |
|
| 563 |
The next parameter of theorems is the indentation style. A |
| 564 |
theorem can open a new paragraph without indentation (default |
| 565 |
behaviour) and with paragraph indentation. A theorem number in the |
| 566 |
apar mode can be shown on margins. The indentation style is |
| 567 |
controlled via options \Opt{indent}, \Opt{noindent}, |
| 568 |
\Opt{margin}, and \Opt{nomargin} of the \package{nccthm} package. |
| 569 |
|
| 570 |
The last parameter of theorems is the break style. A line break |
| 571 |
after theorem header (comment included) can be used. The break and |
| 572 |
no break style can be coded in theorems while the definition of |
| 573 |
them using switches \com{TheoremBreakStyle} and |
| 574 |
\com{TheoremNoBreakStyle} before the definition or redefinition |
| 575 |
of theorems (in contrast to standard \LaTeX, the |
| 576 |
\com{renewtheorem} command is provided for redefinition of |
| 577 |
theorems). The break style of an individual theorem can be changed |
| 578 |
on the fly with the commands \com{breakafterheader} and |
| 579 |
\com{nobreakafterheader} inserted before a theorem. |
| 580 |
|
| 581 |
All described properties of theorems are provided with the |
| 582 |
\package{nccthm} package. Moreover, the counters used in theorems |
| 583 |
are declared as dynamic counters (see the \package{dcounter} |
| 584 |
package from \bungle{ncctools}). A dynamic counter is created at |
| 585 |
the first use. So, a space of \TeX\ count registers is not |
| 586 |
occupied with useless counters (this is too important because a |
| 587 |
number of counters is limited). Using dynamic counters a package |
| 588 |
writer can prepare some predefined theorems without worry. Since |
| 589 |
a dynamic counter is created at the first use, a user can control |
| 590 |
the numbering style for it. This is provided with the |
| 591 |
\com{countstyle}\meta{base-counter} command. The \Meta{\itshape |
| 592 |
base-counter} is the name of counter a newly created dynamic |
| 593 |
counter must be subordinated to. An empty parameter means no |
| 594 |
subordination. So, the change of numbering style for all theorems |
| 595 |
in a manuscript is executed with one command only! If some |
| 596 |
counters must have a specific count style, you can create them |
| 597 |
manually or using the \com{countstyle} command with an optional |
| 598 |
parameter, |
| 599 |
\begin{quote} |
| 600 |
\com{countstyle}\opt{list-of-counters}\meta{base-counter} |
| 601 |
\end{quote} |
| 602 |
This command creates new counters from the comma separated list |
| 603 |
and subordinates all counters in the list to the \Meta{\itshape |
| 604 |
base-counter}. It can be used for existing counters also if you |
| 605 |
want to \textit{change the subordination} of them to another |
| 606 |
counter. For example, using |
| 607 |
\begin{verbatim} |
| 608 |
\countstyle[section]{} |
| 609 |
\end{verbatim} |
| 610 |
in a book we reject the subordination of the \Meta{section} |
| 611 |
counter to the \Meta{chapter} counter! |
| 612 |
|
| 613 |
\subsubsection{Predefined theorems} |
| 614 |
|
| 615 |
The \package{ncclatex} package defines 8 theorems in 3 forms each: |
| 616 |
theorems with automatic numbering, theorems with manual |
| 617 |
numbering, and theorems in the \textit{apar} mode. All the |
| 618 |
theorems can be used in two ways: as environments and as |
| 619 |
commands. In command style they must be concluded with another |
| 620 |
theorem, or \com{qef}, or \com{qed} command. The \com{qef} |
| 621 |
command finishes a paragraph, inserts a proper vertical space, |
| 622 |
and returns the font shape to the normal font. The \com{qed} |
| 623 |
command usually finishes the proof of theorem. It prints a qed |
| 624 |
symbol (white square) adjusted to the right margin and calls the |
| 625 |
\com{qef}. The \com{qed*} command prints the qed symbol only. |
| 626 |
|
| 627 |
\subsubsection{Theorems with automatic numbering} |
| 628 |
|
| 629 |
We show the using of these theorems in the environment style. |
| 630 |
\begin{tabbing} |
| 631 |
\tt xxxxx\=\verb+\begin{proposition}+\opt{Comment}\quad \=\Meta{\itshape body}\quad\=\+\kill |
| 632 |
\verb+\begin{theorem}+\opt{Comment} \>\Meta{\itshape body} \>\verb+\end{theorem}+\\ |
| 633 |
\verb+\begin{lemma}+\opt{Comment} \>\Meta{\itshape body} \>\verb+\end{lemma}+\\ |
| 634 |
\verb+\begin{proposition}+\opt{Comment} \>\Meta{\itshape body} \>\verb+\end{proposition}+\\ |
| 635 |
\verb+\begin{corollary}+\opt{Comment} \>\Meta{\itshape body} \>\verb+\end{corollary}+\\ |
| 636 |
\verb+\begin{definition}+\opt{Comment} \>\Meta{\itshape body} \>\verb+\end{definition}+\\ |
| 637 |
\verb+\begin{statement}+\opt{Comment} \>\Meta{\itshape body} \>\verb+\end{statement}+\\ |
| 638 |
\verb+\begin{example}+\opt{Comment} \>\Meta{\itshape body} \>\verb+\end{example}+\\ |
| 639 |
\verb+\begin{remark}+\opt{Comment} \>\Meta{\itshape body} \>\verb+\end{remark}+ |
| 640 |
\end{tabbing} |
| 641 |
In environment style, the end of theorem is equivalent to the |
| 642 |
\com{qef} command. Counter names coincide with the names of |
| 643 |
environments. First 4 environments are prepared using the |
| 644 |
\Meta{theorem} type and last 4 environments are prepared using |
| 645 |
the \Meta{remark} type. |
| 646 |
|
| 647 |
\subsubsection{Theorems with manual numbering} |
| 648 |
|
| 649 |
We show the using of these theorems in the environment style also. |
| 650 |
\begin{tabbing} |
| 651 |
\tt xxxxx\=\verb+\begin{Proposition}+\meta{Number}\opt{Comment}\quad \=\Meta{\itshape body}\quad\=\+\kill |
| 652 |
\verb+\begin{Theorem}+\meta{Number}\opt{Comment}\quad \>\Meta{\itshape body} \>\verb+\end{Theorem}+\\ |
| 653 |
\verb+\begin{Lemma}+\meta{Number}\opt{Comment}\quad \>\Meta{\itshape body} \>\verb+\end{Lemma}+\\ |
| 654 |
\verb+\begin{Proposition}+\meta{Number}\opt{Comment}\quad \>\Meta{\itshape body} \>\verb+\end{Proposition}+\\ |
| 655 |
\verb+\begin{Corollary}+\meta{Number}\opt{Comment}\quad \>\Meta{\itshape body} \>\verb+\end{Corollary}+\\ |
| 656 |
\verb+\begin{Definition}+\meta{Number}\opt{Comment}\quad \>\Meta{\itshape body} \>\verb+\end{Definition}+\\ |
| 657 |
\verb+\begin{Statement}+\meta{Number}\opt{Comment}\quad \>\Meta{\itshape body} \>\verb+\end{Statement}+\\ |
| 658 |
\verb+\begin{Example}+\meta{Number}\opt{Comment}\quad \>\Meta{\itshape body} \>\verb+\end{Example}+\\ |
| 659 |
\verb+\begin{Remark}+\meta{Number}\opt{Comment}\quad \>\Meta{\itshape body} \>\verb+\end{Remark}+ |
| 660 |
\end{tabbing} |
| 661 |
If the \Meta{\itshape Number} parameter is empty, a theorem |
| 662 |
without number is prepared. These commands do not use counters at |
| 663 |
all. The presentation types for these theorems are the same as |
| 664 |
for corresponding theorems with automatic numbering. |
| 665 |
|
| 666 |
Every theorem type has the corresponding \com{like}\Meta{\itshape |
| 667 |
type} command used for preparing theorems of this type. For |
| 668 |
example, to prepare a math statement in the \Meta{theorem} type, |
| 669 |
write down the following: |
| 670 |
\begin{quote} |
| 671 |
\com{liketheorem}\meta{Title}\meta{Number}\opt{Comment}\quad |
| 672 |
\Meta{\itshape body}\quad \com{qef} |
| 673 |
\end{quote} |
| 674 |
To prepare a math statement in the \Meta{remark} type, typeset |
| 675 |
\begin{quote} |
| 676 |
\com{likeremark}\meta{Title}\meta{Number}\opt{Comment}\quad |
| 677 |
\Meta{\itshape body}\quad \com{qef} |
| 678 |
\end{quote} |
| 679 |
|
| 680 |
\subsubsection{Theorems in apar mode} |
| 681 |
|
| 682 |
We show the using of these theorems in the command style. |
| 683 |
\begin{tabbing} |
| 684 |
\tt xxxxx\=\com{aproposition}\opt{Comment}\quad\=\Meta{\itshape body}\quad\=\+\kill |
| 685 |
\com{atheorem}\opt{Comment}\quad \>\Meta{\itshape body} \>\com{qef}\\ |
| 686 |
\com{alemma}\opt{Comment}\quad \>\Meta{\itshape body} \>\com{qef}\\ |
| 687 |
\com{aproposition}\opt{Comment}\quad \>\Meta{\itshape body} \>\com{qef}\\ |
| 688 |
\com{acorollary}\opt{Comment}\quad \>\Meta{\itshape body} \>\com{qef}\\ |
| 689 |
\com{adefinition}\opt{Comment}\quad \>\Meta{\itshape body} \>\com{qef}\\ |
| 690 |
\com{astatement}\opt{Comment}\quad \>\Meta{\itshape body} \>\com{qef}\\ |
| 691 |
\com{anexample}\opt{Comment}\quad \>\Meta{\itshape body} \>\com{qef}\\ |
| 692 |
\com{aremark}\opt{Comment}\quad \>\Meta{\itshape body} \>\com{qef} |
| 693 |
\end{tabbing} |
| 694 |
These theorems are number with the \Meta{apar} counter. The |
| 695 |
presentation types for these theorems are the same as for |
| 696 |
corresponding theorems with automatic numbering. The star-forms |
| 697 |
of \com{liketheorem} and \com{likeremark} commands are used for |
| 698 |
preparing apar variants of math statements. They have no number |
| 699 |
parameter: |
| 700 |
\begin{tabbing} |
| 701 |
\tt xxxxx\=\com{liketheorem*}\meta{Title}\opt{Comment}\quad\=\Meta{\itshape body}\quad\=\+\kill |
| 702 |
\com{liketheorem*}\meta{Title}\opt{Comment} \>\Meta{\itshape body} \>\com{qef}\\ |
| 703 |
\com{likeremark*}\meta{Title}\opt{Comment} \>\Meta{\itshape body} \>\com{qef} |
| 704 |
\end{tabbing} |
| 705 |
|
| 706 |
One additional command, the \com{apar}, can be used in the apar |
| 707 |
mode. Its syntax is the following: |
| 708 |
\begin{quote} |
| 709 |
\com{apar}\opt{Header} |
| 710 |
\end{quote} |
| 711 |
It starts a new paragraph numbered with subsequent value of the |
| 712 |
\Meta{apar} counter. The header is prepared in bold font. |
| 713 |
|
| 714 |
\subsubsection{Proof command and support of different qed |
| 715 |
symbols} |
| 716 |
|
| 717 |
The \com{proof}\opt{Comment} opens the proof of a math statement. |
| 718 |
For example, |
| 719 |
\begin{verbatim} |
| 720 |
\proof[of Theorem 1] Some text \qed |
| 721 |
\end{verbatim} |
| 722 |
looks as follows: |
| 723 |
|
| 724 |
\proof[of Theorem 1] Some text \qed |
| 725 |
|
| 726 |
Along with the \com{qed}, the \com{qedsymbol} command can be used |
| 727 |
in the case when a proof finishes with the display formula. It is |
| 728 |
typed with the \AmS\ \verb+\tag*{\qedsymbol}+ command within a |
| 729 |
display formula. |
| 730 |
|
| 731 |
The \package{nccthm} package provides now two variants of the qed |
| 732 |
symbol, white and black. They are requested through package options |
| 733 |
\Opt{whiteqed} and \Opt{blackqed} respectively. When an option is |
| 734 |
used, two more commands are created for it: \com{\itshape option} |
| 735 |
and \com{{\itshape option}symbol}. For example, the |
| 736 |
\Opt{whiteqed} option generates the \com{whiteqed} and |
| 737 |
\com{whiteqedsymbol} commands, and the \Opt{blackqed} option |
| 738 |
generates the \com{blackqed} and \com{blackqedsymbol} commands. |
| 739 |
The later option in the list of options describes the default qed |
| 740 |
symbol. If no options used, only \com{qed} and \com{qedsymbol} |
| 741 |
commands are generated. |
| 742 |
|
| 743 |
Other qed symbols are welcome! |
| 744 |
|
| 745 |
\subsubsection{Customization commands} |
| 746 |
|
| 747 |
In conclusion, we show customization commands with their default |
| 748 |
values for the \package{ncclatex} package: |
| 749 |
\begin{description} |
| 750 |
\item[\com{TheoremCommentDelimiters}\meta{}\meta{}] describes |
| 751 |
delimiters inserted before and after a theorem\linebreak comment. |
| 752 |
In the \package{nccthm} package the parenthesis are used, but in |
| 753 |
the \package{ncclatex} package the delimiters are empty. |
| 754 |
|
| 755 |
\item[\com{AfterTheoremHeaderChar}\meta{.}] describes the |
| 756 |
character inserted at the end of header of theorem and proof. |
| 757 |
|
| 758 |
\item[\com{AfterTheoremHeaderSkip}\meta{\upshape\com{hskip} .7em plus .2em minus |
| 759 |
.1em}] describes a horizontal skip inserted after a header of |
| 760 |
theorem and proof. |
| 761 |
|
| 762 |
\item[\com{AparStyleParameters}\meta{\com{bfseries}}\meta{\com{bfseries}}\meta{.\com{enskip}}] |
| 763 |
describes style parameters for\linebreak preparing apar theorems: |
| 764 |
the first parameter is a style used in the \com{apar} command, the |
| 765 |
second and third parameters describe the prefix and suffix |
| 766 |
inserted before and after \com{theapar} command in typeout. |
| 767 |
|
| 768 |
\item[\com{ProofStyleParameters}\meta{\com{bfseries}}\meta{\com{proofname}}] |
| 769 |
describes style parameters used in the\linebreak \com{proof} |
| 770 |
command: the first is a font style and the last is a proof title |
| 771 |
(it is coded here in the \com{proofname} command with the default |
| 772 |
definition \verb+\newcommand\proofname{Proof}+). |
| 773 |
|
| 774 |
\end{description} |
| 775 |
|
| 776 |
\subsection{Math extension} |
| 777 |
|
| 778 |
In old NCC-\LaTeX, the standard \LaTeX\ environments were used |
| 779 |
for preparing display formulas and some extension commands were |
| 780 |
developed to support manual numbering. In the new release of |
| 781 |
NCC-\LaTeX, it was decided to use an excellent math extension |
| 782 |
provided with the \package{amsmath} package and enlarge it a bit. |
| 783 |
The enlargement of \AmS\ package is provided with the |
| 784 |
\package{nccmath} package. The \package{nccmath} package passes |
| 785 |
all options to the \package{amsmath}. |
| 786 |
|
| 787 |
Two major enlargements were done: |
| 788 |
\begin{itemize} |
| 789 |
\item In \package{amsmath}, the \Meta{eqnarray} environment leaves |
| 790 |
unchanged because alternative \AmS\ environments exist. We |
| 791 |
redefine the \Meta{eqnarray} to work in the \AmS\ style. The |
| 792 |
following improvements were done in it: an equation tag is |
| 793 |
prepared by the same manner as in \AmS\ display formulas |
| 794 |
(\com{tag} and \com{tag*} are allowed); the \com{displaybreak} |
| 795 |
command is allowed; the intercolumn distance is reduced to the |
| 796 |
distance between ordinary and relational math symbols; and the |
| 797 |
center field is prepared in the \com{displaystyle}. |
| 798 |
|
| 799 |
\item In old NCC-\LaTeX, a display equivalent for the \Meta{array} |
| 800 |
environment, namely \Meta{darray}, was implemented. In the new |
| 801 |
release, it is implemented also but in a bit different way to |
| 802 |
avoid conflicts with packages that redefine the \Meta{array} |
| 803 |
environment. The use of column specifications in the |
| 804 |
\Meta{darray} environment is restricted to \Meta{l}, \Meta{c}, |
| 805 |
\Meta{r}, \Meta{@}, and \Meta{*} commands. The intercolumn |
| 806 |
distance is just the same as for \Meta{eqnarray} environment and |
| 807 |
no space is inserted before the first and after the last column. |
| 808 |
|
| 809 |
\end{itemize} |
| 810 |
|
| 811 |
\subsubsection{NCC-\LaTeX\ equivalents to display formulas} |
| 812 |
|
| 813 |
The following NCC-\LaTeX\ equivalents are provided with |
| 814 |
\package{nccmath}: |
| 815 |
\begin{desclist}{}{\hfill\enskip=}[\com{eqalign*}\meta{formulas}] |
| 816 |
\raggedright |
| 817 |
\item[\com{eq}\meta{formula}] |
| 818 |
\verb+\begin{equation}+ \Meta{\itshape formula} |
| 819 |
\verb+\end{equation}+. |
| 820 |
|
| 821 |
\item[\com{eq*}\meta{formula}] |
| 822 |
\verb+\begin{equation*}+ \Meta{\itshape formula} |
| 823 |
\verb+\end{equation*}+. |
| 824 |
|
| 825 |
\item[\com{eqs}\meta{formulas}] |
| 826 |
\verb+\begin{eqnarray}+ \Meta{\itshape formulas} |
| 827 |
\verb+\end{eqnarray}+. |
| 828 |
|
| 829 |
\item[\com{eqs*}\meta{formulas}] |
| 830 |
\verb+\begin{eqnarray*}+ \Meta{\itshape formulas} |
| 831 |
\verb+\end{eqnarray*}+. |
| 832 |
|
| 833 |
\item[\com{eqalign}\meta{formulas}] |
| 834 |
\verb+\begin{equation} \begin{darray}{rcl}+ \Meta{\itshape |
| 835 |
formulas} \verb+\end{darray} \end{equation}+. |
| 836 |
|
| 837 |
\item[\com{eqalign*}\meta{formulas}] |
| 838 |
\verb+\begin{equation*} \begin{darray}{rcl}+ \Meta{\itshape |
| 839 |
formulas} \verb+\end{darray} \end{equation*}+. |
| 840 |
|
| 841 |
\end{desclist} |
| 842 |
|
| 843 |
The \com{eqs} and \com{eqs*} commands have an optional parameter |
| 844 |
describing a distance between columns. For example, |
| 845 |
\begin{verbatim} |
| 846 |
\eqs[0mm]{&& -\Delta u = f, \\ && u|_\Gamma = 0,} |
| 847 |
\end{verbatim} |
| 848 |
removes the intercolumn distance because the 3rd column is only |
| 849 |
used here. The \Meta{eqnarray} environment has no optional |
| 850 |
parameter. |
| 851 |
|
| 852 |
The \com{eqalign} and \com{eqalign*} commands have an optional |
| 853 |
parameter also. Its meaning is the column specification |
| 854 |
parameter: \com{eqalign}\meta{formulas} = |
| 855 |
\verb+\eqalign[rcl]+\meta{formulas}. |
| 856 |
|
| 857 |
\subsubsection{Remarks on display equations} |
| 858 |
|
| 859 |
The alignment style in display equations (except \TeX's |
| 860 |
low level \verb|$$|) can be changed using the following |
| 861 |
environments: |
| 862 |
\begin{quote} |
| 863 |
\com{begin}\meta{fleqn}\opt{margin} \Meta{\itshape body} \com{end}\meta{fleqn}\\ |
| 864 |
\com{begin}\meta{ceqn} \Meta{\itshape body} \com{end}\meta{ceqn} |
| 865 |
\end{quote} |
| 866 |
The \Meta{fleqn} environment sets the flush left alignment |
| 867 |
with the left margin specified by the optional parameter |
| 868 |
(default margin is \Meta{0pt}). The \Meta{ceqn} environment |
| 869 |
sets the centered alignment. |
| 870 |
|
| 871 |
The \com{intertext} command from \package{amsmath} now has an |
| 872 |
optional parameter, |
| 873 |
\begin{quote} |
| 874 |
\com{intertext}\opt{skip}\meta{text between formulas} |
| 875 |
\end{quote} |
| 876 |
The \Meta{\itshape skip} is a vertical skip value inserted before |
| 877 |
and after the text. If it is omitted, the standard spaces are |
| 878 |
inserted. |
| 879 |
|
| 880 |
In \LaTeX, it is not recommended to start a display formula from a |
| 881 |
new paragraph (in vertical mode in other words). This is because |
| 882 |
the \TeX's algorithm inserts an empty paragraph before such a |
| 883 |
formula. To avoid insertion of an empty paragraph, Donald Knuth |
| 884 |
recommended to use \com{noindent} command before a display |
| 885 |
formula starting in the vertical mode. This trick is used in the |
| 886 |
\package{nccmath} package. All display environments are slightly |
| 887 |
corrected with insertion of \com{NCC@ignorepar} command at their |
| 888 |
beginning. This command does a little more than simply applies |
| 889 |
this trick. It provides suppressing of the vertical space before |
| 890 |
a display formula if it opens a minipage. It also supports the |
| 891 |
use of short skip above a display environment by user's request. |
| 892 |
|
| 893 |
In \TeX, two types of skips above display formulas are used: the |
| 894 |
normal skip defined in the \com{abovedisplayskip} register and the |
| 895 |
short skip defined in the \com{abovedisplayshortskip} register. |
| 896 |
When a display formula is typed out, \TeX\ decides what skip to |
| 897 |
insert depending on width of the formula, its style (centered or |
| 898 |
flushed left, numbered left or right), and the width of the rest |
| 899 |
of text in the last line of the previous paragraph. But this |
| 900 |
algorithm works for ordinary formulas only. It does not work in |
| 901 |
multiline formulas prepared with \com{halign} command. So, a |
| 902 |
manual replacement of normal skip to short skip is required in |
| 903 |
some cases. To provides this, the \com{useshortskip} command is |
| 904 |
introduced in the \package{nccmath} package. It forces the use of |
| 905 |
short skip in a display formula going after it. |
| 906 |
|
| 907 |
\subsubsection{Other math commands} |
| 908 |
|
| 909 |
The following commands were ported from the old NCC-\LaTeX: |
| 910 |
\begin{description}[\com{nr}] |
| 911 |
\item[\com{nr}] has just the same syntax as the \verb+\\+ |
| 912 |
but inserts an extra vertical space of \Meta{0.5ex}. It is quite |
| 913 |
useful in display formulas to separate some rows a bit more. |
| 914 |
|
| 915 |
\item[\com{mrel}\meta{rows}] prepares a new math relation |
| 916 |
symbol from one-column table of math formulas. For example, the |
| 917 |
command |
| 918 |
\verb+$\mrel{<\\[-.7ex]>}$+ produces |
| 919 |
$\mrel{<\\[-.7ex]>}$. |
| 920 |
|
| 921 |
\item[\com{underrel}\meta{base}\meta{bottom}] is a twin to |
| 922 |
\com{overrel}. For example,\\ |
| 923 |
\verb+$A\underrel{\longrightarrow}{x\to 0}B$+ |
| 924 |
produces $A\underrel{\longrightarrow}{x\to 0}B$. |
| 925 |
|
| 926 |
\end{description} |
| 927 |
|
| 928 |
\subsection{Figures and tables in NCC-\LaTeX{}} |
| 929 |
|
| 930 |
The standard \LaTeX\ floating environments, namely \Meta{figure} |
| 931 |
and \Meta{table}, allow user to place floating material in a |
| 932 |
document. But they do not introduce a style in which this |
| 933 |
material must be prepared. In NCC-\LaTeX, envelop commands are |
| 934 |
developed which join a style with a float and introduce more |
| 935 |
features. These commands are implemented in the |
| 936 |
\package{nccfloats} package from the \bungle{ncctools} bungle. |
| 937 |
|
| 938 |
\subsubsection{Basic commands} |
| 939 |
|
| 940 |
The \com{FloatingStyle}\meta{style} command sets a style of |
| 941 |
floats in the document. It affects on the material prepared with |
| 942 |
commands described below. The default style is |
| 943 |
\begin{verbatim} |
| 944 |
\FloatingStyle{\footnotesize\centering} |
| 945 |
\end{verbatim} |
| 946 |
|
| 947 |
We start with the basic commands, namely \com{minifig} and |
| 948 |
\com{minitabl}. They prepare a material in a minipage and allow |
| 949 |
using the \com{caption} command in the body. Their syntax is |
| 950 |
similar to the \com{parbox} command: |
| 951 |
\begin{quote} |
| 952 |
\com{minifig}\opt{pos}\opt{height}\opt{inner-pos}\meta{width}\meta{body}\\ |
| 953 |
\com{minitabl}\opt{pos}\opt{height}\opt{inner-pos}\meta{width}\meta{body} |
| 954 |
\end{quote} |
| 955 |
The \Meta{\itshape pos} is a vertical alignment parameter for |
| 956 |
minipage (\Meta{t}, \Meta{b}, or \Meta{c}) with respect to |
| 957 |
surrounding text; the \Meta{\itshape height} is a minipage height |
| 958 |
required; the \Meta{\itshape inner-pos} is a vertical alignment |
| 959 |
of text inside the minipage (\Meta{t}, \Meta{b}, \Meta{c}, or |
| 960 |
\Meta{s}); and the \Meta{\itshape width} is the minipage width. |
| 961 |
The \Meta{\itshape body} is prepared in the specified style and |
| 962 |
can contain a \com{caption} command. |
| 963 |
|
| 964 |
All other NCC-\LaTeX\ floating extension commands are based on |
| 965 |
\com{minifig} and \com{minitabl}. |
| 966 |
|
| 967 |
\subsubsection{Side figure or table} |
| 968 |
|
| 969 |
For small figures and tables, it is preferable to insert them |
| 970 |
inside a text instead of using floating mechanism. The |
| 971 |
typographic rules usually require an illustrative material to |
| 972 |
occupy an outer side of paper. In two side printing, this means |
| 973 |
figure and tables should be on the right side if a page number is |
| 974 |
odd and on the left side if page number is even. In one side |
| 975 |
printing, figures and tables must occupy the right side of paper. |
| 976 |
|
| 977 |
The following commands support such a placement: |
| 978 |
\begin{quote} |
| 979 |
\com{sidefig}\opt{pos}\Meta{($w_1$)}\Meta{($w_2$)}\meta{figure body}\meta{text body}\\ |
| 980 |
\com{sidefig*}\opt{pos}\Meta{($w_1$)}\Meta{($w_2$)}\meta{figure body}\meta{text body}\\ |
| 981 |
\com{sidetabl}\opt{pos}\Meta{($w_1$)}\Meta{($w_2$)}\meta{table body}\meta{text body}\\ |
| 982 |
\com{sidetabl*}\opt{pos}\Meta{($w_1$)}\Meta{($w_2$)}\meta{table body}\meta{text body} |
| 983 |
\end{quote} |
| 984 |
For simplicity, we further use the term \textit{minifloat} for the |
| 985 |
small illustrating material (figure or table), however |
| 986 |
understanding that it is not a float at all. It is inserted in |
| 987 |
the main flow next to a paragraph box specified in the last |
| 988 |
parameter of above described commands. |
| 989 |
|
| 990 |
The no-star forms of above described commands place a minifloat |
| 991 |
next to the specified text on the outer side of page (to the |
| 992 |
right for odd page and to the left for even page). In two column |
| 993 |
or one side mode, minifloat is always posed to the right. The |
| 994 |
star forms provide the reverse placement. By default, minifloat |
| 995 |
is vertically centered with respect to the text and the |
| 996 |
\com{strut} command is inserted at the beginning and at the end |
| 997 |
of the \Meta{\itshape text body} to provide normal baseline |
| 998 |
distances of the first and last lines of the text from |
| 999 |
surrounding text lines. |
| 1000 |
|
| 1001 |
All parameters in square and round brackets are optional and mean |
| 1002 |
the following: |
| 1003 |
\begin{desclist}{}{}[\Meta{\itshape pos}] |
| 1004 |
\item[\Meta{\itshape pos}] specifies minifloat alignment (\Meta{t}, |
| 1005 |
\Meta{b}, or \Meta{c}; default is \Meta{c}) with respect to text |
| 1006 |
box and can contain additional chars controlling the text body |
| 1007 |
preparation: \Meta{j} means the last line of the text to be |
| 1008 |
justified to the right and \Meta{n} means suppressing of struts |
| 1009 |
insertion (they should be inserted manually if necessary); |
| 1010 |
|
| 1011 |
\item[$w_1$] is the width of minifloat (if units are omitted, the |
| 1012 |
\com{unitlength} is supposed); and |
| 1013 |
|
| 1014 |
\item[$w_2$] is the width of the text box (if units are omitted, the |
| 1015 |
\com{unitlength} is supposed). |
| 1016 |
\end{desclist} |
| 1017 |
If both width parameters are absent, the widths are calculated as |
| 1018 |
\verb+(\linewidth-1.5em)/2+. If $w_2$ is absent, the text body |
| 1019 |
width is calculated as \verb+\linewidth-+$w_1$\verb+-1.5em+. |
| 1020 |
|
| 1021 |
While preparing a side minifloat, it is sometimes necessary to |
| 1022 |
provide conditional placement depending on the side a minifloat |
| 1023 |
is posed. The command |
| 1024 |
\begin{quote} |
| 1025 |
\com{ifleftsidefloat}\meta{left-clause}\meta{right-clause} |
| 1026 |
\end{quote} |
| 1027 |
provides this. It is useful in parameters of \com{sidefig} or |
| 1028 |
\com{sidetabl} and processes \Meta{\itshape left-clause} if the |
| 1029 |
minifloat is posed to the left or \Meta{\itshape right-clause} |
| 1030 |
otherwise. |
| 1031 |
|
| 1032 |
\subsubsection{Floating figure or table} |
| 1033 |
|
| 1034 |
\begin{quote} |
| 1035 |
\com{fig}\opt{placement}\Meta{($w$)}\meta{body}\\ |
| 1036 |
\com{fig*}\opt{placement}\Meta{($w$)}\meta{body}\\ |
| 1037 |
\com{tabl}\opt{placement}\Meta{($w$)}\meta{body}\\ |
| 1038 |
\com{tabl*}\opt{placement}\Meta{($w$)}\meta{body} |
| 1039 |
\end{quote} |
| 1040 |
The \Meta{\itshape placement} is a float placement parameter |
| 1041 |
describing places where a float can appear. The default value is |
| 1042 |
\Meta{htp} (here, or at the top of the next page, or on the page |
| 1043 |
with floats only). The optional \Meta{($w$)} parameter defines a |
| 1044 |
width of box occupied by the float (the width of nested |
| 1045 |
\com{minifig} or \com{minitabl}). If it |
| 1046 |
is omitted, the float has the maximum width equal to |
| 1047 |
\com{linewidth}. |
| 1048 |
|
| 1049 |
The \com{fig} and \com{tabl} commands envelop the \Meta{figure} |
| 1050 |
and \Meta{table} environments respectively. Their star-forms |
| 1051 |
envelop corresponding starred environments. |
| 1052 |
|
| 1053 |
\subsubsection{Two floating figures or tables side by side} |
| 1054 |
|
| 1055 |
\begin{quote} |
| 1056 |
\com{figs}\opt{placement}\Meta{($w_1$)}\Meta{($w_2$)}\meta{body1}\meta{body2}\\ |
| 1057 |
\com{figs*}\opt{placement}\Meta{($w_1$)}\Meta{($w_2$)}\meta{body1}\meta{body2}\\ |
| 1058 |
\com{tabls}\opt{placement}\Meta{($w_1$)}\Meta{($w_2$)}\meta{body1}\meta{body2}\\ |
| 1059 |
\com{tabls*}\opt{placement}\Meta{($w_1$)}\Meta{($w_2$)}\meta{body1}\meta{body2} |
| 1060 |
\end{quote} |
| 1061 |
These commands place two figures or tables side by side. The |
| 1062 |
\Meta{\itshape body1} is a body of the left figure or table and |
| 1063 |
the \Meta{\itshape body2} is a body of the right figure or table. |
| 1064 |
Other parameters are optional. The meaning and default value of |
| 1065 |
the \Meta{\itshape placement} parameter is the same as described |
| 1066 |
above. The \Meta{($w_1$)} and \Meta{($w_2$)} parameters are |
| 1067 |
widths of left and right boxes. If |
| 1068 |
they both are omitted, the left and right boxes will have the |
| 1069 |
width equal to \Meta{(\com{linewidth}-1em)/2}. If \Meta{($w_2$)} |
| 1070 |
is omitted, the right box will occupy the rest of horizontal space |
| 1071 |
minus \Meta{1em}. If both parameters are specified, the rest |
| 1072 |
space is inserted between boxes. If the total width of left and |
| 1073 |
right floats exceeds the \com{linewidth}, the floats will overlap |
| 1074 |
at the middle of line (a negative horizontal space is inserted |
| 1075 |
between them). |
| 1076 |
|
| 1077 |
In \com{tabls} command, boxes of the left and right bodies are |
| 1078 |
top-aligned, but in \com{figs} command, the bottom alignment is |
| 1079 |
used. |
| 1080 |
|
| 1081 |
\subsection{Graphics in NCC-\LaTeX{}} |
| 1082 |
|
| 1083 |
The \package{nccpic} package from the \bungle{ncctools} bungle |
| 1084 |
envelops the standard \package{graphicx} package. The package |
| 1085 |
passes all options to the underground package. |
| 1086 |
|
| 1087 |
The main aim of the \package{nccpic} package is the preparing of |
| 1088 |
graphics extensions list depending on a dvi-driver used with the |
| 1089 |
\package{graphicx} package. This allows omit an extension of a |
| 1090 |
graphics file in the \com{includegraphics} command. When a file |
| 1091 |
without extension is searched, this command sequentially tries |
| 1092 |
extensions from the list until an appropriate file will be found. |
| 1093 |
|
| 1094 |
Using this feature you can support multiple output from \LaTeX\ |
| 1095 |
with minimum changes in \Meta{.tex} sources. The only required |
| 1096 |
thing is to prepare a number of versions for all graphics files |
| 1097 |
called in a document. For example, the dvips program likes |
| 1098 |
\Meta{.eps} files, the Yap previewer likes \Meta{.bmp} or |
| 1099 |
\Meta{.eps} files, the pdflatex likes \Meta{.png} files. To |
| 1100 |
satisfy their needs, you can prepare \Meta{.eps}, \Meta{.bmp}, |
| 1101 |
and \Meta{.png} versions for all pictures and pass a required |
| 1102 |
option to the \package{nccpic} package. |
| 1103 |
|
| 1104 |
The graphics extensions list is customized now for most popular |
| 1105 |
drivers, namely \Opt{dvips}, \Opt{dvipdf}, and \Opt{dvipdfm}, and |
| 1106 |
for use with \Opt{pdftex} also. More customization is welcome! |
| 1107 |
|
| 1108 |
The next aim of the \package{nccpic} package is the regulation of |
| 1109 |
placement of graphics files in the file system. It is too |
| 1110 |
inconvenient when pictures are stored together with \Meta{.tex} |
| 1111 |
source files. We propose to store graphics files in the |
| 1112 |
\Meta{graphics} subdirectory of the source directory. To support |
| 1113 |
the search in this storage, the graphics path is customized in the |
| 1114 |
\package{nccpic} package. |
| 1115 |
|
| 1116 |
The following commands are introduced in the \package{nccpic} |
| 1117 |
package: |
| 1118 |
\begin{desclist}{}{} |
| 1119 |
\item[\com{ipic}\meta{filename}] command loads a file having the |
| 1120 |
name \Meta{{\itshape filename}.pic} searching it in the graphics |
| 1121 |
path. It allow to take actual graphics inclusion commands out of |
| 1122 |
source files for automation purposes. |
| 1123 |
|
| 1124 |
\item[\com{putimage}\Meta{($x,y$)[$x_r,y_r$]($x_s,y_s$)}\meta{filename}] |
| 1125 |
command emulates a graphics inclusion technique used in the old |
| 1126 |
NCC-\LaTeX. Look in the \package{nccpic} package file for more |
| 1127 |
detail description. |
| 1128 |
|
| 1129 |
\item[\com{draftgraphics} and \com{finalgraphics}] are toggles |
| 1130 |
between final and draft modes for preparation of graphics. In |
| 1131 |
draft mode, a graphics object is shown as a framebox of the |
| 1132 |
required dimensions with an object name in it. Using these |
| 1133 |
commands, you can toggle graphics preparation mode on the fly. In |
| 1134 |
draft mode, the \com{putimage} command does not test an existence |
| 1135 |
of required graphics file. |
| 1136 |
\end{desclist} |
| 1137 |
|
| 1138 |
\subsection{Additional boxes} |
| 1139 |
|
| 1140 |
The \package{nccboxes} package from the \bungle{ncctools} bungle |
| 1141 |
provides additional boxes: |
| 1142 |
\begin{description} |
| 1143 |
\item[\com{jhbox}\meta{prototype}\opt{align}\meta{body}] |
| 1144 |
horizontally aligns the body in the text box which width is |
| 1145 |
defined by the \Meta{\itshape prototype} parameter. The optional |
| 1146 |
\Meta{\itshape align} parameter defines a position of alignment |
| 1147 |
(\Meta{l}, \Meta{c}, \Meta{r}, or \Meta{s}; default is \Meta{c}). |
| 1148 |
|
| 1149 |
\item[\com{jvbox}\meta{prototype}\opt{align}\meta{body}] |
| 1150 |
vertically aligns the body with respect to the strut defined by |
| 1151 |
the \Meta{\itshape prototype} parameter. The optional |
| 1152 |
\Meta{\itshape align} parameter defines a position of alignment |
| 1153 |
(\Meta{t}, \Meta{c}, or \Meta{b}; default is \Meta{c}). If |
| 1154 |
\Meta{t} is used, the body is raised in such a way that its |
| 1155 |
height will be equal to the height of the prototype's strut. For |
| 1156 |
\Meta{b} case, the depths will be equal and, for \Meta{c} case, |
| 1157 |
the body is vertically centered with respect to prototype's strut. |
| 1158 |
|
| 1159 |
\item[\com{jparbox}\meta{prototype}\opt{align}\meta{width}\meta{body}] |
| 1160 |
prepares a paragraph box of required \Meta{\itshape width} and |
| 1161 |
vertically aligns it with respect to the \Meta{\itshape |
| 1162 |
prototype} by the same manner as \com{jvbox}. |
| 1163 |
|
| 1164 |
\item[\com{pbox}\opt{align}\meta{body}] is a simple one-column |
| 1165 |
table. The \Meta{\itshape align} parameter may consist of two |
| 1166 |
letters defining a relative alignment in the column (\Meta{l}, |
| 1167 |
\Meta{c}, or \Meta{r}) and the vertical alignment of the table |
| 1168 |
with respect to surrounding text (\Meta{t}, \Meta{c}, or |
| 1169 |
\Meta{b}). Centering is the default alignment. The distance |
| 1170 |
between the table rows is independent on the \com{arraystretch} |
| 1171 |
value. |
| 1172 |
|
| 1173 |
\item[\com{addbox}\meta{above}\meta{below}\meta{body}] prepares |
| 1174 |
an hbox containing the \Meta{\itshape body} which height is |
| 1175 |
adjusted to the value of the \Meta{\itshape above} length |
| 1176 |
parameter and depth is adjusted to the value of the |
| 1177 |
\Meta{\itshape below} length parameter. For example, |
| 1178 |
\verb+\addbox{.5ex}{.5ex}{text}+ increases the height and depth of |
| 1179 |
produced hbox on \Meta{0.5ex}. |
| 1180 |
|
| 1181 |
\item[\com{picbox}\meta{body}] = \verb+\begin{picture}(0,0)(0,0)+ |
| 1182 |
\Meta{\itshape body} \verb+\end{picture}+. |
| 1183 |
|
| 1184 |
\end{description} |
| 1185 |
|
| 1186 |
To prepare a fancy table, the following commands can be used: |
| 1187 |
\begin{desclist}{}{} |
| 1188 |
\item[\com{Strut}\Meta{/{\itshape value}/}] is a strut which |
| 1189 |
height and depth are calculated from the strut prototype (letter |
| 1190 |
\Meta{A} by default) as follows: if \Meta{{\itshape value}>0}, |
| 1191 |
the full height of the current \com{strutbox} multiplied by the |
| 1192 |
\Meta{\itshape value} is added to the height of prototype strut, |
| 1193 |
otherwise the depth of prototype strut is increased with the |
| 1194 |
modulus of \Meta{\itshape value} multiplied by the full height of |
| 1195 |
\com{strutbox}. For example, \verb+\Strut/1/+ inserts a strut |
| 1196 |
which height exceeds the height of the letter \Meta{A} from the |
| 1197 |
current font on the interline distance. The \com{Strut} without |
| 1198 |
parameter is equal to \verb+\Strut/0/+. |
| 1199 |
|
| 1200 |
\item[\com{tstrut}, \com{bstrut}, and \com{tbstrut}] insert |
| 1201 |
struts exceeding the height, depth, and height and depth of the |
| 1202 |
strut prototype by a special small amount. This amount is |
| 1203 |
calculated in such a way that the full height of \com{tbstrut} |
| 1204 |
will be equal to 1.5 of full height of the current \com{strutbox}. |
| 1205 |
|
| 1206 |
\item[\com{cbox}\Meta{/{\itshape value}/}\opt{align}\meta{body}] |
| 1207 |
prepares a box whose body is a one-column table. Its height and |
| 1208 |
depth are enlarged using \com{tstrut} at the beginning and |
| 1209 |
\com{bstrut} at the end of body. The horizontal alignment |
| 1210 |
(\Meta{l}, \Meta{c}, or \Meta{r}) in the column and the vertical |
| 1211 |
alignment (\Meta{t}, \Meta{c}, or \Meta{b}) are defined in the |
| 1212 |
\Meta{\itshape align} parameter. Centered alignment is used by |
| 1213 |
default. The resulting box is vertically aligned with respect to |
| 1214 |
the \com{Strut}\Meta{/{\itshape value}/} using the \com{jvbox} |
| 1215 |
command. The \com{cbox*} command does the same but vanishes the |
| 1216 |
height and depth of the resulting box. |
| 1217 |
|
| 1218 |
\end{desclist} |
| 1219 |
|
| 1220 |
The \com{cbox} command is used in the headers of tables. Its star |
| 1221 |
form is useful in cells having vertical spans. The style for |
| 1222 |
typing its body is managed with the \com{cboxstyle} command. Its |
| 1223 |
default value is empty but in NCC-\LaTeX\ this command is |
| 1224 |
redefined as follows: |
| 1225 |
\begin{verbatim} |
| 1226 |
\renewcommand\cboxstyle{\scriptsize} |
| 1227 |
\end{verbatim} |
| 1228 |
|
| 1229 |
We demonstrate the use of struts and \com{cbox} on the example |
| 1230 |
\begin{center} |
| 1231 |
\renewcommand\cboxstyle{\small\bf} |
| 1232 |
\setlength{\tabcolsep}{10pt} |
| 1233 |
\begin{tabular}{|l|c|c|c|}\hline |
| 1234 |
\cbox*/-1.5/{Vertically\\spanned head} & \cbox{Simple head} |
| 1235 |
&\multicolumn2{c|}{\cbox{Very long head\\of two lines}}\\\cline{2-4} |
| 1236 |
&\cbox{subhead} &\cbox{subhead} &\cbox{subhead}\\\hline |
| 1237 |
\Strut/1/ Text & field & field & field \\ |
| 1238 |
Text & field & field & field \\ |
| 1239 |
\bstrut Text & field & field & field \\\hline |
| 1240 |
\end{tabular} |
| 1241 |
\end{center} |
| 1242 |
produced by the following code: |
| 1243 |
\begin{verbatim} |
| 1244 |
\begin{center} |
| 1245 |
\renewcommand\cboxstyle{\small\bf} |
| 1246 |
\setlength{\tabcolsep}{10pt} |
| 1247 |
\begin{tabular}{|l|c|c|c|}\hline |
| 1248 |
\cbox*/-1.5/{Vertically\\spanned head} & \cbox{Simple head} |
| 1249 |
&\multicolumn2{c|}{\cbox{Very long head\\of two lines}}\\\cline{2-4} |
| 1250 |
&\cbox{subhead} &\cbox{subhead} &\cbox{subhead}\\\hline |
| 1251 |
\Strut/1/ Text & field & field & field \\ |
| 1252 |
Text & field & field & field \\ |
| 1253 |
\bstrut Text & field & field & field \\\hline |
| 1254 |
\end{tabular} |
| 1255 |
\end{center} |
| 1256 |
\end{verbatim} |
| 1257 |
|
| 1258 |
\subsection{Miscellaneous commands} |
| 1259 |
|
| 1260 |
We describe here commands provided by the \package{ncclatex} |
| 1261 |
package itself. |
| 1262 |
\begin{desclist}{}{} |
| 1263 |
\item[\com{acknow}] starts a new paragraph with the |
| 1264 |
\textit{Acknowledgements} title. |
| 1265 |
|
| 1266 |
\item[\com{cref}\meta{citelabel}] produces a citation without brackets to the |
| 1267 |
specified \Meta{\itshape citelabel}. It is used in the case of |
| 1268 |
citations containing ranges, e.g.\ [2--4, 7]. |
| 1269 |
|
| 1270 |
\item[\com{mop}\meta{name}] is used for coding new math operations |
| 1271 |
like $\sin$. For example, \verb+$k=\mop{sgn}x$+ produces |
| 1272 |
$k=\mop{sgn}x$ with proper font and spaces. This command is |
| 1273 |
equivalent to \AmS\ \com{operatorname} command. |
| 1274 |
|
| 1275 |
\item[\com{tg}, \com{ctg}, \com{arctg}, and \com{arcctg}] produce |
| 1276 |
math operations for tangent, cotangent, and for their inverse |
| 1277 |
functions in Russian typesetting tradition. |
| 1278 |
|
| 1279 |
\item[\com{No}] produces the numero symbol. If the \Opt{russian} |
| 1280 |
option is not used, this command emulates the numero symbol with |
| 1281 |
the text ``\No''. |
| 1282 |
|
| 1283 |
\item[\com{tc}\meta{body}] adjust the body to the center |
| 1284 |
using \verb+\hspace*{\fill}+ glues. This |
| 1285 |
command is useful in tables when centered alignment of a |
| 1286 |
particular cell is required but another alignment is |
| 1287 |
specified for the column the cell belongs to. |
| 1288 |
|
| 1289 |
\end{desclist} |
| 1290 |
|
| 1291 |
The titles of proof, predefined theorems, and acknowledgements |
| 1292 |
are declared with commands having the \Meta{name} suffix. For |
| 1293 |
example, the proof title is coded in the \com{proofname}, the |
| 1294 |
title of lemmas is defined in the \com{lemmaname}, and the |
| 1295 |
acknowledgements title is coded in the \com{acknowname} command. |
| 1296 |
They all can be redefined to provide internationalization (the |
| 1297 |
\Opt{russian} option redefines these titles in Russian). |
| 1298 |
|
| 1299 |
\section{The sibjnm class} |
| 1300 |
|
| 1301 |
This class describes a style used in the \textit{Siberian Journal |
| 1302 |
of Numerical Mathematics} (SibJNM), |
| 1303 |
\texttt{http://www.sscc.ru/SibJNM/}, email: |
| 1304 |
\texttt{[email protected]}. We recommend to use this class for |
| 1305 |
submitting an article to this journal. |
| 1306 |
|
| 1307 |
The \package{sibjnm} class is based on the \package{ncc} class. |
| 1308 |
It sets the following options of \package{ncc} class: |
| 1309 |
\Opt{a4paper}, \Opt{11pt}, \Opt{article}, \Opt{twoside}, and |
| 1310 |
\Opt{onecolumn}. A user can manage the following options: |
| 1311 |
\Opt{draft}, \Opt{final}, \Opt{openany}, \Opt{openright}, and |
| 1312 |
\Opt{russian}. Other options are forbidden. |
| 1313 |
|
| 1314 |
The SibJNM is a bilingual journal. An article can be prepared in |
| 1315 |
English or in Russian. An abstract is prepared in both languages. |
| 1316 |
Before abstracts, one of subject classification commands must be |
| 1317 |
used: \com{UDC}\meta{indices} or |
| 1318 |
\com{AmSclassification}\meta{indices}. The first command sets UDC |
| 1319 |
classification indices and the last command sets \AmS\ |
| 1320 |
classification indices of the article subject. |
| 1321 |
|
| 1322 |
The russian abstract must go right after the \com{maketitle} |
| 1323 |
command. Its syntax: |
| 1324 |
\begin{quote} |
| 1325 |
\verb+\begin{Rabstract}+\meta{Authors}\meta{Title} \Meta{\itshape |
| 1326 |
body} \verb+\end{Rabstract}+ |
| 1327 |
\end{quote} |
| 1328 |
The english abstract must go after the russian one. Its syntax is |
| 1329 |
similar: |
| 1330 |
\begin{quote} |
| 1331 |
\verb+\begin{Eabstract}+\meta{Authors}\meta{Title} \Meta{\itshape |
| 1332 |
body} \verb+\end{Eabstract}+ |
| 1333 |
\end{quote} |
| 1334 |
The text field of SibJNM article is 155$\times$225 mm. |
| 1335 |
|
| 1336 |
\end{document} |