summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/dcounter.sty132
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/desclist.sty50
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/extdash.sty91
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/manyfoot.sty405
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/mboxfill.sty52
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/nccbbb.sty61
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/nccboxes.sty145
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/ncccomma.sty48
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/ncccropbox.sty77
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/ncccropmark.sty69
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/nccfancyhdr.sty345
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/nccfloats.sty143
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/nccfoots.sty41
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/nccmath.sty466
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/nccparskip.sty48
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/nccpic.sty86
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/nccrules.sty126
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/nccsect.sty675
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/nccstretch.sty35
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/nccthm.sty237
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/tocenter.sty125
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/watermark.sty83
22 files changed, 3540 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ncctools/dcounter.sty b/Master/texmf-dist/tex/latex/ncctools/dcounter.sty
new file mode 100644
index 00000000000..ab49913d497
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/dcounter.sty
@@ -0,0 +1,132 @@
+%%
+%% This is file `dcounter.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% dcounter.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: dcounter.dtx Copyright (C) 1998-2005 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{dcounter}
+ [2005/04/25 v1.2 Dynamic Counters (NCC)]
+\def\DCNT@list{}
+\def\DCNT@elist{}
+\@onlypreamble\DCNT@elist
+\def\DCNT@in#1#2#3{\@tempswafalse
+ \let\@elt\DCNT@elt #1%
+ \if@tempswa #2\else #3\fi
+}
+\def\DCNT@elt#1{\def\DCNT@name{#1}%
+ \ifx\DCNT@name\DCNT@foo \@tempswatrue \else \DCNT@noteq{#1}\fi
+}
+\def\DCNT@define#1#2{%
+ \@ifundefined{c@#2}%
+ {{\edef\DCNT@foo{#2}\let\DCNT@noteq\@gobble
+ \DCNT@in\DCNT@list{\newcounter{#2}\DCNT@the{#2}}{}%
+ }}{}%
+ #1{#2}%
+}
+\def\DCNT@the#1{%
+ \ifx\DCNT@main\@empty
+ \expandafter\xdef\csname the#1\endcsname
+ {\noexpand\@arabic \expandafter\noexpand \csname c@#1\endcsname}%
+ \else
+ \expandafter\xdef\csname the#1\endcsname
+ {\expandafter\noexpand \csname the\DCNT@main\endcsname
+ .\noexpand\@arabic \expandafter\noexpand \csname c@#1\endcsname}%
+ \@addtoreset{#1}\DCNT@main
+ \fi
+}
+\let\DCNT@main\@empty
+\newcommand*{\DeclareDynamicCounter}[1]{%
+ \begingroup
+ \edef\DCNT@foo{#1}%
+ \ifx\DCNT@foo\@empty
+ \PackageError{dcounter}%
+ {Cannot declare a dynamic counter with empty name}{}%
+ \fi
+ \let\DCNT@noteq\@gobble
+ \@ifundefined{c@#1}%
+ {\DCNT@in\DCNT@list{}{\@cons\DCNT@list{{#1}}}}%
+ {\DCNT@in\DCNT@elist{}{\@cons\DCNT@elist{{#1}}}%
+ \expandafter\global\expandafter\let
+ \csname the#1\endcsname\@empty}%
+ \endgroup
+}
+\@onlypreamble\DeclareDynamicCounter
+\newcommand{\countstyle}{\@ifnextchar[{\DCNT@lcstyle}{\DCNT@cstyle}}
+\@onlypreamble\countstyle
+\def\DCNT@cstyle#1{\edef\DCNT@foo{#1}%
+ \ifx\DCNT@foo\@empty \else
+ \DCNT@define\@gobble{#1}%
+ \@ifundefined{c@#1}{\@nocounterr{#1}}{}%
+ \fi
+ \let\DCNT@main\DCNT@foo
+}
+\@onlypreamble\DCNT@cstyle
+\def\DCNT@lcstyle[#1]#2{%
+ {\DCNT@cstyle{#2}\@for\@tempa:=#1\do{\DynamicCount\@tempa}}%
+}
+\@onlypreamble\DCNT@lcstyle
+\newcommand*{\DynamicCount}[1]{%
+ \@ifundefined{c@#1}%
+ {\newcounter{#1}}%
+ {{\edef\DCNT@foo{#1}\let\DCNT@noteq\DCNT@add
+ \let\@elt\DCNT@remove \cl@@ckpt
+ }}%
+ \DCNT@the{#1}%
+}
+\@onlypreamble\DynamicCount
+\def\DCNT@remove#1{\expandafter\DCNT@remlist\csname cl@#1\endcsname}
+\def\DCNT@remlist#1{%
+ {\let\@tempa\@empty \DCNT@in#1{\global\let#1\@tempa}{}}%
+}
+\@onlypreamble\DCNT@remove
+\@onlypreamble\DCNT@remlist
+\def\DCNT@add#1{%
+ \let\@elt\relax\edef\@tempa{\@tempa\@elt{#1}}\let\@elt\DCNT@elt
+}
+\@onlypreamble\DCNT@add
+\def\DCNT@emu#1{%
+ \expandafter\ifx\csname the#1\endcsname\@empty
+ \DynamicCount{#1}\fi
+}
+\@onlypreamble\DCNT@emu
+\AtBeginDocument{%
+ \ifx\DCNT@list\@empty
+ \@onlypreamble\DCNT@list
+ \@onlypreamble\DCNT@in
+ \@onlypreamble\DCNT@elt
+ \@onlypreamble\DCNT@define
+ \@onlypreamble\DCNT@the
+ \@onlypreamble\DCNT@main
+ \@onlypreamble\DCNT@name
+ \@onlypreamble\DCNT@foo
+ \@onlypreamble\DCNT@noteq
+ \else
+ \let\DCNT@setcounter\setcounter
+ \def\setcounter{\DCNT@define\DCNT@setcounter}
+ \let\DCNT@addtocounter\addtocounter
+ \def\addtocounter{\DCNT@define\DCNT@addtocounter}
+ \fi
+ {\let\@elt\DCNT@emu \DCNT@elist}%
+}
+\endinput
+%%
+%% End of file `dcounter.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/desclist.sty b/Master/texmf-dist/tex/latex/ncctools/desclist.sty
new file mode 100644
index 00000000000..caa2dc44c28
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/desclist.sty
@@ -0,0 +1,50 @@
+%%
+%% This is file `desclist.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% desclist.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: desclist.dtx Copyright (C) 2002--2004 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{desclist}
+ [2004/11/23 v1.1 Desclist Package (NCC)]
+\newenvironment*{desclist}[2]{%
+ \@ifnextchar[{\NCC@dlist{#1}{#2}}{\NCC@dlist{#1}{#2}[]}%
+}{%
+ \endlist
+}
+\def\NCC@dlist#1#2[#3]{%
+ \list{}{%
+ \def\@tempa{#3}\ifx\@tempa\@empty
+ \labelwidth\z@ \itemindent-\leftmargin
+ \else
+ \settowidth\leftmargin{#1#3{#2}}%
+ \advance\leftmargin\labelsep
+ \labelwidth=\leftmargin
+ \itemindent\z@
+ \fi
+ \def\makelabel##1{\hspace\labelsep #1##1{#2}\hfil}%
+ }%
+}
+\def\description{\desclist{\normalfont\bfseries}{}}
+\let\enddescription=\enddesclist
+\endinput
+%%
+%% End of file `desclist.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/extdash.sty b/Master/texmf-dist/tex/latex/ncctools/extdash.sty
new file mode 100644
index 00000000000..fe69c324652
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/extdash.sty
@@ -0,0 +1,91 @@
+%%
+%% This is file `extdash.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% extdash.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: extdash.dtx Copyright (C) 1998-2005 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{extdash}
+ [2005/01/29 v1.2 Extended Dash Package (NCC)]
+\def\EXD@test#1{%
+ \@ifstar{\let\EXD@break\nobreak #1}{\let\EXD@break\@empty #1}%
+}
+\DeclareRobustCommand{\Hyphdash}{\EXD@test{\EXD@dash-}}
+\DeclareRobustCommand{\Endash}{\EXD@test{\EXD@dash{--}}}
+\DeclareRobustCommand{\Emdash}{\EXD@test{\EXD@emd@sh}}
+\DeclareRobustCommand{\Halfspace}{\@tempcnta\z@
+ \@ifstar{\nobreak\EXD@space\ignorespaces}{\EXD@space\ignorespaces}%
+}
+\def\EXD@dash#1{%
+ \nobreak\leavevmode\hbox{#1}\EXD@break\hskip\z@skip \ignorespaces
+}
+\def\EXD@emd@sh{%
+ \ifvmode
+ \EXD@emdash\nobreak\hskip.35em
+ \else
+ \unskip\nobreak\@tempcnta\m@ne
+ \EXD@space \EXD@emdash \EXD@break \EXD@space
+ \fi \ignorespaces
+}
+\def\EXD@space{%
+ \edef\@tempa{%
+ \ifnum\@tempcnta<\z@ .4\else \ifnum \@tempcnta=\z@ .5\else .6\fi\fi
+ }%
+ \hskip \@tempa\fontdimen2\font \@plus .5\fontdimen3\font
+ \@minus \@tempa\fontdimen4\font
+ \@tempcnta -\@tempcnta
+}
+\def\EXD@emdash{\leavevmode\hbox{---}}
+\DeclareOption{shortcuts}{%
+ \DeclareRobustCommand{\HyphOrDash}{%
+ \let\EXD@break\@empty
+ \@ifnextchar/{\EXD@d@sh}{%
+ \@ifnextchar-{\EXD@hdash}{%
+ \@ifnextchar,{\EXD@sp@ce}{\EXD@hyph}%
+ }%
+ }%
+ }
+ \DeclareRobustCommand{\BarOrDash}{%
+ \let\EXD@break\nobreak
+ \@ifnextchar/{\EXD@d@sh}{%
+ \@ifnextchar={\EXD@bdash}{%
+ \@ifnextchar,{\nobreak\EXD@sp@ce}{\EXD@bar}%
+ }%
+ }%
+ }
+ \def\EXD@d@sh/{\EXD@dash-}
+ \def\EXD@sp@ce,{\EXD@space}
+ \def\EXD@hdash-{\@ifnextchar-{\EXD@hhdash}{\EXD@dash{--}}}
+ \def\EXD@bdash={\@ifnextchar={\EXD@bbdash}{\EXD@dash{--}}}
+ \def\EXD@hhdash-{\EXD@emd@sh}
+ \def\EXD@bbdash={\EXD@emd@sh}
+ \AtBeginDocument{%
+ \let\EXD@hyph\- \let\@dischyph\HyphOrDash \let\-\@dischyph
+ \let\EXD@bar\= \let\@acciii\BarOrDash \let\=\@acciii
+ }
+}
+\DeclareOption{cyremdash}{%
+ \def\EXD@emdash{\leavevmode\hb@xt@.8\fontdimen6\font{--\hss--}}
+}
+\ProcessOptions\relax
+\endinput
+%%
+%% End of file `extdash.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/manyfoot.sty b/Master/texmf-dist/tex/latex/ncctools/manyfoot.sty
new file mode 100644
index 00000000000..f11b03f1123
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/manyfoot.sty
@@ -0,0 +1,405 @@
+%%
+%% This is file `manyfoot.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% manyfoot.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: manyfoot.dtx Copyright (C) 1998--2005 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}[1993/12/01]
+\ProvidesPackage{manyfoot}
+ [2005/09/11 v1.10 Many Footnote Levels Package (NCC)]
+\RequirePackage{nccfoots}
+\newcommand{\extrafootnoterule}{}
+\DeclareOption{ruled}{\def\extrafootnoterule{\defaultfootnoterule}}
+\newdimen\MFL@columnwidth
+\def\MFL@floathook{\MFL@columnwidth\columnwidth}
+\long\def\MFL@insert#1#2{%
+ \insert#1{\splittopskip\footnotesep \splitmaxdepth \dp\strutbox
+ \floatingpenalty\@MM #2%
+ }%
+ \FN@mf@prepare
+}
+\providecommand\FN@mf@prepare{}
+\let\MFL@realinsert\MFL@insert
+\def\MFL@applyhook#1{\csname MFL@hook\string#1\endcsname}
+\let\MFL@startplain\@gobble
+\@onlypreamble\MFL@startplain
+\let\MFL@processplain\@gobble
+\long\def\MFL@fnoteplain#1#2#3{\NCC@makefnmark{#2}%
+ \MFL@insert#1{\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \hsize\MFL@columnwidth \@parboxrestore
+ \protected@edef\@currentlabel{\@thefnmark}%
+ \color@begingroup
+ \MFL@applyhook{#1}%
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces#3\@finalstrut\strutbox}%
+ \color@endgroup
+ }%
+}
+\newif\ifMFL@paraindent \MFL@paraindenttrue
+\DeclareOption{para}{%
+ \newskip\footglue
+ {\footnotesize \global\footglue=1em plus.3em minus.3em }
+ \newif\ifMFL@split \MFL@splitfalse
+ \newcommand\SplitNote{\MFL@splittrue}
+ \def\MFL@startpara#1{%
+ \global\advance\skip#1\MFL@paraskip
+ \MFL@setsplit{#1}{\MFL@applyhook{#1}}%
+ }
+ \@onlypreamble\MFL@startpara
+ \def\MFL@fnotepara#1#2#3{\let\@thefnmark\@empty
+ \NCC@makefnmark{#2}%
+ \MFL@insert#1{\reset@font\footnotesize
+ \ifx\@thefnmark\@empty \@tempswafalse \else
+ \@tempswatrue
+ \protected@edef\@currentlabel{\@thefnmark}%
+ \fi
+ \color@begingroup
+ \if@tempswa
+ \setbox\@tempboxa\hbox{\@makefnmark}%
+ \ifMFL@paraindent
+ \@tempdima.8em \advance\@tempdima-\wd\@tempboxa
+ \ifdim \@tempdima<\z@ \@tempdima\z@ \fi
+ \else
+ \@tempdima\z@
+ \fi
+ \fi
+ \setbox\@tempboxa\hbox{%
+ \if@tempswa
+ \hskip\@tempdima\unhbox\@tempboxa\nobreak
+ \fi
+ \ignorespaces#3\unskip\strut
+ \ifMFL@split \penalty\m@ne\space \else
+ \penalty-10 \hskip\footglue
+ \fi
+ }%
+ \dp\@tempboxa\z@ \ht\@tempboxa\MFL@fudgefactor\wd\@tempboxa
+ \box\@tempboxa
+ \color@endgroup
+ }%
+ }
+ \def\MFL@processpara#1{%
+ \advance\@tempskipa -\MFL@paraskip
+ \edef\MFL@skip{\vskip\the\@tempskipa\relax}%
+ \setbox#1\vbox{%
+ \unvbox#1\setbox\@tempboxa\hbox{}\MFL@makehhbox
+ \setbox\@tempboxa\hbox{\unhbox\@tempboxa\MFL@removehboxes}%
+ \footnotesize
+ \hsize\MFL@columnwidth \@parboxrestore
+ \ifMFL@paraindent
+ \@ifundefined{footnotemargin}%
+ {\parindent\footglue}%
+ {\parindent\footnotemargin\relax
+ \ifdim\parindent<\z@ \parindent\footglue
+ \else \advance\parindent -0.8em \fi}%
+ \fi
+ \csname MFL@split\string#1\endcsname
+ \rule\z@\footnotesep
+ \unhbox\@tempboxa\unskip
+ \ifnum\lastpenalty=\m@ne \parfillskip\z@
+ \MFL@setsplit{#1}{\noindent}%
+ \else
+ \MFL@setsplit{#1}{\MFL@applyhook{#1}}%
+ \fi
+ }%
+ }
+ \def\MFL@makehhbox{%
+ \loop\setbox\z@\lastbox \ifhbox\z@
+ \setbox\@tempboxa\hbox{\box\z@\unhbox\@tempboxa}%
+ \repeat
+ \ifvbox\z@ \unvbox\z@ \MFL@makehhbox \fi
+ }
+ \def\MFL@removehboxes{\setbox\@tempboxa\lastbox
+ \ifhbox\@tempboxa{\MFL@removehboxes}\unhbox\@tempboxa\fi
+ }
+ \def\MFL@setsplit#1#2{%
+ \expandafter\gdef\csname MFL@split\string#1\endcsname{#2}%
+ }
+ \g@addto@macro\MFL@floathook{%
+ \begingroup
+ \footnotesize \@tempdima\normalbaselineskip
+ \multiply \@tempdima \@cclvi
+ \@tempdimb \columnwidth
+ \divide \@tempdimb \@cclvi
+ \divide \@tempdima \@tempdimb
+ \xdef\MFL@fudgefactor{\strip@pt\@tempdima}%
+ \endgroup
+ }
+ \newcommand*\ExtraParaSkip[1]{%
+ \def\MFL@xparaskip{\advance\@tempdima#1\relax}%
+ }
+ \let\MFL@xparaskip\relax
+ \@onlypreamble\ExtraParaSkip
+ \@onlypreamble\MFL@xparaskip
+ \AtBeginDocument{%
+ \begingroup
+ \footnotesize
+ \@tempdima\footnotesep
+ \advance\@tempdima -\ht\strutbox
+ \ifdim\@tempdima<\z@ \@tempdima\z@ \fi
+ \advance\@tempdima.5\normalbaselineskip
+ \MFL@xparaskip % Add extra para skip
+ \xdef\MFL@paraskip{\the\@tempdima\relax}%
+ \endgroup
+ }
+}
+\DeclareOption{para*}{%
+ \@ifundefined{MFL@startpara}{\ExecuteOptions{para}}{}%
+ \MFL@paraindentfalse
+}
+\newif\ifMFL@perpage \MFL@perpagefalse
+\DeclareOption{perpage}{\MFL@perpagetrue}
+\ProcessOptions\relax
+\ifMFL@perpage \RequirePackage{perpage}\fi
+\def\MFL@list{}
+\newcommand*{\SelectFootnoteRule}[2][0]{%
+ \edef\@tempa{\noexpand\MFL@selectrule{#1}{%
+ \expandafter\noexpand\csname #2footnoterule\endcsname}}%
+ \@ifnextchar[{\@tempa}{\@tempa[]}%
+}
+\def\MFL@selectrule#1#2[#3]{\def\MFL@rule{\MFL@joinrule{#1}{#2}{#3}}}
+\SelectFootnoteRule{extra}% Set the default footnote rule
+\@onlypreamble\SelectFootnoteRule
+\@onlypreamble\MFL@selectrule
+\@onlypreamble\MFL@rule
+\newcommand{\SetFootnoteHook}[1]{\def\MFL@footnotehook{\MFL@fhook{#1}}}
+\@onlypreamble\SetFootnoteHook
+\@onlypreamble\MFL@footnotehook
+\SetFootnoteHook{}% Empty hook by default
+\long\def\MFL@fhook#1#2{%
+ \expandafter\def\csname MFL@hook\string#2\endcsname{#1}%
+ \SetFootnoteHook{}%
+}
+\@onlypreamble\MFL@fhook
+\newcommand*{\newfootnote}[2][plain]{%
+ \@ifundefined{MFL@fnote#1}{%
+ \PackageError{manyfoot}{Unknown footnote style #1}%
+ {Known styles are `plain' and `para'\MessageBreak
+ (if the package was loaded with the para or para* option)}}{}%
+ \expandafter\MFL@newinsert\csname footins#2\endcsname
+ \edef\@tempa{\noexpand\newcommand
+ \expandafter\noexpand\csname Footnotetext#2\endcsname
+ {\expandafter\noexpand\csname MFL@fnote#1\endcsname{%
+ \expandafter\noexpand\csname footins#2\endcsname}}%
+ \noexpand\MFL@footnotehook{%
+ \expandafter\noexpand\csname footins#2\endcsname}%
+ }%
+ \@tempa
+ \@cons\MFL@list{{#1}\csname footins#2\endcsname}%
+}
+\@onlypreamble\newfootnote
+\def\MFL@newinsert#1{\newinsert#1%
+ \expandafter\let\csname MFL@join\number #1\endcsname \MFL@rule
+ \SelectFootnoteRule{extra}% Reset to default rule again
+ \skip#1\skip\footins \dimen#1\dimen\footins \count#1\count\footins
+}
+\@onlypreamble\MFL@newinsert
+\def\MFL@makemark#1#2#3{%
+ \FN@mf@check
+ \@ifnextchar[{\MFL@xmkmark{#1}{#3}}{#2{#1}\MFL@mkmark{#1}{#3}}%
+}
+\providecommand\FN@mf@check{}
+\def\MFL@xmkmark#1#2[#3]{%
+ \begingroup
+ \csname c@#1\endcsname #3\relax
+ \unrestored@protected@xdef\@thefnmark{\csname the#1\endcsname}%
+ \endgroup
+ #2%
+}
+\def\MFL@mkmark#1#2{\protected@xdef\@thefnmark{\csname the#1\endcsname}%
+ #2%
+}
+\newcommand*{\DeclareNewFootnote}[2][plain]{%
+ \@ifnextchar[{\MFL@declare{#1}{#2}}{\MFL@declare{#1}{#2}[arabic]}%
+}
+\def\MFL@declare#1#2[#3]{%
+ \newfootnote[#1]{#2}%
+ \edef\@tempa{\noexpand\newcounter{footnote#2}%
+ \noexpand\renewcommand
+ \expandafter\noexpand\csname thefootnote#2\endcsname{%
+ \expandafter\noexpand\csname @#3\endcsname
+ \expandafter\noexpand\csname c@footnote#2\endcsname
+ }%
+ \ifMFL@perpage \noexpand\MakePerPage{footnote#2}\fi
+ \noexpand\newcommand
+ \expandafter\noexpand\csname footnote#2\endcsname{%
+ \noexpand\MFL@makemark{footnote#2}{\noexpand\stepcounter}{%
+ \noexpand\@footnotemark
+ \noexpand\let\noexpand\@tempb\noexpand\@thefnmark
+ \expandafter\noexpand\csname Footnotetext#2\endcsname{%
+ \noexpand\@tempb
+ }%
+ }%
+ }%
+ \noexpand\newcommand
+ \expandafter\noexpand\csname footnotemark#2\endcsname{%
+ \noexpand\MFL@makemark{footnote#2}{\noexpand\stepcounter}{%
+ \noexpand\@footnotemark
+ }%
+ }%
+ \noexpand\newcommand
+ \expandafter\noexpand\csname footnotetext#2\endcsname{%
+ \noexpand\MFL@makemark{footnote#2}{\noexpand\@gobble}{%
+ \noexpand\let\noexpand\@tempb\noexpand\@thefnmark
+ \expandafter\noexpand\csname Footnotetext#2\endcsname{%
+ \noexpand\@tempb
+ }%
+ }%
+ }%
+ \noexpand\newcommand
+ \expandafter\noexpand\csname Footnotemark#2\endcsname{%
+ \noexpand\Footnotemark
+ }%
+ \noexpand\newcommand
+ \expandafter\noexpand\csname Footnote#2\endcsname[1]{%
+ \noexpand\Footnotemark{####1}%
+ \expandafter\noexpand\csname Footnotetext#2\endcsname{####1}%
+ }%
+ }%
+ \@tempa
+}
+\@onlypreamble\DeclareNewFootnote
+\@onlypreamble\MFL@declare
+\def\MFL@start#1{\csname MFL@start#1\endcsname}
+\@onlypreamble\MFL@start
+\newcommand{\footnoterulepriority}{1}
+\newif\ifMFL@joined \MFL@joinedfalse
+\def\MFL@joinnotes#1{%
+ \ifMFL@joined #1%
+ \else
+ \let\MFL@savedrule \footnoterule
+ \let\MFL@currule \defaultfootnoterule
+ \ifvoid \footins
+ \let\MFL@curpriority \footnoterulepriority
+ \else
+ \let\MFL@curpriority \m@ne
+ \fi
+ \let\MFL@elt\@elt
+ \let\@elt\MFL@join \MFL@list
+ \let\@elt\MFL@elt
+ \MFL@joinedtrue #1\MFL@joinedfalse
+ \let\footnoterule \MFL@savedrule
+ \fi
+}
+\def\MFL@join#1#2{\csname MFL@join\number #2\endcsname{#1}{#2}}
+\def\MFL@joinrule#1#2#3#4#5{%
+ \ifnum #1<\MFL@curpriority \else
+ \let\MFL@currule#2%
+ \def\MFL@curpriority{#1}%
+ \fi
+ \ifvoid#5\else
+ \@tempskipa\skip#5%
+ \MFL@ifmcol{\divide\@tempskipa\col@number}{}%
+ \edef\MFL@skip{\vskip\the\@tempskipa\relax}%
+ \csname MFL@process#4\endcsname #5%
+ \ifvoid\footins
+ \let\footnoterule\MFL@currule
+ \setbox\footins\vbox{#3\unvbox#5}%
+ \else
+ \setbox\footins\vbox{%
+ \unvbox\footins\MFL@skip\MFL@currule#3\unvbox#5%
+ }%
+ \fi
+ \let\MFL@curpriority \m@ne
+ \fi
+}
+\def\MFL@reinsout#1#2{\ifvoid#2\else
+ \ifnum\count\@currbox>\z@
+ \advance\@pageht \ht#2%
+ \advance\@pageht \skip#2%
+ \advance\@pageht \dp#2%
+ \fi
+ \insert#2{\unvbox#2}%
+ \fi
+}
+\def\MFL@reinsert{{\let\@elt\MFL@reins \MFL@list}}
+\def\MFL@reins#1#2{\ifvoid#2\else\insert#2{}\fi}
+\long\def\MFL@mpinsert#1#2{%
+ \global\setbox#1\vbox{%
+ \unvbox#1\setbox\@tempboxa\lastbox
+ \ifvbox\@tempboxa \unvbox\@tempboxa \fi
+ \vbox{#2}%
+ }%
+}
+\def\MFL@mpreinsert#1#2{%
+ \ifvoid#2\else
+ \setbox\@tempboxa\vbox{\unvbox#2\global\setbox#2\lastbox}%
+ \setbox\z@\box#2%
+ \ifdim\ht\@tempboxa>\z@ \MFL@realinsert#2{\box\@tempboxa}\fi
+ \MFL@realinsert#2{\unvbox\z@}%
+ \fi
+}
+\def\MFL@minipage{%
+ \ifinner\else
+ \MFL@reinsert \let\MFL@insert\MFL@mpinsert
+ \fi
+}
+\def\MFL@endminipage{%
+ \ifinner\else
+ {\let\@elt\MFL@mpreinsert \MFL@list}%
+ \fi
+}
+\def\MFL@mult#1#2{%
+ \multiply\count#2\col@number
+ \multiply\skip#2\col@number
+}
+\def\MFL@ifmcol#1#2{\@tempswafalse
+ \ifnum\col@number>\@ne
+ \ifnum\count\footins>1999 \@tempswatrue \fi
+ \fi
+ \if@tempswa #1\else #2\fi
+}
+\AtBeginDocument{%
+ {\let\@elt\MFL@start \MFL@list}
+ \@ifundefined{defaultfootnoterule}{%
+ \@ifundefined{pagefootnoterule}%
+ {\let\defaultfootnoterule\footnoterule}%
+ {\let\defaultfootnoterule\pagefootnoterule}%
+ }{}%
+ \let\MFL@doclearpage\@doclearpage
+ \def\@doclearpage{\MFL@joinnotes\MFL@doclearpage}
+ \let\MFL@makecol\@makecol
+ \def\@makecol{\MFL@joinnotes\MFL@makecol}
+ \g@addto@macro\@reinserts{%
+ \let\MFL@elt\@elt
+ \let\@elt\MFL@reinsout \MFL@list
+ \let\@elt\MFL@elt
+ }
+ \MFL@floathook
+ \g@addto@macro\@floatplacement{\MFL@ifmcol{}{\MFL@floathook}}
+ \let\MFL@iminipage\@iiiminipage
+ \def\@iiiminipage{\MFL@minipage\MFL@iminipage}
+ \g@addto@macro\endminipage\MFL@endminipage
+ \@ifundefined{multi@column@out}
+ {\@onlypreamble\MFL@mult \let\MFL@ifmcol\@secondoftwo}
+ {\let\MFL@mcolout\multi@column@out
+ \def\multi@column@out{\MFL@joinnotes\MFL@mcolout}
+ \g@addto@macro\init@mult@footins{%
+ \let\MFL@elt\@elt
+ \let\@elt\MFL@mult \MFL@list
+ \let\@elt\MFL@elt
+ }
+ \g@addto@macro\reinsert@footnotes{\MFL@reinsert}
+ }
+}
+\endinput
+%%
+%% End of file `manyfoot.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/mboxfill.sty b/Master/texmf-dist/tex/latex/ncctools/mboxfill.sty
new file mode 100644
index 00000000000..2ee614fa99c
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/mboxfill.sty
@@ -0,0 +1,52 @@
+%%
+%% This is file `mboxfill.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% mboxfill.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: mboxfill.dtx Copyright (C) 2005 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{mboxfill}
+ [2005/05/13 v1.0 Fill space with mbox (NCC)]
+\newcommand*\mboxfill[1][\width]{%
+ \def\@tempa{\setlength\@tempdima{#1}}%
+ \@ifnextchar[{\NCC@mboxfill}{\NCC@mboxfill[]}%
+}
+\def\NCC@mboxfill[#1]#2{%
+ \@begin@tempboxa\hbox{#2}%
+ \@tempa
+ \edef\@tempa{#1}\def\@tempb{s}%
+ \ifx\@tempa\@tempb
+ \@tempdimb\width
+ \advance\@tempdimb -\@tempdima
+ \let\@tempa\xleaders
+ \def\@tempb{\kern.5\@tempdimb}%
+ \else
+ \@ifundefined{#1leaders}{\let\@tempa\leaders}%
+ {\def\@tempa{\csname#1leaders\endcsname}}%
+ \let\@tempb\@empty
+ \fi
+ \leavevmode\@tempb\@tempa
+ \hb@xt@\@tempdima{\hss\unhbox\@tempboxa\hss}\hfill\@tempb
+ \@end@tempboxa
+}
+\endinput
+%%
+%% End of file `mboxfill.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/nccbbb.sty b/Master/texmf-dist/tex/latex/ncctools/nccbbb.sty
new file mode 100644
index 00000000000..42a0e4842ea
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/nccbbb.sty
@@ -0,0 +1,61 @@
+%%
+%% This is file `nccbbb.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nccbbb.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: nccbbb.dtx Copyright (C) 2002--2004 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{nccbbb}
+ [2004/11/24 v1.1 Pure Black Board Bold (NCC)]
+\newcommand\bbbb{\NCC@bbb{B}}
+\newcommand\bbbc{{\NCC@bbbz{C{\NCC@bbbr{.03}{.35}{.9}{.1}}}}}
+\newcommand\bbbd{\NCC@bbb{D}}
+\newcommand\bbbe{\NCC@bbb{E}}
+\newcommand\bbbf{\NCC@bbb{F}}
+\newcommand\bbbg{{\NCC@bbbz{G{\NCC@bbbr{.05}{.3}{.88}{.09}}}}}
+\newcommand\bbbh{\NCC@bbb{H}}
+\newcommand\bbbi{\NCC@bbb{I}}
+\newcommand\bbbk{\NCC@bbb{K}}
+\newcommand\bbbl{\NCC@bbb{L}}
+\newcommand\bbbm{\NCC@bbbi{M}}
+\newcommand\bbbn{\NCC@bbbi{N}}
+\newcommand\bbbo{{\NCC@bbbz{O{\NCC@bbbr{.05}{.3}{.9}{.09}}}}}
+\newcommand\bbbp{\NCC@bbb{P}}
+\newcommand\bbbq{{\NCC@bbbz{Q{\NCC@bbbr{.05}{.3}{.9}{.09}}}}}
+\newcommand\bbbr{\NCC@bbb{R}}
+\newcommand\bbbs{{\NCC@bbbz{S{\NCC@bbbr{.5}{.3}{.45}{.07}%
+ \NCC@bbbr{0}{.55}{.5}{.07}}}}}
+\newcommand\bbbz{{\NCC@bbbz{{\mathsf Z}{\@tempdima\wd\z@\wd\z@ 0.33\@tempdima}}%
+ \mathsf Z}}
+\newcommand\bbbzero{{\NCC@bbbz{O{\NCC@bbbr{.05}{.3}{.9}{.06}%
+ \NCC@bbbr{.05}{.6}{.9}{.06}}}}}
+\newcommand\bbbone{\mathrm{1\NCC@bbbz{l{\kern -0.88\wd\z@}}}}
+\def\NCC@bbb#1{\mathrm{I\mskip -3.5mu#1}}
+\def\NCC@bbbi#1{\mathrm{I\NCC@bbbz{{\mskip -3.5mu I}{\wd\z@\z@}}%
+ \mskip -3mu#1}}
+\def\NCC@bbbz{\mathpalette\NCC@bbbz@}
+\def\NCC@bbbz@#1#2{\NCC@bbbz@@{#1}#2}
+\def\NCC@bbbz@@#1#2#3{\setbox\z@\hbox{$\m@th#1{\mathrm{#2}}$}#3\box\z@}
+\def\NCC@bbbr#1#2#3#4{\raise #1\ht\z@\hbox to \z@{\kern #2\wd\z@
+ \vrule \@height #3\ht\z@ \@width #4\wd\z@\hss}}
+\endinput
+%%
+%% End of file `nccbbb.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/nccboxes.sty b/Master/texmf-dist/tex/latex/ncctools/nccboxes.sty
new file mode 100644
index 00000000000..fca4d4763e0
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/nccboxes.sty
@@ -0,0 +1,145 @@
+%%
+%% This is file `nccboxes.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nccboxes.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: nccboxes.dtx Copyright (C) 2002--2005 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{nccboxes}
+ [2005/02/07 v1.2 Additional Boxes (NCC)]
+\newcommand*{\addbox}[3]{%
+ \@begin@tempboxa\hbox{#3}%
+ \setlength\@tempdima{#1}%
+ \advance\@tempdima \ht\@tempboxa
+ \ht\@tempboxa \@tempdima
+ \setlength\@tempdima{#2}%
+ \advance\@tempdima \dp\@tempboxa
+ \dp\@tempboxa \@tempdima
+ \leavevmode\box\@tempboxa
+ \@end@tempboxa
+}
+\newcommand*{\jhbox}[1]{\settowidth\@tempdima{#1}\makebox[\@tempdima]}
+\newcommand*{\jvbox}[1]{%
+ \setbox\z@\hbox{\color@begingroup#1\color@endgroup}%
+ \setbox\z@\hbox{\vrule \@width\z@ \@height\ht\z@ \@depth\dp\z@}%
+ \NCC@jvbox
+}
+\newcommand*{\NCC@jvbox}[2][]{%
+ \setbox\@tempboxa\hbox{\color@begingroup#2\color@endgroup}%
+ \let\m@t\vss \let\m@b\vss
+ \@tfor\@tempa :=#1\do {%
+ \expandafter\let\csname m@\@tempa\endcsname\relax}%
+ \@tempdima\ht\z@ \advance\@tempdima -\ht\@tempboxa
+ \ifx\m@t\relax \else
+ \@tempdimb\dp\@tempboxa \advance\@tempdimb -\dp\z@
+ \ifx\m@b\relax \@tempdima \@tempdimb \else
+ \advance\@tempdimb \@tempdima \@tempdima .5\@tempdimb
+ \fi
+ \fi
+ \leavevmode \box\z@ \raise\@tempdima\box\@tempboxa
+}
+\newcommand*{\jparbox}[1]{%
+ \@ifnextchar[{\NCC@jparbox{#1}}{\NCC@jparbox{#1}[]}%
+}
+\long\def\NCC@jparbox#1[#2]#3#4{%
+ \@begin@tempboxa\vtop{\setlength\@tempdima{#3}%
+ \hsize\@tempdima\@parboxrestore#4\@@par}%
+ \setlength\@tempdima{#3}% vbox containing only display equations can
+ \wd\@tempboxa\@tempdima % have lesser width. We correct it here
+ \jvbox{#1}[#2]{\box\@tempboxa}%
+ \@end@tempboxa
+}
+\newcommand*{\pbox}[2][]{%
+ \let\m@l\hss \let\m@r\hss \let\m@t\vss \let\m@b\vss
+ \@tfor\@tempa:=#1\do{%
+ \expandafter\let\csname m@\@tempa\endcsname\relax%
+ }%
+ \leavevmode\hbox{\color@begingroup
+ $\ifx\m@t\relax \vtop \else\ifx\m@b\relax \vbox\else \vcenter\fi\fi
+ \bgroup \baselineskip\z@\lineskip\z@
+ \def\\{\strut\@stackcr}%
+ \halign{\m@l\ignorespaces ##\unskip\m@r\cr #2\strut\crcr}%
+ \egroup$\color@endgroup
+ }%
+}
+\newcommand*{\picbox}[1]{%
+ \setbox\@tempboxa\hb@xt@\z@{\ignorespaces#1\hss}%
+ \ht\@tempboxa\z@\dp\@tempboxa\z@
+ \leavevmode\box\@tempboxa
+}
+\newcommand{\Strutletter}{A}
+\newcommand{\Strutstretch}{1.5}
+\newsavebox\NCC@strutbox
+\newdimen\NCC@strutsep
+\def\NCC@setstrut#1{%
+ \setbox\NCC@strutbox\hbox{\vphantom{\Strutletter}}%
+ \@tempdima\ht\strutbox \advance\@tempdima\dp\strutbox
+ \NCC@strutsep \Strutstretch\@tempdima
+ \advance\NCC@strutsep -\ht\NCC@strutbox
+ \advance\NCC@strutsep -\dp\NCC@strutbox
+ \NCC@strutsep .5\NCC@strutsep
+ \@ifnextchar/{\NCC@setstrutn{#1}}{\NCC@setstrutl{#1}\z@}%
+}
+\def\NCC@setstrutn#1/#2/{\NCC@setstrutl{#1}{#2\@tempdima}}
+\def\NCC@setstrutl#1#2{%
+ \@defaultunits\@tempdima#2\relax\@nnil
+ \ifdim\@tempdima>\z@
+ \advance\@tempdima \ht\NCC@strutbox
+ \ht\NCC@strutbox \@tempdima
+ \else
+ \@tempdima -\@tempdima
+ \advance\@tempdima \dp\NCC@strutbox
+ \dp\NCC@strutbox \@tempdima
+ \fi
+ #1%
+}
+\newcommand{\Strut}{%
+ \NCC@setstrut{\leavevmode\copy\NCC@strutbox\ignorespaces}%
+}
+\newcommand{\tstrut}{%
+ \NCC@setstrut{}\addbox\NCC@strutsep\z@{\copy\NCC@strutbox}%
+}
+\newcommand{\bstrut}{%
+ \NCC@setstrut{}\addbox\z@\NCC@strutsep{\copy\NCC@strutbox}%
+}
+\newcommand{\tbstrut}{%
+ \NCC@setstrut{}\addbox\NCC@strutsep\NCC@strutsep{\copy\NCC@strutbox}%
+}
+\newcommand{\cboxstyle}{}
+\newcommand{\cbox}{%
+ \@ifstar{\def\@tempa{\ht\@tempboxa\z@ \dp\@tempboxa\z@}\NCC@xcbox}%
+ {\let\@tempa\relax\NCC@xcbox}%
+}
+\def\NCC@xcbox{%
+ \leavevmode \hbox\bgroup\color@begingroup
+ \cboxstyle\NCC@setstrut{\NCC@ycbox}%
+}
+\newcommand*{\NCC@ycbox}[2][]{%
+ \setbox\@tempboxa\hbox{%
+ \jvbox{\addbox\NCC@strutsep\NCC@strutsep{\copy\NCC@strutbox}}[#1]%
+ {\pbox[#1t]{\tstrut\ignorespaces #2\unskip\bstrut}}}%
+ \@tempa \box\@tempboxa
+ \color@endgroup\egroup
+}
+\newcommand{\tc}[1]{\hspace*{\fill}#1\hspace*{\fill}}
+\endinput
+%%
+%% End of file `nccboxes.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/ncccomma.sty b/Master/texmf-dist/tex/latex/ncctools/ncccomma.sty
new file mode 100644
index 00000000000..6ff8161a8ec
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/ncccomma.sty
@@ -0,0 +1,48 @@
+%%
+%% This is file `ncccomma.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ncccomma.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: ncccomma.dtx Copyright (C) 2005 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{ncccomma}
+ [2005/02/10 v1.0 Smart Math Comma Package (NCC)]
+\mathchardef\mathcomma\mathcode`\,
+\mathcode`\,="8000
+\bgroup
+ \uccode`\~`\,%
+ \uppercase{%
+\egroup
+ \def~}{\futurelet\@let@token\NCC@comma}
+\newcommand\ordcommalist{0123456789}
+\def\NCC@comma{%
+ \let\@tempb\@empty
+ \expandafter\@tfor\expandafter\@tempa\expandafter:\expandafter=%
+ \ordcommalist\do{%
+ \expandafter\ifx\@tempa\@let@token
+ \let\@tempb\mathord \@break@tfor
+ \fi
+ }%
+ \@tempb\mathcomma
+}
+\endinput
+%%
+%% End of file `ncccomma.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/ncccropbox.sty b/Master/texmf-dist/tex/latex/ncctools/ncccropbox.sty
new file mode 100644
index 00000000000..a34cef273a7
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/ncccropbox.sty
@@ -0,0 +1,77 @@
+%%
+%% This is file `ncccropbox.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ncccropbox.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: ncccropbox.dtx Copyright (C) 2002--2004 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{ncccropbox}
+ [2004/11/24 v1.1 Crop Box Package (NCC)]
+\newcommand*{\croplinelength}[1]{\def\CRB@length{#1}}
+\newcommand*{\croplinewidth}[1]{\def\CRB@width{#1}}
+\newcommand*{\cropboxsep}[1]{\def\CRB@sep{#1}}
+\newcommand*{\cropbox}[1][]{\@ifnextchar[{\CRB@box[#1]}{\CRB@box[#1][]}}
+\def\CRB@box[#1][#2]#3{%
+ \@begin@tempboxa\hbox{#3}%
+ \def\@tempa{#1}\ifx\@tempa\@empty
+ \@tempdima\width \advance\@tempdima 2\CRB@sep\relax
+ \else
+ \setlength\@tempdima{#1}%
+ \fi
+ \def\@tempa{#2}\ifx\@tempa\@empty
+ \@tempdimb\totalheight \advance\@tempdimb 2\CRB@sep\relax
+ \else
+ \setlength\@tempdimb{#2}%
+ \fi
+ \setbox\z@\hb@xt@\z@{%
+ \linethickness{\CRB@width}%
+ \setlength\unitlength{\CRB@length}%
+ \ifdim\unitlength=\z@ \else
+ \ifdim\unitlength>\z@
+ \CRB@hcross\z@\z@\@ne\@ne
+ \CRB@hcross\@tempdima\z@\m@ne\@ne
+ \CRB@hcross\z@\@tempdimb\@ne\m@ne
+ \CRB@hcross\@tempdima\@tempdimb\m@ne\m@ne
+ \else \unitlength -\unitlength
+ \CRB@hcross\z@\z@\m@ne\m@ne
+ \CRB@hcross\@tempdima\z@\@ne\m@ne
+ \CRB@hcross\z@\@tempdimb\m@ne\@ne
+ \CRB@hcross\@tempdima\@tempdimb\@ne\@ne
+ \fi
+ \fi
+ }%
+ \leavevmode \ht\z@\z@ \dp\z@\z@ \box\z@
+ \advance\@tempdimb -\lineskip
+ \vbox to\@tempdimb{\vss\vskip -\lineskip
+ \hb@xt@\@tempdima{\hss\unhbox\@tempboxa\hss}\vss\kern\z@
+ }%
+ \@end@tempboxa
+}
+\def\CRB@hcross#1#2#3#4{%
+ \@killglue\raise#2\hb@xt@\z@{\kern#1\line(#3,0)\@ne\hss}\hss
+ \@killglue\raise#2\hb@xt@\z@{\kern#1\line(0,#4)\@ne\hss}\hss
+}
+\croplinelength{10pt}
+\croplinewidth{.4pt}
+\cropboxsep{5pt}
+\endinput
+%%
+%% End of file `ncccropbox.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/ncccropmark.sty b/Master/texmf-dist/tex/latex/ncctools/ncccropmark.sty
new file mode 100644
index 00000000000..1d616b0114f
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/ncccropmark.sty
@@ -0,0 +1,69 @@
+%%
+%% This is file `ncccropmark.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ncccropmark.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: ncccropmark.dtx Copyright (C) 2002--2004 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{ncccropmark}
+ [2004/11/29 v1.1 Cropmarks (NCC)]
+\RequirePackage{ncccropbox,tocenter}
+\newcommand*{\cropmark}[6][]{\NCC@pos{#1}%
+ \@tempswafalse
+ \if@twoside \ifodd\c@page \else \@tempswatrue \fi\fi
+ \if@tempswa
+ \setlength{\@tempdima}{#3}%
+ \setlength{\@tempdimb}{#2}%
+ \else
+ \setlength{\@tempdima}{#2}%
+ \setlength{\@tempdimb}{#3}%
+ \fi
+ \if@twocolumn
+ \NCC@m\@tempdima \NCC@m\@tempdimb
+ \else
+ \if@tempswa
+ \if@reversemargin \NCC@m\@tempdimb \else \NCC@m\@tempdima \fi
+ \else
+ \if@reversemargin \NCC@m\@tempdima \else \NCC@m\@tempdimb \fi
+ \fi
+ \fi
+ \@tempskipa -\@tempdima
+ \advance\@tempdima\@tempdimb
+ \advance\@tempdima\textwidth
+ \@tempdimb\headsep
+ \advance\@tempdimb\textheight
+ \NCC@f\@tempdimb
+ \addtolength{\@tempdimb}{#5}%
+ \@tempskipb -\@tempdimb
+ \advance\@tempdimb -\headsep
+ \NCC@h\@tempdimb
+ \addtolength{\@tempdimb}{#4}%
+ \begingroup
+ \croplinelength{#6}%
+ \lineskip\z@
+ \@killglue\raise\@tempskipb
+ \hb@xt@\z@{\kern\@tempskipa
+ \cropbox[\@tempdima][\@tempdimb]{}\hss}\hss%
+ \endgroup
+}
+\endinput
+%%
+%% End of file `ncccropmark.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/nccfancyhdr.sty b/Master/texmf-dist/tex/latex/ncctools/nccfancyhdr.sty
new file mode 100644
index 00000000000..8e1b4f02ced
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/nccfancyhdr.sty
@@ -0,0 +1,345 @@
+%%
+%% This is file `nccfancyhdr.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nccfancyhdr.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: nccfancyhdr.dtx Copyright (C) 2002--2004 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{nccfancyhdr}
+ [2004/12/07 v1.1 Improved Fancy Header Package (NCC)]
+\newcommand*{\newpagestyle}[1]{%
+ \@ifnextchar[{\NCC@newpagestyle{#1}}{\NCC@newpagestyle{#1}[fancy]}%
+}
+\long\def\NCC@newpagestyle#1[#2]#3{%
+ \@ifundefined{ps@#2}{%
+ \PackageError{nccfancyhdr}
+ {\string\newpagestyle: Unknown base page style `#2'}{}%
+ }{}%
+ \edef\@tempa{\noexpand\newcommand \expandafter\noexpand
+ \csname ps@#1\endcsname}%
+ \expandafter\@tempa\expandafter{\csname ps@#2\endcsname #3}%
+}
+\@onlypreamble\newpagestyle
+\@onlypreamble\NCC@newpagestyle
+\newcommand*{\fancyhf}[1][lh,ch,rh,lf,cf,rf]{\NCC@fancyhf{}{#1}}
+\newcommand*{\fancyhead}[1][l,c,r]{\NCC@fancyhf h{#1}}
+\newcommand*{\fancyfoot}[1][l,c,r]{\NCC@fancyhf f{#1}}
+\newcommand{\lhead}{\@dblarg{\NCC@fancy{lh}}}
+\newcommand{\chead}{\@dblarg{\NCC@fancy{ch}}}
+\newcommand{\rhead}{\@dblarg{\NCC@fancy{rh}}}
+\newcommand{\lfoot}{\@dblarg{\NCC@fancy{lf}}}
+\newcommand{\cfoot}{\@dblarg{\NCC@fancy{cf}}}
+\newcommand{\rfoot}{\@dblarg{\NCC@fancy{rf}}}
+\def\NCC@fancy#1[#2]#3{
+ \expandafter\def\csname NCC@f@e#1\endcsname{#2}%
+ \expandafter\def\csname NCC@f@o#1\endcsname{#3}%
+}
+\def\NCC@fancyhf#1#2#3{%
+ \@for\@tempa:=#2\do
+ {\edef\@tempa{\noexpand\NCC@fancydef{#1\@tempa}}\@tempa{#3}}%
+}
+\def\NCC@fancydef#1#2{%
+ \let\NCC@hf\relax \let\NCC@lcr\relax \let\NCC@oe\relax
+ \@tfor \@nextchar:=#1\do
+ {\edef\@tempa{\noexpand\uppercase{\noexpand\def%
+ \noexpand\@tempa{\@nextchar}}}\@tempa
+ \if\@tempa H\NCC@fancyclass\NCC@hf{h}{#1}\else
+ \if\@tempa F\NCC@fancyclass\NCC@hf{f}{#1}\else
+ \if\@tempa L\NCC@fancyclass\NCC@lcr{l}{#1}\else
+ \if\@tempa C\NCC@fancyclass\NCC@lcr{c}{#1}\else
+ \if\@tempa R\NCC@fancyclass\NCC@lcr{r}{#1}\else
+ \if\@tempa O\NCC@fancyclass\NCC@oe{o}{#1}\else
+ \if\@tempa E\NCC@fancyclass\NCC@oe{e}{#1}\else
+ \NCC@fancyerror{Illegal char `\@nextchar' in argument `#1'}%
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ }%
+ \ifx\NCC@hf\relax \NCC@fancyerror{No `h' or `f' specified}\else
+ \ifx\NCC@lcr\relax \NCC@fancyerror{No `l' or `c' or `r' specified}\else
+ \ifx\NCC@oe\relax
+ \expandafter\def\csname NCC@f@o\NCC@lcr\NCC@hf\endcsname{#2}%
+ \expandafter\def\csname NCC@f@e\NCC@lcr\NCC@hf\endcsname{#2}%
+ \else
+ \expandafter\def\csname NCC@f@\NCC@oe\NCC@lcr\NCC@hf\endcsname{#2}%
+ \fi
+ \fi
+ \fi
+}
+\def\NCC@fancyclass#1#2#3{%
+ \ifx#1\relax
+ \def#1{#2}%
+ \else
+ \NCC@fancyerror{Misusing the char `\@nextchar' in argument `#3'}%
+ \fi
+}
+\def\NCC@fancyerror#1{%
+ \PackageError{nccfancyhdr}%
+ {Fancy mark definitions:\MessageBreak#1}%
+}
+\newdimen\headwidth
+\newcommand{\extendedheaders}{
+ \@tempdima\marginparwidth \advance\@tempdima\marginparsep
+ \@tempdimb\textwidth \advance\@tempdimb\@tempdima
+ \if@twocolumn \advance\@tempdimb\@tempdima \fi
+ \global\headwidth\@tempdimb
+}
+\newcommand{\normalheaders}{\global\headwidth\textwidth}
+\newcommand{\headrulewidth}{.4\p@}
+\newcommand{\footrulewidth}{\z@}
+\newcommand{\headstrutheight}{.3\normalbaselineskip}
+\newcommand{\footstrutheight}{.3\normalbaselineskip}
+\newcommand{\headrule}{%
+ \setlength\@tempdima{\headrulewidth}%
+ \hrule\@height\@tempdima\@width\headwidth
+ \vskip-\@tempdima
+}
+\newcommand{\footrule}{%
+ \setlength\@tempdima{\footrulewidth}% Can use calc here
+ \vskip -\@tempdima
+ \hrule \@height\@tempdima \@width\headwidth
+}
+\def\NCC@fancyreset{\let\baselinestretch\@empty
+ \long\def\nouppercase##1{%
+ \begingroup
+ \long\def\uppercase####1{####1}%
+ \long\def\MakeUppercase####1{####1}%
+ ##1%
+ \endgroup
+ }%
+ \reset@font
+}
+\def\NCC@fancyhead#1#2#3{%
+ \hb@xt@\headwidth{\NCC@fancyreset
+ \setbox\@tempboxa\vtop{%
+ \hbox{%
+ \rlap{\parbox[b]\headwidth{\raggedright#1}}%
+ \setlength\@tempdima{\headstrutheight}%
+ \vrule\@width\z@\@height\z@\@depth\@tempdima
+ \parbox[b]\headwidth{\centering#2}%
+ \llap{\parbox[b]\headwidth{\raggedleft#3}}%
+ }%
+ \headrule
+ }%
+ \NCC@fancytest\headheight
+ \box\@tempboxa
+ }%
+}
+\def\NCC@fancyfoot#1#2#3{%
+ \hb@xt@\headwidth{\NCC@fancyreset
+ \setbox\@tempboxa\vbox{%
+ \footrule
+ \hbox{%
+ \rlap{\parbox[t]\headwidth{\raggedright#1}}%
+ \@tempdima .55\normalbaselineskip
+ \addtolength\@tempdima{\footstrutheight}%
+ \vrule\@width\z@\@height\@tempdima\@depth\z@
+ \parbox[t]\headwidth{\centering#2}%
+ \llap{\parbox[t]\headwidth{\raggedleft#3}}%
+ }%
+ }%
+ \NCC@fancytest\footskip
+ \box\@tempboxa
+ }%
+}
+\def\NCC@fancytest#1{%
+ \ifdim\ht\@tempboxa>#1%
+ \PackageWarning{nccfancyhdr}%
+ {\string#1 is too small (\the#1):\MessageBreak
+ Make it at least \the\ht\@tempboxa.\MessageBreak
+ We now enlarge it for the rest of the document.\MessageBreak
+ This may cause the page layout to be inconsistent, however}%
+ \@tempdima#1\global\setlength{#1}{\ht\@tempboxa}%
+ \ht\@tempboxa\@tempdima
+ \fi
+}
+\def\NCC@ihss{\if@twocolumn\hss\else\if@reversemargin\hss\fi\fi}
+\def\NCC@ohss{\if@twocolumn\hss\else\if@reversemargin\else\hss\fi\fi}
+\newcommand*{\fancycenter}[1][1em]{%
+ \@ifnextchar[{\NCC@fancycenter{#1}}{\NCC@fancycenter{#1}[3]}%
+}
+\def\NCC@fancycenter#1[#2]#3#4#5{%
+ \def\@tempa{#4}\ifx\@tempa\@empty
+ \hb@xt@\linewidth{\color@begingroup{#3}\hfil {#5}\color@endgroup}%
+ \else
+ \setlength\@tempdima{#1}%
+ \setlength{\@tempdimb}{#2\@tempdima}%
+ \@tempdimc \@tempdimb \advance\@tempdimc -\@tempdima
+ \setlength\@tempskipa{\@tempdimb \@plus 1fil \@minus \@tempdimc}%
+ \@tempskipb\@tempskipa
+ \def\@tempa{#3}\ifx\@tempa\@empty
+ \addtolength\@tempskipa{\z@ \@minus \@tempdima}%
+ \fi
+ \def\@tempa{#5}\ifx\@tempa\@empty % empty right
+ \addtolength\@tempskipb{\z@ \@minus \@tempdima}%
+ \fi
+ \settowidth{\@tempdimb}{#3}%
+ \settowidth{\@tempdimc}{#5}%
+ \ifdim\@tempdimb>\@tempdimc
+ \advance\@tempdimb -\@tempdimc
+ \addtolength\@tempskipb{\@tempdimb \@minus \@tempdimb}%
+ \else
+ \advance\@tempdimc -\@tempdimb
+ \addtolength\@tempskipa{\@tempdimc \@minus \@tempdimc}%
+ \fi
+ \hb@xt@\linewidth{\color@begingroup{#3}\hskip \@tempskipa
+ {#4}\hskip \@tempskipb {#5}\color@endgroup}%
+ \fi
+}
+\def\ps@fancy{\ps@empty
+ \def\@oddhead{%
+ \NCC@ihss \NCC@fancyhead\NCC@f@olh\NCC@f@och\NCC@f@orh \NCC@ohss}%
+ \def\@evenhead{%
+ \NCC@ohss \NCC@fancyhead\NCC@f@elh\NCC@f@ech\NCC@f@erh \NCC@ihss}%
+ \def\@oddfoot{%
+ \NCC@ihss \NCC@fancyfoot\NCC@f@olf\NCC@f@ocf\NCC@f@orf \NCC@ohss}%
+ \def\@evenfoot{%
+ \NCC@ohss \NCC@fancyfoot\NCC@f@elf\NCC@f@ecf\NCC@f@erf \NCC@ihss}%
+ \fancyhf{}%
+}
+\DeclareOption{empty}{%
+ \let\NCC@psempty\ps@empty
+ \def\ps@empty{\NCC@psempty
+ \def\@oddhead{%
+ \NCC@ihss \NCC@fancyhead\NCC@f@olh\NCC@f@och\NCC@f@orh \NCC@ohss}%
+ \def\@evenhead{%
+ \NCC@ohss \NCC@fancyhead\NCC@f@elh\NCC@f@ech\NCC@f@erh \NCC@ihss}%
+ \def\@oddfoot{%
+ \NCC@ihss \NCC@fancyfoot\NCC@f@olf\NCC@f@ocf\NCC@f@orf \NCC@ohss}%
+ \def\@evenfoot{%
+ \NCC@ohss \NCC@fancyfoot\NCC@f@elf\NCC@f@ecf\NCC@f@erf \NCC@ihss}%
+ \fancyhf{}%
+ }%
+ \pagestyle{empty}%
+}
+\DeclareOption{plain}{%
+ \def\ps@plain{\ps@fancy \let\@mkboth\@gobbletwo
+ \fancyfoot[c]{\thepage}%
+ }%
+ \pagestyle{plain}%
+}
+\DeclareOption{myheadings}{%
+ \@ifundefined{chapter}{%
+ \def\ps@myheadings{\ps@fancy \let\@mkboth\@gobbletwo
+ \fancyhead[ce]{\fancycenter{\thepage}{}{\slshape\leftmark}}%
+ \fancyhead[co]{\fancycenter{\slshape\rightmark}{}{\thepage}}%
+ \let\sectionmark\@gobble
+ \let\subsectionmark\@gobble
+ }%
+ }{\def\ps@myheadings{\ps@fancy \let\@mkboth\@gobbletwo
+ \fancyhead[ce]{\fancycenter{\thepage}{}{\slshape\leftmark}}%
+ \fancyhead[co]{\fancycenter{\slshape\rightmark}{}{\thepage}}%
+ \let\chaptermark\@gobble
+ \let\sectionmark\@gobble
+ }%
+ }%
+ \pagestyle{myheadings}%
+}
+\DeclareOption{headings}{%
+ \@ifundefined{chapter}{%
+ \if@twoside
+ \def\ps@headings{\ps@fancy \let\@mkboth\markboth
+ \fancyhead[ce]{\fancycenter{\thepage}{}{\slshape\leftmark}}%
+ \fancyhead[co]{\fancycenter{\slshape\rightmark}{}{\thepage}}%
+ \def\sectionmark##1{%
+ \markboth{\MakeUppercase{%
+ \ifnum \c@secnumdepth >\z@ \thesection\quad \fi##1}}{}}%
+ \def\subsectionmark##1{%
+ \markright{%
+ \ifnum \c@secnumdepth >\@ne \thesubsection\quad \fi##1}}%
+ }%
+ \else
+ \def\ps@headings{\ps@fancy \let\@mkboth\markboth
+ \fancyhead[ce]{\fancycenter{\thepage}{}{\slshape\leftmark}}%
+ \fancyhead[co]{\fancycenter{\slshape\rightmark}{}{\thepage}}%
+ \def\sectionmark##1{%
+ \markright {\MakeUppercase{%
+ \ifnum \c@secnumdepth >\z@ \thesection\quad \fi##1}}}%
+ \let\subsectionmark\@gobble % Not needed but inserted for safety
+ }%
+ \fi
+ }{\if@twoside
+ \def\ps@headings{\ps@fancy \let\@mkboth\markboth
+ \fancyhead[ce]{\fancycenter{\thepage}{}{\slshape\leftmark}}%
+ \fancyhead[co]{\fancycenter{\slshape\rightmark}{}{\thepage}}%
+ \def\chaptermark##1{%
+ \markboth{\MakeUppercase{%
+ \ifnum \c@secnumdepth >\m@ne \if@mainmatter
+ \@chapapp\ \thechapter. \ \fi\fi##1}}{}}%
+ \def\sectionmark##1{%
+ \markright {\MakeUppercase{%
+ \ifnum \c@secnumdepth >\z@ \thesection. \ \fi##1}}}%
+ }%
+ \else
+ \def\ps@headings{\ps@fancy \let\@mkboth\markboth
+ \fancyhead[ce]{\fancycenter{\thepage}{}{\slshape\leftmark}}%
+ \fancyhead[co]{\fancycenter{\slshape\rightmark}{}{\thepage}}%
+ \def\chaptermark##1{%
+ \markright{\MakeUppercase{%
+ \ifnum \c@secnumdepth >\m@ne \if@mainmatter
+ \@chapapp\ \thechapter. \ \fi\fi##1}}}%
+ \let\sectionmark\@gobble % Not needed but inserted for safety
+ }%
+ \fi
+ }%
+ \pagestyle{headings}%
+}
+\DeclareOption{testfloats}{%
+ \let\NCC@fancymakecol\@makecol
+ \let\NCC@fancytoplist\@empty
+ \let\NCC@fancybotlist\@empty
+ \def\@makecol{%
+ \let\NCC@fancytoplist\@toplist
+ \let\NCC@fancybotlist\@botlist
+ \NCC@fancymakecol
+ }%
+ \newcommand\iftopfloat{%
+ \ifx\NCC@fancytoplist\@empty
+ \expandafter\@secondoftwo
+ \else
+ \expandafter\@firstoftwo
+ \fi
+ }%
+ \newcommand\ifbotfloat{%
+ \ifx\NCC@fancybotlist\@empty
+ \expandafter\@secondoftwo
+ \else
+ \expandafter\@firstoftwo
+ \fi
+ }%
+ \newcommand\iffloatpage{%
+ \if@fcolmade
+ \expandafter\@firstoftwo
+ \else
+ \expandafter\@secondoftwo
+ \fi
+ }%
+}
+\ProcessOptions*
+\normalheaders
+\fancyhf{}
+\endinput
+%%
+%% End of file `nccfancyhdr.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/nccfloats.sty b/Master/texmf-dist/tex/latex/ncctools/nccfloats.sty
new file mode 100644
index 00000000000..0f32a39859e
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/nccfloats.sty
@@ -0,0 +1,143 @@
+%%
+%% This is file `nccfloats.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nccfloats.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: nccfloats.dtx Copyright (C) 2002--2004 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{nccfloats}
+ [2004/12/05 v1.1 More Float Management (NCC)]
+\RequirePackage{nccboxes}[2002/03/20]
+\newcommand*{\FloatStyle}[1]{\def\NCC@fltstyle{#1}}
+\@onlypreamble\FloatStyle
+\newcommand{\minifig}{\begingroup\def\@captype{figure}\NCC@minifloat}
+\newcommand{\minitabl}{\begingroup\def\@captype{table}\NCC@minifloat}
+\newcommand*\NCC@minifloat[1][c]{%
+ \@ifnextchar[{\NCC@mflt{#1}}{\NCC@@mflt{#1}\relax[s]}}
+\def\NCC@mflt#1[#2]{%
+ \@ifnextchar[{\NCC@@mflt{#1}{#2}}{\NCC@mflt{#1}{#2}[#1]}}
+\long\def\NCC@@mflt#1#2[#3]#4#5{%
+ \@iiiminipage{#1}{#2}[#3]{#4}\normalfont
+ \NCC@fltstyle #5\endminipage\endgroup
+}
+\def\NCC@pair#1#2#3#4{\setlength\@tempdimc{#3}%
+ \@ifstar{\NCC@pair@{#2}{#4}}{\NCC@pair@{#1}{#4}}}
+\def\NCC@pair@#1#2{\@ifnextchar[{\NCC@pair@@{#1}}{\NCC@pair@@{#1}[#2]}}
+\def\NCC@pair@@#1[#2]{\def\@tempa{#1{#2}}%
+ \@ifnextchar({\NCC@pair@@@}{\NCC@@pair()()}}
+\def\NCC@pair@@@(#1){\@ifnextchar({\NCC@@pair(#1)}{\NCC@@pair(#1)()}}
+\def\NCC@@pair(#1)(#2){\@tempa{#1}{#2}}
+\def\NCC@setwidth#1#2{%
+ \afterassignment\NCC@setwidth@#1#2\unitlength\relax
+}
+\def\NCC@setwidth@#1\relax{}
+\def\NCC@wcalc#1#2{%
+ \if!#1!\@tempdima .5\linewidth \advance\@tempdima -.5\@tempdimc
+ \else \NCC@setwidth\@tempdima{#1}%
+ \fi
+ \if!#2!\@tempdimb \linewidth \advance\@tempdimb -\@tempdima
+ \advance\@tempdimb -\@tempdimc
+ \else \NCC@setwidth\@tempdimb{#2}%
+ \@tempdimc \linewidth \advance\@tempdimc -\@tempdima
+ \advance\@tempdimc -\@tempdimb
+ \fi
+}
+\newif\ifNCC@smfltleft
+\newcommand{\ifleftsidefloat}{%
+ \ifNCC@smfltleft
+ \expandafter\@firstoftwo
+ \else
+ \expandafter\@secondoftwo
+ \fi
+}
+\newcommand{\sidefig}{\NCC@sidemfloat{\minifig}}
+\newcommand{\sidetabl}{\NCC@sidemfloat{\minitabl}}
+\def\NCC@sidemfloat#1{%
+ \NCC@smfltleftfalse
+ \if@twocolumn \else
+ \if@twoside
+ \ifodd\c@page \else \NCC@smfltlefttrue \fi
+ \fi
+ \fi
+ \NCC@pair{\NCC@smflt{#1}}%
+ {\ifNCC@smfltleft \NCC@smfltleftfalse \else \NCC@smfltlefttrue\fi
+ \NCC@smflt{#1}}%
+ {1.5em}{}%
+}
+\long\def\NCC@smflt#1#2#3#4#5#6{%
+ \let\NCC@t\relax \let\NCC@b\relax \let\NCC@j\relax \let\NCC@n\strut
+ \@tfor\@tempa :=#2\do {%
+ \expandafter\let\csname NCC@\@tempa\endcsname\@empty}%
+ \ifx\NCC@t\@empty \def\NCC@c{t}\else
+ \ifx\NCC@b\@empty \def\NCC@c{b}\else
+ \def\NCC@c{c}%
+ \fi
+ \fi
+ \ifx\NCC@j\@empty \def\NCC@j{\parfillskip\z@skip}\fi
+ \edef\NCC@t{\parindent\the\parindent\ifvmode\else\noindent\fi}%
+ \ifvmode\else
+ \unskip{\parfillskip\rightskip\par}\vskip -\parskip
+ \fi
+ \setbox\@tempboxa\vbox{\hsize\linewidth\noindent
+ \NCC@wcalc{#3}{#4}%
+ \ifNCC@smfltleft
+ \jparbox{\Strut}[\NCC@c]\@tempdima{#1\@tempdima{#5}}%
+ \nobreak\hskip\@tempdimc
+ \fi
+ \jparbox{\NCC@n\Strut}[\NCC@c]\@tempdimb{%
+ \everypar{\NCC@n\everypar{}}\NCC@t#6%
+ \ifvmode \else \unskip\NCC@n\NCC@j\fi}%
+ \ifNCC@smfltleft \else
+ \nobreak\hskip\@tempdimc
+ \jparbox{\Strut}[\NCC@c]\@tempdima{#1\@tempdima{#5}}%
+ \fi
+ }%
+ \@tempdima\dp\@tempboxa \advance\@tempdima\lineskip
+ \dp\@tempboxa\@tempdima
+ \@tempdima\ht\@tempboxa \advance\@tempdima -\ht\strutbox
+ \noindent \raise-\@tempdima\box\@tempboxa
+}
+\newcommand{\fig}{\NCC@float{figure}}
+\newcommand{\tabl}{\NCC@float{table}}
+\def\NCC@float#1{\@ifstar{\NCC@flt{#1*}}{\NCC@flt{#1}}}
+\def\NCC@flt#1{\@ifnextchar[{\NCC@flt@{#1}}{\NCC@flt@{#1}[ht]}}
+\def\NCC@flt@#1[#2]{\begin{#1}[#2]\centering
+ \@ifnextchar({\NCC@@flt{#1}}{\NCC@@flt{#1}()}}
+\long\def\NCC@@flt#1(#2)#3{%
+ \if!#2!\@tempdima\linewidth \else \NCC@setwidth\@tempdima{#2}\fi
+ \begingroup\NCC@minifloat[c]\@tempdima{#3}%
+ \end{#1}%
+}
+\newcommand{\figs}{\NCC@floats{figure}b}
+\newcommand{\tabls}{\NCC@floats{table}t}
+\def\NCC@floats#1#2{%
+ \NCC@pair{\NCC@@flts{#1}{#2}}{\NCC@@flts{#1*}{#2}}{1em}{ht}}
+\long\def\NCC@@flts#1#2#3#4#5#6#7{%
+ \begin{#1}[#3]\NCC@wcalc{#4}{#5}%
+ \begingroup\NCC@minifloat[#2]\@tempdima{#6}%
+ \nobreak\hskip\@tempdimc
+ \begingroup\NCC@minifloat[#2]\@tempdimb{#7}%
+ \end{#1}%
+}
+\FloatStyle{\footnotesize\centering}
+\endinput
+%%
+%% End of file `nccfloats.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/nccfoots.sty b/Master/texmf-dist/tex/latex/ncctools/nccfoots.sty
new file mode 100644
index 00000000000..d91275980bb
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/nccfoots.sty
@@ -0,0 +1,41 @@
+%%
+%% This is file `nccfoots.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nccfoots.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: nccfoots.dtx Copyright (C) 1998-2005 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{nccfoots}
+ [2005/02/03 v1.2 NCC Footnotes Package (NCC)]
+\def\NCC@makefnmark#1{\def\@tempa{#1}%
+ \ifx\@tempa\@empty \else
+ \begingroup
+ \unrestored@protected@xdef\@thefnmark{#1}%
+ \endgroup
+ \fi
+}
+\let\@thefnmark\@empty
+\newcommand*{\Footnote}[1]{\Footnotemark{#1}\@footnotetext}
+\newcommand*{\Footnotemark}[1]{\NCC@makefnmark{#1}\@footnotemark}
+\newcommand*{\Footnotetext}[1]{\NCC@makefnmark{#1}\@footnotetext}
+\endinput
+%%
+%% End of file `nccfoots.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/nccmath.sty b/Master/texmf-dist/tex/latex/ncctools/nccmath.sty
new file mode 100644
index 00000000000..f9face6abf5
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/nccmath.sty
@@ -0,0 +1,466 @@
+%%
+%% This is file `nccmath.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nccmath.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: nccmath.dtx Copyright (C) 2002--2005 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesPackage{nccmath}
+ [2005/02/21 v1.2 Additional Math Commands (NCC)]
+\DeclareOption{mediummath}{\newcommand\NCC@op{}}
+\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{amsmath}}
+\ProcessOptions\relax
+\RequirePackage{amsmath}[2000/07/18]
+\newif\ifNCC@star
+\def\NCC@cr{\relax\iffalse{\fi\ifnum0=`}\fi
+ \@ifstar{\global\NCC@startrue\NCC@cr@}{\global\NCC@starfalse\NCC@cr@}%
+}
+\def\NCC@cr@{\new@ifnextchar[\NCC@cr@@{\NCC@cr@@[\z@]}}
+\def\NCC@cr@@[#1]{\ifnum0=`{\fi \iffalse}\fi\NCC@cr@@@{#1}}
+\def\NCC@aligncr#1{\cr\noalign{\vskip #1\relax}}
+\def\NCC@default@cr{\let\\\NCC@cr \let\NCC@cr@@@\NCC@aligncr}
+\newcommand{\nr}{%
+ \let\NCC@temp\NCC@cr@@@
+ \let\NCC@cr@@@\NCC@nr
+ \NCC@cr
+}
+\def\NCC@nr#1{%
+ \let\NCC@cr@@@\NCC@temp
+ \setlength\@tempskipa{#1}\advance\@tempskipa .5ex
+ \ifNCC@star
+ \edef\@tempa{\noexpand\\*[\the\@tempskipa]}%
+ \else
+ \edef\@tempa{\noexpand\\[\the\@tempskipa]}%
+ \fi
+ \@tempa
+}
+\newcommand{\mrel}{\mathpalette\NCC@rel}
+\def\NCC@rel#1#2{\mathrel{\vcenter{\NCC@default@cr
+ \offinterlineskip \ialign{\hfil$\m@th#1##$\hfil\cr#2\crcr}}}}
+\newcommand{\underrel}[2]{\mathrel{\mathop{#1}\limits_{#2}}}
+\newdimen\NCC@fracrulewidth
+\def\NCC@select@msize{\relax
+ \@tempdima \f@size\p@
+ \ifdim\@tempdima>11.5\p@
+ \@tempdimb .83\@tempdima
+ \else
+ \@tempdimb .8\@tempdima
+ \ifdim\@tempdimb<5\p@ \@tempdimb 5\p@\fi
+ \fi
+ \NCC@fracrulewidth .04\@tempdima
+ \@tempdima 1.25\NCC@fracrulewidth
+ \ifdim\NCC@fracrulewidth>.45\p@ \else
+ \ifdim\NCC@fracrulewidth>.34\p@ \NCC@fracrulewidth .4\p@
+ \else \NCC@fracrulewidth .3\p@
+ \fi
+ \fi
+}
+\def\NCC@innerfrac#1{\genfrac{}{}\NCC@fracrulewidth{#1}}
+\def\NCC@prepare@msize{%
+ \@tempdima 1.2\@tempdimb
+ \advance\@tempdimb .5\p@
+ \edef\@tempa{\strip@pt\@tempdimb}%
+ \expandafter\NCC@floor\expandafter\@tempa\@tempa.\@nil
+ \fontsize\@tempa\@tempdima\selectfont
+ \def\frac{\protect\NCC@innerfrac{}}%
+ \def\dfrac{\NCC@innerfrac\z@}%
+ \def\tfrac{\NCC@innerfrac\@ne}%
+ \def\binom{\protect\genfrac()\z@{}}%
+}
+\def\NCC@floor#1#2.#3\@nil{\def#1{#2}}
+\DeclareRobustCommand*\NCC@op@prepare[1]{%
+ \def\NCC@op{#1}%
+ \let\NCC@op@print\NCC@op@printm
+ \NCC@op@prepare@
+}
+\def\NCC@op@prepare@{%
+ \let\NCC@op@lim\ilimits@
+ \let\NCC@op@sp\relax
+ \let\NCC@op@sb\relax
+ \NCC@op@next
+}
+\def\NCC@op@next{\futurelet\@let@token\NCC@op@getnext}
+\def\NCC@op@getnext{%
+ \let\@tempa\NCC@op@skip
+ \ifx\@let@token\limits
+ \let\NCC@op@lim\limits \else
+ \ifx\@let@token\nolimits
+ \let\NCC@op@lim\nolimits \else
+ \ifx\@let@token\displaylimits
+ \let\NCC@op@lim\displaylimits \else
+ \ifx\@let@token\sp
+ \NCC@op@test\NCC@op@sp
+ \def\@tempa{\NCC@op@get\NCC@op@sp}\else
+ \ifx\@let@token\sb
+ \NCC@op@test\NCC@op@sb
+ \def\@tempa{\NCC@op@get\NCC@op@sb}\else
+ \ifx\@let@token\@sptoken
+ \let\@tempa\NCC@op@skipsp \else
+ \let\@tempa\NCC@op@print
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \@tempa
+}
+\def\NCC@op@skip#1{\NCC@op@next}
+\def\NCC@op@skipsp{%
+ \@ifnextchar0{\NCC@op@next}{\NCC@op@next}%
+}
+\def\NCC@op@test#1{%
+ \ifx#1\relax \else
+ \PackageError{nccmath}{Double index in math operator}{}
+ \fi
+}
+\def\NCC@op@get#1#2#3{\def#1{#3}\NCC@op@next}
+\def\NCC@op@printm{%
+ \ifx\NCC@op@lim\nolimits \NCC@op@printm@\@ne \else
+ \ifx\NCC@op@lim\limits \NCC@op@printm@\z@ \else
+ \mathchoice{\displaystyle\NCC@op@printm@\z@}%
+ {\textstyle\NCC@op@printm@\@ne}%
+ {\scriptstyle\NCC@op@printm@\@ne}%
+ {\scriptscriptstyle\NCC@op@printm@\@ne}%
+ \fi
+ \fi
+}
+\def\NCC@op@printm@{\NCC@op@print@\NCC@op\NCC@op@kern}
+\def\NCC@op@print@#1#2#3{\mathop{#1}%
+ \setlength\@tempdima{#2}%
+ \@tempswatrue
+ \ifx\NCC@op@sb\relax \else \ifnum#3>\z@ \@tempswafalse \fi \fi
+ \ifx\NCC@op@sp\relax \else \ifnum#3>\z@ \@tempswafalse \fi \fi
+ \edef\@tempa{%
+ \ifnum#3=\z@ \noexpand\limits \else \noexpand\nolimits \fi
+ \ifx\NCC@op@sb\relax \else
+ \noexpand\sb{%
+ \ifnum#3=\z@ \kern -\@tempdima\else \kern -.8\@tempdima \fi
+ \noexpand\NCC@op@sb}%
+ \fi
+ \ifx\NCC@op@sp\relax \else
+ \noexpand\sp{\ifnum#3=\z@ \kern \@tempdima\fi
+ \noexpand\NCC@op@sp}%
+ \fi
+ \if@tempswa \kern -.2\@tempdima \fi
+ }%
+ \@tempa
+}
+\DeclareRobustCommand*\medmath[1]{\NCC@select@msize
+ \mathord{\raise\@tempdima\hbox{\NCC@prepare@msize
+ $\displaystyle#1$}}%
+}
+\newcommand*\medop[1]{\DOTSB\mathop{\medmath{#1}}\slimits@}
+\newcommand*\medintcorr[1]{\def\NCC@op@kern{#1}}
+\medintcorr{.5em}
+\newcommand*\medint[1]{\DOTSI\NCC@op@prepare{\medmath{#1}}}
+\DeclareRobustCommand*\mfrac[2]{\medmath{\frac{#1}{#2}}}
+\DeclareRobustCommand*\mbinom[2]{%
+ \Bigl(\medmath{\genfrac{}{}{\z@}{}{#1}{#2}}\Bigr)%
+}
+\newenvironment{medsize}{\NCC@select@msize
+ \mathord\bgroup
+ \raise\@tempdima\hbox\bgroup\NCC@prepare@msize
+ \arraycolsep .8\arraycolsep $}{$\egroup\egroup}
+\newenvironment{mmatrix}{\medsize\begin{matrix}}{\end{matrix}\endmedsize}
+\renewcommand*{\MultiIntegral}[1]{%
+ \edef\NCC@op{\noexpand\intop
+ \ifnum#1=\z@\noexpand\intdots@\else\noexpand\intkern@\fi
+ \ifnum#1>\tw@\noexpand\intop\noexpand\intkern@\fi
+ \ifnum#1>\thr@@\noexpand\intop\noexpand\intkern@\fi
+ \noexpand\intop
+ }%
+ \let\NCC@op@print\NCC@op@printd
+ \NCC@op@prepare@
+}
+\def\NCC@op@printd{%
+ \setlength\@tempdima{\NCC@op@kern}%
+ \ifx\NCC@op@lim\nolimits \@tempcnta\@ne \else
+ \ifx\NCC@op@lim\limits \@tempcnta\z@ \else
+ \@tempcnta\m@ne
+ \fi
+ \fi
+ \mathchoice{\NCC@op@printd@{\displaystyle}{1.2\@tempdima}}%
+ {\NCC@op@printd@{\textstyle}{.8\@tempdima}}%
+ {\NCC@op@printd@{\scriptstyle}{.8\@tempdima}}%
+ {\NCC@op@printd@{\scriptscriptstyle}{.8\@tempdima}}%
+}
+\def\NCC@op@printd@#1#2{#1%
+ \ifnum\@tempcnta>\m@ne
+ \NCC@op@print@{\hbox{$#1\NCC@op$}}{#2}\@tempcnta
+ \else
+ \ifx#1\displaystyle
+ \NCC@op@print@{\hbox{$#1\NCC@op$}}{#2}\z@
+ \else
+ \NCC@op@print@{\hbox{$#1\NCC@op$}}{#2}\@ne
+ \fi
+ \fi
+}
+\def\@tempa{%
+ \if@eqnsw \gdef\df@tag{\tagform@\theequation}\fi
+ \if@fleqn \@xp\endmathdisplay@fleqn
+ \else \ifx\df@tag\@empty \else \veqno \alt@tag \df@tag \fi
+ \ifx\df@label\@empty \else \@xp\ltx@label\@xp{\df@label}\fi
+ \fi
+ \ifnum\dspbrk@lvl>\m@ne
+ \postdisplaypenalty -\@getpen\dspbrk@lvl
+ \global\dspbrk@lvl\m@ne
+ \fi
+}
+\ifx\@tempa\endmathdisplay@a
+ \def\endmathdisplay@a{%
+ \ifnum\dspbrk@lvl>\m@ne
+ \postdisplaypenalty -\@getpen\dspbrk@lvl
+ \global\dspbrk@lvl\m@ne
+ \fi
+ \if@eqnsw \gdef\df@tag{\tagform@\theequation}\fi
+ \if@fleqn \@xp\endmathdisplay@fleqn
+ \else \ifx\df@tag\@empty \else \veqno \alt@tag \df@tag \fi
+ \ifx\df@label\@empty \else \@xp\ltx@label\@xp{\df@label}\fi
+ \fi
+ }
+\else
+ \PackageWarning{nccmath}%
+ {The \string\endmathdisplay@a\ command differs from\MessageBreak
+ waited value in this version of amsmath package.\MessageBreak
+ We don't fix it!}
+\fi
+\renewcommand*{\intertext}[1][]{\@amsmath@err{\Invalid@@\intertext}\@eha}
+\def\intertext@{%
+ \def\intertext{%
+ \ifvmode\else\\\@empty\fi
+ \noalign{\ifnum0=`}\fi
+ \@ifnextchar[{\NCC@intertext}{\NCC@intertext[]}%
+ }%
+}
+\def\NCC@intertext[#1]#2{%
+ \penalty\postdisplaypenalty
+ \@ifempty{#1}{\vskip\belowdisplayskip}{\vskip#1\relax}%
+ \vbox{\normalbaselines
+ \ifdim\linewidth=\columnwidth
+ \else \parshape\@ne \@totalleftmargin \linewidth
+ \fi
+ \noindent#2\par}%
+ \penalty\predisplaypenalty
+ \@ifempty{#1}{\vskip\abovedisplayskip}{\vskip#1\relax}%
+ \ifnum0=`{\fi}%
+}
+\newif\ifNCC@shortskip \NCC@shortskipfalse
+\newcommand{\useshortskip}{\global\NCC@shortskiptrue}
+\def\NCC@ignorepar{\relax
+ \ifNCC@shortskip
+ \abovedisplayskip\abovedisplayshortskip
+ \global\NCC@shortskipfalse
+ \fi
+ \ifmmode \else \ifvmode
+ \addvspace{\abovedisplayskip}%
+ \abovedisplayskip\z@skip
+ \abovedisplayshortskip\z@skip
+ \belowdisplayshortskip\belowdisplayskip
+ \noindent
+ \fi\fi
+}
+\let\NCC@startgather\start@gather
+\let\NCC@startalign\start@align
+\let\NCC@startmultline\start@multline
+\let\NCC@startdisplay\mathdisplay
+\def\start@gather{\NCC@ignorepar\NCC@startgather}
+\def\start@align{\ifingather@\else\NCC@ignorepar\fi\NCC@startalign}
+\def\start@multline{\NCC@ignorepar\NCC@startmultline}
+\def\mathdisplay{\NCC@ignorepar\NCC@startdisplay}
+\newenvironment{darray}[2][c]{%
+ \null\,%
+ \if #1t\vtop \else \if#1b \vbox \else \vcenter \fi \fi
+ \bgroup
+ \NCC@default@cr
+ \spread@equation
+ \NCC@mkpream{#2}%
+ \edef\@preamble{\ialign \bgroup \strut@ \@preamble \tabskip\z@skip \cr}%
+ \let\par\@empty \let\@sharp##%
+ \set@typeset@protect
+ \tabskip\z@skip
+ \@preamble
+}{%
+ \crcr\egroup\egroup
+}
+\def\NCC@mkpream#1{%
+ \@lastchclass\@ne \@firstamptrue
+ \settowidth\alignsep@{$\m@th\mskip\thickmuskip$}%
+ \let\@sharp\relax
+ \let\@preamble\@empty
+ \let\protect\@unexpandable@protect
+ \NCC@xexpast #1*0x\@@
+ \expandafter \@tfor \expandafter \@nextchar
+ \expandafter :\expandafter =\reserved@a \do
+ {\@chclass
+ \ifnum \@lastchclass=\tw@ \@ne \else
+ \z@
+ \edef\@nextchar{\expandafter\string\@nextchar}%
+ \if \@nextchar @\@chclass \tw@ \else
+ \@chnum
+ \if \@nextchar c\z@ \else
+ \if \@nextchar l\@ne \else
+ \if \@nextchar r\tw@ \else
+ \z@ \@preamerr \z@
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \ifcase \@chclass
+ \ifnum \@lastchclass=\z@ \@addtopreamble{\hskip \alignsep@}\fi
+ \@addamp
+ \@addtopreamble{%
+ \ifcase \@chnum \hfil$\displaystyle{\@sharp}$\hfil
+ \or $\displaystyle{\@sharp}$\hfil
+ \or \hfil$\displaystyle{\@sharp}$%
+ \fi
+ }%
+ \or
+ \@addtopreamble{$\@nextchar$}%
+ \fi
+ \@lastchclass\@chclass
+ }%
+ \ifnum\@lastchclass=\tw@ \@preamerr\@ne \fi
+}
+\def\NCC@xexpast#1*#2#3#4\@@{%
+ \edef\reserved@a{#1}%
+ \@tempcnta#2\relax
+ \ifnum\@tempcnta>\z@
+ \@whilenum\@tempcnta>\z@\do
+ {\edef\reserved@a{\reserved@a#3}\advance\@tempcnta \m@ne}%
+ \let\reserved@b\NCC@xexpast
+ \else
+ \let\reserved@b\NCC@xexnoop
+ \fi
+ \expandafter\reserved@b\reserved@a #4\@@
+}
+\def\NCC@xexnoop #1\@@{}
+\newenvironment*{fleqn}[1][\z@]{\@fleqntrue
+ \setlength\@mathmargin{#1}\ignorespaces
+}{%
+ \ignorespacesafterend
+}
+\newenvironment{ceqn}{\@fleqnfalse
+ \@mathmargin\@centering \ignorespaces
+}{%
+ \ignorespacesafterend
+}
+\newcommand{\eq}{\@ifstar{\NCC@eqx}{\NCC@eq}}
+\def\NCC@eqx#1{\begin{equation*}#1\end{equation*}}
+\def\NCC@eq#1{\begin{equation}#1\end{equation}}
+\newcommand{\eqalign}{%
+ \@ifstar{\let\@tempa\NCC@eqx \NCC@eqa}%
+ {\let\@tempa\NCC@eq \NCC@eqa}%
+}
+\newcommand*{\NCC@eqa}[2][rcl]{%
+ \@tempa{\begin{darray}{#1}#2\end{darray}}%
+}
+\newcommand{\eqs}{\@ifstar{\st@rredtrue\NCC@eqs}{\st@rredfalse \NCC@eqs}}
+\newcommand*{\NCC@eqs}[2][]{%
+ \begingroup\NCC@beqs{#1}#2\NCC@eeqs\endgroup\ignorespaces
+}
+\renewenvironment{eqnarray}{\st@rredfalse\NCC@beqs{}}
+ {\NCC@eeqs\ignorespacesafterend}
+\renewenvironment{eqnarray*}{\st@rredtrue\NCC@beqs{}}
+ {\NCC@eeqs\ignorespacesafterend}
+\def\NCC@beqs#1{%
+ \NCC@ignorepar$$
+ \inalign@true \intertext@ \displ@y@ \Let@
+ \chardef\dspbrk@context\z@
+ \let\math@cr@@@\NCC@eqcr \let\tag\tag@in@align
+ \let\label\label@in@display \let\split\insplit@
+ \ifst@rred\else \global\@eqnswtrue \fi
+ \tabskip\@mathmargin
+ \@ifempty{#1}{\settowidth\alignsep@{$\m@th\mskip\thickmuskip$}}%
+ {\setlength\alignsep@{#1}}%
+ \halign to \displaywidth\bgroup
+ \strut@ \global\column@\z@ \hfil$\displaystyle{##}$\tabskip\z@skip
+ &\column@plus \hskip\alignsep@ \hfil$\displaystyle{##}$\hfil
+ &\column@plus \hskip\alignsep@ $\displaystyle{##{}}$\hfil
+ \tabskip\@centering
+ &\column@plus \llap{##}\tabskip\z@skip\cr
+}
+\def\NCC@eqcr{%
+ \let\@tempa\relax
+ \ifcase\column@ \def\@tempa{&&&}\or \def\@tempa{&&}\or\def\@tempa{&}%
+ \else
+ \let\@tempa\@empty
+ \@latex@error{Too many columns in eqnarray environment}\@ehc
+ \fi
+ \@tempa
+ \ifst@rred\nonumber\fi
+ \if@eqnsw \global\tag@true \fi
+ \iftag@ \@lign\strut@
+ \iftagsleft@ \rlap{\hskip -\displaywidth\make@display@tag}%
+ \else \make@display@tag \fi
+ \fi
+ \ifst@rred\else\global\@eqnswtrue\fi
+ \cr
+}
+\def\NCC@eeqs{\math@cr\egroup$$}
+\@ifundefined{NCC@op}{\endinput}{}
+\DeclareRobustCommand\frac{\NCC@op@select\mfrac{\genfrac{}{}{}{}}}
+\DeclareRobustCommand\binom{\NCC@op@select\mbinom{\genfrac()\z@{}}}
+\def\NCC@op@select#1#2#3#4{%
+ \mathchoice{#1{#3}{#4}}{#1{#3}{#4}}%
+ {\scriptstyle#2{#3}{#4}}{\scriptscriptstyle#2{#3}{#4}}%
+}
+\def\@tempa#1#2{%
+ \ifx#2\@undefined \let#2#1\fi
+ \def#1{\DOTSB\medop{#2}}%
+}
+\@tempa \coprod \coprod@
+\@tempa \bigvee \bigvee@
+\@tempa \bigwedge \bigwedge@
+\@tempa \biguplus \biguplus@
+\@tempa \bigcap \bigcap@
+\@tempa \bigcup \bigcup@
+\@tempa \prod \prod@
+\@tempa \sum \sum@
+\@tempa \bigotimes \bigotimes@
+\@tempa \bigoplus \bigoplus@
+\@tempa \bigodot \bigodot@
+\@tempa \bigsqcup \bigsqcup@
+\def\@tempa#1#2#3{\let#3#2%
+ \DeclareRobustCommand#2{\mathop{\medmath{#3}}}%
+ \def#1{\DOTSI\NCC@op@prepare{#2}}%
+}
+\@tempa\int \intop \NCC@op@int
+\@tempa\oint \ointop \NCC@op@oint
+\let\@tempa\relax
+\renewcommand*{\MultiIntegral}[1]{%
+ \edef\NCC@op{\noexpand\intop
+ \ifnum#1=\z@\noexpand\intdots@\else\noexpand\intkern@\fi
+ \ifnum#1>\tw@\noexpand\intop\noexpand\intkern@\fi
+ \ifnum#1>\thr@@\noexpand\intop\noexpand\intkern@\fi
+ \noexpand\intop
+ }%
+ \let\NCC@op@print\NCC@op@printm
+ \NCC@op@prepare@
+}
+\def\intkern@{\kern-\NCC@op@kern}
+\def\intdots@{\setlength\@tempdima{\NCC@op@kern}%
+ \kern-.4\@tempdima{\cdotp}\mkern1.5mu{\cdotp}%
+ \mkern1.5mu{\cdotp}\kern-.4\@tempdima}
+\endinput
+%%
+%% End of file `nccmath.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/nccparskip.sty b/Master/texmf-dist/tex/latex/ncctools/nccparskip.sty
new file mode 100644
index 00000000000..359be7e84bd
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/nccparskip.sty
@@ -0,0 +1,48 @@
+%%
+%% This is file `nccparskip.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nccparskip.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: nccparskip.dtx Copyright (C) 2002--2004 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{nccparskip}
+ [2004/12/08 v1.1 Parskip Control Package (NCC)]
+\newcommand*{\SetParskip}[1]{\setlength{\parskip}{#1}\parsep\parskip}
+\partopsep\z@
+\topsep\z@
+\itemsep\z@
+\def\@listi{\leftmargin\leftmargini}
+\let\@listI\@listi
+\def\@listii{\leftmargin\leftmarginii
+ \labelwidth\leftmarginii \advance\labelwidth-\labelsep}
+\def\@listiii{\leftmargin\leftmarginiii
+ \labelwidth\leftmarginiii \advance\labelwidth-\labelsep}
+\let\NCC@normalsize\normalsize
+\def\normalsize{\let\NCC@temp\@listi\NCC@normalsize\let\@listi\NCC@temp}
+\let\NCC@small\small
+\def\small{\let\NCC@temp\@listi\NCC@small\let\@listi\NCC@temp}
+\let\NCC@footnotesize\footnotesize
+\def\footnotesize{\let\NCC@temp\@listi\NCC@footnotesize\let\@listi\NCC@temp}
+\normalsize
+\SetParskip{4pt plus 1pt minus .2pt}
+\endinput
+%%
+%% End of file `nccparskip.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/nccpic.sty b/Master/texmf-dist/tex/latex/ncctools/nccpic.sty
new file mode 100644
index 00000000000..eaeeace775f
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/nccpic.sty
@@ -0,0 +1,86 @@
+%%
+%% This is file `nccpic.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nccpic.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: nccpic.dtx Copyright (C) 2002--2005 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesPackage{nccpic}
+ [2005/03/06 v1.2 NCC Extention of Graphicx (NCC)]
+\RequirePackageWithOptions{graphicx}[1999/02/16]
+\RequirePackage{nccboxes}[2002/01/09]
+\def\@tempa{dvips.def}
+\ifx\Gin@driver\@tempa
+ \DeclareGraphicsExtensions{.eps,.ps,.eps.gz,.ps.gz,.eps.Z,%
+ .bmp,.msp,.pcx,.pict,.pntg}
+\else
+ \def\@tempa{dvipdf.def}
+ \ifx\Gin@driver\@tempa
+ \DeclareGraphicsExtensions{.eps,.ps,.eps.gz,.ps.gz,.eps.Z,%
+ .bmp,.msp,.jpg}
+ \fi
+\fi
+\graphicspath{{graphics/}}
+\newcommand\draftgraphics{\Gin@drafttrue}
+\newcommand\finalgraphics{\Gin@draftfalse}
+\newcommand*{\ipic}[1]{%
+ \begingroup \let\input@path\Ginput@path
+ \ignorespaces\input{#1.pic}\unskip
+ \endgroup
+}
+\newcommand{\putimage}{}
+\def\putimage(#1,#2){%
+ \@ifnextchar[{\NCC@Gim(#1,#2)}{\NCC@Gim(#1,#2)[#1,#2]}%
+}
+\def\NCC@Gim(#1,#2)[#3,#4]{%
+ \ifGin@draft
+ \def\NCC@temp(##1,##2)##3{%
+ \edef\@tempa{##3}%
+ \put(0,0){%
+ \framebox(#1,#2){\ttfamily\expandafter\strip@prefix\meaning\@tempa}%
+ }%
+ }%
+ \else
+ \def\NCC@temp(##1,##2)##3{%
+ \put(##1,##2){%
+ \includegraphics[width=#3\unitlength,height=#4\unitlength]{##3}%
+ }%
+ }%
+ \fi
+ \@ifnextchar({\NCC@Gim@(#1,#2)}{\NCC@Gim@(#1,#2)(0,0)}%
+}
+\def\NCC@Gim@(#1,#2)(#3,#4)#5{%
+ \jvbox{\Strut}[t]{%
+ \begin{picture}(#1,#2)\NCC@temp(#3,#4){#5}\end{picture}%
+ }%
+}
+\let\NCC@Ginsetfile\Gin@setfile
+\def\Gin@setfile#1#2{%
+ \ifGin@bbox\else
+ \ifx\\#2\\\else
+ \IfFileExists{\Gin@base#2}{}{\Gread@false}%
+ \fi
+ \fi
+ \NCC@Ginsetfile{#1}{#2}%
+}
+\endinput
+%%
+%% End of file `nccpic.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/nccrules.sty b/Master/texmf-dist/tex/latex/ncctools/nccrules.sty
new file mode 100644
index 00000000000..8d9bf8802e9
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/nccrules.sty
@@ -0,0 +1,126 @@
+%%
+%% This is file `nccrules.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nccrules.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: nccrules.dtx Copyright (C) 2005 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{nccrules}
+ [2005/05/13 v1.0 More rules (NCC)]
+\RequirePackage{mboxfill}
+\newcommand\dashrule{}
+\DeclareRobustCommand*\dashrule[3][\z@]{%
+ \setbox\@tempboxa\vbox{}%
+ \NCC@composedash{\NCC@vdash{#2}}{#3}%
+ \setlength\@tempdima{#1}\leavevmode
+ \raise\@tempdima\hbox{%
+ \vbox to\@tempdimc{\vss\unvbox\@tempboxa\vss}}%
+}
+\newcommand*\dashrulefill[1][\z@]{%
+ \@ifnextchar[{\NCC@dashfill{#1}}{\NCC@dashfill{#1}[]}%
+}
+\def\NCC@dashfill#1[#2]#3#4{%
+ \NCC@composedash{}{#3}%
+ \advance\@tempdimb-\@tempdimc
+ \setbox\@tempboxa\hb@xt@-\@tempdimb
+ {\hss\dashrule[#1]{#3}{#4}\hss}%
+ \mboxfill[\@tempdimc][#2]{\box\@tempboxa}%
+}
+\def\NCC@composedash#1#2{%
+ \@tempdimb\z@ % Last space
+ \@tempdimc\z@ % Accumulator
+ \@tempswatrue % True value means producing an entry
+ \NCC@parsedash#2 ! !\@nil{%
+ \advance\@tempdimc\@tempdima
+ \if@tempswa #1\@tempswafalse \else
+ \@tempdimb\@tempdima \@tempswatrue
+ \fi
+ }%
+}
+\def\NCC@parsedash#1 #2\@nil#3{%
+ \if/#1/\else % Empty arg. ignored
+ \ifx#1!\else % Exclamation mark ends the list
+ \@defaultunits\@tempdima#1pt\relax\@nnil
+ #3\NCC@parsedash#2\@nil{#3}%
+ \fi
+ \fi
+}
+\def\NCC@vdash#1{%
+ \setbox\@tempboxa\vbox{%
+ \unvbox\@tempboxa \vskip\@tempdimb
+ \setbox\@tempboxa\hbox{}%
+ \@tempskipa\@tempdima % Save rule height in \@tempskipa
+ \NCC@composedash{\NCC@hdash}{#1}%
+ \hb@xt@\@tempdimc{\hss\unhbox\@tempboxa\hss}%
+ }%
+}
+\def\NCC@hdash{%
+ \setbox\@tempboxa\hbox{%
+ \unhbox\@tempboxa \kern\@tempdimb
+ \vrule \@width\@tempdima \@height\@tempskipa
+ }%
+}
+\def\NCC@fnoterule#1#2{%
+ \setlength\@tempdima{#1}%
+ \setbox\@tempboxa\hb@xt@\@tempdima{#2}%
+ \@tempdima\ht\@tempboxa \advance\@tempdima\dp\@tempboxa
+ \@tempdimb 2.8\p@ \@tempdimc .5\@tempdima
+ \ifdim\@tempdimc>\@tempdimb \@tempdimb\@tempdimc \fi
+ \advance\@tempdimb\@tempdimc
+ \kern-\@tempdimb
+ \box\@tempboxa
+ \advance\@tempdimb -\@tempdima
+ \kern\@tempdimb
+}
+\def\NCC@fnotedashrule#1#2#3{%
+ \NCC@fnoterule{#1}{\def\@tempa{#2}%
+ \ifx\@tempa\@empty
+ \@tempskipb\@tempdima \dashrule{\@tempskipb}{#3}%
+ \else
+ \dashrulefill[\z@][s]{#2}{#3}%
+ \fi
+ }%
+}
+\def\NCC@fnotecreate#1{%
+ \edef\@tempa{\noexpand\newcommand*%
+ \expandafter\noexpand\csname #1footnoterule\endcsname}%
+ \@tempa
+}
+\@onlypreamble\NCC@fnotecreate
+\def\NCC@fnoteprepare#1#2{%
+ \@ifnextchar[{#1{#2}}{#1{#2}[.4\columnwidth]}%
+}
+\@onlypreamble\NCC@fnoteprepare
+\newcommand\newfootnoterule{\NCC@fnoteprepare\NCC@fnotedriver}
+\def\NCC@fnotedriver#1[#2]#3{%
+ \NCC@fnotecreate{#1}{\NCC@fnoterule{#2}{#3}}%
+}
+\@onlypreamble\newfootnoterule
+\@onlypreamble\NCC@fnotedriver
+\newcommand\newfootnotedashrule{\NCC@fnoteprepare\NCC@fnotedashdriver}
+\def\NCC@fnotedashdriver#1[#2]#3#4{%
+ \NCC@fnotecreate{#1}{\NCC@fnotedashrule{#2}{#3}{#4}}%
+}
+\@onlypreamble\newfootnotedashrule
+\@onlypreamble\NCC@fnotedashdriver
+\endinput
+%%
+%% End of file `nccrules.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/nccsect.sty b/Master/texmf-dist/tex/latex/ncctools/nccsect.sty
new file mode 100644
index 00000000000..bc8c6349896
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/nccsect.sty
@@ -0,0 +1,675 @@
+%%
+%% This is file `nccsect.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nccsect.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: nccsect.dtx Copyright (C) 2002--2005 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{nccsect}
+ [2005/06/15 v1.3 Extended Section, Caption, and TOC Handling (NCC)]
+\@ifpackageloaded{nccthm}{}{%
+ \def\NCC@secskip#1{%
+ \if@noskipsec \leavevmode \fi \par
+ \if@nobreak \everypar{}\else
+ \addpenalty\@secpenalty
+ \addvspace{#1}%
+ \fi
+ }
+ \def\NCC@runskip{2.75ex \@plus 1ex \@minus .2ex}
+}
+\newcommand{\runinsectionskip}{\NCC@secskip{\NCC@runskip}}
+\newif\ifNCC@nosectag
+\newif\ifNCC@secstartag
+\newif\ifNCC@nosecmark
+\newif\ifNCC@noaux
+\let\NCC@global\global
+\def\NCC@sec@reset@controls{%
+ \NCC@global\NCC@nosectagfalse
+ \NCC@global\NCC@secstartagfalse
+ \NCC@global\let\NCC@sectag\relax
+ \NCC@global\NCC@nosecmarkfalse
+ \NCC@global\let\NCC@secmark\relax
+ \NCC@global\NCC@noauxfalse
+}
+\NCC@sec@reset@controls
+\newcommand{\norunninghead}{\NCC@global\NCC@nosecmarktrue}
+\newcommand*{\runninghead}[1]{\NCC@global\def\NCC@secmark##1{##1{#1}}}
+\newcommand{\noheadingtag}{\NCC@global\NCC@nosectagtrue}
+\newcommand{\headingtag}{%
+ \@ifstar{\NCC@global\NCC@secstartagtrue\NCC@setsectag}{\NCC@setsectag}%
+}
+\def\NCC@setsectag#1{\NCC@global\def\NCC@sectag{#1}}
+\newcommand{\skipwritingtoaux}{\NCC@global\NCC@noauxtrue}
+\def\NCC@makesection#1#2#3#4{%
+ \ifNCC@secstartag
+ \let\@svsec\NCC@sectag
+ \NCC@make{}%
+ \else
+ \ifx\NCC@sectag\relax
+ \ifNCC@nosectag
+ \edef\NCC@restsec{%
+ \noexpand\c@secnumdepth \the\c@secnumdepth\relax
+ }%
+ \c@secnumdepth -1000
+ \else
+ \let\NCC@restsec\relax
+ \ifnum#2>\c@secnumdepth \else\refstepcounter{#1}\fi
+ \fi
+ \else
+ \expandafter\let\expandafter\NCC@thesec\csname the#1\endcsname
+ \def\NCC@restsec{%
+ \expandafter\let\csname the#1\endcsname\NCC@thesec
+ }%
+ \expandafter\let\csname the#1\endcsname\NCC@sectag
+ \protected@edef\@currentlabel{\NCC@sectag}%
+ \fi
+ \ifnum #2>\c@secnumdepth
+ \let\@svsec\@empty
+ \else
+ \protected@edef\@svsec{%
+ \protect\NCC@makesectag{\csname the#1\endcsname}%
+ }%
+ \fi
+ \let\NCC@makemark\@empty
+ \@ifundefined{#1mark}{}{%
+ \ifx\NCC@secmark\relax
+ \ifNCC@nosecmark \else
+ \def\NCC@makemark{\csname #1mark\endcsname{#3}}%
+ \fi
+ \else
+ \let\NCC@savesecmark\NCC@secmark
+ \def\NCC@makemark{%
+ \NCC@savesecmark{\csname #1mark\endcsname}%
+ \let\NCC@savesecmark\relax
+ }%
+ \fi
+ }%
+ \ifNCC@noaux
+ \NCC@make{\NCC@makemark \NCC@restsec}%
+ \else
+ \NCC@make{\NCC@makemark #4\NCC@restsec}%
+ \fi
+ \fi
+ \NCC@sec@reset@controls
+}
+\newcommand{\indentaftersection}{\@afterindenttrue}
+\newcommand{\noindentaftersection}{\@afterindentfalse}
+\newcommand*{\SectionTagSuffix}[1]{\def\NCC@asecnum{#1}}
+\@onlypreamble\SectionTagSuffix
+\def\NCC@makesectag@default#1{#1\NCC@asecnum}
+\def\NCC@defaultsectag{\let\NCC@makesectag\NCC@makesectag@default}
+\NCC@defaultsectag
+\def\NCC@secname#1{%
+ \ifcase#1\relax \or section\or subsection\or subsubsection\or
+ paragraph\or subparagraph\else section@\romannumeral#1\fi
+}
+\def\@startsection#1#2#3#4#5#6{%
+ \@tempskipa #4\relax
+ \ifdim \@tempskipa <\z@ \@temskipa -\@tempskipa \fi
+ \NCC@secskip \@tempskipa
+ \secdef{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}{\@ssect{#3}{#4}{#5}{#6}}%
+}
+\def\@ssect#1#2#3#4#5{%
+ \let\@svsec\@empty
+ \NCC@makesec{#1}{#4}{#5}{#3}{}%
+ \NCC@sec@reset@controls
+ \let\NCC@makesec\NCC@makesect
+ \NCC@defaultsectag
+}
+\def\@sect#1#2#3#4#5#6[#7]#8{%
+ \def\NCC@make{\NCC@makesec{#3}{#6}{#8}{#5}}%
+ \NCC@makesection{#1}{#2}{#7}{%
+ \addcontentsline{toc}{\NCC@secname{#2}}{%
+ \ifnum #2>\c@secnumdepth \else
+ \protect\numberline{\csname the#1\endcsname}%
+ \fi
+ #7%
+ }%
+ }%
+ \let\NCC@makesec\NCC@makesect
+ \NCC@defaultsectag
+}
+\def\NCC@makesect#1#2#3#4#5{%
+ \@tempskipa #4\relax
+ \ifdim \@tempskipa>\z@
+ \begingroup \normalfont
+ #2{\@hangfrom{\hskip #1\relax\@svsec}%
+ \interlinepenalty \@M\ignorespaces #3\@@par}%
+ \endgroup
+ #5%
+ \else
+ \def\@svsechd{{\normalfont #2{\hskip #1\relax
+ \@svsec\ignorespaces #3}}#5}%
+ \fi
+ \@xsect{#4}%
+}
+\let\NCC@makesec\NCC@makesect
+\newcommand*{\sectionstyle}[1]{%
+ \@ifundefined{NCC@sec@#1}%
+ {\PackageError{nccsect}{Unknown section style `#1'}{}}%
+ {\csname NCC@sec@#1\endcsname}%
+}
+\def\NCC@sec@hangindent{\def\NCC@sec##1{\@hangfrom{##1}}}
+\@namedef{NCC@sec@hangindent*}{%
+ \def\NCC@sec##1{\@hangfrom{##1}\rightskip\@flushglue}%
+}
+\def\NCC@sec@parindent{\def\NCC@sec##1{\@hangfrom\indent##1}}
+\@namedef{NCC@sec@parindent*}{%
+ \def\NCC@sec##1{\@hangfrom\indent\rightskip\@flushglue##1}%
+}
+\def\NCC@sec@center{\def\NCC@sec##1{\centering##1}}
+\def\NCC@makesecx#1#2#3#4#5{%
+ \begingroup\normalfont
+ #2{\NCC@sec{\@svsec}\interlinepenalty \@M\ignorespaces #3\@@par}%
+ \endgroup #5%
+ \par \nobreak \vskip #4\relax \@afterheading \ignorespaces
+}
+\@ifundefined{chapter}{%
+ \def\NCC@startmainsec#1#2#3#4#5{%
+ \def\NCC@makesectag##1{\leavevmode#2\partname\nobreakspace##1}%
+ \NCC@secskip{#3}%
+ \secdef{\@part{#1}{#4}{#5}}{\@spart{#1}{#4}{#5}}%
+ }
+ \def\@spart#1#2#3#4{%
+ \let\@svsec\@empty
+ \NCC@makepart{#1}{#3}{#4}{#2}{}%
+ \NCC@sec@reset@controls
+ \NCC@defaultsectag
+ }
+ \def\@part#1#2#3[#4]#5{%
+ \def\NCC@make{\NCC@makepart{#1}{#3}{#5}{#2}}%
+ \NCC@makesection{part}{\z@}{#4}{%
+ \addcontentsline{toc}{part}{%
+ \ifnum \c@secnumdepth>\m@ne \protect\numberline{\thepart}\fi
+ #4%
+ }%
+ }%
+ \NCC@defaultsectag
+ }
+ \def\NCC@makepart#1#2#3#4#5{%
+ \begingroup \normalfont
+ \ifx\@svsec\@empty \else #1{\@svsec\@@par}\nobreak \fi
+ \interlinepenalty \@M #1{#2{#3}\@@par}%
+ \endgroup
+ #5%
+ \par\nobreak \vskip #4\relax \@afterheading \ignorespaces
+ }
+ \providecommand*\partmark[1]{\markboth{}{}}
+}{
+ \def\NCC@startmainsec#1#2#3#4#5{%
+ \NCC@startchap
+ \def\NCC@makesectag##1{\leavevmode#2\@chapapp\nobreakspace##1}%
+ \secdef{\@chapter{#1}{#3}{#4}{#5}}{\@schapter{#1}{#3}{#4}{#5}}%
+ }
+ \newcommand\beforechapter[1]{\gdef\NCC@beforechapter{#1}}
+ \beforechapter{}
+ \def\@schapter#1#2#3#4#5{%
+ \let\@svsec\@empty
+ \NCC@makechapter{#1}{#2}{#4}{#5}{#3}{}%
+ \NCC@sec@reset@controls
+ \NCC@defaultsectag
+ }
+ \def\@chapter#1#2#3#4[#5]#6{%
+ \@ifundefined{if@mainmatter}{}{\if@mainmatter\else\noheadingtag\fi}%
+ \def\NCC@make{\NCC@makechapter{#1}{#2}{#4}{#6}{#3}}%
+ \NCC@makesection{chapter}{\z@}{#5}{%
+ \typeout{\@chapapp\space\thechapter.}%
+ \addcontentsline{toc}{chapter}{%
+ \ifnum \c@secnumdepth>\m@ne
+ \protect\numberline{\NCC@thetocchapter}\fi
+ #5%
+ }%
+ \NCC@infloats{\addtocontents{\@nameuse{ext@\@captype}}%
+ {\protect\runinsectionskip}}%
+ }%
+ \NCC@defaultsectag
+ }
+ \def\NCC@startchap{%
+ \if@openright\cleardoublepage\else\clearpage\fi
+ \thispagestyle{plain}\global\@topnum\z@
+ }
+ \def\NCC@thetocchapter{\thechapter}
+ \def\NCC@makechapter#1#2#3#4#5#6{%
+ \if@twocolumn
+ \@topnewpage[\NCC@makechaphead{#1}{#2}{#3}{#4}{#5}]%
+ \else
+ \NCC@makechaphead{#1}{#2}{#3}{#4}{#5}%
+ \fi
+ #6%
+ \@afterheading
+ \ignorespaces
+ }
+ \def\NCC@makechaphead#1#2#3#4#5{%
+ \ifx\NCC@beforechapter\@empty
+ \StartFromTextArea \vspace{#2}%
+ \else
+ \begingroup
+ \@twocolumnfalse
+ \let\NCC@global\@empty
+ \NCC@sec@reset@controls
+ \normalfont \NCC@beforechapter \par
+ \endgroup
+ \beforechapter{}%
+ \fi
+ \begingroup \normalfont
+ \ifx\@svsec\@empty \else #1{\@svsec\@@par}\fi
+ \interlinepenalty \@M #1{#3{#4}\@@par}%
+ \endgroup
+ \par\nobreak \vskip #5\relax
+ }
+ \newcommand*\epigraph[1][\NCC@epigraphwidth]{\NCC@epigraph{#1}}
+ \newcommand*\epigraphparameters[5]{%
+ \def\NCC@epigraphwidth{#2}%
+ \long\def\NCC@epigraph##1##2##3{
+ \beforechapter{\def\epigraphwidth{##1}%
+ #1\par
+ \NCC@makeepigraph{#3}{##2}{#4{##3}}\par
+ #5%
+ }%
+ }%
+ }
+ \long\def\NCC@makeepigraph#1#2#3{%
+ \@begin@tempboxa\vtop{\setlength{\hsize}{\epigraphwidth}%
+ \@parboxrestore{#2\@@par}#3\@@par
+ }%
+ \setlength\@tempdima{#1}\advance\@tempdima -\totalheight
+ \ifdim\@tempdima>\z@
+ \advance\@tempdima\depth
+ \dp\@tempboxa\@tempdima
+ \fi
+ \leavevmode\box\@tempboxa
+ \@end@tempboxa
+ }
+}
+\newcommand*{\CaptionTagSuffix}[1]{\def\NCC@acapnum{#1}}
+\@onlypreamble\CaptionTagSuffix
+\newcommand*\captionstyle[1][]{%
+ \NCC@set@capkey{style}{style}{#1}%
+}
+\newcommand*\captiontagstyle[1][]{%
+ \NCC@set@capkey{tag}{tag style}{#1}%
+}
+\newcommand*\captionwidth[2][]{%
+ \NCC@prepare@capkey{width}{#1}{\setlength{\hsize}{#2}}%
+}
+\def\NCC@set@capkey#1#2#3#4{%
+ \@ifundefined{NCC@makecap#1@#4}
+ {\PackageError{nccsect}{Unknown caption #2 `#4'}{}%
+ }{%
+ \edef\@tempa{\noexpand\NCC@prepare@capkey{#1}{#3}{%
+ \expandafter\noexpand\csname NCC@makecap#1@#4\endcsname
+ }%
+ }%
+ \@tempa
+ }%
+}
+\def\NCC@prepare@capkey#1#2{%
+ \def\@tempa{#2}%
+ \ifx\@tempa\@empty
+ \ifx\@captype\@undefined \else \let\@tempa\@captype \fi
+ \fi
+ \expandafter\def\csname NCC@cap#1@\@tempa\endcsname
+}
+\def\NCC@apply@cap#1{%
+ \@ifundefined{NCC@cap#1@\@captype}%
+ {\let\@tempa\@empty}{\let\@tempa\@captype}%
+ \csname NCC@cap#1@\@tempa\endcsname
+}
+\def\NCC@startcaption#1#2#3{%
+ \secdef{\NCC@caption{#1}{#2}{#3}}{\NCC@scaption{#1}{#2}{#3}}%
+}
+\long\def\NCC@scaption#1#2#3#4{%
+ \let\@svsec\@empty
+ \NCC@makecaption{#3}{#1}{#4}{#2}{}%
+ \NCC@sec@reset@controls
+ \NCC@defaultsectag
+}
+\long\def\NCC@caption#1#2#3[#4]#5{%
+ \def\NCC@make{\NCC@makecaption{#3}{#1}{#5}{#2}}%
+ \NCC@makesection{\@captype}{\z@}{#4}{%
+ \begingroup
+ \let\centering\@empty
+ \addcontentsline{\@nameuse{ext@\@captype}}{\@captype}{%
+ \ifnum \c@secnumdepth>\m@ne
+ \protect\numberline{\@nameuse{the\@captype}}\fi
+ #4%
+ }%
+ \endgroup
+ }%
+ \NCC@defaultsectag
+}
+\long\def\NCC@makecaption#1#2#3#4#5{%
+ \begingroup\par\normalfont
+ #1{}\addvspace{#2}\noindent
+ \ifx\@svsec\@empty \@tempcnta\z@ \else \@tempcnta\@ne \fi
+ \def\@tempa{#3}%
+ \ifx\@tempa\@empty \else \advance\@tempcnta\tw@ \fi
+ \ifnum\@tempcnta=\z@ \else
+ \vtop{\NCC@apply@cap{width}\@parboxrestore
+ \NCC@apply@cap{tag}{#3}\@@par}\par
+ \setlength\@tempskipa{#4}%
+ \ifdim\@tempskipa=\z@ \else \vskip \@tempskipa\fi
+ \fi
+ \endgroup
+ #5%
+}
+\long\def\NCC@makecaptag@para#1{%
+ \ifnum\@tempcnta<\thr@@ \let\NCC@acapnum\@empty\fi
+ \NCC@apply@cap{style}{{\@svsec}\ignorespaces#1}%
+}
+\def\NCC@makecaptag@left{\NCC@separate@captag\raggedright}
+\def\NCC@makecaptag@center{\NCC@separate@captag\centering}
+\def\NCC@makecaptag@right{\NCC@separate@captag\raggedleft}
+\long\def\NCC@separate@captag#1#2{%
+ \ifodd\@tempcnta
+ {\let\NCC@acapnum\@empty #1\@svsec\@@par}%
+ \fi
+ \ifnum\@tempcnta>\@ne
+ \ifnum\@tempcnta=\thr@@ \vskip .5ex\fi
+ \NCC@apply@cap{style}{#2}%
+ \fi
+}
+\long\def\NCC@makecapstyle@default#1{%
+ \setbox\@tempboxa\vtop{\hsize\linewidth\@parboxrestore#1\@@par}%
+ \ifdim\dp\@tempboxa<\baselineskip \centering#1%
+ \else \box\@tempboxa \fi
+}
+\long\def\NCC@makecapstyle@para#1{#1}
+\long\def\NCC@makecapstyle@left#1{\raggedright#1}
+\long\def\NCC@makecapstyle@right#1{\raggedleft#1}
+\long\def\NCC@makecapstyle@center#1{\centering#1}
+\long\def\NCC@makecapstyle@centerlast#1{%
+ \leftskip\z@\@plus 1fil%
+ \rightskip\z@\@plus -1fil%
+ \parfillskip\z@\@plus 2fil\relax#1%
+}
+\newcommand*{\RegisterFloatType}[1]{%
+ \edef\NCC@floatlist{\NCC@floatlist{#1}}%
+}
+\let\NCC@floatlist\@empty
+\@onlypreamble\RegisterFloatType
+\def\NCC@infloats#1{%
+ \@tempcnta\z@
+ \let\NCC@temp \@captype
+ \expandafter \@tfor \expandafter \@captype
+ \expandafter :\expandafter =\NCC@floatlist \do
+ {\advance\@tempcnta\@ne #1}%
+ \let\@captype\NCC@temp
+}
+\newcommand{\DeclareSection}{\@ifstar{\NCC@dsecx}{\NCC@dsec}}
+\def\NCC@dsec#1#2{%
+ \@ifnextchar[{\NCC@dsect{#1}{#2}}{\NCC@dsect{#1}{#2}[\z@skip]}%
+}
+\@onlypreamble\DeclareSection
+\@onlypreamble\NCC@dsec
+\def\NCC@dsect#1#2[#3]#4#5#6#7{%
+ \ifnum#1>\z@
+ \expandafter\def\csname NCC@section\romannumeral#1\endcsname{%
+ \def\NCC@makesectag####1{#4####1\NCC@asecnum}%
+ \let\NCC@makesec\NCC@makesect
+ \@startsection{#2}{#1}{#3}{#5}{#6}{#7}}%
+ \else
+ \ifnum#1=\z@
+ \def\NCC@mainsection{%
+ \NCC@startmainsec{\@hangfrom{\hskip #3}\rightskip\@flushglue}%
+ {#4}{#5}{#6}{#7}%
+ }%
+ \else
+ \NCC@dsecf{#2}{#4}{#5}{#6}{#7}%
+ \fi
+ \fi
+}
+\@onlypreamble\NCC@dsect
+\def\NCC@dsecx#1#2#3#4#5#6{%
+ \ifnum#1>\z@
+ \expandafter\def\csname NCC@section\romannumeral#1\endcsname{%
+ \def\NCC@makesectag####1{#3####1\NCC@asecnum}%
+ \let\NCC@makesec\NCC@makesecx
+ \@startsection{#2}{#1}{\z@}{#4}{#5}{#6}}%
+ \else
+ \ifnum#1=\z@
+ \def\NCC@mainsection{%
+ \NCC@startmainsec{\NCC@sec{}\rightskip\@flushglue}%
+ {#3}{#4}{#5}{#6}%
+ }%
+ \else
+ \NCC@dsecf{#2}{#3}{#4}{#5}{#6}%
+ \fi
+ \fi
+}
+\@onlypreamble\NCC@dsecx
+\def\NCC@dsecf#1#2#3#4#5{%
+ \expandafter\def\csname NCC@cap@#1\endcsname{%
+ \def\NCC@makesectag####1{#2{\csname #1name\endcsname}%
+ \nobreakspace####1\NCC@acapnum}%
+ \NCC@startcaption{#3}{#4}{#5}%
+ }%
+}
+\@onlypreamble\NCC@dsectf
+\long\def\@makecaption#1#2{%
+ \begingroup
+ \skipwritingtoaux
+ \addtocounter\@captype\m@ne
+ \csname NCC@cap@\@captype\endcsname[]{#2}%
+ \endgroup
+}
+\AtBeginDocument{%
+ \@ifpackageloaded{supertabular}{%
+ \long\def\ST@caption#1[#2]#3{\par%
+ \addcontentsline{\csname ext@#1\endcsname}{#1}%
+ {\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}}%
+ \def\@captype{#1}%
+ \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
+ }%
+ }{}%
+ \@ifpackageloaded{longtable}{%
+ \def\LT@makecaption#1#2#3{%
+ \LT@mcol\LT@cols c{\hbox to\z@{\hss
+ \parbox[t]\LTcapwidth{\def\@captype{table}%
+ \ifx#1\@gobble \NCC@cap@table*{#3}%
+ \else \@makecaption{\fnum@table}{#3}%
+ \fi
+ }%
+ \hss
+ }}%
+ }%
+ }{}%
+}
+\newcommand*{\DeclareTOCEntry}[5]{%
+ \@ifnextchar[{\NCC@dtoc{#1}{#2}{#3}{#4}{#5}}%
+ {\NCC@dtoc{#1}{#2}{#3}{#4}{#5}%
+ [{#3#4\let\NCC@do\@firstoftwo\NCC@atocnum}]}%
+}
+\def\NCC@dtoc#1#2#3#4#5[#6]{%
+ \ifnum#1<\z@
+ \@tempswatrue
+ \NCC@infloats{%
+ \ifnum#1=-\@tempcnta
+ \expandafter\def\csname l@\@captype\endcsname
+ {\NCC@tocentry\z@{#2}{#3}{#4}{#5}}%
+ \@tempswafalse
+ \@break@tfor
+ \fi
+ }%
+ \if@tempswa
+ \@tempcnta#1\relax
+ \@tempcnta -\@tempcnta
+ \PackageError{nccsect}
+ {Float type registration number \the\@tempcnta\space
+ is out of range}{}%
+ \fi
+ \else
+ \ifnum#1>\z@
+ \edef\@tempa{\noexpand\def\expandafter\noexpand
+ \csname l@\NCC@secname{#1}\endcsname}%
+ \else
+ \@ifundefined{chapter}{\def\@tempa{\def\l@part}}%
+ {\def\@tempa{\def\l@chapter}}%
+ \fi
+ \@tempa{\NCC@tocentry{#1}{#2}{#3}{#4}{#5}}%
+ \@tempcnta #1\relax \advance\@tempcnta\@ne
+ \expandafter\def\csname l@tocskip@\romannumeral\@tempcnta
+ \endcsname{\NCC@tocadj{#5{#6}}}%
+ \fi
+}
+\@onlypreamble\DeclareTOCEntry
+\@onlypreamble\NCC@dtoc
+\def\NCC@tocentry#1#2#3#4#5#6#7{%
+ \ifnum #1>\c@tocdepth \else
+ \par\begingroup\normalfont #2%
+ \let\applystyle\@firstoftwo
+ \@tempdimb\z@ \@tempcnta #1\relax
+ \@whilenum \@tempcnta >\z@\do
+ {\@nameuse{l@tocskip@\romannumeral \@tempcnta}%
+ \advance\@tempcnta\m@ne}%
+ \def\NCC@maketocnum##1{\NCC@do{#5}{}{#3##1\NCC@atocnum}}%
+ \settowidth\@tempdima{\let\NCC@do\@firstoftwo\NCC@maketocnum{#4}}%
+ \@dottedtocline{#1}{\@tempdimb}{\@tempdima}%
+ {\let\NCC@do\@secondoftwo#5{\ignorespaces#6\unskip}}%
+ {\let\applystyle\@secondoftwo#5{#7}}%
+ \@nobreakfalse
+ \endgroup
+ \fi
+}
+\def\NCC@tocadj#1{\settowidth\@tempdima{#1}\advance\@tempdimb\@tempdima}
+\def\numberline#1{%
+ \setbox\@tempboxa\hbox{\NCC@maketocnum{#1}}%
+ \ifdim \wd\@tempboxa > \@tempdima
+ \box\@tempboxa
+ \else
+ \hb@xt@\@tempdima{\unhbox\@tempboxa\hfil}%
+ \fi
+ \ignorespaces
+}
+\def\NCC@maketocnum#1{#1\let\NCC@do\@secondoftwo\NCC@atocnum}
+\newcommand*{\NumberlineSuffix}[2]{\def\NCC@atocnum{\NCC@do{#1}{#2}}}
+\@onlypreamble\NumberlineSuffix
+\newcommand*\TOCMarginDrift[1]{%
+ \def\@tempa{#1}%
+ \ifx\@tempa\@empty \let\NCC@tocdrift\@empty
+ \else \def\NCC@tocdrift{\@plus #1\relax}\fi
+}
+\TOCMarginDrift{}
+\newcommand*{\PnumPrototype}[1]{\def\NCC@pnum{#1}\NCC@setpnum}
+\@onlypreamble\PnumPrototype
+\def\NCC@setpnum{%
+ \settowidth\@tempdima{\NCC@pnum}%
+ \edef\@pnumwidth{\the\@tempdima}%
+ \advance\@tempdima 1em
+ \edef\@tocrmarg{\the\@tempdima \noexpand\NCC@tocdrift}%
+}
+\newcommand\StartFromTextArea{\par
+ {\parskip\z@ \strut\par}\vskip -\baselineskip
+}
+\newcommand\StartFromHeaderArea{%
+ \StartFromTextArea
+ \vskip -\headsep \vskip -\ht\strutbox
+}
+\newcommand{\bff}{\normalfont\bfseries\mathversion{bold}}
+\newcommand*{\startsection}[1]{%
+ \ifnum#1>\z@
+ \def\@tempa{\csname NCC@section\romannumeral#1\endcsname}%
+ \else
+ \ifnum#1=\z@
+ \def\@tempa{\NCC@mainsection}%
+ \else
+ \def\@tempa{\part}%
+ \fi
+ \fi
+ \@tempa
+}
+\def\section{\startsection\@ne}
+\def\subsection{\startsection\tw@}
+\def\subsubsection{\startsection\thr@@}
+\def\paragraph{\startsection4}
+\def\subparagraph{\startsection5}
+\AtBeginDocument{%
+ \def\caption{%
+ \ifx\@captype\@undefined
+ \@latex@error{\noexpand\caption outside float}\@ehd
+ \expandafter\@gobble
+ \else
+ \expandafter\@firstofone
+ \fi
+ {\csname NCC@cap@\@captype\endcsname}%
+ }%
+ \@ifundefined{abovecaptionskip}{\def\abovecaptionskip{\z@}}%
+ {\abovecaptionskip\z@}%
+ \@ifundefined{belowcaptionskip}{\def\belowcaptionskip{\z@}}%
+ {\belowcaptionskip\z@}%
+}
+\RegisterFloatType{figure}
+\RegisterFloatType{table}
+\DeclareSection{-2}{table}{}{\z@}{10pt}{}
+\DeclareSection{-1}{figure}{}{10pt}{\z@}{}
+\DeclareSection*1{section}{}%
+ {3.5ex \@plus 1ex \@minus .2ex}%
+ {2.3ex \@plus .2ex}{\Large\bff}
+\DeclareSection*2{subsection}{}%
+ {3.25ex \@plus 1ex \@minus .2ex}%
+ {1.5ex \@plus .2ex}{\large\bff}
+\DeclareSection*3{subsubsection}{}%
+ {3ex \@plus 1ex \@minus .2ex}%
+ {1.5ex \@plus .2ex}{\normalsize\bff}
+\DeclareSection4{paragraph}{}%
+ {\NCC@runskip}{-1em}{\normalsize\bff}
+\DeclareSection5{subparagraph}[\parindent]{}%
+ {\NCC@runskip}{-1em}{\normalsize\bff}
+\@ifundefined{chapter}{
+ \def\part{\startsection\z@}
+ \DeclareSection*0{part}{\Large\bff}%
+ {5ex \@plus 1ex \@minus .2ex}%
+ {4ex \@plus .2ex}{\huge\bff}
+ \DeclareTOCEntry{-2}{}{}{9}{}% table
+ \DeclareTOCEntry{-1}{}{}{9}{}% figure
+ \DeclareTOCEntry0{\runinsectionskip\def\@dotsep{1000}}{}{III}{\bff}[]
+ \DeclareTOCEntry1{\runinsectionskip}{}{9}{}
+ \DeclareTOCEntry2{}{}{9.9}{}
+ \DeclareTOCEntry3{}{}{9.9.9}{}
+}{
+ \def\chapter{\startsection\z@}
+ \DeclareSection*0{chapter}{\vspace{3ex}\huge\bff}{10ex}%
+ {8ex \@plus .2ex}{\Huge\bff}
+ \DeclareTOCEntry{-2}{}{}{9.9}{}% table
+ \DeclareTOCEntry{-1}{}{}{9.9}{}% figure
+ \DeclareTOCEntry0{\runinsectionskip\def\@dotsep{1000}%
+ \aftergroup\penalty\aftergroup\@highpenalty}{}{9}{\bff}
+ \DeclareTOCEntry1{}{}{9.9}{}[9.9]
+ \DeclareTOCEntry2{}{}{9.9.9}{}[9.9.9]
+ \DeclareTOCEntry3{}{}{}{}[\qquad]
+ \epigraphparameters{\StartFromHeaderArea\small\raggedleft}%
+ {.45\linewidth}{5\baselineskip}%
+ {\raggedleft\itshape}{\vspace{2ex}}
+}
+\DeclareTOCEntry4{}{}{}{}[\qquad]
+\DeclareTOCEntry5{}{}{}{}[\qquad]
+\noindentaftersection
+\sectionstyle{hangindent}
+\SectionTagSuffix{\quad}
+\captionwidth{\linewidth}
+\captionstyle{default}
+\captiontagstyle{para}
+\CaptionTagSuffix{:\hskip .7em \@plus .2em \@minus .1em}
+\NumberlineSuffix{\quad}{\enskip}
+\PnumPrototype{99}
+\endinput
+%%
+%% End of file `nccsect.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/nccstretch.sty b/Master/texmf-dist/tex/latex/ncctools/nccstretch.sty
new file mode 100644
index 00000000000..6e163673949
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/nccstretch.sty
@@ -0,0 +1,35 @@
+%%
+%% This is file `nccstretch.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nccstretch.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: nccstretch.dtx Copyright (C) 2004 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{nccstretch}
+ [2004/11/30 v1.0 Text Stretch Package (NCC)]
+\newcommand*\stretchwith[2]{%
+ \let\@tempa\relax
+ \def\@tempb{#1}%
+ \@tfor\@tempc:=#2\do {\@tempa \@tempc \let\@tempa\@tempb}%
+}
+\endinput
+%%
+%% End of file `nccstretch.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/nccthm.sty b/Master/texmf-dist/tex/latex/ncctools/nccthm.sty
new file mode 100644
index 00000000000..bc4df31831e
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/nccthm.sty
@@ -0,0 +1,237 @@
+%%
+%% This is file `nccthm.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nccthm.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: nccthm.dtx Copyright (C) 2002--2004 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{nccthm}
+ [2004/12/16 v1.1 NCC Extention to Theorems (NCC)]
+\@ifpackageloaded{nccsect}{}{%
+ \def\NCC@secskip#1{%
+ \if@noskipsec \leavevmode \fi \par
+ \if@nobreak \everypar{}\else
+ \addpenalty\@secpenalty
+ \addvspace{#1}%
+ \fi
+ }
+ \def\NCC@runskip{2.75ex \@plus 1ex \@minus .2ex}
+}
+\DeclareRobustCommand{\NCC@qedsymbol}{%
+ \mbox{\normalsize\normalfont\thinlines \@tempdima 1.5ex
+ \advance\@tempdima-2\@wholewidth
+ \edef\@tempa{\the\@tempdima}%
+ \kern \@wholewidth
+ \raisebox\@wholewidth[1.5ex]{%
+ \frame{\rule\z@\@tempa\rule\@tempa\z@}}%
+ \kern \@wholewidth
+ }%
+}
+\let\qedsymbol\NCC@qedsymbol
+\newcommand{\qed}{\NCC@qed{\qedsymbol}}
+\def\NCC@qed#1{\unskip\allowbreak%
+ \hspace*{1em plus 1fill minus .2em}#1\@ifstar{}{\qef}%
+}
+\newcommand{\qef}{\NCC@secskip{\NCC@runskip}\@nobreakfalse\normalfont}
+\DeclareOption{whiteqed}{%
+ \let\whiteqedsymbol\NCC@qedsymbol
+ \newcommand{\whiteqed}{\NCC@qed{\whiteqedsymbol}}
+ \let\qedsymbol\whiteqedsymbol
+}
+\DeclareOption{blackqed}{%
+ \DeclareRobustCommand{\blackqedsymbol}{%
+ \begingroup\normalsize\normalfont\thinlines
+ \rule{1.5ex}{1.5ex}\endgroup
+ }
+ \newcommand{\blackqed}{\NCC@qed{\blackqedsymbol}}
+ \let\qedsymbol\blackqedsymbol
+}
+\newif\ifNCC@thmindent
+\newif\ifNCC@thmmargin
+\DeclareOption{noindent}{\NCC@thmindentfalse}
+\DeclareOption{indent}{\NCC@thmindenttrue}
+\DeclareOption{nomargin}{\NCC@thmmarginfalse}
+\DeclareOption{margin}{\NCC@thmmargintrue}
+\ExecuteOptions{noindent,nomargin}
+\ProcessOptions*
+\RequirePackage{amsgen}
+\RequirePackage{dcounter}[1998/12/19]
+\let\NCC@thmbrmode\relax
+\newif\ifNCC@thmbr
+\newcommand\breakafterheader{%
+ \ifx\NCC@thmbrmode\relax \global\chardef\NCC@thmbrmode\z@\fi
+}
+\newcommand\nobreakafterheader{%
+ \ifx\NCC@thmbrmode\relax \global\chardef\NCC@thmbrmode\@ne\fi
+}
+\newcommand{\TheoremBreakStyle}{\NCC@thmbrtrue}
+\newcommand{\TheoremNoBreakStyle}{\NCC@thmbrfalse}
+\newcommand*{\TheoremCommentDelimiters}[2]{%
+ \def\NCC@thmcmt@##1{#1\ignorespaces##1\unskip#2}%
+}
+\newcommand*{\AfterTheoremHeaderChar}[1]{\def\NCC@thmchar{#1}}
+\newcommand*{\AfterTheoremHeaderSkip}[1]{\def\NCC@thmskip{#1}}
+\@onlypreamble\TheoremBreakStyle
+\@onlypreamble\TheoremNoBreakStyle
+\@onlypreamble\TheoremCommentDelimiters
+\@onlypreamble\AfterTheoremHeaderChar
+\@onlypreamble\AfterTheoremHeaderSkip
+\def\NCC@thmhdr#1#2{%
+ \qef
+ \addpenalty{-\@lowpenalty}%
+ \begingroup
+ #1%
+ \ifx\NCC@thmbrmode\relax
+ \ifNCC@thmbr \chardef\NCC@thmbrmode\z@
+ \else \chardef\NCC@thmbrmode\@ne
+ \fi
+ \fi
+ \ifnum\NCC@thmbrmode=\z@
+ \@tempdima\parindent
+ \hbox{\vbox{\hsize\linewidth\@parboxrestore
+ \ifNCC@thmindent\parindent\@tempdima\fi
+ \leavevmode\strut#2\strut
+ }}\nobreak\noindent
+ \else
+ \ifNCC@thmindent\else\noindent\fi
+ \leavevmode{#2\normalfont\NCC@thmskip}\nobreak
+ \fi
+ \endgroup
+ \global\let\NCC@thmbrmode\relax
+}
+\def\NCC@thmcmt#1#2{%
+ \@ifempty{#2}{}{\/\space\normalfont#1\NCC@thmcmt@{#2}}%
+}
+\def\NCC@lthm#1#2#3#4#5{%
+ \@ifnextchar[{\NCC@lthm@{#1}{#2}{#3}{#4}{#5}}%
+ {\NCC@lthm@{#1}{#2}{#3}{#4}{#5}[]}%
+}
+\def\NCC@lthm@#1#2#3#4#5[#6]{%
+ \NCC@thmhdr{}{%
+ #1#4\@ifempty{#5}{}{\space#5}%
+ \NCC@thmcmt{#2}{#6}\NCC@thmchar
+ }%
+ #3\hskip 0.001\p@ \ignorespaces
+}
+\def\NCC@thxhdr#1#2{%
+ \refstepcounter{apar}%
+ \NCC@thmhdr{%
+ \ifNCC@thmmargin \NCC@thmindentfalse \fi
+ #1%
+ }{%
+ \ifNCC@thmmargin \llap{\NCC@thmapar}\else \hbox{\NCC@thmapar}\fi
+ #2%
+ }%
+}
+\def\NCC@lthx#1#2#3#4{%
+ \@ifnextchar[{\NCC@lthx@{#1}{#2}{#3}{#4}}%
+ {\NCC@lthx@{#1}{#2}{#3}{#4}[]}%
+}
+\def\NCC@lthx@#1#2#3#4[#5]{%
+ \NCC@thxhdr{}{%
+ \normalfont#1#4\NCC@thmcmt{#2}{#5}\NCC@thmchar
+ }%
+ #3\hskip 0.001\p@ \ignorespaces
+}
+\def\NCC@likethm#1#2#3{%
+ \@ifstar{\NCC@lthx{#1}{#2}{#3}}{\NCC@lthm{#1}{#2}{#3}}%
+}
+\DeclareDynamicCounter{apar}
+\newcommand*{\AparStyleParameters}[3]{%
+ \def\NCC@thmaparstyle{#1}%
+ \def\NCC@thmapar{#2\theapar#3}%
+}
+\@onlypreamble\AparStyleParameters
+\newcommand*{\apar}[1][]{%
+ \NCC@thxhdr{\NCC@thmaparstyle}
+ {\@ifempty{#1}{\let\NCC@thmskip\@empty}{\ignorespaces#1\unskip}}%
+ \hskip 0.001\p@ \ignorespaces
+}
+\newcommand*{\ProofStyleParameters}[2]{%
+ \def\NCC@thmproofstyle{#1}%
+ \def\NCC@thmproof{#2}%
+}
+\@onlypreamble\ProofStyleParameters
+\newcommand*{\proof}[1][]{%
+ \NCC@thmhdr{\NCC@thmproofstyle}{%
+ \NCC@thmproof
+ \@ifempty{#1}{}{\space\ignorespaces#1\unskip}%
+ \NCC@thmchar
+ }%
+ \hskip 0.001\p@ \ignorespaces
+}
+\newcommand*{\newtheoremtype}[1]{%
+ \edef\@tempa{\noexpand\newcommand*{\expandafter\noexpand
+ \csname like#1\endcsname}}\NCC@nthmtype
+}
+\newcommand*{\renewtheoremtype}[1]{%
+ \edef\@tempa{\noexpand\renewcommand*{\expandafter\noexpand
+ \csname like#1\endcsname}}\NCC@nthmtype
+}
+\def\NCC@nthmtype#1#2#3{\@tempa{\NCC@likethm{#1}{#2}{#3}}}
+\@onlypreamble\newtheoremtype
+\@onlypreamble\renewtheoremtype
+\@onlypreamble\NCC@nthmtype
+\def\NCC@thmdef#1#2#3{%
+ \@ifnextchar[{\NCC@thmdef@{#1}{#2}{#3}}%
+ {\NCC@thmdef@{#1}{#2}{#3}[theorem]}%
+}
+\def\NCC@thmdef@#1#2#3[#4]{%
+ \@ifundefined{like#4}{%
+ \PackageError{nccthm}{Unknown theorem type `#4'}{}%
+ }%
+ \edef\@tempa##1##2{%
+ \@tempa{#1}{##1\expandafter\noexpand\csname like#4\endcsname##2}%
+ }%
+ \ifNCC@thmbr
+ \@tempa{#2\breakafterheader}{#3}{\qef\ignorespacesafterend}%
+ \else
+ \@tempa{#2\nobreakafterheader}{#3}{\qef\ignorespacesafterend}%
+ \fi
+}
+\@onlypreamble\NCC@thmdef
+\@onlypreamble\NCC@thmdef@
+\renewcommand*{\newtheorem}{\def\@tempa{\noexpand\newenvironment}%
+ \@ifstar{\NCC@nthx}{\NCC@nthm}}
+\newcommand*{\renewtheorem}{\def\@tempa{\noexpand\renewenvironment}%
+ \@ifstar{\NCC@nthx}{\NCC@nthm}}
+\def\NCC@nthx#1#2{\NCC@thmdef{#1}{}{*{#2}}}
+\def\NCC@nthm#1{\@ifnextchar[{\NCC@nthm@{#1}}{\NCC@nthm@{#1}[#1]}}
+\def\NCC@nthm@#1[#2]#3{%
+ \DeclareDynamicCounter{#2}%
+ \NCC@thmdef{#1}{\refstepcounter{#2}}{{#3}{\csname the#2\endcsname}}%
+}
+\@onlypreamble\newtheorem
+\@onlypreamble\renewtheorem
+\@onlypreamble\NCC@nthx
+\@onlypreamble\NCC@nthm
+\@onlypreamble\NCC@nthm@
+\newtheoremtype{theorem}{\bfseries}{}{\itshape}
+\newtheoremtype{remark}{\itshape}{}{}
+\TheoremNoBreakStyle
+\TheoremCommentDelimiters{(}{)}
+\AfterTheoremHeaderChar{}
+\AfterTheoremHeaderSkip{\hskip 1em \@plus .2em \@minus .2em}
+\AparStyleParameters{\bfseries}{\bfseries}{\enskip}
+\ProofStyleParameters{\bfseries}{Proof}
+\endinput
+%%
+%% End of file `nccthm.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/tocenter.sty b/Master/texmf-dist/tex/latex/ncctools/tocenter.sty
new file mode 100644
index 00000000000..572ffff8b07
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/tocenter.sty
@@ -0,0 +1,125 @@
+%%
+%% This is file `tocenter.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% tocenter.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: tocenter.dtx Copyright (C) 2002--2004 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{tocenter}
+ [2004/12/09 v1.1 Centering Page Layout (NCC)]
+\def\NCC@pos#1{%
+ \let\NCC@h\@gobble \let\NCC@f\@gobble \let\NCC@m\@gobble
+ \@tfor\@tempa:=#1\do{%
+ \if h\@tempa
+ \def\NCC@h##1{\advance##1\headsep \advance##1\headheight}%
+ \else
+ \if f\@tempa
+ \def\NCC@f##1{\advance##1\footskip}%
+ \else
+ \if m\@tempa
+ \def\NCC@m##1{\advance##1\marginparwidth
+ \advance##1\marginparsep}%
+ \fi
+ \fi
+ \fi
+ }%
+}
+\newcommand{\ToCenter}{%
+ \@ifstar{\pagestyle{empty}\nofiles\NCC@center[]}{\NCC@center}%
+}
+\@onlypreamble\ToCenter
+\newcommand*{\NCC@center}[3][]{\NCC@pos{#1}%
+ \setlength\textwidth{#2}%
+ \@tempdima\textwidth \NCC@m\@tempdima
+ \if@twocolumn
+ \NCC@m\@tempdima
+ \@tempdimb\paperwidth
+ \advance\@tempdimb -\@tempdima
+ \@tempdima .5\@tempdimb \NCC@m\@tempdima
+ \oddsidemargin\@tempdima
+ \evensidemargin\@tempdima
+ \else
+ \@tempdimb\paperwidth
+ \advance\@tempdimb -\@tempdima \@tempdima .5\@tempdimb
+ \if@reversemargin
+ \evensidemargin\@tempdima
+ \NCC@m\@tempdima
+ \oddsidemargin\@tempdima
+ \else
+ \oddsidemargin\@tempdima
+ \NCC@m\@tempdima
+ \evensidemargin\@tempdima
+ \fi
+ \fi
+ \setlength\textheight{#3}%
+ \@tempdima\textheight \NCC@h\@tempdima \NCC@f\@tempdima
+ \@tempdimb\paperheight
+ \advance\@tempdimb -\@tempdima
+ \topmargin .5\@tempdimb
+ \ifx\NCC@h\@gobble
+ \advance\topmargin -\headsep
+ \advance\topmargin -\headheight
+ \fi
+ \advance \oddsidemargin -1in
+ \advance \evensidemargin -1in
+ \advance \topmargin -1in
+}
+\@onlypreamble\NCC@center
+\newcommand{\FromMargins}{%
+ \@ifstar{\pagestyle{empty}\nofiles\NCC@margin[]}{\NCC@margin}%
+}
+\@onlypreamble\FromMargins
+\newcommand*{\NCC@margin}[5][]{\NCC@pos{#1}%
+ \setlength\oddsidemargin{#2}%
+ \setlength\evensidemargin{#3}%
+ \@tempdima\oddsidemargin \advance\@tempdima\evensidemargin
+ \NCC@m\@tempdima
+ \if@twocolumn
+ \NCC@m\@tempdima
+ \textwidth\paperwidth
+ \advance\textwidth -\@tempdima
+ \NCC@m\oddsidemargin \NCC@m\evensidemargin
+ \else
+ \textwidth\paperwidth
+ \advance\textwidth -\@tempdima
+ \if@reversemargin
+ \NCC@m\oddsidemargin
+ \else
+ \NCC@m\evensidemargin
+ \fi
+ \fi
+ \setlength\topmargin{#4}%
+ \setlength\@tempdima{#5}\advance\@tempdima\topmargin
+ \NCC@h\@tempdima \NCC@f\@tempdima
+ \textheight\paperheight
+ \advance\textheight -\@tempdima
+ \ifx\NCC@h\@gobble
+ \advance\topmargin -\headsep
+ \advance\topmargin -\headheight
+ \fi
+ \advance \oddsidemargin -1in
+ \advance \evensidemargin -1in
+ \advance \topmargin -1in
+}
+\@onlypreamble\NCC@margin
+\endinput
+%%
+%% End of file `tocenter.sty'.
diff --git a/Master/texmf-dist/tex/latex/ncctools/watermark.sty b/Master/texmf-dist/tex/latex/ncctools/watermark.sty
new file mode 100644
index 00000000000..38ca43c445f
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/watermark.sty
@@ -0,0 +1,83 @@
+%%
+%% This is file `watermark.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% watermark.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: watermark.dtx Copyright (C) 2002--2004 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{watermark}
+ [2004/12/09 v1.1 Watermarks (NCC)]
+\AtBeginDocument{
+ \let\WMK@begindvi\@begindvi
+ \def\@begindvi{%
+ \WMK@begindvi
+ \WMK@insert
+ \global\let\WMK@begindvi\@begindvi
+ \gdef\@begindvi{\WMK@begindvi\WMK@insert}%
+ }%
+}
+\def\WMK@insert{%
+ \let\WMK@head\@thehead
+ \def\@thehead{\WMK@hook\WMK@head}%
+}
+\def\WMK@hook{%
+ \begin{picture}(0,0)\relax
+ \ifx\WMK@this\relax
+ \if@twoside
+ \ifodd\c@page\WMK@odd\else\WMK@even\fi
+ \else
+ \WMK@odd
+ \fi
+ \else
+ \WMK@this \global\let\WMK@this\relax
+ \fi
+ \end{picture}%
+ \ifx\WMK@thishead\relax \else
+ \let\WMK@head\WMK@thishead
+ \global\let\WMK@thishead\relax
+ \fi
+ \ifx\WMK@head\@empty \hfil
+ \else
+ \def\@tempa{\@oddhead}%
+ \ifx\WMK@head\@tempa
+ \ifx\@oddhead\@empty \hfil \fi
+ \fi
+ \fi
+}
+\let\WMK@thishead\relax
+\let\WMK@this\relax
+\let\WMK@odd\@empty
+\let\WMK@even\@empty
+\newcommand{\watermark}[1]{\leftwatermark{#1}\rightwatermark{#1}}
+\newcommand{\leftwatermark}[1]{\gdef\WMK@even{#1}}
+\newcommand{\rightwatermark}[1]{\gdef\WMK@odd{#1}}
+\newcommand{\thiswatermark}[1]{\gdef\WMK@this{#1}}
+\newcommand{\thispageheading}[1]{%
+ \def\@tempa{#1}%
+ \ifx\@tempa\@empty
+ \global\let\WMK@thishead\@empty
+ \else
+ \gdef\WMK@thishead{\parbox[t]\textwidth{#1}}%
+ \fi
+}
+\endinput
+%%
+%% End of file `watermark.sty'.