| 1 |
\documentclass[11pt]{article} |
| 2 |
\usepackage[colorlinks=true,filecolor=blue]{hyperref} |
| 3 |
\usepackage{amsmath} |
| 4 |
\usepackage{desclist} |
| 5 |
\usepackage{tocenter} |
| 6 |
\reversemarginpar |
| 7 |
\settowidth\marginparwidth{\tt afterpackage} |
| 8 |
\ToCenter[fm]{130mm}{220mm} |
| 9 |
|
| 10 |
\title{NCCTOOLS} |
| 11 |
\author{by Alexander I. Rozhenko} |
| 12 |
\date{Release 3.5} |
| 13 |
|
| 14 |
\def\|{\verb|} |
| 15 |
\newcommand*\Package[1]{% |
| 16 |
\par\bigskip\noindent\leavevmode |
| 17 |
\marginpar{\hfill\href{#1.pdf}{\underbar{\tt#1}}}\ignorespaces |
| 18 |
} |
| 19 |
\newcommand*\Pack[1]{{\tt#1}} |
| 20 |
\begin{document} |
| 21 |
\maketitle |
| 22 |
|
| 23 |
The `ncctools' collection consists of a number of packages |
| 24 |
extracted from NCC style (developed by Alexander I.~Rozhenko in |
| 25 |
1992--1996 under \LaTeX-2.09) while re-implementation it for |
| 26 |
\LaTeXe. Many new packages were also added later. |
| 27 |
|
| 28 |
The collection now contains 25 packages providing the following: |
| 29 |
|
| 30 |
\Package{afterpackage} Implements \|\AfterPackage| command specifying |
| 31 |
additional commands which should be applied to a package after |
| 32 |
its loading. The customization commands are specified without |
| 33 |
pre-loading packages they concerned to and are applied right |
| 34 |
after loading the respective packages. |
| 35 |
|
| 36 |
\Package{dcounter} Dynamic counters. The counter declared as |
| 37 |
dynamic is really created at the first use and receives at that |
| 38 |
moment the count style established by the \|\countstyle| command. |
| 39 |
The special use of \|\counstyle| command with optional parameter |
| 40 |
allows modify the subordination of existing counter. For example, |
| 41 |
while using the book class you can reject the subordination of the |
| 42 |
section counter to the chapter counter and re-subordinate figures, |
| 43 |
tables and equations to sections. The package is used in the |
| 44 |
\Pack{nccthm} package. |
| 45 |
|
| 46 |
\Package{desclist} Implements the \|desclist| environment. It is |
| 47 |
considered as an improvement of the \|description| environment. |
| 48 |
The appearance of item markers is easy customizable on the fly. An |
| 49 |
optional parameter allows set a marker prototype for calculation |
| 50 |
of hang indentation skip. The \|description| environment is |
| 51 |
redefined to use an optional parameter also. |
| 52 |
|
| 53 |
\Package{extdash} The package implements the commands, |
| 54 |
\|\Hyphdash|, \|\Endash|, \|\Emdash|, and their star-forms, to |
| 55 |
control hyphenation of compound words and ordinary words dashed by |
| 56 |
em-dash. You can also use the shortcuts |
| 57 |
\begin{center} |
| 58 |
\|\-/|\quad \|\=/|\quad \|\--|\quad \|\==|\quad\|\---|\quad\|\===| |
| 59 |
\end{center} |
| 60 |
instead. You can also decrease the length of em-dash by the |
| 61 |
\|cyremdash| option to satisfy the Russian typesetting rules. |
| 62 |
|
| 63 |
\Package{manyfoot} The package implements a command, |
| 64 |
\|\newfootnote|, that adds footnote levels to the standard LaTeX's |
| 65 |
footnote mechanism. Footnotes of every additional level are |
| 66 |
automatically grouped together on a \LaTeXe\ output page and are |
| 67 |
separated from another levels by the special vertical space and |
| 68 |
(maybe) rule. You can customize the typesetting style of |
| 69 |
additional footnotes choosing between ordinary footnotes and |
| 70 |
run-in paragraph footnotes (useful for critical editions). Service |
| 71 |
command \|\DeclareNewFootnote| simplifies creation of new footnote |
| 72 |
levels with automatic footnote numbering. The possibility of |
| 73 |
customization inter-level footnote rules is allowed. |
| 74 |
|
| 75 |
\Package{mboxfill} The package introduces \|\mboxfill| command |
| 76 |
filling a free space with a pattern. All leader types are supported. |
| 77 |
Width of pattern can be specified by the same manner as in |
| 78 |
the \|\makebox| command. |
| 79 |
|
| 80 |
\Package{nccbbb} Implementation of poor Black Board Bold symbols. |
| 81 |
Ported from old NCC-\LaTeX. It is useless in modern \LaTeX\ but |
| 82 |
kept just in case. |
| 83 |
|
| 84 |
\Package{nccboxes} Additional boxes from NCC-\LaTeX. The \|\jhbox| |
| 85 |
and \|\jvbox| horizontally and vertically align a body with |
| 86 |
respect to a prototype. The \|\jparbox| vertically aligns |
| 87 |
paragraph box with respect to a prototype. The \|\addbox| adjusts |
| 88 |
height and depth of box. The \|\pbox| is a simple version of |
| 89 |
one-column table. It is independent on \|\arraystretch| value. The |
| 90 |
\|\cbox| is intended for design of fancy headers in tables. |
| 91 |
|
| 92 |
\Package{ncccomma} Implements the smart comma in math mode working |
| 93 |
as an ordinary character if a decimal character goes after it. |
| 94 |
Otherwise, the math comma works as a punctuation mark. |
| 95 |
|
| 96 |
\Package{ncccropbox} Implements the \|\cropbox| command preparing |
| 97 |
a box with crop marks at its corners looking like angles. Angle |
| 98 |
parameters are customizable. |
| 99 |
|
| 100 |
\Package{ncccropmark} Implements the \|\cropmark| command |
| 101 |
producing crop box around page text area (header area, footer area |
| 102 |
and marginal notes are optionally taken into consideration). The |
| 103 |
\|\cropmark| command is useful as a parameter of the \|\watermark| |
| 104 |
commands form the \Pack{watermark} package. It accurately |
| 105 |
interprets current state of two-column, two-side, and |
| 106 |
reverse-margin modes. |
| 107 |
|
| 108 |
\Package{nccfancyhdr} Absolutely new implementation of |
| 109 |
functionality of the \Pack{fancyhdr} package. It is more |
| 110 |
transparent, simple, and non-aggressive (redefining of standard |
| 111 |
page styles is optional). Using the package with names of standard |
| 112 |
page styles as options, you can easy decorate your document with |
| 113 |
header/footer rules. For example, the command |
| 114 |
\begin{center} |
| 115 |
\|\usepackage[headings]{nccfancyhdr}| |
| 116 |
\end{center} |
| 117 |
sets the \|headings| page style and provides it with the |
| 118 |
decorative rule at the header. Header width control is improved |
| 119 |
with two commands, namely \|\extendedheaders| (extended upon |
| 120 |
marginal notes) and \|\normalheaders|. The \|\thispagestyle| |
| 121 |
command correctly works with the fancy page style (in fancyhdr, it |
| 122 |
didn't work because of use of global definitions). A new page |
| 123 |
style can be easy created with the help of the \|\newpagestyle| |
| 124 |
command and fancy mark commands. |
| 125 |
|
| 126 |
\Package{nccfloats} Wraps \LaTeX\ floats with service commands |
| 127 |
\|\fig|, \|\tabl|, \|\figs|, \|\tabls|, introduces the \|\minifig| |
| 128 |
and \|\minitabl| commands preparing figure and table in a minipage |
| 129 |
with possible use of \|\caption| within, and \|\sidefig| and |
| 130 |
\|\sidetabl| used for placement of minifloats next to surrounding |
| 131 |
text on the outer side of page. |
| 132 |
|
| 133 |
\Package{nccfoots} The package implements commands for generating |
| 134 |
footnotes with manual marks. For example, to mark footnote by star |
| 135 |
you can write |
| 136 |
\begin{center} |
| 137 |
\|\Footnote{$*$}{Footnote text}|. |
| 138 |
\end{center} |
| 139 |
|
| 140 |
\Package{nccmath} Extension of the \Pack{amsmath} package. Its |
| 141 |
main aim is to combine \AmS's typesetting of display equations and |
| 142 |
NCC-\LaTeX's one. In \Pack{amsmath}, the \|eqnarray| environment |
| 143 |
leaves unchanged. This package redefines \|eqnarray| to allow |
| 144 |
using of \Pack{amsmath} tag control features and display breaks. |
| 145 |
Inter-column distance in \|eqnarray| is reduced to the distance |
| 146 |
typical for relation operations. All columns are prepared in the |
| 147 |
\|\displaystyle|. A new \|darray| environment is a mix of the |
| 148 |
\AmS's \|aligned| environment and \LaTeX's \|array| environment. |
| 149 |
It is typed out in the same way as the \|aligned| environment but |
| 150 |
has columns definition parameter as in \|array| environment. The |
| 151 |
use of column specifications is restricted to the necessary |
| 152 |
commands only: \|l|, \|c|, \|r|, \|@|, and \|*| are allowed. The |
| 153 |
implementation has no conflicts with the packages redefining |
| 154 |
arrays. The \|fleqn| and \|ceqn| environments allow dynamically |
| 155 |
change the alignment of display formulas to flushed left or to |
| 156 |
centered alignment. Some additional commands are introduced also. |
| 157 |
|
| 158 |
\Package{nccparskip} Useful for documents with non-zero skips |
| 159 |
between paragraphs. In this case, the additional vertical space |
| 160 |
inserted by lists is unlikely. The package provides identical |
| 161 |
distance between all paragraphs except sectioning markup commands. It |
| 162 |
redefines control list commands and suppress \|\topskip|, |
| 163 |
\|\partopskip|, and \|\itemsep| in lists. As a result, the |
| 164 |
distance between ordinary paragraphs and paragraphs prepared by |
| 165 |
lists is the same. The \|\SetParskip{distance}| command controls |
| 166 |
this distance. |
| 167 |
|
| 168 |
\Package{nccpic} Envelop for the \Pack{graphicx} package. It |
| 169 |
customizes graphics extensions list for dvips driver. You need not |
| 170 |
specify a graphics file extension when use the \|\includegraphics| |
| 171 |
command. Depending on a dvi-driver specified, a graphics file with |
| 172 |
an appropriate extension is searched. So, you only need to create |
| 173 |
a number of versions of a graphics file in different formats (for |
| 174 |
example, `.bmp' for dvips or Yap and `.png' for pdftex). After |
| 175 |
that you can produce resulting `.ps' and `.pdf' file without any |
| 176 |
changes in the source file. The recommended storage for graphics |
| 177 |
files is the `graphics/' subdirectory of the directory the `.tex' |
| 178 |
file is translated. Some additional commands are introduced also. |
| 179 |
|
| 180 |
\Package{nccrules} Implements two commands, \|\dashrule| and |
| 181 |
\|\dashrulefill|, which compose dashed (multi)lines. Two footnote |
| 182 |
rule generation commands, \|\newfootnoterule| and |
| 183 |
\|\newfootnotedashrule|, are useful in conjunction with the |
| 184 |
\|manyfoot| package. |
| 185 |
|
| 186 |
\Package{nccsect} Extension of \LaTeX's section, caption, and |
| 187 |
toc-entries generation technique. The package contains many |
| 188 |
improvements in comparison with the base \LaTeX's implementation. |
| 189 |
The most interesting of them are: |
| 190 |
\begin{itemize} |
| 191 |
\item simple declaring of sections of any level (including |
| 192 |
sections of 0th level and captions for floats); |
| 193 |
|
| 194 |
\item user-controlled typeout for display sections (user can |
| 195 |
select one of the following typeout styles: \|hangindent|, |
| 196 |
\|hangindent*|, \|parindent|, \|parindent*|, |
| 197 |
\|hangparindent|, \|hangparindent*|, \|center|, and |
| 198 |
\|centerlast|);{\sloppy\par} |
| 199 |
|
| 200 |
\item new section styles can be easy constructed with the help of |
| 201 |
two style definition commands; |
| 202 |
|
| 203 |
\item customizing of section or caption tag by the manner similar |
| 204 |
to \AmS\ equation tag; |
| 205 |
|
| 206 |
\item simple declaring of toc-entries using prototypes for |
| 207 |
calculation of hang indentations; |
| 208 |
|
| 209 |
\item \|\numberline| command newer overlaps the text going after; |
| 210 |
|
| 211 |
\item \|\PnumPrototype| command is used for calculation of right |
| 212 |
margin in table of contents; |
| 213 |
|
| 214 |
\item different captions for different float types; |
| 215 |
|
| 216 |
\item simple handling of new types of floats (after registration of |
| 217 |
a new float in the package, you can declare a caption and toc-entry |
| 218 |
for it; be sure that the \|\chapter| command will automatically |
| 219 |
produce a vertical skip in a toc for the new float also). |
| 220 |
\end{itemize} |
| 221 |
|
| 222 |
\Package{nccstretch} Implements the \|\stretchwith| command that |
| 223 |
stretches a text inserting something between every pair of |
| 224 |
neighbour tokens. |
| 225 |
|
| 226 |
\Package{nccthm} Yet another extension to the \|\newtheorem| |
| 227 |
command. The following orthogonal properties of theorems are used: |
| 228 |
\begin{desclist}{\it}{\/}[numbering mode] |
| 229 |
\item[numbering mode] is standard or \textit{apar\/} (a number |
| 230 |
before header); |
| 231 |
|
| 232 |
\item[theorem type] defines an appearance of a theorem (what fonts |
| 233 |
are used for title, comment, and body). The `theorem' and |
| 234 |
`remark' types a predefined; |
| 235 |
|
| 236 |
\item[indent style] margin, nomargin, indent, noindent (selected |
| 237 |
in package options); |
| 238 |
|
| 239 |
\item[break style] do break after header or not? Hardcoded when a |
| 240 |
new theorem is declared. Can be overridden on the fly for concrete |
| 241 |
math statement. |
| 242 |
\end{desclist} |
| 243 |
|
| 244 |
Easy customization of spacing and commands inserted at the end of |
| 245 |
theorem headers. |
| 246 |
Two types of Q.E.D. symbol (white and black). The \|\proof| |
| 247 |
command is introduced. The \|\newtheoremtype| command allows |
| 248 |
create new theorem types. The \|\like|\textit{type\/} command is |
| 249 |
automatically created for every new type. It simplifies typeout |
| 250 |
of rare math statements. Instead of creation of a new theorem |
| 251 |
environment you can use |
| 252 |
\begin{center} |
| 253 |
\|\liketheorem{Title}{Number}[Comment]| |
| 254 |
\end{center} |
| 255 |
for it, or \|\likeremark|, etc. Every theorem environment and |
| 256 |
theorem type can be redefined with \|\renewtheorem| and |
| 257 |
\|\renewtheoremtype|. Counters of all theorem-like environments |
| 258 |
are dynamic (the \Pack{dcounter} package is used). So, they are |
| 259 |
created at the first use. This is very helpful for package writer. |
| 260 |
A number of theorem-like environments can be created in a package |
| 261 |
or class, and a user only selects the count style for them (in |
| 262 |
simple case this can be done with only one \|\countstyle| command |
| 263 |
in the document preamble). |
| 264 |
|
| 265 |
|
| 266 |
\Package{textarea} Allows expand the text area of a document |
| 267 |
on other areas: footer, header, and margin. There are two |
| 268 |
ways for such expansion~--- temporary expansion of a current |
| 269 |
page on the header using a special negative vertical skip, |
| 270 |
or global change of page layout parameters with possibility |
| 271 |
of later restoration them to the original values. |
| 272 |
All these actions should be applied at the beginning of page. |
| 273 |
|
| 274 |
\Package{tocenter} Provides two commands, namely \|\ToCenter| and |
| 275 |
\|\FromMargins|, simplifying the customization of page layout. It |
| 276 |
is now easy to change text width and height and center the text |
| 277 |
area on the page (the header, footer, and marginal note fields are |
| 278 |
optionally taken into consideration). Other way is like-Word |
| 279 |
declaring of paper layout: you set margins from the left, right, |
| 280 |
top, and bottom edges of page. |
| 281 |
|
| 282 |
\Package{topsection} Implements an unnumbered top-level section |
| 283 |
(\|\chapter| in books and reports or \|\section| in articles) in |
| 284 |
class-independent way. Such a section is used as a title for |
| 285 |
standard document sections such as table of contents, index, |
| 286 |
bibliography, etc. Using this command allows simplify the |
| 287 |
definition or redefinition of standard document environments. |
| 288 |
|
| 289 |
\Package{watermark} Provides watermarks on output pages. A |
| 290 |
watermark is some text or picture printed at the background of |
| 291 |
paper. A watermark is usually stored in the page header. This way |
| 292 |
is inconvenient: it needs redefinition of page style commands. We |
| 293 |
use another method that is orthogonal to page mark commands and |
| 294 |
needs no redefinition of page marks. The left and right watermarks |
| 295 |
are allowed. Temporary \|\thiswatermark| acts on the current page |
| 296 |
only. Using this way it is easy to replace a page header on a |
| 297 |
page by your own page header with the \|\thispageheading| command. |
| 298 |
|
| 299 |
\end{document} |