summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-13 00:00:27 +0000
committerKarl Berry <karl@freefriends.org>2006-01-13 00:00:27 +0000
commite9351f8ac4f8603d6020be78e092e939e24d89d0 (patch)
tree8685ab79522a6950137c99cb014279dedf34e334 /Master/texmf-dist/tex/latex
parent1fa165c67ca6c4bade32ffbec3cfcc8ea860507c (diff)
ncclatex
git-svn-id: svn://tug.org/texlive/trunk@1131 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/cp1251-light.def130
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/ncc.cls619
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/ncc10.clo88
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/ncc11.clo88
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/ncc12.clo88
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/ncc14.clo88
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/nccart.clo88
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/nccbook.clo172
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/nccfit.clo43
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/ncchdr.sty66
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/nccindex.sty40
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/ncclatex.sty190
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/nccltrus.sty88
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/nccold.sty37
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/nccproc.cls68
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/ncctitle.clo218
-rw-r--r--Master/texmf-dist/tex/latex/ncclatex/sibjnm.cls124
17 files changed, 2235 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ncclatex/cp1251-light.def b/Master/texmf-dist/tex/latex/ncclatex/cp1251-light.def
new file mode 100644
index 00000000000..e02b64a5398
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/cp1251-light.def
@@ -0,0 +1,130 @@
+\ProvidesFile{cp1251-light.def}
+ [2005/01/08 v1.1 Light input encoding file]
+%
+% \changes{v1.0}{2004/09/23}{This version was uploaded to CTAN}
+% \changes{v1.1}{2005/01/09}{Replace \textrm{\normalfont...} to \textnormal}
+% \changes{v1.1}{2005/01/09}{More comprehensive test of font encoding}
+%
+% Using of cyrillic input encodings has two major disadvantages:
+%
+% * cyrillic letters are forbidden in names of labels because
+% they are active and
+% * cyrillic letters disappear in math mode because they do not
+% belong to ordinary math fonts.
+%
+% The light version of the CP1251 input encoding partially removes both
+% these disadvantages: it declares common cyrillic letters in the range
+% of \CYRA--\cyrya as `other' symbols (with catcode 12), activates them in
+% math mode only (with mathcode "8000), and typesets common cyrillic letters
+% in math mode with the default text font. All these actions are applied
+% if the output cyrillic encoding is one of T2A, T2B, T2C, or X2 for
+% which the input and output codes of common cyrillic letters coinside.
+% Otherwise, the cp1251-light works as cp1251.
+%
+\input{cp1251.def}
+%
+% Test the font encoding to have a valid type
+%
+\makeatletter
+\@ifundefined{cyrillicencoding}%
+ {\let\@tempa\encodingdefault}%
+ {\let\@tempa\cyrillicencoding}
+\expandafter\in@\expandafter{\@tempa}{T2A,T2B,T2C,X2}
+\ifin@ \else
+ \PackageWarning{inputenc}%
+ {Cannot apply cp1251-light encoding\MessageBreak
+ to the font encoding \@tempa.\MessageBreak
+ The cp1251 encoding is in use.\MessageBreak}%
+ \makeatother
+ \endinput
+\fi
+%
+% The macro \@tempa{code}{command} declares a symbol with
+% specified code as math-active symbol and prints its command
+% with the default text font (this is the usual practice for
+% typesetting cyrillic in math indices).
+%
+\def\@tempa#1#2{%
+ \@tempcnta#1\relax
+ \catcode\@tempcnta 12
+ \mathcode\@tempcnta "8000
+ \bgroup
+ \uccode`\~#1%
+ \uppercase{%
+ \egroup
+ \def~%
+ }{{\textnormal{#2}}}%
+}
+%
+% Redefine catcodes and mathcodes of common cyrillic letters
+% Do them active in mathmode only.
+%
+\@tempa{192}{\CYRA}
+\@tempa{193}{\CYRB}
+\@tempa{194}{\CYRV}
+\@tempa{195}{\CYRG}
+\@tempa{196}{\CYRD}
+\@tempa{197}{\CYRE}
+\@tempa{198}{\CYRZH}
+\@tempa{199}{\CYRZ}
+\@tempa{200}{\CYRI}
+\@tempa{201}{\CYRISHRT}
+\@tempa{202}{\CYRK}
+\@tempa{203}{\CYRL}
+\@tempa{204}{\CYRM}
+\@tempa{205}{\CYRN}
+\@tempa{206}{\CYRO}
+\@tempa{207}{\CYRP}
+\@tempa{208}{\CYRR}
+\@tempa{209}{\CYRS}
+\@tempa{210}{\CYRT}
+\@tempa{211}{\CYRU}
+\@tempa{212}{\CYRF}
+\@tempa{213}{\CYRH}
+\@tempa{214}{\CYRC}
+\@tempa{215}{\CYRCH}
+\@tempa{216}{\CYRSH}
+\@tempa{217}{\CYRSHCH}
+\@tempa{218}{\CYRHRDSN}
+\@tempa{219}{\CYRERY}
+\@tempa{220}{\CYRSFTSN}
+\@tempa{221}{\CYREREV}
+\@tempa{222}{\CYRYU}
+\@tempa{223}{\CYRYA}
+\@tempa{224}{\cyra}
+\@tempa{225}{\cyrb}
+\@tempa{226}{\cyrv}
+\@tempa{227}{\cyrg}
+\@tempa{228}{\cyrd}
+\@tempa{229}{\cyre}
+\@tempa{230}{\cyrzh}
+\@tempa{231}{\cyrz}
+\@tempa{232}{\cyri}
+\@tempa{233}{\cyrishrt}
+\@tempa{234}{\cyrk}
+\@tempa{235}{\cyrl}
+\@tempa{236}{\cyrm}
+\@tempa{237}{\cyrn}
+\@tempa{238}{\cyro}
+\@tempa{239}{\cyrp}
+\@tempa{240}{\cyrr}
+\@tempa{241}{\cyrs}
+\@tempa{242}{\cyrt}
+\@tempa{243}{\cyru}
+\@tempa{244}{\cyrf}
+\@tempa{245}{\cyrh}
+\@tempa{246}{\cyrc}
+\@tempa{247}{\cyrch}
+\@tempa{248}{\cyrsh}
+\@tempa{249}{\cyrshch}
+\@tempa{250}{\cyrhrdsn}
+\@tempa{251}{\cyrery}
+\@tempa{252}{\cyrsftsn}
+\@tempa{253}{\cyrerev}
+\@tempa{254}{\cyryu}
+\@tempa{255}{\cyrya}
+\let\@tempa\relax
+\makeatother
+\endinput
+%%
+%% End of file `cp1251-light.def'.
diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncc.cls b/Master/texmf-dist/tex/latex/ncclatex/ncc.cls
new file mode 100644
index 00000000000..3548b61f54e
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/ncc.cls
@@ -0,0 +1,619 @@
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesClass{ncc}
+ [2005/07/02 v1.08 NCC-LaTeX document class (NCC)]
+%
+% \changes{v1.01}{2002/03/24}{This version is uploaded to CTAN}
+% \changes{v1.02}{2002/04/03}{Bug in loading book class fixed}
+% \changes{v1.03}{2004/04/08}{The processing of 'russian' option is improved}
+% \changes{v1.04}{2004/09/23}{Provide index making commands via the makeidx}
+% \changes{v1.05}{2004/11/30}{Remove \NCC@null from the titlepage env.}
+% \changes{v1.05}{2004/11/30}{Rename \NCC@null to \StartFromTextArea}
+% \changes{v1.05}{2004/11/30}{Add the \StartFromHeaderArea command}
+% \changes{v1.06}{2004/12/16}{Remove \NCC@gempty command}
+% \changes{v1.07}{2005/01/12}{Remove options passed to packages}
+% \changes{v1.07}{2005/02/21}{Set tbtags as default option}
+% \changes{v1.07}{2005/03/23}{Add optional arg. to \alloweqbreak}
+% \changes{v1.07}{2005/03/30}{Fix bug in the \preprint command}
+% \changes{v1.07}{2005/05/20}{Move \StartFromTextArea to the nccsect package}
+% \changes{v1.07}{2005/05/20}{Move \StartFromHeaderArea to the nccsect package}
+% \changes{v1.08}{2005/06/18}{Add titlepage*, \ExpandTextArea, \RestoreTextArea}
+% \changes{v1.08}{2005/07/02}{Improve \ExpandTextArea command}
+%
+\newcommand*\partmark[1]{}
+\newcommand\@ptsize{}
+\newif\if@restonecol
+\newdimen\bibindent
+\setlength\bibindent{1.5em}
+\let\@openbib@code\@empty
+%
+% \openrightorany clears page or double page depending on openright
+% mode selected.
+%
+\newif\if@openright
+\newcommand{\openrightorany}{\clearpage\relax
+ \if@openright \if@twoside
+ \begingroup\let\leftmark\relax \cleardoublepage\endgroup
+ \fi\fi
+}
+%
+% What goes first in title: author or title
+%
+\newif\ifNCC@authorbeforetitle
+\newcommand{\AuthorBeforeTitle}{\NCC@authorbeforetitletrue}
+\newcommand{\TitleBeforeAuthor}{\NCC@authorbeforetitlefalse}
+\@onlypreamble\AuthorBeforeTitle
+\@onlypreamble\TitleBeforeAuthor
+%
+% \SetTOCStyle{STYLE} sets a TOC style
+%
+\newcommand*{\SetTOCStyle}[1]{\def\NCC@tocstyle{#1}}
+\SetTOCStyle{}
+\@onlypreamble\SetTOCStyle
+%
+% Paper size options
+%
+\DeclareOption{a4paper}
+ {\setlength\paperheight {297mm}%
+ \setlength\paperwidth {210mm}}
+\DeclareOption{a5paper}
+ {\setlength\paperheight {210mm}%
+ \setlength\paperwidth {148mm}}
+\DeclareOption{a5a4paper}
+ {\setlength\paperheight {210mm}%
+ \setlength\paperwidth {210mm}}
+\DeclareOption{b5paper}
+ {\setlength\paperheight {250mm}%
+ \setlength\paperwidth {176mm}}
+\DeclareOption{letterpaper}
+ {\setlength\paperheight {11in}%
+ \setlength\paperwidth {8.5in}}
+\DeclareOption{legalpaper}
+ {\setlength\paperheight {14in}%
+ \setlength\paperwidth {8.5in}}
+\DeclareOption{executivepaper}
+ {\setlength\paperheight {10.5in}%
+ \setlength\paperwidth {7.25in}}
+\DeclareOption{landscape}
+ {\setlength\@tempdima {\paperheight}%
+ \setlength\paperheight {\paperwidth}%
+ \setlength\paperwidth {\@tempdima}}
+\DeclareOption{fittopage}{}
+%
+% Base font size options
+%
+\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
+\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
+\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
+\DeclareOption{14pt}{\renewcommand\@ptsize{4}%
+ \PassOptionsToPackage{small}{ncclatex}}
+%
+% Layout options
+%
+\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
+\DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
+\DeclareOption{draft}{\setlength\overfullrule{5pt}}
+\DeclareOption{final}{\setlength\overfullrule{0pt}}
+\DeclareOption{openany}{\@openrightfalse}
+\DeclareOption{openright}{\@openrighttrue}
+\DeclareOption{onecolumn}{\@twocolumnfalse}
+\DeclareOption{twocolumn}{\@twocolumntrue}
+%
+% Special openbib option
+%
+\DeclareOption{openbib}{%
+ \AtEndOfPackage{%
+ \renewcommand\@openbib@code{%
+ \advance\leftmargin\bibindent
+ \itemindent -\bibindent
+ \listparindent \itemindent
+ \parsep \z@
+ }%
+ \renewcommand\newblock{\par}}%
+}
+%
+% Display math options are defined in nccmath. We need not define them here,
+% because they ar passed to nccmath as global options.
+%
+%\DeclareOption{fleqn}{\PassOptionsToPackage{\CurrentOption}{nccmath}}
+%\DeclareOption{leqno}{\PassOptionsToPackage{\CurrentOption}{nccmath}}
+%
+% Small headings in sections option is also not necessary here.
+%
+%\DeclareOption{small}{\PassOptionsToPackage{\CurrentOption}{ncclatex}}
+%
+\newcommand*{\setyear}[1]{\gdef\theyear{#1}}
+\newcommand\theyear{\number\year}
+%
+% Subclass selection options
+%
+\DeclareOption{article}{%
+ \def\NCC@clsload{%
+ \TitleBeforeAuthor
+ \input{nccart.clo}%
+ \newcommand*{\setseries}[1]{\gdef\theseries{##1}}%
+ \newcommand*{\setvolume}[1]{\gdef\thevolume{##1}}%
+ \newcommand*{\setissue}[1]{\gdef\theissue{##1}}%
+ \setseries{}\setvolume{}\setissue{}%
+ \AtEndDocument{%
+ \clearpage
+ \if@filesw \advance\c@page\m@ne
+ \immediate\write\@mainaux{\string\newlabel
+ {NCC@lastpage}{{}{\thepage}}}%
+ \advance\c@page\@ne
+ \fi
+ \openrightorany
+ }%
+ \pagestyle{myheadings}%
+ \countstyle{}%
+ \InputIfFileExists{nccadd.sty}{}{}%
+ }%
+ \let\chapter\relax
+ \let\thechapter\relax
+}
+\DeclareOption{preprint}{%
+ \def\NCC@clsload{%
+ \AuthorBeforeTitle
+ \input{nccart.clo}%
+ \let\maketitle\relax % Remove these commands to allow creating
+ \let\abstract\relax % them with \newcommand.
+ \let\endabstract\relax %
+ \input{ncctitle.clo}%
+ \newcommand*{\preprint}[1]{%
+ \def\thepreprint{##1}%
+ \ifx\thepreprint\@empty
+ \titlecomment{}%
+ \else
+ \titlecomment{\bfseries \preprintname\\[1.5ex]\thepreprint}%
+ \fi
+ }%
+ \preprint{}%
+ \pagestyle{headings}%
+ \countstyle{}%
+ }%
+ \let\chapter\relax
+ \let\thechapter\relax
+}
+\DeclareOption{book}{%
+ \def\NCC@clsload{%
+ \AuthorBeforeTitle
+ \input{nccbook.clo}
+ \input{ncctitle.clo}%
+ \let\bookeditor\titlecomment
+ \pagestyle{headings}%
+ \countstyle{chapter}%
+ }%
+ \let\chapter\@empty % nccsect and russianb packages test an existence of
+ \let\thechapter\@empty % \thechapter and \chapter to understand what class
+} % was loaded
+\DeclareOption{report}{\ExecuteOptions{book,oneside}}
+%
+% The russian option is also removed because it is passed as global one.
+%
+%\DeclareOption{russian}{\PassOptionsToPackage{\CurrentOption}{ncclatex}}
+%
+% We set tbtags as the default tags positioning in split environment
+%
+\def\NCC@temp{\PassOptionsToPackage{tbtags}{nccmath}}
+\DeclareOption{centertags}{\let\NCC@temp\relax}
+%
+% Process options and load size option file
+%
+\ExecuteOptions{a4paper,10pt,article,twoside,onecolumn,final,openany}
+\ProcessOptions\relax
+\NCC@temp \let\NCC@temp\relax
+\input{ncc1\@ptsize.clo}
+\@ifclasswith{ncc}{fittopage}{\input{nccfit.clo}}{}
+%
+% Center text on the page taking into account the header only,
+% because default NCC-LaTeX style is headings or myheadings and
+% marginal notes are useless. The top margin is bounded by 1.5in.
+%
+\RequirePackage{tocenter}
+\ToCenter[h]{\textwidth}{\textheight}
+\ifdim\topmargin >.5in \topmargin=.5in \fi
+%
+% Set list margins
+%
+\if@twocolumn
+ \setlength\leftmargini {2em}
+ \setlength\leftmarginii {1.7em}
+ \setlength\leftmarginiii{1.5em}
+ \setlength\leftmarginiv {1.2em}
+ \setlength\leftmarginv {.5em}
+ \setlength\leftmarginvi {.5em}
+\else
+ \setlength\leftmargini {2.5em}
+ \setlength\leftmarginii {2.2em}
+ \setlength\leftmarginiii{1.87em}
+ \setlength\leftmarginiv {1.7em}
+ \setlength\leftmarginv {1em}
+ \setlength\leftmarginvi {1em}
+\fi
+\setlength\labelsep{.5em}
+\leftmargin\leftmargini
+\def\NCC@labelwidth{\labelwidth\leftmargin\advance\labelwidth-\labelsep}
+\NCC@labelwidth
+%
+% Set enumeration styles
+%
+\renewcommand\theenumi{\@arabic\c@enumi}
+\renewcommand\theenumii{\@alph\c@enumii}
+\renewcommand\theenumiii{\@roman\c@enumiii}
+\renewcommand\theenumiv{\@Alph\c@enumiv}
+\renewcommand\p@enumii{\theenumi}
+\renewcommand\p@enumiii{\theenumi(\theenumii)}
+\renewcommand\p@enumiv{\p@enumiii\theenumiii}
+\newcommand\labelenumi{\theenumi.}
+\newcommand\labelenumii{(\theenumii)}
+\newcommand\labelenumiii{\theenumiii.}
+\newcommand\labelenumiv{\theenumiv.}
+\newcommand\labelitemi{\textbullet}
+\newcommand\labelitemii{\normalfont\bfseries \textendash}
+\newcommand\labelitemiii{\textasteriskcentered}
+\newcommand\labelitemiv{\textperiodcentered}
+%
+% Set other dimensions, skips, and penalties
+%
+\if@twocolumn \setlength\parindent{1em}
+\else \setlength\parindent{1.5em}
+\fi
+\setlength\smallskipamount{3\p@ \@plus \p@ \@minus \p@}
+\setlength\medskipamount{6\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\bigskipamount{12\p@ \@plus 4\p@ \@minus 4\p@}
+\setlength\maxdepth{.5\topskip}
+\setlength\lineskip{\p@}
+\setlength\normallineskip{\p@}
+\renewcommand\baselinestretch{}
+\setlength\columnseprule{0\p@}
+\setlength\parskip{\z@ \@plus \p@}
+\@lowpenalty 51
+\@medpenalty 151
+\@highpenalty 301
+\@beginparpenalty -\@lowpenalty
+\@endparpenalty -\@lowpenalty
+\@itempenalty -\@lowpenalty
+\setcounter{topnumber}{4}
+\renewcommand\topfraction{.8}
+\setcounter{bottomnumber}{2}
+\renewcommand\bottomfraction{.6}
+\setcounter{totalnumber}{6}
+\renewcommand\textfraction{.2}
+\renewcommand\floatpagefraction{.5}
+\setcounter{dbltopnumber}{4}
+\renewcommand\dbltopfraction{.8}
+\renewcommand\dblfloatpagefraction{.5}
+\setlength\arraycolsep{5\p@}
+\setlength\tabcolsep{6\p@}
+\setlength\arrayrulewidth{.4\p@}
+\setlength\doublerulesep{2\p@}
+\setlength\tabbingsep{\labelsep}
+\skip\@mpfootins = \skip\footins
+\setlength\fboxsep{3\p@}
+\setlength\fboxrule{.4\p@}
+\def\@dotsep{4.5}
+%
+% Declare old font selection commands
+%
+\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
+\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
+\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
+\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
+\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
+\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
+\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
+\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
+\DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
+%
+% Create section counters. We use \countstyle command from dcounter package.
+%
+\RequirePackage{dcounter}
+\newcounter{part}
+\renewcommand\thepart{\@Roman\c@part}
+\@ifundefined{chapter}{
+ \countstyle[section]{}
+}{
+ \countstyle[chapter]{}
+ \countstyle[section]{chapter}
+}
+\countstyle[subsection]{section}
+\countstyle[subsubsection]{subsection}
+\countstyle[paragraph]{subsubsection}
+\countstyle[subparagraph]{paragraph}
+%
+% Declare floats
+%
+\DeclareDynamicCounter{figure}
+\def\fps@figure{tbp}
+\def\ftype@figure{1}
+\def\ext@figure{lof}
+\def\fnum@figure{\figurename\nobreakspace\thefigure}
+\newenvironment{figure}{\@float{figure}}{\end@float}
+\newenvironment{figure*}{\@dblfloat{figure}}{\end@dblfloat}
+\DeclareDynamicCounter{table}
+\def\fps@table{tbp}
+\def\ftype@table{2}
+\def\ext@table{lot}
+\def\fnum@table{\tablename\nobreakspace\thetable}
+\newenvironment{table}{\@float{table}}{\end@float}
+\newenvironment{table*}{\@dblfloat{table}}{\end@dblfloat}
+%
+% Names of english captions
+%
+\newcommand\prefacename{Preface}
+\newcommand\contentsname{Contents}
+\newcommand\listfigurename{List of Figures}
+\newcommand\listtablename{List of Tables}
+\newcommand\refname{References}
+\newcommand\bibname{Bibliography}
+\newcommand\indexname{Index}
+\newcommand\glossaryname{Glossary}
+\newcommand\figurename{Figure}
+\newcommand\tablename{Table}
+\newcommand\partname{Part}
+\newcommand\chaptername{Chapter}
+\newcommand\appendixname{Appendix}
+\newcommand\abstractname{Abstract}
+\newcommand\preprintname{Preprint}
+%
+% English version of \today
+%
+\def\today{\ifcase\month\or
+ January\or February\or March\or April\or May\or June\or
+ July\or August\or September\or October\or November\or December\fi
+ \space\number\day, \number\year}
+%
+% Prepare commands for making indices
+%
+\RequirePackage{makeidx}
+\newcommand\printglossary{\@input@{\jobname.gls}}
+%
+% Load remaining packages
+%
+\RequirePackage{watermark}
+\RequirePackage{ncclatex}
+\RequirePackage{nccold}
+\ifNCC@rus \frenchspacing \fi % French spacing in russian typesetting
+%
+% noeqbreak supresses page breaks before display equations
+% alloweqbreak[number] allows page breaks before display equations
+% (default is alloweqbreak[4])
+%
+\newenvironment{noeqbreak}{\predisplaypenalty\@M
+ \ignorespaces
+}{\ignorespacesafterend}
+\newenvironment*{alloweqbreak}[1][4]{%
+ \predisplaypenalty
+ \ifcase #1\@highpenalty
+ \or \@lowpenalty
+ \or \z@
+ \or \@beginparpenalty
+ \else \@secpenalty
+ \fi
+ \ignorespaces
+}{\ignorespacesafterend}
+\alloweqbreak % Break before display formulas is allowed
+\allowdisplaybreaks % Breaks in display formulas are allowed
+%
+% Verse, quotation, quote. The description is already defined in ncclatex
+%
+\newenvironment{verse}{%
+ \let\\\centercr
+ \list{}{\itemsep \z@ \itemindent -1.5em \listparindent\itemindent
+ \rightmargin \leftmargin \advance\leftmargin 1.5em}%
+ \item\relax
+}{\endlist}
+\newenvironment{quotation}{%
+ \list{}{\listparindent 1.5em \itemindent \listparindent
+ \rightmargin \leftmargin \parsep \z@ \@plus \p@}%
+ \item\relax
+}{\endlist}
+\newenvironment{quote}{%
+ \list{}{\rightmargin\leftmargin}\item\relax
+}{\endlist}
+%
+% The titlepage environment. Sets the empty page style at the top-level
+% title page. We suppose that a title page can contain many pages and many
+% title pages inside. The page counter is restored to its
+% original value after leaving a top-level title page.
+%
+\newif\ifNCC@intitle \NCC@intitlefalse
+\newenvironment{titlepage}{%
+ \clearpage
+ \if@twocolumn \@restonecoltrue \onecolumn \else \@restonecolfalse \fi
+ \ifNCC@intitle
+ \let\NCC@restorepagecount\@empty
+ \else
+ \pagestyle{empty}
+ \edef\NCC@restorepagecount{%
+ \noexpand\global\noexpand\c@page \@arabic\c@page\relax}%
+ \setcounter{page}\z@
+ \c@footnote\z@ \def\thefootnote{\@fnsymbol\c@footnote}%
+ \NCC@intitletrue
+ \fi
+ \let\NCC@restoretextarea\@empty
+}{%
+ \clearpage
+ \NCC@restoretextarea
+ \if@restonecol\twocolumn \fi
+ \NCC@restorepagecount
+}
+%
+% The star-form of the titlepage environment works as an inner one,
+% i.e. it does not change the page counter.
+\newenvironment{titlepage*}{\NCC@intitletrue
+ \clearpage\pagestyle{empty}\titlepage
+}{\endtitlepage}
+%
+% A text area can be expanded on the header, footer, and margins if
+% the \ExpandTextArea[hfm] command is used at the beginning of a page
+% in one-column mode.
+% The letters in optional argument mean the following: h (header),
+% f (footer), and m (margins). If an optional argument is omitted, or equal to
+% [*] the temporary expansion to the header is applied with the
+% \StartFromHeaderArea command.
+\newcommand*\RestoreTextArea{}
+\newcommand*\ExpandTextArea[1][*]{%
+ \if@twocolumn
+ \ClassError{ncc}{The \string\ExpandTextArea\space command\MessageBreak
+ cannot work in two-column mode}{}%
+ \else
+ \def\@tempa{*}\edef\@tempb{#1}%
+ \ifx\@tempa\@tempb
+ \StartFromHeaderArea
+ \else
+ \ifx\RestoreTextArea\@empty
+ \let\NCC@h\@empty \global\let\NCC@restore@h\@empty
+ \let\NCC@f\@empty \global\let\NCC@restore@f\@empty
+ \let\NCC@m\@empty \global\let\NCC@restore@m\@empty
+ \expandafter\@tfor\expandafter\@tempa\expandafter:\expandafter=#1\do{%
+ \if h\@tempa
+ \def\NCC@h{\NCC@adjusttoheader{}}%
+ \gdef\NCC@restore@h{\NCC@adjusttoheader-}%
+ \else
+ \if f\@tempa
+ \def\NCC@f{\NCC@adjusttofooter{}}%
+ \gdef\NCC@restore@f{\NCC@adjusttofooter-}%
+ \else
+ \if m\@tempa
+ \if@reversemargin \@tempcnta\@ne \else \@tempcnta\tw@ \fi
+ \edef\NCC@m{\noexpand\NCC@adjusttomargin{}{\the\@tempcnta}}%
+ \xdef\NCC@restore@m{\noexpand\NCC@adjusttomargin-{\the\@tempcnta}}%
+ \fi
+ \fi
+ \fi
+ }%
+ \NCC@h\NCC@f\NCC@m
+ \StartFromTextArea
+ \gdef\RestoreTextArea{%
+ \NCC@restore@h\NCC@restore@f\NCC@restore@m
+ \global\let\RestoreTextArea\@empty
+ }%
+ \def\NCC@restoretextarea{\RestoreTextArea}%
+ \fi
+ \fi
+ \fi
+}
+\def\NCC@adjusttoheader#1{%
+ \@tempdima #1\headheight
+ \advance\@tempdima #1\headsep
+ \global\advance\textheight\@tempdima
+ \global\advance\topmargin-\@tempdima
+ \global\@colht\textheight
+ \global\@colroom\textheight
+ \global\vsize\textheight
+}
+\def\NCC@adjusttofooter#1{%
+ \global\advance\textheight#1\footskip
+ \global\@colht\textheight
+ \global\@colroom\textheight
+ \global\vsize\textheight
+}
+\def\NCC@adjusttomargin#1#2{%
+ \@tempdima #1\marginparwidth
+ \advance\@tempdima #1\marginparsep
+ \@tempcnta#2%
+ \ifodd\@tempcnta
+ \global\advance\oddsidemargin -\@tempdima
+ \else
+ \global\advance\evensidemargin -\@tempdima
+ \fi
+ \global\advance\textwidth\@tempdima
+ \global\columnwidth\textwidth
+ \global\linewidth\textwidth
+ \global\hsize\textwidth
+}
+%
+% Bibliography without header. It is possible to set starting number
+% for bibliography counter.
+%
+% \begin{biblist}[start number]{prototype} ... \end{biblist}
+%
+\newcommand{\bibliststyle}{\small}
+\newenvironment*{biblist}[2][0]{
+ \bibliststyle
+ \list{\@biblabel{\@arabic\c@enumiv}}{%
+ \settowidth\labelwidth{\@biblabel{#2}}%
+ \leftmargin\labelwidth \advance\leftmargin\labelsep \itemsep\parsep
+ \@openbib@code
+ \usecounter{enumiv}\let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}%
+ }%
+ \setcounter{enumiv}{#1}%
+ \sloppy \widowpenalty 4000
+ \clubpenalty 4000 \@clubpenalty \clubpenalty
+ \sfcode`\.\@m
+}{\def\@noitemerr{\@latex@warning{Empty `biblist' environment}}%
+ \endlist
+}
+\newcommand{\newblock}{\hskip .11em\@plus .33em\@minus .07em}
+%
+% Footnote make commands.
+%
+\renewcommand{\footnoterule}{%
+ \kern-3\p@ \hrule\@width .4\columnwidth \kern2.6\p@
+}
+\newcommand{\@makefntext}[1]{%
+ \parindent 1em \noindent
+ \hb@xt@ 1.8em{\hss\@makefnmark}#1}
+%
+% \tableofcontents, \listoffigures, \listoftables
+%
+% They use the \NCC@tochead{header} command defined later in subclasses
+%
+\newcommand{\tableofcontents}{\NCC@toc\contentsname{toc}}
+\newcommand{\listoffigures}{\NCC@toc\listfigurename{lof}}
+\newcommand{\listoftables}{\NCC@toc\listtablename{lot}}
+\def\NCC@toc#1#2{%
+ \NCC@tochead{#1}%
+ \begingroup
+ \normalfont \NCC@tocstyle\NCC@setpnum
+ \@starttoc{#2}%
+ \endgroup
+}
+%
+% theindex and theglossary. They are based on \NCC@idxhead{header}
+% defined later in subclasses
+%
+\newenvironment{theindex}{\NCC@index\indexname}{\endNCC@index}
+\newenvironment{theglossary}{\NCC@index\glossaryname}{\endNCC@index}
+\newenvironment*{NCC@index}[1]{%
+ \if@twocolumn \@restonecolfalse \else \@restonecoltrue \fi
+ \columnseprule \z@ \columnsep 35\p@
+ \NCC@idxhead{#1}%
+ \parindent\z@ \parskip\z@ \@plus .3\p@
+ \let\item\@idxitem \small
+}{\if@restonecol\onecolumn \else \clearpage\fi}
+\newcommand\@idxitem{\par\hangindent 5em}
+\newcommand\subitem{\@idxitem \hspace*{2em}}
+\newcommand\subsubitem{\@idxitem \hspace*{4em}}
+\newcommand\indexspace{\par \addvspace{4ex \@plus 1ex \@minus .5ex}}
+%
+% NCC page style with headings
+%
+\def\NCC@setpsheading{%
+ \let\@oddfoot\@empty\let\@evenfoot\@empty
+ \def\@evenhead{%
+ \thepage\hfil
+ {\small\itshape\ignorespaces\leftmark\unskip}\hfil
+ }%
+ \def\@oddhead{%
+ \hfil{\small\itshape\ignorespaces\rightmark\unskip}\hfil
+ \thepage
+ }%
+ \reset@font
+}
+\def\NCC@firstmark#1{\markboth{#1}{#1}}
+\def\NCC@secondmark#1{\markright{#1}}
+%
+% Final actions
+%
+\pagenumbering{arabic}
+\NCC@clsload % load specified subclass
+\@onlypreamble\NCC@clsload
+\if@twocolumn
+ \twocolumn \sloppy \flushbottom
+\else
+ \onecolumn
+ \if@twoside \flushbottom \else \raggedbottom \fi
+\fi
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncc10.clo b/Master/texmf-dist/tex/latex/ncclatex/ncc10.clo
new file mode 100644
index 00000000000..2492379aacd
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/ncc10.clo
@@ -0,0 +1,88 @@
+\ProvidesFile{ncc10.clo}
+ [2002/01/25 v1.00 Size option (NCC)]
+\renewcommand\normalsize{%
+ \@setfontsize\normalsize\@xpt\@xiipt
+ \abovedisplayskip 10\p@ \@plus 2\p@ \@minus 5\p@
+ \abovedisplayshortskip \z@ \@plus 3\p@
+ \belowdisplayshortskip 6\p@ \@plus 3\p@ \@minus 3\p@
+ \belowdisplayskip \abovedisplayskip
+ \let\@listi\@listI}
+\normalsize
+\newcommand\small{%
+ \@setfontsize\small\@ixpt{11}%
+ \abovedisplayskip 8.5\p@ \@plus 2\p@ \@minus 4\p@
+ \abovedisplayshortskip \z@ \@plus 2\p@
+ \belowdisplayshortskip 4\p@ \@plus 2\p@ \@minus 2\p@
+ \belowdisplayskip \abovedisplayskip
+ \def\@listi{\leftmargin\leftmargini
+ \topsep 4\p@ \@plus 2\p@ \@minus 2\p@
+ \parsep 2\p@ \@plus \p@ \@minus \p@
+ \itemsep \z@skip}%
+}
+\newcommand\footnotesize{%
+ \@setfontsize\footnotesize\@viiipt{9.5}%
+ \abovedisplayskip 6\p@ \@plus 1.5\p@ \@minus 3\p@
+ \abovedisplayshortskip \z@ \@plus \p@
+ \belowdisplayshortskip 3\p@ \@plus \p@ \@minus \p@
+ \belowdisplayskip \abovedisplayskip
+ \def\@listi{\leftmargin\leftmargini
+ \topsep 3\p@ \@plus \p@ \@minus \p@
+ \parsep 2\p@ \@plus \p@ \@minus \p@
+ \itemsep \z@skip}%
+}
+\newcommand\scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}
+\newcommand\tiny{\@setfontsize\tiny\@vpt\@vipt}
+\newcommand\large{\@setfontsize\large\@xiipt{14.5}}
+\newcommand\Large{\@setfontsize\Large\@xivpt{17.5}}
+\newcommand\LARGE{\@setfontsize\LARGE\@xviipt{21}}
+\newcommand\huge{\@setfontsize\huge\@xxpt{25}}
+\newcommand\Huge{\@setfontsize\Huge\@xxvpt{30}}
+%
+\setlength\topskip {10\p@}
+\setlength\headheight{12\p@}
+\setlength\headsep {20\p@}
+\setlength\footskip {30\p@}
+%
+\setlength\textwidth {110mm}
+\setlength\textheight{157mm}
+\setlength\columnsep {10\p@}
+%
+\setlength\marginparwidth{90\p@}
+\if@twocolumn \setlength\marginparsep{10\p@}
+\else \setlength\marginparsep{7\p@}\fi
+\setlength\marginparpush{5\p@}
+%
+\setlength\footnotesep {6.65\p@}
+\setlength{\skip\footins} {9\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep {10\p@ \@plus 3\p@ \@minus 2\p@}
+\setlength\textfloatsep {18\p@ \@plus 2\p@ \@minus 6\p@}
+\setlength\intextsep {\floatsep}
+\setlength\dblfloatsep {\floatsep}
+\setlength\dbltextfloatsep{\textfloatsep}
+\setlength\@fptop {0\p@ \@plus 1fil}
+\setlength\@fpsep {8\p@ \@plus 2fil}
+\setlength\@fpbot {0\p@ \@plus 1fil}
+\setlength\@dblfptop {\@fptop}
+\setlength\@dblfpsep {\@fpsep}
+\setlength\@dblfpbot {\@fpbot}
+%
+\setlength\partopsep{2\p@ \@plus \p@ \@minus \p@}
+\def\@listi{\leftmargin\leftmargini
+ \topsep 7\p@ \@plus 3\p@ \@minus 3\p@
+ \parsep 4\p@ \@plus 2\p@ \@minus \p@
+ \itemsep \z@skip}
+\let\@listI\@listi
+\def\@listii {\leftmargin\leftmarginii
+ \topsep 4\p@ \@plus 2\p@ \@minus 2\p@
+ \parsep 2\p@ \@plus \p@ \@minus \p@
+ \itemsep\z@skip \NCC@labelwidth}
+\def\@listiii{\leftmargin\leftmarginiii
+ \partopsep \p@ \@plus \z@ \@minus \p@
+ \topsep 2\p@ \@plus \p@ \@minus \p@
+ \parsep \z@ \@plus \p@
+ \itemsep\z@skip \NCC@labelwidth}
+\def\@listiv {\leftmargin\leftmarginiv \NCC@labelwidth}
+\def\@listv {\leftmargin\leftmarginv \NCC@labelwidth}
+\def\@listvi {\leftmargin\leftmarginvi \NCC@labelwidth}
+\@listi
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncc11.clo b/Master/texmf-dist/tex/latex/ncclatex/ncc11.clo
new file mode 100644
index 00000000000..67ef390c1b5
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/ncc11.clo
@@ -0,0 +1,88 @@
+\ProvidesFile{ncc11.clo}
+ [2002/01/25 v1.00 Size option (NCC)]
+\renewcommand\normalsize{%
+ \@setfontsize\normalsize\@xipt{13.15}%
+ \abovedisplayskip 11\p@ \@plus 3\p@ \@minus 5.5\p@
+ \abovedisplayshortskip \z@ \@plus 3\p@
+ \belowdisplayshortskip 7\p@ \@plus 3\p@ \@minus 3\p@
+ \belowdisplayskip \abovedisplayskip
+ \let\@listi\@listI}
+\normalsize
+\newcommand\small{%
+ \@setfontsize\small\@xpt\@xiipt
+ \abovedisplayskip 10\p@ \@plus 2\p@ \@minus 5\p@
+ \abovedisplayshortskip \z@ \@plus 3\p@
+ \belowdisplayshortskip 6\p@ \@plus 3\p@ \@minus 3\p@
+ \belowdisplayskip \abovedisplayskip
+ \def\@listi{\leftmargin\leftmargini
+ \topsep 6\p@ \@plus 3\p@ \@minus 3\p@
+ \parsep 4\p@ \@plus 2\p@ \@minus \p@
+ \itemsep \z@skip}%
+}
+\newcommand\footnotesize{%
+ \@setfontsize\footnotesize\@ixpt{11}%
+ \abovedisplayskip 8\p@ \@plus 2\p@ \@minus 4\p@
+ \abovedisplayshortskip \z@ \@plus \p@
+ \belowdisplayshortskip 4\p@ \@plus 2\p@ \@minus 2\p@
+ \belowdisplayskip \abovedisplayskip
+ \def\@listi{\leftmargin\leftmargini
+ \topsep 4\p@ \@plus 2\p@ \@minus 2\p@
+ \parsep 2\p@ \@plus \p@ \@minus \p@
+ \itemsep \z@skip}%
+}
+\newcommand\scriptsize{\@setfontsize\scriptsize\@viiipt{9.5}}
+\newcommand\tiny{\@setfontsize\tiny\@vipt\@viipt}
+\newcommand\large{\@setfontsize\large\@xiipt{14.5}}
+\newcommand\Large{\@setfontsize\Large\@xivpt{17.5}}
+\newcommand\LARGE{\@setfontsize\LARGE\@xviipt{21}}
+\newcommand\huge{\@setfontsize\huge\@xxpt{25}}
+\newcommand\Huge{\@setfontsize\Huge\@xxvpt{30}}
+%
+\setlength\topskip {11\p@}
+\setlength\headheight{12\p@}
+\setlength\headsep {22\p@}
+\setlength\footskip {30\p@}
+%
+\setlength\textwidth {126.5mm}
+\setlength\textheight{199mm}
+\setlength\columnsep {10\p@}
+
+\setlength\marginparwidth{83\p@}
+\if@twocolumn \setlength\marginparsep{10\p@}
+\else \setlength\marginparsep{7\p@}\fi
+\setlength\marginparpush{5\p@}
+%
+\setlength\footnotesep {7.7\p@}
+\setlength{\skip\footins} {10\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep {11\p@ \@plus 3\p@ \@minus 3\p@}
+\setlength\textfloatsep {20\p@ \@plus 2\p@ \@minus 6\p@}
+\setlength\intextsep {\floatsep}
+\setlength\dblfloatsep {\floatsep}
+\setlength\dbltextfloatsep{\textfloatsep}
+\setlength\@fptop {0\p@ \@plus 1fil}
+\setlength\@fpsep {8\p@ \@plus 2fil}
+\setlength\@fpbot {0\p@ \@plus 1fil}
+\setlength\@dblfptop {\@fptop}
+\setlength\@dblfpsep {\@fpsep}
+\setlength\@dblfpbot {\@fpbot}
+%
+\setlength\partopsep{3\p@ \@plus \p@ \@minus 2\p@}
+\def\@listi{\leftmargin\leftmargini
+ \topsep 8\p@ \@plus 4\p@ \@minus 4\p@
+ \parsep 4.5\p@ \@plus 2\p@ \@minus \p@
+ \itemsep \z@skip}
+\let\@listI\@listi
+\def\@listii {\leftmargin\leftmarginii
+ \topsep 4.5\p@ \@plus 2\p@ \@minus 2\p@
+ \parsep 2\p@ \@plus \p@ \@minus \p@
+ \itemsep \z@skip \NCC@labelwidth}
+\def\@listiii{\leftmargin\leftmarginiii
+ \partopsep\p@ \@plus \z@ \@minus \p@
+ \topsep 2\p@ \@plus \p@ \@minus \p@
+ \parsep \z@ \@plus \p@
+ \itemsep \z@skip \NCC@labelwidth}
+\def\@listiv {\leftmargin\leftmarginiv \NCC@labelwidth}
+\def\@listv {\leftmargin\leftmarginv \NCC@labelwidth}
+\def\@listvi {\leftmargin\leftmarginvi \NCC@labelwidth}
+\@listi
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncc12.clo b/Master/texmf-dist/tex/latex/ncclatex/ncc12.clo
new file mode 100644
index 00000000000..4e4028b706d
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/ncc12.clo
@@ -0,0 +1,88 @@
+\ProvidesFile{ncc12.clo}
+ [2002/01/25 v1.00 Size option (NCC)]
+\renewcommand\normalsize{%
+ \@setfontsize\normalsize\@xiipt{14.5}%
+ \abovedisplayskip 12\p@ \@plus 3\p@ \@minus 7\p@
+ \abovedisplayshortskip \z@ \@plus 4\p@
+ \belowdisplayshortskip 7\p@ \@plus 4\p@ \@minus 3\p@
+ \belowdisplayskip \abovedisplayskip
+ \let\@listi\@listI}
+\normalsize
+\newcommand\small{%
+ \@setfontsize\small\@xipt{13.6}%
+ \abovedisplayskip 11\p@ \@plus 3\p@ \@minus 5.5\p@
+ \abovedisplayshortskip \z@ \@plus 3\p@
+ \belowdisplayshortskip 6.5\p@ \@plus 3\p@ \@minus 3\p@
+ \belowdisplayskip \abovedisplayskip
+ \def\@listi{\leftmargin\leftmargini
+ \topsep 6.5\p@ \@plus 3\p@ \@minus 3\p@
+ \parsep 4.5\p@ \@plus 2\p@ \@minus\p@
+ \itemsep \z@skip}%
+}
+\newcommand\footnotesize{%
+ \@setfontsize\footnotesize\@xpt\@xiipt
+ \abovedisplayskip 10\p@ \@plus 2\p@ \@minus 5\p@
+ \abovedisplayshortskip \z@ \@plus 3\p@
+ \belowdisplayshortskip 6\p@ \@plus 3\p@ \@minus 3\p@
+ \belowdisplayskip \abovedisplayskip
+ \def\@listi{\leftmargin\leftmargini
+ \topsep 6\p@ \@plus 3\p@ \@minus 3\p@
+ \parsep 4\p@ \@plus 2\p@ \@minus \p@
+ \itemsep \z@skip}%
+}
+\newcommand\scriptsize{\@setfontsize\scriptsize\@viiipt{9.5}}
+\newcommand\tiny{\@setfontsize\tiny\@vipt\@viipt}
+\newcommand\large{\@setfontsize\large\@xivpt{17.5}}
+\newcommand\Large{\@setfontsize\Large\@xviipt{21}}
+\newcommand\LARGE{\@setfontsize\LARGE\@xxpt{25}}
+\newcommand\huge{\@setfontsize\huge\@xxvpt{30}}
+\let\Huge=\huge
+%
+\setlength\topskip {12\p@}
+\setlength\headheight{12\p@}
+\setlength\headsep {25\p@}
+\setlength\footskip {30\p@}
+%
+\setlength\textwidth {145mm}
+\setlength\textheight{233mm}
+\setlength\columnsep {10\p@}
+%
+\setlength\marginparwidth{68\p@}
+\if@twocolumn \setlength\marginparsep{10\p@}
+\else \setlength\marginparsep{7\p@}\fi
+\setlength\marginparpush{7\p@}
+%
+\setlength\footnotesep {8.4\p@}
+\setlength{\skip\footins} {10.8\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep {12\p@ \@plus 3\p@ \@minus 3\p@}
+\setlength\textfloatsep {20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\intextsep {\floatsep}
+\setlength\dblfloatsep {\floatsep}
+\setlength\dbltextfloatsep{\textfloatsep}
+\setlength\@fptop {0\p@ \@plus 1fil}
+\setlength\@fpsep {8\p@ \@plus 2fil}
+\setlength\@fpbot {0\p@ \@plus 1fil}
+\setlength\@dblfptop {\@fptop}
+\setlength\@dblfpsep {\@fpsep}
+\setlength\@dblfpbot {\@fpbot}
+%
+\setlength\partopsep{3\p@ \@plus 2\p@ \@minus 2\p@}
+\def\@listi{\leftmargin\leftmargini
+ \topsep 8\p@ \@plus 4\p@ \@minus 4\p@
+ \parsep 4.5\p@ \@plus 2.5\p@ \@minus \p@
+ \itemsep\z@skip}
+\let\@listI\@listi
+\def\@listii {\leftmargin\leftmarginii
+ \topsep 4.5\p@ \@plus 2.5\p@ \@minus 2\p@
+ \parsep 2.5\p@ \@plus \p@ \@minus \p@
+ \itemsep \z@skip \NCC@labelwidth}
+\def\@listiii{\leftmargin\leftmarginiii
+ \partopsep \p@ \@plus \z@ \@minus \p@
+ \topsep 2.5\p@ \@plus \p@ \@minus \p@
+ \parsep \z@ \@plus \p@
+ \itemsep \z@skip \NCC@labelwidth}
+\def\@listiv {\leftmargin\leftmarginiv \NCC@labelwidth}
+\def\@listv {\leftmargin\leftmarginv \NCC@labelwidth}
+\def\@listvi {\leftmargin\leftmarginvi \NCC@labelwidth}
+\@listi
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncc14.clo b/Master/texmf-dist/tex/latex/ncclatex/ncc14.clo
new file mode 100644
index 00000000000..f9475e67697
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/ncc14.clo
@@ -0,0 +1,88 @@
+\ProvidesFile{ncc14.clo}
+ [2002/01/28 v1.00 Size option (NCC)]
+\renewcommand\normalsize{%
+ \@setfontsize\normalsize\@xivpt{17.5}%
+ \abovedisplayskip 14.4\p@ \@plus 3\p@ \@minus 7\p@
+ \abovedisplayshortskip \z@ \@plus 4\p@
+ \belowdisplayshortskip 10\p@ \@plus 4\p@ \@minus 3\p@
+ \belowdisplayskip \abovedisplayskip
+ \let\@listi\@listI}
+\normalsize
+\newcommand\small{%
+ \@setfontsize\small\@xiipt{14.5}%
+ \abovedisplayskip 12\p@ \@plus 3\p@ \@minus 6\p@
+ \abovedisplayshortskip \z@ \@plus 4\p@
+ \belowdisplayshortskip 7\p@ \@plus 4\p@ \@minus 3\p@
+ \belowdisplayskip \abovedisplayskip
+ \def\@listi{\leftmargin\leftmargini
+ \topsep 7\p@ \@plus 4\p@ \@minus 3\p@
+ \parsep 5\p@ \@plus 2\p@ \@minus \p@
+ \itemsep \z@skip}%
+}
+\newcommand\footnotesize{%
+ \@setfontsize\footnotesize\@xipt{13.6}%
+ \abovedisplayskip 11\p@ \@plus 3\p@ \@minus 5\p@
+ \abovedisplayshortskip \z@ \@plus 3\p@
+ \belowdisplayshortskip 7\p@ \@plus 3\p@ \@minus 3\p@
+ \belowdisplayskip \abovedisplayskip
+ \def\@listi{\leftmargin\leftmargini
+ \topsep 7\p@ \@plus 3\p@ \@minus 3\p@
+ \parsep 4.5\p@ \@plus 2\p@ \@minus\p@
+ \itemsep \z@skip}%
+}
+\newcommand\scriptsize{\@setfontsize\scriptsize\@ixpt{11}}
+\newcommand\tiny{\@setfontsize\tiny\@viipt{8.4}}
+\newcommand\large{\@setfontsize\large\@xviipt{21}}
+\newcommand\Large{\@setfontsize\Large\@xxpt{25}}
+\newcommand\LARGE{\@setfontsize\LARGE\@xxvpt{30}}
+\let\huge\LARGE
+\let\Huge\LARGE
+%
+\setlength\topskip {14\p@}
+\setlength\headheight{14\p@}
+\setlength\headsep {25\p@}
+\setlength\footskip {30\p@}
+%
+\setlength\textwidth {160mm}
+\setlength\textheight{240mm}
+\setlength\columnsep {10\p@}
+%
+\setlength\marginparwidth{85\p@}
+\if@twocolumn \setlength\marginparsep{10\p@}
+\else \setlength\marginparsep{7\p@}\fi
+\setlength\marginparpush{7\p@}
+%
+\setlength\footnotesep {10\p@}
+\setlength{\skip\footins} {13\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep {14\p@ \@plus 3\p@ \@minus 3\p@}
+\setlength\textfloatsep {25\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\intextsep {\floatsep}
+\setlength\dblfloatsep {\floatsep}
+\setlength\dbltextfloatsep{\textfloatsep}
+\setlength\@fptop {0\p@ \@plus 1fil}
+\setlength\@fpsep {8\p@ \@plus 2fil}
+\setlength\@fpbot {0\p@ \@plus 1fil}
+\setlength\@dblfptop {\@fptop}
+\setlength\@dblfpsep {\@fpsep}
+\setlength\@dblfpbot {\@fpbot}
+%
+\setlength\partopsep{3\p@ \@plus 2\p@ \@minus 2\p@}
+\def\@listi{\leftmargin\leftmargini
+ \topsep 10\p@ \@plus 4\p@ \@minus 3\p@
+ \parsep 6\p@ \@plus 3\p@ \@minus \p@
+ \itemsep\z@skip}
+\let\@listI\@listi
+\def\@listii {\leftmargin\leftmarginii
+ \topsep 6\p@ \@plus 3\p@ \@minus 2\p@
+ \parsep 3\p@ \@plus \p@ \@minus \p@
+ \itemsep \z@skip \NCC@labelwidth}
+\def\@listiii{\leftmargin\leftmarginiii
+ \partopsep \p@ \@plus \z@ \@minus \p@
+ \topsep 3\p@ \@plus \p@ \@minus \p@
+ \parsep \z@ \@plus \p@
+ \itemsep \z@skip \NCC@labelwidth}
+\def\@listiv {\leftmargin\leftmarginiv \NCC@labelwidth}
+\def\@listv {\leftmargin\leftmarginv \NCC@labelwidth}
+\def\@listvi {\leftmargin\leftmarginvi \NCC@labelwidth}
+\@listi
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccart.clo b/Master/texmf-dist/tex/latex/ncclatex/nccart.clo
new file mode 100644
index 00000000000..37c29edabac
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/nccart.clo
@@ -0,0 +1,88 @@
+\ProvidesFile{nccart.clo}
+ [2005/03/23 v1.05 Article subclass (NCC)]
+%
+% \changes{v1.01}{2002/02/19}{This version is uploaded to CTAN}
+% \changes{v1.02}{2002/05/17}{Bug in abstract fixed. Extra space removed.}
+% \changes{v1.03}{2004/07/13}{\vskip in title replaced with \addvspace}
+% \changes{v1.04}{2004/12/06}{Replace \NCC@null with \StartFromTextArea}
+% \changes{v1.04}{2004/12/16}{Replace \NCC@gempty with \@empty}
+% \changes{v1.05}{2005/03/23}{Remove \skipwritingtoaux in index head}
+%
+\setcounter{tocdepth}{3}
+\setcounter{secnumdepth}{3}
+\def\NCC@tochead#1{\noheadingtag\skipwritingtoaux\section{#1}}
+\def\NCC@idxhead#1{%
+ \twocolumn[\noheadingtag\section{#1}]%
+ \thispageheading{}%
+}
+%
+% \ps@headings, \ps@myheadings
+%
+\def\ps@headings{\NCC@setpsheading
+ \def\partmark##1{%
+ \NCC@firstmark{\ifnum \c@secnumdepth>\m@ne\thepart.\enskip \fi
+ \ignorespaces##1}}%
+ \def\sectionmark##1{%
+ \NCC@firstmark{\ifnum \c@secnumdepth>\z@\thesection.\enskip \fi
+ \ignorespaces##1}}%
+ \def\subsectionmark##1{%
+ \NCC@secondmark{\ifnum\c@secnumdepth>\@ne\thesubsection.\enskip\fi
+ \ignorespaces##1}}%
+}
+\def\ps@myheadings{\NCC@setpsheading
+ \let\partmark \@gobble
+ \let\sectionmark \@gobble
+ \let\subsectionmark\@gobble
+}
+%
+% \maketitle
+%
+\newcommand\maketitle{\par
+ \begingroup
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \if@twocolumn \twocolumn[\@maketitle]
+ \else \clearpage \global\@topnum\z@ \@maketitle\fi
+ \NCC@articlehead
+ \endgroup
+ \gdef\@thanks{}%
+ \setcounter{footnote}{0}%
+}
+\def\@maketitle{
+ \begingroup
+ \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \normalsize\normalfont
+ \StartFromTextArea\vskip 2em\centering
+ \ifNCC@small \let\@tempa\Large \else \let\@tempa\LARGE \fi
+ \ifx\@author\@empty {\@tempa\bff \@title \par}%
+ \else
+ \ifNCC@authorbeforetitle \else
+ {\@tempa\bff \@title \par}\vspace{1.5em \@minus .3em}%
+ \fi
+ {\large\tabcolsep\z@ \lineskip .5em \pbox{\@author}\par}%
+ \ifNCC@authorbeforetitle
+ \vskip .5em {\@tempa\bff \@title \par}%
+ \fi
+ \fi
+ \endgroup
+ \@thanks
+ \addvspace{2em \@minus .5em}%
+}
+\def\NCC@articlehead{\thispageheading{}}% to be redefined in local macros
+%
+% abstract
+%
+\newenvironment{abstract}{\small\likeremark{\bf\abstractname}{}}{\qef}
+%
+% \appendix
+%
+\newcommand\appendix{\par
+ \setcounter{section}{-1}\stepcounter{section}%
+ \gdef\thesection{\@Alph\c@section}%
+}
+%
+% thebibliography
+%
+\newenvironment{thebibliography}{%
+ \noheadingtag \section{\refname}\biblist[0]%
+}{\endbiblist}
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccbook.clo b/Master/texmf-dist/tex/latex/ncclatex/nccbook.clo
new file mode 100644
index 00000000000..d3c98ad83fc
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/nccbook.clo
@@ -0,0 +1,172 @@
+\ProvidesFile{nccbook.clo}
+ [2005/06/19 v1.05 Book subclass (NCC)]
+%
+% \changes{v1.00}{2002/03/24}{This version is uploaded to CTAN}
+% \changes{v1.01}{2003/01/12}{Bug in \ChapterPrefixStyle{toc} fixed}
+% \changes{v1.02}{2004/12/06}{Replace \NCC@null with \StartFromTextArea}
+% \changes{v1.03}{2004/12/12}{Modify part generation commands}
+% \changes{v1.04}{2005/03/23}{Remove \skipwritingtoaux in index head}
+% \changes{v1.04}{2005/06/08}{Introduce the \DeclarePart command}
+% \changes{v1.04}{2005/06/08}{Introduce the \DeclareTOCPart command}
+% \changes{v1.05}{2005/06/19}{Page break after \l@part is forbidden}
+% \changes{v1.05}{2005/06/19}{New optional parameter in \DeclareTOCPart}
+%
+\@addtoreset{footnote}{chapter}
+\setcounter{tocdepth}{2}
+\setcounter{secnumdepth}{2}
+\def\NCC@tochead#1{\noheadingtag\skipwritingtoaux\chapter{#1}}
+\def\NCC@idxhead#1{%
+ \twocolumn \noheadingtag\chapter{#1}%
+}
+%
+% \frontmatter, \mainmatter, \backmatter
+%
+\newif\if@mainmatter \@mainmattertrue
+\newcommand\frontmatter{%
+ \@mainmatterfalse\pagenumbering{roman}%
+}
+\newcommand\mainmatter{%
+ {\@openrighttrue\openrightorany}%
+ \@mainmattertrue
+ \pagenumbering{arabic}%
+}
+\newcommand\backmatter{%
+ \openrightorany \@mainmatterfalse
+}
+%
+% Control of appearance chapter name in header and toc:
+%
+% \ChapterPrefixStyle{header,toc}
+%
+% The parameter list can contain two words: header and/or toc.
+% Using them you set prefix style for header and/or toc respectively.
+%
+\newcommand{\@chapapp}{\chaptername}
+\newcommand*{\ChapterPrefixStyle}[1]{%
+ \def\NCC@thetocchapter{\thechapter}%
+ \def\NCC@theheadchapter{\thechapter}%
+ \@for\@tempa:=#1\do
+ {\csname NCC@chapin@\@tempa\endcsname}%
+}
+\def\NCC@chapin@toc{\def\NCC@thetocchapter{\@chapapp\ \thechapter}}
+\def\NCC@chapin@header{\def\NCC@theheadchapter{\@chapapp\ \thechapter}}
+\@onlypreamble\ChapterPrefixStyle
+\@onlypreamble\NCC@chapin@toc
+\@onlypreamble\NCC@chapin@header
+\ChapterPrefixStyle{} % no prefix by default
+%
+% \ps@headings, \ps@myheadings
+%
+\def\ps@headings{\NCC@setpsheading
+ \def\partmark##1{%
+ \NCC@firstmark{\ifnum \c@secnumdepth>-2\relax
+ \partname\ \thepart.\enskip \fi
+ \ignorespaces##1}}%
+ \def\chaptermark##1{%
+ \NCC@firstmark{\ifnum \c@secnumdepth>\m@ne
+ \if@mainmatter \NCC@theheadchapter.\enskip \fi \fi
+ \ignorespaces##1}}%
+ \def\sectionmark##1{%
+ \NCC@secondmark{\ifnum\c@secnumdepth>\z@\thesection.\enskip\fi
+ \ignorespaces##1}}%
+}
+\def\ps@myheadings{\NCC@setpsheading
+ \let\partmark \@gobble
+ \let\chaptermark\@gobble
+ \let\sectionmark\@gobble
+}
+%
+% \appendix
+%
+\newcommand{\appendix}{\par
+ \setcounter{chapter}{-1}\stepcounter{chapter}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@Alph\c@chapter}%
+}
+%
+% thebibliography
+%
+\newenvironment{thebibliography}{%
+ \noheadingtag \chapter{\bibname}\biblist[0]%
+}{\endbiblist}
+%
+% Redefine start chapter hook
+%
+\def\NCC@startchap{%
+ \openrightorany
+ \thispageheading{}%
+ \global\@topnum\z@
+}
+%
+% \DeclarePart{BEFORE}{AFTER}{PREFIX}{STYLE}
+%
+\newcommand\DeclarePart[4]{%
+ \def\part{%
+ \openrightorany
+ \thispageheading{}%
+ \def\NCC@makesectag####1{\leavevmode#3\partname\nobreakspace####1}%
+ \secdef\@part\@spart
+ }%
+ \def\NCC@makepart##1##2{%
+ \if@twocolumn \onecolumn \@tempswatrue \else \@tempswafalse \fi
+ \begingroup\normalfont
+ #1%
+ \ifx\@svsec\@empty \else {\@svsec\par}\nobreak \fi
+ \interlinepenalty \@M
+ #4{##1}\par
+ \endgroup
+ ##2#2%
+ \if@tempswa \twocolumn \fi
+ }
+}
+\@onlypreamble\DeclarePart
+\def\@spart#1{%
+ \let\@svsec\@empty
+ \NCC@makepart{#1}{}%
+ \NCC@sec@reset@controls
+ \NCC@defaultsectag
+}
+\def\@part[#1]#2{%
+ \def\NCC@make{\NCC@makepart{#2}}%
+ \NCC@makesection{part}{\m@ne}{#1}{%
+ \addcontentsline{toc}{part}{%
+ \ifnum \c@secnumdepth>-2
+ \protect\numberline{\partname\ \thepart}\fi
+ #1%
+ }%
+ }%
+ \NCC@defaultsectag
+}
+%
+% \DeclareTOCPart{ACTION}[AFTERSKIP]{PREFIX}{PROTOTYPE}{STYLE}
+%
+\newcommand*\DeclareTOCPart[1]{%
+ \@ifnextchar[{\NCC@dtocpart{#1}}{\NCC@dtocpart{#1}[\NCC@runskip]}%
+}
+\def\NCC@dtocpart#1[#2]#3#4#5{%
+ \def\l@part##1##2{%
+ \NCC@tocentry{-1}{%
+ \setlength\@tempdimb\@tocrmarg
+ \edef\@tocrmarg{\the\@tempdimb plus 1fil}%
+ \addpenalty{-\@highpenalty}#1%
+ }{#3}{#4}{#5}{##1}{\hss##2}%
+ \nobreak \vskip #2\relax
+ \@nobreaktrue
+ \everypar{\@nobreakfalse\everypar{}}%
+ }%
+}
+\@onlypreamble\DeclareTOCPart
+\@onlypreamble\NCC@dtocpart
+%
+% Defaults
+%
+\ifNCC@small
+ \DeclarePart{\StartFromTextArea\vspace{\stretch{.5}}\centering}
+ {\vfill\newpage}{\vspace{1.5em}\Large\bff}{\huge\bff}
+\else
+ \DeclarePart{\StartFromTextArea\vspace{\stretch{.5}}\centering}
+ {\vfill\newpage}{\vspace{2em}\LARGE\bff}{\Huge\bff}
+\fi
+\DeclareTOCPart{\NCC@secskip{4ex \@plus .2ex}\def\@dotsep{1000}}
+ {}{\partname\ II}{\large\bff}
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccfit.clo b/Master/texmf-dist/tex/latex/ncclatex/nccfit.clo
new file mode 100644
index 00000000000..4bf31fc1d36
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/nccfit.clo
@@ -0,0 +1,43 @@
+\ProvidesFile{nccfit.clo}
+ [2002/01/25 v1.00 Fit to page option (NCC)]
+%
+% Fits \textwidth, \textheight, and \marginparwidth to paper size.
+% Got from standard size options.
+%
+\ifcase\@ptsize \setlength\textwidth{345\p@}
+\or \setlength\textwidth{360\p@}
+\or \setlength\textwidth{390\p@}
+\or\or \setlength\textwidth{470\p@}
+\fi
+\if@twocolumn
+ \setlength\textwidth{2\textwidth}
+ \addtolength\textwidth{\columnsep}
+\fi
+\setlength\@tempdima{\paperwidth}
+\addtolength\@tempdima{-2in}
+\ifdim\@tempdima<\textwidth \setlength\textwidth{\@tempdima} \fi
+\@settopoint\textwidth
+%
+\setlength\@tempdima{\paperheight}
+\addtolength\@tempdima{-3.5in}
+\divide\@tempdima\baselineskip
+\@tempcnta=\@tempdima
+\setlength\textheight{\@tempcnta\baselineskip}
+\addtolength\textheight{\topskip}
+%
+\if@twoside
+ \setlength\@tempdima {\paperwidth}
+ \addtolength\@tempdima {-\textwidth}
+ \setlength\marginparwidth {.6\@tempdima}
+ \addtolength\marginparwidth {-\marginparsep}
+ \addtolength\marginparwidth {-.4in}
+\else
+ \setlength\@tempdima {\paperwidth}
+ \addtolength\@tempdima {-\textwidth}
+ \setlength\marginparwidth {.5\@tempdima}
+ \addtolength\marginparwidth {-\marginparsep}
+ \addtolength\marginparwidth {-.8in}
+\fi
+\ifdim \marginparwidth >2in \setlength\marginparwidth{2in}\fi
+\@settopoint\marginparwidth
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncchdr.sty b/Master/texmf-dist/tex/latex/ncclatex/ncchdr.sty
new file mode 100644
index 00000000000..f05c47adc2f
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/ncchdr.sty
@@ -0,0 +1,66 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{ncchdr}
+ [2005/01/12 v1.02 Fancy headers for NCC class (NCC)]
+%
+% \changes{v1.01}{2002/02/14}{This version is uploaded to CTAN}
+% \changes{v1.02}{2002/04/25}{Bug in left header fixed}
+% \changes{v1.03}{2005/01/12}{Bug in \PassOptionsToPackage command fixed}
+%
+% This package redefines NCC page styles to fancy styles
+% and defines the fancy `title' page style if the `title' option is used.
+% This style has three header marks:
+% \lefttitlemark, \titlemark (in center), and \righttitlemark.
+%
+% If NCC class is not loaded, the package transfers redifinition of
+% styles to the nccfancyhdr package in assumption that one of standard
+% LaTeX classes is loaded.
+%
+\@ifundefined{NCC@setpsheading}{%
+ \def\NCC@temp{\PassOptionsToPackage{\CurrentOption}{nccfancyhdr}}%
+}{%
+ \def\NCC@temp{%
+ \def\NCC@setpsheading{\ps@fancy
+ \fancyhead[CO]{%
+ \fancycenter{}%
+ {\small\itshape\ignorespaces\rightmark\unskip}%
+ {\thepage}%
+ }%
+ \fancyhead[CE]{%
+ \fancycenter{\thepage}%
+ {\small\itshape\ignorespaces\leftmark\unskip}%
+ {}%
+ }%
+ }%
+ }%
+}
+%
+\DeclareOption{empty}{%
+ \PassOptionsToPackage{\CurrentOption}{nccfancyhdr}%
+ \AtEndOfPackage{\pagestyle{empty}}%
+}
+\DeclareOption{plain}{%
+ \PassOptionsToPackage{\CurrentOption}{nccfancyhdr}%
+ \AtEndOfPackage{\pagestyle{plain}}%
+}
+\DeclareOption{myheadings}{%
+ \NCC@temp
+ \AtEndOfPackage{\pagestyle{myheadings}}%
+}
+\DeclareOption{headings}{%
+ \NCC@temp
+ \AtEndOfPackage{\pagestyle{headings}}%
+}
+\DeclareOption{title}{%
+ \def\ps@title{\ps@fancy
+ \fancyhead[L]{\ignorespaces\lefttitlemark\unskip}%
+ \fancyhead[C]{\ignorespaces\titlemark\unskip}%
+ \fancyhead[R]{\ignorespaces\righttitlemark\unskip}%
+ }%
+ \newcommand\lefttitlemark{}%
+ \newcommand\titlemark{}%
+ \newcommand\righttitlemark{}%
+ \AtEndOfPackage{\pagestyle{title}}%
+}
+\ProcessOptions*
+\RequirePackage{nccfancyhdr}
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccindex.sty b/Master/texmf-dist/tex/latex/ncclatex/nccindex.sty
new file mode 100644
index 00000000000..b0cfa2438b7
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/nccindex.sty
@@ -0,0 +1,40 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{nccindex}
+ [2005/03/24 v1.00 Multicolumn index for NCC class (NCC)]
+%
+% \changes{v1.00}{2005/03/24}{This version is uploaded to CTAN}
+%
+% The package redefines index-preparing commands on the base of multicol
+% package. Some index control commands are specified here.
+%
+\@ifundefined{NCC@index}{%
+ \PackageError{nccindex}{The package is used with the ncc class only}{}}{}
+\RequirePackage{multicol}
+\renewenvironment*{NCC@index}[1]{%
+ \if@twocolumn \onecolumn \fi
+ \noheadingtag
+ \@ifundefined{chapter}{\section{#1}}{\chapter{#1}}%
+ \columnseprule\z@ \columnsep 2em
+ \parindent\z@ \parskip\z@ \@plus .3\p@
+ \NCC@index@
+ \NCC@indexstart
+}{\end{multicols}}
+%
+% \indexparameters{columns}{indexspace}{margin1}{margin2}{margin3}{style}
+%
+\newcommand*\indexparameters[6]{%
+ \def\NCC@index@{#6\begin{multicols}{#1}%
+ \def\indexspace{\par\addvspace{#2}}%
+ \def\@idxitem{\par\hangindent #5\relax}%
+ \def\item{\@idxitem\pagebreak[0]\leavevmode\nopagebreak\ignorespaces}%
+ \def\subitem{\@idxitem \hspace*{#3}}%
+ \def\subsubitem{\@idxitem \hspace*{#4}}%
+ }%
+}
+\indexparameters{2}{4ex \@plus 1ex \@minus .5ex}{2em}{4em}{5em}{\small}
+%
+% \startindexwith{text}
+%
+\newcommand\startindexwith{\long\def\NCC@indexstart}
+\startindexwith{}
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncclatex.sty b/Master/texmf-dist/tex/latex/ncclatex/ncclatex.sty
new file mode 100644
index 00000000000..42965e9966a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/ncclatex.sty
@@ -0,0 +1,190 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{ncclatex}
+ [2005/05/20 v1.05 NCC-LaTeX Extension Package (NCC)]
+%
+% \changes{v1.00}{2002/03/16}{This version is uploaded to CTAN}
+% \changes{v1.01}{2002/05/17}{Package extdash is loaded with cyremdash}
+% \changes{v1.01}{2002/05/17}{The equation counter is dynamic now}
+% \changes{v1.02}{2002/05/19}{Vskip after table's caption is reduced}
+% \changes{v1.03}{2004/04/08}{The processing of 'russian' option is improved}
+% \changes{v1.04}{2004/12/12}{Require the latest version of nccsect}
+% \changes{v1.05}{2005/01/09}{Add options T2A, T2B, T2C}
+% \changes{v1.05}{2005/02/07}{Remove |\tr|, |\tl|, and |\tc| commands}
+% \changes{v1.05}{2005/02/15}{Prepare equations tag in |\mathrm|)
+% \changes{v1.05}{2005/03/23}{Add \NCC logo}
+% \changes{v1.05}{2005/04/25}{Declare equation counter as dynamic one}
+% \changes{v1.05}{2005/05/20}{Change nccsect package date to 2005/05/20}
+%
+% Define headers for theorem-like environments and acknowledgements.
+%
+\newcommand{\theoremname}{Theorem}
+\newcommand{\lemmaname}{Lemma}
+\newcommand{\propositionname}{Proposition}
+\newcommand{\corollaryname}{Corollary}
+\newcommand{\definitionname}{Definition}
+\newcommand{\statementname}{Statement}
+\newcommand{\examplename}{Example}
+\newcommand{\remarkname}{Remark}
+\newcommand{\proofname}{Proof}
+\newcommand{\acknowname}{Acknowledgements}
+%
+% Russian headings (Babel needed)
+%
+\newif\ifNCC@rus \NCC@rusfalse
+\DeclareOption{russian}{\NCC@rustrue}
+\DeclareOption{T2C}{\def\NCC@cyrenc{T2C}}
+\DeclareOption{T2B}{\def\NCC@cyrenc{T2B}}
+\DeclareOption{T2A}{\def\NCC@cyrenc{T2A}}
+%
+% Smaller headings of sections
+%
+\newif\ifNCC@small \NCC@smallfalse
+\DeclareOption{small}{\NCC@smalltrue}
+\ExecuteOptions{T2A}
+\ProcessOptions\relax
+%
+% Load packages
+%
+\RequirePackage{dcounter}[2005/04/25]
+\RequirePackage{desclist}
+\RequirePackage[shortcuts,cyremdash]{extdash}
+\RequirePackage{nccboxes}
+\RequirePackage{nccfoots}
+\RequirePackage{nccmath}
+\def\maketag@@@#1{\hbox{$\m@th\mathrm{#1}$}}
+\RequirePackage{nccpic}
+\RequirePackage{nccthm}
+\RequirePackage{nccsect}[2005/05/20]
+\RequirePackage{nccfloats}
+\ifNCC@rus
+ \RequirePackage[\NCC@cyrenc]{fontenc}
+ \RequirePackage[russian]{nccltrus}
+\else
+ \def\tg{\qopname\relax o{tg}}
+ \def\arctg{\qopname\relax o{arctg}}
+ \def\ctg{\qopname\relax o{ctg}}
+ \def\arcctg{\qopname\relax o{arcctg}}
+ \@ifundefined{No}{\def\No{\mbox{No.}}}{}
+\fi
+\let\NCC@cyrenc\relax
+%
+% Declare the equation counter in the dynamic style.
+%
+\DeclareDynamicCounter{equation}
+%
+% \cref{label} is cite without square brackets
+%
+\newcommand*{\cref}[1]{{\def\@cite##1##2{##1}\cite{#1}}}
+%
+% Prepare theorem-like environments
+%
+\newtheorem{theorem}{\theoremname}
+\newtheorem{lemma}{\lemmaname}
+\newtheorem{proposition}{\propositionname}
+\newtheorem{corollary}{\corollaryname}
+\newtheorem{statement}{\statementname}[remark]
+\newtheorem{definition}{\definitionname}[remark]
+\newtheorem{example}{\examplename}[remark]
+\newtheorem{remark}{\remarkname}[remark]
+%
+% Prepare APAR theorem-like environments
+%
+\newtheorem*{atheorem}{\theoremname}
+\newtheorem*{alemma}{\lemmaname}
+\newtheorem*{aproposition}{\propositionname}
+\newtheorem*{acorollary}{\corollaryname}
+\newtheorem*{astatement}{\statementname}[remark]
+\newtheorem*{adefinition}{\definitionname}[remark]
+\newtheorem*{anexample}{\examplename}[remark]
+\newtheorem*{aremark}{\remarkname}[remark]
+%
+% Prepare manual theorem-like environments
+%
+\newenvironment{Theorem}{\liketheorem{\theoremname}}{\qef}
+\newenvironment{Lemma}{\liketheorem{\lemmaname}}{\qef}
+\newenvironment{Proposition}{\liketheorem{\propositionname}}{\qef}
+\newenvironment{Corollary}{\liketheorem{\corollaryname}}{\qef}
+\newenvironment{Statement}{\likeremark{\statementname}}{\qef}
+\newenvironment{Definition}{\likeremark{\definitionname}}{\qef}
+\newenvironment{Example}{\likeremark{\examplename}}{\qef}
+\newenvironment{Remark}{\likeremark{\remarkname}}{\qef}
+%
+% Change default settings for theorems
+%
+\renewtheoremtype{remark}{\bfseries}{}{}
+\TheoremCommentDelimiters{}{}
+\AfterTheoremHeaderChar{.}
+\AfterTheoremHeaderSkip{\hskip .7em \@plus .2em \@minus .1em}
+\AparStyleParameters{\bff}{\bff}{.\enskip}
+\ProofStyleParameters{\bff}{\proofname}
+%
+% \acknow starts acknowledgements.
+%
+\newcommand{\acknow}{\likeremark{\normalfont\itshape\acknowname}{}}
+%
+% \mop{FOO} is equivalent to \operatorname{FOO}
+%
+\newcommand{\mop}{\operatorname}
+%
+% NCC logo:
+%
+\DeclareRobustCommand{\NCC}{{\protect\AmSfont
+ N\kern-.05em\lower.5ex\hbox{C}\kern.05emC}%
+}
+%
+% Customize sections and captions.
+%
+\def\NCC@runskip{2.3ex \@plus 1ex \@minus .2ex}
+\DeclareSection{-2}{table}{\bfseries}{\z@}{1.3ex}{\small}
+\DeclareSection{-1}{figure}{\bfseries}{2ex}{\z@}{\small}
+\ifNCC@small
+ \@ifundefined{chapter}{%
+ \DeclareSection*0{part}{\large\bff}%
+ {4ex \@plus 1ex \@minus .2ex}%
+ {2.8ex \@plus .2ex}{\LARGE\bff}
+ }{%
+ \DeclareSection*0{chapter}{\vspace{1.5ex}\large\bff}{\z@}%
+ {6ex \@plus .2ex}{\LARGE\bff}
+ }
+ \DeclareSection*1{section}{}%
+ {3.1ex \@plus 1ex \@minus .2ex}%
+ {1.5ex \@plus .2ex}{\large\bff}
+ \DeclareSection*2{subsection}{}%
+ {2.7ex \@plus 1ex \@minus .2ex}%
+ {1.5ex \@plus .2ex}{\normalsize\bff}
+ \DeclareSection*3{subsubsection}{}%
+ {\NCC@runskip}%
+ {1.5ex \@plus .2ex}{\normalsize\bff\itshape}
+\else
+ \@ifundefined{chapter}{%
+ \DeclareSection*0{part}{\Large\bff}%
+ {5ex \@plus 1ex \@minus .2ex}%
+ {3.8ex \@plus .2ex}{\huge\bff}
+ }{%
+ \DeclareSection*0{chapter}{\vspace{2ex}\Large\bff}{\z@}%
+ {8ex \@plus .2ex}{\huge\bff}
+ }
+ \DeclareSection*1{section}{}%
+ {3.5ex \@plus 1ex \@minus .2ex}%
+ {2.3ex \@plus .2ex}{\Large\bff}
+ \DeclareSection*2{subsection}{}%
+ {3.1ex \@plus 1ex \@minus .2ex}%
+ {1.5ex \@plus .2ex}{\large\bff}
+ \DeclareSection*3{subsubsection}{}%
+ {2.7ex \@plus 1ex \@minus .2ex}%
+ {1.5ex \@plus .2ex}{\normalsize\bff}
+\fi
+\DeclareSection4{paragraph}{}{\NCC@runskip}%
+ {-.6em \@plus -.2em \@minus -.1em}{\normalsize\bff}
+\DeclareSection5{subparagraph}[\parindent]{}{\NCC@runskip}%
+ {-.6em \@plus -.2em \@minus -.1em}{\normalsize\bff}
+\SectionTagSuffix{.\hskip .6em}
+\CaptionTagSuffix{.\hskip .6em \@plus .2em \@minus .1em}
+\NumberlineSuffix{.\hskip .6em}{.\hskip .4em}
+\sectionstyle{hangindent*}
+%
+% Millimeters are default units in NCC-LaTeX.
+%
+\unitlength=1mm
+\renewcommand{\cboxstyle}{\scriptsize}
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccltrus.sty b/Master/texmf-dist/tex/latex/ncclatex/nccltrus.sty
new file mode 100644
index 00000000000..5480b6eede6
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/nccltrus.sty
@@ -0,0 +1,88 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{nccltrus}
+ [2005/07/02 v1.06 Russian specifics (NCC)]
+%
+% \changes{v1.01}{2002/03/24}{This version is uploaded to CTAN}
+% \changes{v1.02}{2004/04/08}{All options are passed to babel}
+% \changes{v1.03}{2004/04/24}{Protect the package from use out of NCC}
+% \changes{v1.03}{2004/04/24}{Partial activation of useful CP1251 symbols}
+% \changes{v1.04}{2004/09/23}{Activate the CP1251-light input encoding}
+% \changes{v1.04}{2004/09/23}{Protect cyrillic alpha-numbering with \text}
+% \changes{v1.05}{2005/01/09}{Improve definition of \No command}
+% \changes{v1.05}{2005/04/13}{Add a small kern to \glqq shorthand}
+% \changes{v1.06}{2005/07/02}{Change kern with nonbreakable hspace in \glqq}
+%
+% The trick with temporary definition of \ver@inputenc.sty command
+% removes a warning from the [russian] option of the Babel package about
+% undefined input encoding. We do this trick because the input encoding
+% will be defined later.
+%
+\@ifpackageloaded{inputenc}{%
+ \expandafter\let\expandafter\NCC@tempa
+ \csname ver@inputenc.sty\endcsname
+}{%
+ \let\NCC@tempa\relax
+ \expandafter\let\csname ver@inputenc.sty\endcsname\@empty
+}
+\RequirePackageWithOptions{babel}
+\expandafter\let\csname ver@inputenc.sty\endcsname\NCC@tempa
+\ifx\cyrillicencoding\undefined \endinput\fi
+%
+% Add a small kern to German left double quote shorthand
+%
+\declare@shorthand{russian}{"`}{\glqq\nobreak\hskip.0166667em }
+%
+% Redefine the numero sign to work in any encoding.
+%
+\let\No\relax
+\DeclareRobustCommand{\No}{%
+ \ifmmode{\nfss@text{\textnumero}}\else{\cyr\textnumero}\fi
+}
+%
+% Load cp1251-light input encoding at the beginning of document
+% if no encoding was loaded at all
+%
+\AtBeginDocument{%
+ \@ifpackageloaded{inputenc}{}{\usepackage[cp1251-light]{inputenc}}%
+}
+\@ifundefined{ifNCC@rus}{\endinput}{\ifNCC@rus \else \endinput\fi}
+%
+% Redefine \alph and \Alph to russian alphabet and
+% save latin versions in \alphlatin and \Alphlatin
+% The redefined versions of \@alph and \@Alph commands wrap
+% contents with \text to be sure that alphabetic numbers never appear
+% in math mode.
+%
+\RequirePackage{amstext}[1995/01/25]
+\let\@alphlatin\@alph
+\newcommand*\alphlatin[1]{\expandafter\@alphlatin\csname c@#1\endcsname}
+\def\@alph#1{\text{\cyr\@asbuk{#1}}}
+\let\@Alphlatin\@Alph
+\newcommand*\Alphlatin[1]{\expandafter\@Alphlatin\csname c@#1\endcsname}
+\def\@Alph#1{\text{\cyr\@Asbuk{#1}}}
+%
+% Redefine theorem-like headers for russian
+%
+\addto\captionsrussian{%
+ \def\theoremname{{\cyr\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}}%
+ \def\lemmaname{{\cyr\CYRL\cyre\cyrm\cyrm\cyra}}%
+ \def\propositionname{%
+ {\cyr\CYRP\cyrr\cyre\cyrd\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}}%
+ \def\corollaryname{%
+ {\cyr\CYRS\cyrl\cyre\cyrd\cyrs\cyrt\cyrv\cyri\cyre}}%
+ \def\definitionname{%
+ {\cyr\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyre}}%
+ \def\statementname{%
+ {\cyr\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyre}}%
+ \def\examplename{{\cyr\CYRP\cyrr\cyri\cyrm\cyre\cyrr}}%
+ \def\remarkname{%
+ {\cyr\CYRZ\cyra\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyre}}%
+ \def\proofname{%
+ {\cyr\CYRD\cyro\cyrk\cyra\cyrz\cyra\cyrt\cyre\cyrl\cyrsftsn%
+ \cyrs\cyrt\cyrv\cyro}}%
+ \def\acknowname{%
+ {\cyr\CYRB\cyrl\cyra\cyrg\cyro\cyrd\cyra\cyrr\cyrn\cyro\cyrs\cyrt\cyri}}%
+ \def\preprintname{%
+ {\cyr\CYRP\cyrr\cyre\cyrp\cyrr\cyri\cyrn\cyrt}}%
+}
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccold.sty b/Master/texmf-dist/tex/latex/ncclatex/nccold.sty
new file mode 100644
index 00000000000..8cf6bc70e97
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/nccold.sty
@@ -0,0 +1,37 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{nccold}
+ [2002/02/19 v1.01 Obsolete NCC-LaTeX Commands (NCC)]
+\RequirePackage{nccboxes}
+\RequirePackage{nccmath}[2002/02/19]
+%
+% This package contains commands of NCC-LaTeX which are not remcommended
+% for use because new equivalents exist or commands depend on dvi-driver.
+%
+% \eref in NCC-LaTeX is equivalent to \eqref in AMS-LaTeX.
+% \no in NCC-LaTeX is equivalent to \tag* in AMS-LaTeX.
+% \Eq, \Eqs, and \Eqalign are equivalent to \eq*, \eqs*, and \eqalign*.
+%
+\newcommand{\eref}{\eqref}
+\newcommand{\no}{\tag*}
+\newcommand{\Eq}{\eq*}
+\newcommand{\Eqs}{\eqs*}
+\newcommand{\Eqalign}{\eqalign*}
+%
+% Support for emlines (emTeX dvi-driver specific commands)
+%
+\newcommand*{\emlinewidth}[1]{\special{em:linewidth #1}}
+\newcommand*{\emline}[6]{%
+ \put(#1,#2){\special{em:moveto}}%
+ \put(#3,#4){\special{em:lineto}}%
+}
+%
+% Use \tstrut, \bstrut, and \tbstrut instead of the following commands:
+%
+% \tbox{TEXT} = \addbox{\NCC@strutsep}{0mm}{TEXT}
+% \bbox{TEXT} = \addbox{0mm}{\NCC@strutsep}{TEXT}
+% \tbbox{TEXT} = \addbox{\NCC@strutsep}{\NCC@strutsep}{TEXT}
+%
+\def\tbox{\NCC@setstrut{\addbox\NCC@strutsep\z@}\z@}
+\def\bbox{\NCC@setstrut{\addbox\z@\NCC@strutsep}\z@}
+\def\tbbox{\NCC@setstrut{\addbox\NCC@strutsep\NCC@strutsep}\z@}
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccproc.cls b/Master/texmf-dist/tex/latex/ncclatex/nccproc.cls
new file mode 100644
index 00000000000..7a41334f7f8
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/nccproc.cls
@@ -0,0 +1,68 @@
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesClass{nccproc}
+ [2005/01/14 v1.2 Generic Proceedings Class (NCC)]
+%
+% \changes{v1.0}{2004/04/08}{This version was uploaded to CTAN}
+% \changes{v1.1}{2004/09/18}{Documentation was corrected}
+% \changes{v1.2}{2005/01/14}{Remove small, fleqn, and leqno options}
+%
+% The base class for NCC Proceedings. It supports bilingual
+% (Russian and English) proceedings.
+%
+\DeclareOption{a5paper}{\OptionNotUsed}
+\DeclareOption{a5a4paper}{\OptionNotUsed}
+\DeclareOption{b5paper}{\OptionNotUsed}
+\DeclareOption{letterpaper}{\OptionNotUsed}
+\DeclareOption{legalpaper}{\OptionNotUsed}
+\DeclareOption{executivepaper}{\OptionNotUsed}
+\DeclareOption{fittopage}{\OptionNotUsed}
+\DeclareOption{11pt}{\OptionNotUsed}
+\DeclareOption{12pt}{\OptionNotUsed}
+\DeclareOption{14pt}{\OptionNotUsed}
+\DeclareOption{oneside}{\OptionNotUsed}
+\DeclareOption{twocolumn}{\OptionNotUsed}
+\DeclareOption{openbib}{\OptionNotUsed}
+\DeclareOption{preprint}{\OptionNotUsed}
+\DeclareOption{monography}{\OptionNotUsed}
+\DeclareOption{report}{\OptionNotUsed}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ncc}}
+\PassOptionsToClass{10pt,twoside,onecolumn,article,a4paper,small}{ncc}
+\ProcessOptions\relax
+\LoadClass{ncc}
+%
+% Centered sections with indentation after them
+%
+\sectionstyle{center}
+\indentaftersection
+%
+% Define page layout
+%
+\headsep=20pt
+\ToCenter[h]{126.5mm}{199mm}
+\RequirePackage[title,myheadings]{ncchdr}
+\def\NCC@articlehead{\thispagestyle{title}}
+%
+% Specify a title mark declaration command:
+%
+% \DeclareTitleMark{Proceedings title}{Location}{Page abbreviation}
+%
+\newcommand*{\DeclareTitleMark}[3]{%
+ \renewcommand\titlemark{\rm
+ \smash{\parbox[t]\linewidth{{\centering #1\endgraf}%
+ \vspace{.8mm}\small\rm #2, \theyear\hfill
+ #3~\thepage--\pageref{NCC@lastpage}}}}
+}
+\@onlypreamble\DeclareTitleMark
+%
+% Article info (it is redefined while making contents).
+% \info{Author's list}{Title}{Start page}
+% In articles, it is used for setting a starting page number
+%
+\newcommand*\info[3]{\setcounter{page}{#3}}
+%
+% Defaults
+%
+\renewcommand{\headrulewidth}{.6\p@}
+\renewcommand{\headstrutheight}{.25\normalbaselineskip}
+\DeclareTitleMark{PROCEEDINGS TITLE}{Location}{P.}
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncctitle.clo b/Master/texmf-dist/tex/latex/ncclatex/ncctitle.clo
new file mode 100644
index 00000000000..719f1a8de92
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/ncctitle.clo
@@ -0,0 +1,218 @@
+\ProvidesFile{ncctitle.clo}
+ [2005/07/24 v1.05 Title page (NCC)]
+%
+% \changes{v1.00}{2002/02/19}{This version is uploaded to CTAN}
+% \changes{v1.01}{2004/11/30}{Add the \NCC@titlestyle hook}
+% \changes{v1.01}{2004/11/30}{Add the \StartFromHeaderArea command
+% at the beginning of title and abstract}
+% \changes{v1.01}{2004/11/30}{Service title management commands added}
+% \changes{v1.02}{2004/12/07}{Add the \NCC@abstractstyle hook}
+% \changes{v1.02}{2004/12/07}{Introduce \makelastpage command}
+% \changes{v1.02}{2004/12/07}{Add services for the abstract and last page}
+% \changes{v1.03}{2004/12/16}{Replace \NCC@gempty with \@empty}
+% \changes{v1.04}{2005/06/18}{Use \ExpandTextArea in title pages}
+% \changes{v1.04}{2005/06/18}{Introduce \titleareadefault}
+% \changes{v1.05}{2005/07/24}{Replace \vfil to \vfill in the \endabstract}
+%
+% This file provides a title, an abstract, and a last page prepared
+% on separate title pages.
+%
+% The expansion of the text area on these pages is specified with the
+% \titleareadefault macro.
+%
+\newcommand\titleareadefault{*}
+%
+% The \maketitle uses the following hooks:
+%
+% \NCC@titlestyle a style applied to the title
+% \NCC@titlebegin typed out at the beginning of title
+% \@maketitle prepares a title
+% \NCC@titlecomment typed out right after the title
+% \NCC@titleend typed out at the end of title
+%
+% We do not delete title specific commands because the \@maketitle
+% command can be used for preparing other special pages also.
+%
+\newcommand{\maketitle}{%
+ \begin{titlepage}%
+ \NCC@titlestyle
+ \ExpandTextArea[\titleareadefault]%
+ \let\footnoterule\relax
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \begingroup
+ \def\@makefnmark{\@textsuperscript{\normalfont\@thefnmark}}%
+ \NCC@titlebegin
+ \@maketitle
+ \NCC@titlecomment
+ \NCC@titleend
+ \endgroup
+ \@thanks\setcounter{footnote}{0}\gdef\@thanks{}%
+ \end{titlepage}%
+}
+\let\NCC@titlecomment\@empty
+%
+% \@maketitle makes the title itself. The \@date useless in NCC titles
+%
+\def\@maketitle{%
+ \ifx\@author\@empty {\huge\bff \@title \par}%
+ \else
+ \ifNCC@authorbeforetitle \else
+ {\huge\bff \@title \par}\vskip 3em
+ \fi
+ {\Large\bfseries \lineskip .75em \@author \par}%
+ \ifNCC@authorbeforetitle
+ \vskip 2em {\huge\bff \@title \par}%
+ \fi
+ \fi
+}
+%
+% Service hooks for the title:
+%
+% \titlestretch{value}
+% \titlestyle{A style}
+% \titlehead{A text at the top of title}
+% \titlesign{A sign of Publishing House}
+% \titlefoot{A text at the bottom of title}
+% \titlecomment{A comment below title}
+%
+% The \titlecomment is also applied to the last page
+%
+\newcommand*\titlestretch[1]{\def\NCC@titlestretch{#1}}
+\newcommand*\titlestyle[1]{\def\NCC@titlestyle{#1}}
+\newcommand\titlehead[1]{\def\NCC@titlebegin{{#1\par}\vfill}}
+\newcommand\titlesign[1]{\def\NCC@titlesign{#1}}
+\newcommand\titlefoot[1]{%
+ \def\NCC@titleend{%
+ \vspace{\stretch{\NCC@titlestretch}}%
+ {\NCC@titlesign\par}%
+ \vspace{\stretch{\NCC@titlestretch}}%
+ {#1\par}%
+ }%
+}
+\newcommand\titlecomment[1]{%
+ \def\@tempa{#1}%
+ \ifx\@tempa\@empty
+ \let\NCC@titlecomment\@empty
+ \else
+ \def\NCC@titlecomment{\vskip 1.5em {\large#1\par}}%
+ \fi
+}
+%
+% The abstract environment uses the following hooks:
+%
+% \NCC@abstractstyle a style applied to the abstract
+% \NCC@abstractbegin typed out at the beginning of abstract
+% \NCC@abstractend typed out at the end of abstract
+%
+% The area of the abstract page is specified with \TitleAreaDefault macro.
+%
+\newenvironment{abstract}{%
+ \titlepage
+ \NCC@abstractstyle
+ \ExpandTextArea[\titleareadefault]%
+ \NCC@abstractbegin
+ \begingroup
+}{
+ \par\endgroup
+ \vfill
+ \NCC@abstractend
+ \endtitlepage
+}
+%
+% Service hooks for the abstract:
+%
+% \abstractstyle{A style for main part of abstract}
+% \bibindex[style]{A bibliography index of the document}
+% \copyrighttable[style]{ISBN}{\item copyright\\ \item copyright ...}
+%
+% \fulltitle[style]{authors}{full title} this command is used inside
+% the abstract.
+%
+% In the \bibindex and \copyrighttable, the default style is \footnotesize.
+% In the \fulltitle, the default style is \normalsize.
+%
+\newcommand*\abstractstyle[1]{%
+ \def\NCC@abstractstyle{#1\def\qef{\par\addvspace{2.5ex \@minus .5ex}}}%
+}
+\newcommand\bibindex[2][\footnotesize]{%
+ \if!#2!%
+ \let\NCC@abstractbegin\@empty
+ \else
+ \def\NCC@abstractbegin{{\noindent#1\ignorespaces#2\par}\qef}%
+ \fi
+}
+\newcommand*\copyrighttable[3][\footnotesize]{%
+ \def\NCC@abstractend{#1\noindent
+ \pbox[lb]{#2}\hfill
+ \def\item{\llap{\copyright\ }}%
+ \pbox[lb]{#3}%
+ \par
+ }
+}
+\newcommand*\fulltitle[3][\normalsize]{%
+ {\par#1\normalfont{\bfseries#2} #3\par}%
+ \qef%
+}
+%
+% The \makelastpage uses the following hooks:
+%
+% \NCC@lastpagestyle a style applied to the last page
+% \NCC@lastpagebegin typed out at the beginning of the last page
+% \@maketitle prepares a title
+% \NCC@titlecomment typed out right after the title on the last page
+% \NCC@lastpageend typed out at the end of the last page
+%
+% The area of the last page is specified with \TitleAreaDefault macro.
+%
+\newcommand{\makelastpage}{%
+ \begin{titlepage}%
+ \NCC@lastpagestyle
+ \ExpandTextArea[\titleareadefault]%
+ \NCC@lastpagebegin
+ \@maketitle
+ \NCC@titlecomment
+ \NCC@lastpageend
+ \end{titlepage}%
+}
+%
+% Service hooks for the last page:
+%
+% \lastpagestretch{value}
+% \lastpagestyle{A style}
+% \lastpagehead{A text at the top of the last page}
+% \lastpageinfo[style]{Designers}{Publishing attributes}{Publisher}
+%
+\newcommand*\lastpagestretch[1]{\def\NCC@lastpagestretch{#1}}
+\newcommand*\lastpagestyle[1]{\def\NCC@lastpagestyle{#1}}
+\newcommand\lastpagehead[1]{\def\NCC@lastpagebegin{{#1\par}\vfill}%
+}
+\newcommand\lastpageinfo[4][\small]{%
+ \def\NCC@lastpageend{#1%
+ \vspace{\stretch{\NCC@lastpagestretch}}%
+ {#2\par}\bigskip
+ \hrule \@height .6pt\@width\linewidth
+ {\Strut/.5/\ignorespaces#3\unskip\Strut/-.5/\par}%
+ \hrule \@height .6pt\@width\linewidth
+ \bigskip{#4\par}%
+ }%
+}
+%
+% Defaults
+%
+\titlestretch{1}
+\titlestyle{\centering}
+\titlehead{}
+\titlesign{}
+\titlefoot{}
+\titlecomment{}
+%
+\abstractstyle{\small}
+\bibindex{}
+\def\NCC@abstractend{}
+%
+\lastpagestretch{1}
+\lastpagestyle{\centering}
+\lastpagehead{}
+\def\NCC@lastpageend{\vspace{\stretch{\NCC@lastpagestretch}}}
+%
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ncclatex/sibjnm.cls b/Master/texmf-dist/tex/latex/ncclatex/sibjnm.cls
new file mode 100644
index 00000000000..0d56e4345e2
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/sibjnm.cls
@@ -0,0 +1,124 @@
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesClass{sibjnm}
+ [2005/01/11 v1.06 Article class for SibJNM (NCC)]
+%
+% \changes{v1.01}{2002/03/24}{This version is uploaded to CTAN}
+% \changes{v1.02}{2004/04/08}{Fix bug with using russian option}
+% \changes{v1.03}{2004/09/23}{In english mode load nccltrus instead of babel}
+% \changes{v1.03}{2004/09/23}{Remove unnecessary \frenchspacing}
+% \changes{v1.04}{2004/09/30}{Bug with omitted \@thanks fixed}
+% \changes{v1.05}{2004/12/06}{Replace \NCC@null with \StartFromTextArea}
+% \changes{v1.06}{2005/01/11}{Remove small, fleqn, and leqno options}
+%
+\DeclareOption{a5paper}{\OptionNotUsed}
+\DeclareOption{a5a4paper}{\OptionNotUsed}
+\DeclareOption{b5paper}{\OptionNotUsed}
+\DeclareOption{letterpaper}{\OptionNotUsed}
+\DeclareOption{legalpaper}{\OptionNotUsed}
+\DeclareOption{executivepaper}{\OptionNotUsed}
+\DeclareOption{fittopage}{\OptionNotUsed}
+\DeclareOption{10pt}{\OptionNotUsed}
+\DeclareOption{12pt}{\OptionNotUsed}
+\DeclareOption{14pt}{\OptionNotUsed}
+\DeclareOption{oneside}{\OptionNotUsed}
+\DeclareOption{twocolumn}{\OptionNotUsed}
+\DeclareOption{openbib}{\OptionNotUsed}
+\DeclareOption{preprint}{\OptionNotUsed}
+\DeclareOption{monography}{\OptionNotUsed}
+\DeclareOption{report}{\OptionNotUsed}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ncc}}
+\PassOptionsToClass{11pt,twoside,onecolumn,article,a4paper}{ncc}
+\ProcessOptions\relax
+\LoadClass{ncc}
+%
+% Text area size
+%
+\ToCenter[h]{155mm}{225mm}
+%
+% Change TeX parameters
+%
+\setlength\smallskipamount{2pt plus 1pt minus .5pt}
+\setlength\medskipamount {4pt plus 1pt minus .5pt}
+\setlength\bigskipamount {8pt plus 1pt minus .5pt}
+\setlength\floatsep {12pt plus 1pt minus .5pt}
+\setlength\textfloatsep {12pt plus 1pt minus .5pt}
+\setlength\intextsep {\floatsep}
+%
+% Centered sections with indentation after them
+%
+\sectionstyle{center}
+\indentaftersection
+%
+% Russian and English abstracts
+%
+\ifNCC@rus
+ \def\UDCname{{\cyr\CYRU\CYRD\CYRK}}
+ %
+ % Rabstract and Eabstract
+ %
+ \newenvironment{Rabstract}{\par\addvspace\bigskipamount
+ {\footnotesize\noindent \UDCname~\SJNM@UDC}\par\smallskip
+ \SJNM@abstr{\SJNM@Rname}%
+ }{\par\addvspace{1.5\bigskipamount}}
+ \newenvironment{Eabstract}{\par\addvspace\bigskipamount
+ \begin{otherlanguage*}{english}\SJNM@abstr{\SJNM@Ename}%
+ }{\par\end{otherlanguage*}%
+ \smallskip{\centering\rule\linewidth{.5pt}\par}%
+ \addvspace{1.5\bigskipamount}%
+ }
+\else
+ \RequirePackage[russian,english]{nccltrus}
+ \def\UDCname{UDC}
+ %
+ % Rabstract and Eabstract
+ %
+ \newenvironment{Rabstract}{\par\addvspace\bigskipamount
+ {\footnotesize\noindent \UDCname~\SJNM@UDC}\par\smallskip
+ \begin{otherlanguage*}{russian}\SJNM@abstr{\SJNM@Rname}%
+ }{\par\end{otherlanguage*}%
+ \addvspace{1.5\bigskipamount}%
+ }
+ \newenvironment{Eabstract}{\par\addvspace\bigskipamount
+ \SJNM@abstr{\SJNM@Ename}%
+ }{\par\smallskip{\centering\rule\linewidth{.5pt}\par}%
+ \addvspace{1.5\bigskipamount}%
+ }
+\fi
+%
+% \SJNM@Rname and \SJNM@Ename are brief journal titles used in abstracts.
+% They are defined in the local definition file sibjnm.def.
+%
+\let\SJNM@Rname\@empty
+\let\SJNM@Ename\@empty
+\newcommand*\SJNM@abstr[3]{%
+ {\hbadness=4000 \pretolerance=1000 {\bf #2} #3~// #1\par}%
+ \bigskip\footnotesize
+}
+%
+% UDC or AMS Subject Classification can be used in articles.
+%
+\newcommand*\UDC[1]{\def\SJNM@UDC{#1}}
+\newcommand\AmSclassification{%
+ \def\UDCname{\AmS\ subject classification:\,}%
+ \let\AmSclassification\UDC
+ \UDC
+}
+%
+% Redefine title making command
+%
+\def\@maketitle{%
+ \StartFromTextArea\vskip 2em \centering
+ {\LARGE\bff \@title \par} \vskip 1.5em
+ {\large\sf \lineskip .5em \pbox{\@author}\par}%
+ \@thanks
+}
+\RequirePackage[title,myheadings]{ncchdr}
+\def\NCC@articlehead{\thispagestyle{title}}
+%
+% Defaults
+%
+\UDC{???}
+\renewcommand{\headrulewidth}{\p@}
+\renewcommand{\headstrutheight}{.2\normalbaselineskip}
+\InputIfFileExists{sibjnm.def}{}{}% Load a file of local definitions
+\endinput