diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ncclatex')
17 files changed, 982 insertions, 750 deletions
diff --git a/Master/texmf-dist/tex/latex/ncclatex/cp1251-light.def b/Master/texmf-dist/tex/latex/ncclatex/cp1251-light.def index e02b64a5398..8fb2c361dc2 100644 --- a/Master/texmf-dist/tex/latex/ncclatex/cp1251-light.def +++ b/Master/texmf-dist/tex/latex/ncclatex/cp1251-light.def @@ -1,9 +1,10 @@ \ProvidesFile{cp1251-light.def} - [2005/01/08 v1.1 Light input encoding file] + [2005/12/24 v1.2 Light input encoding file] % % \changes{v1.0}{2004/09/23}{This version was uploaded to CTAN} % \changes{v1.1}{2005/01/09}{Replace \textrm{\normalfont...} to \textnormal} % \changes{v1.1}{2005/01/09}{More comprehensive test of font encoding} +% \changes{v1.2}{2005/12/24}{Test the \cyrillicencoding to be \undefined} % % Using of cyrillic input encodings has two major disadvantages: % @@ -26,9 +27,11 @@ % Test the font encoding to have a valid type % \makeatletter -\@ifundefined{cyrillicencoding}% - {\let\@tempa\encodingdefault}% - {\let\@tempa\cyrillicencoding} +\ifx\cyrillicencoding\undefined + \let\@tempa\encodingdefault% +\else + \let\@tempa\cyrillicencoding +\fi \expandafter\in@\expandafter{\@tempa}{T2A,T2B,T2C,X2} \ifin@ \else \PackageWarning{inputenc}% diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncc.cls b/Master/texmf-dist/tex/latex/ncclatex/ncc.cls index 3548b61f54e..ffc2a048e20 100644 --- a/Master/texmf-dist/tex/latex/ncclatex/ncc.cls +++ b/Master/texmf-dist/tex/latex/ncclatex/ncc.cls @@ -1,6 +1,6 @@ \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesClass{ncc} - [2005/07/02 v1.08 NCC-LaTeX document class (NCC)] + [2006/01/17 v1.10 NCC-LaTeX document class (NCC)] % % \changes{v1.01}{2002/03/24}{This version is uploaded to CTAN} % \changes{v1.02}{2002/04/03}{Bug in loading book class fixed} @@ -18,25 +18,20 @@ % \changes{v1.07}{2005/05/20}{Move \StartFromHeaderArea to the nccsect package} % \changes{v1.08}{2005/06/18}{Add titlepage*, \ExpandTextArea, \RestoreTextArea} % \changes{v1.08}{2005/07/02}{Improve \ExpandTextArea command} +% \changes{v1.09}{2005/12/24}{Move biblist to a separate package} +% \changes{v1.09}{2005/12/24}{Unify toc-headers using topsection package} +% \changes{v1.09}{2005/12/26}{Move titlepage and text area controls to separate packages} +% \changes{v1.09}{2005/12/26}{Loading ncctitle package instead of ncctitle.clo} +% \changes{v1.09}{2005/12/28}{Code revision and minor changes} +% \changes{v1.09}{2005/12/28}{More minor changes} +% \changes{v1.09}{2006/01/05}{The \SetTOCStyle was removed from here} +% \changes{v1.10}{2006/01/17}{addtopackage -> afterpackage} % -\newcommand*\partmark[1]{} \newcommand\@ptsize{} \newif\if@restonecol -\newdimen\bibindent -\setlength\bibindent{1.5em} -\let\@openbib@code\@empty -% -% \openrightorany clears page or double page depending on openright -% mode selected. -% \newif\if@openright -\newcommand{\openrightorany}{\clearpage\relax - \if@openright \if@twoside - \begingroup\let\leftmark\relax \cleardoublepage\endgroup - \fi\fi -} % -% What goes first in title: author or title +% What goes first in title: author or title? % \newif\ifNCC@authorbeforetitle \newcommand{\AuthorBeforeTitle}{\NCC@authorbeforetitletrue} @@ -44,12 +39,6 @@ \@onlypreamble\AuthorBeforeTitle \@onlypreamble\TitleBeforeAuthor % -% \SetTOCStyle{STYLE} sets a TOC style -% -\newcommand*{\SetTOCStyle}[1]{\def\NCC@tocstyle{#1}} -\SetTOCStyle{} -\@onlypreamble\SetTOCStyle -% % Paper size options % \DeclareOption{a4paper} @@ -107,19 +96,12 @@ \itemindent -\bibindent \listparindent \itemindent \parsep \z@ - }% - \renewcommand\newblock{\par}}% + } + \renewcommand\newblock{\par} + }% } % -% Display math options are defined in nccmath. We need not define them here, -% because they ar passed to nccmath as global options. -% -%\DeclareOption{fleqn}{\PassOptionsToPackage{\CurrentOption}{nccmath}} -%\DeclareOption{leqno}{\PassOptionsToPackage{\CurrentOption}{nccmath}} -% -% Small headings in sections option is also not necessary here. -% -%\DeclareOption{small}{\PassOptionsToPackage{\CurrentOption}{ncclatex}} +% \setyear{year} command defines \theyear % \newcommand*{\setyear}[1]{\gdef\theyear{#1}} \newcommand\theyear{\number\year} @@ -154,10 +136,15 @@ \def\NCC@clsload{% \AuthorBeforeTitle \input{nccart.clo}% - \let\maketitle\relax % Remove these commands to allow creating - \let\abstract\relax % them with \newcommand. - \let\endabstract\relax % - \input{ncctitle.clo}% + \RequirePackage{ncctitle}% + \RequirePackage{afterpackage} + \newcommand\preprintname{Preprint} + \AfterPackage{babel}{% + \addto\captionsrussian{% + \def\preprintname{% + {\cyr\CYRP\cyrr\cyre\cyrp\cyrr\cyri\cyrn\cyrt}}% + } + } \newcommand*{\preprint}[1]{% \def\thepreprint{##1}% \ifx\thepreprint\@empty @@ -176,8 +163,8 @@ \DeclareOption{book}{% \def\NCC@clsload{% \AuthorBeforeTitle - \input{nccbook.clo} - \input{ncctitle.clo}% + \input{nccbook.clo}% + \RequirePackage{ncctitle}% \let\bookeditor\titlecomment \pagestyle{headings}% \countstyle{chapter}% @@ -187,10 +174,6 @@ } % was loaded \DeclareOption{report}{\ExecuteOptions{book,oneside}} % -% The russian option is also removed because it is passed as global one. -% -%\DeclareOption{russian}{\PassOptionsToPackage{\CurrentOption}{ncclatex}} -% % We set tbtags as the default tags positioning in split environment % \def\NCC@temp{\PassOptionsToPackage{tbtags}{nccmath}} @@ -337,7 +320,7 @@ \newenvironment{table}{\@float{table}}{\end@float} \newenvironment{table*}{\@dblfloat{table}}{\end@dblfloat} % -% Names of english captions +% Names of standard english captions % \newcommand\prefacename{Preface} \newcommand\contentsname{Contents} @@ -353,7 +336,6 @@ \newcommand\chaptername{Chapter} \newcommand\appendixname{Appendix} \newcommand\abstractname{Abstract} -\newcommand\preprintname{Preprint} % % English version of \today % @@ -369,10 +351,21 @@ % % Load remaining packages % -\RequirePackage{watermark} \RequirePackage{ncclatex} +\RequirePackage{topsection} +\RequirePackage{watermark} +\RequirePackage{ncctitlepage} +\RequirePackage{nccheadings} \RequirePackage{nccold} -\ifNCC@rus \frenchspacing \fi % French spacing in russian typesetting +% +% Define the bibliography +% +\newdimen\bibindent +\setlength\bibindent{1.5em} +\let\@openbib@code\@empty +\newcommand\newblock{\hskip .11em\@plus .33em\@minus .07em} +\RequirePackage{nccbiblist} +\def\NCC@biblisthook{\itemsep\parsep} % % noeqbreak supresses page breaks before display equations % alloweqbreak[number] allows page breaks before display equations @@ -411,143 +404,7 @@ \list{}{\rightmargin\leftmargin}\item\relax }{\endlist} % -% The titlepage environment. Sets the empty page style at the top-level -% title page. We suppose that a title page can contain many pages and many -% title pages inside. The page counter is restored to its -% original value after leaving a top-level title page. -% -\newif\ifNCC@intitle \NCC@intitlefalse -\newenvironment{titlepage}{% - \clearpage - \if@twocolumn \@restonecoltrue \onecolumn \else \@restonecolfalse \fi - \ifNCC@intitle - \let\NCC@restorepagecount\@empty - \else - \pagestyle{empty} - \edef\NCC@restorepagecount{% - \noexpand\global\noexpand\c@page \@arabic\c@page\relax}% - \setcounter{page}\z@ - \c@footnote\z@ \def\thefootnote{\@fnsymbol\c@footnote}% - \NCC@intitletrue - \fi - \let\NCC@restoretextarea\@empty -}{% - \clearpage - \NCC@restoretextarea - \if@restonecol\twocolumn \fi - \NCC@restorepagecount -} -% -% The star-form of the titlepage environment works as an inner one, -% i.e. it does not change the page counter. -\newenvironment{titlepage*}{\NCC@intitletrue - \clearpage\pagestyle{empty}\titlepage -}{\endtitlepage} -% -% A text area can be expanded on the header, footer, and margins if -% the \ExpandTextArea[hfm] command is used at the beginning of a page -% in one-column mode. -% The letters in optional argument mean the following: h (header), -% f (footer), and m (margins). If an optional argument is omitted, or equal to -% [*] the temporary expansion to the header is applied with the -% \StartFromHeaderArea command. -\newcommand*\RestoreTextArea{} -\newcommand*\ExpandTextArea[1][*]{% - \if@twocolumn - \ClassError{ncc}{The \string\ExpandTextArea\space command\MessageBreak - cannot work in two-column mode}{}% - \else - \def\@tempa{*}\edef\@tempb{#1}% - \ifx\@tempa\@tempb - \StartFromHeaderArea - \else - \ifx\RestoreTextArea\@empty - \let\NCC@h\@empty \global\let\NCC@restore@h\@empty - \let\NCC@f\@empty \global\let\NCC@restore@f\@empty - \let\NCC@m\@empty \global\let\NCC@restore@m\@empty - \expandafter\@tfor\expandafter\@tempa\expandafter:\expandafter=#1\do{% - \if h\@tempa - \def\NCC@h{\NCC@adjusttoheader{}}% - \gdef\NCC@restore@h{\NCC@adjusttoheader-}% - \else - \if f\@tempa - \def\NCC@f{\NCC@adjusttofooter{}}% - \gdef\NCC@restore@f{\NCC@adjusttofooter-}% - \else - \if m\@tempa - \if@reversemargin \@tempcnta\@ne \else \@tempcnta\tw@ \fi - \edef\NCC@m{\noexpand\NCC@adjusttomargin{}{\the\@tempcnta}}% - \xdef\NCC@restore@m{\noexpand\NCC@adjusttomargin-{\the\@tempcnta}}% - \fi - \fi - \fi - }% - \NCC@h\NCC@f\NCC@m - \StartFromTextArea - \gdef\RestoreTextArea{% - \NCC@restore@h\NCC@restore@f\NCC@restore@m - \global\let\RestoreTextArea\@empty - }% - \def\NCC@restoretextarea{\RestoreTextArea}% - \fi - \fi - \fi -} -\def\NCC@adjusttoheader#1{% - \@tempdima #1\headheight - \advance\@tempdima #1\headsep - \global\advance\textheight\@tempdima - \global\advance\topmargin-\@tempdima - \global\@colht\textheight - \global\@colroom\textheight - \global\vsize\textheight -} -\def\NCC@adjusttofooter#1{% - \global\advance\textheight#1\footskip - \global\@colht\textheight - \global\@colroom\textheight - \global\vsize\textheight -} -\def\NCC@adjusttomargin#1#2{% - \@tempdima #1\marginparwidth - \advance\@tempdima #1\marginparsep - \@tempcnta#2% - \ifodd\@tempcnta - \global\advance\oddsidemargin -\@tempdima - \else - \global\advance\evensidemargin -\@tempdima - \fi - \global\advance\textwidth\@tempdima - \global\columnwidth\textwidth - \global\linewidth\textwidth - \global\hsize\textwidth -} -% -% Bibliography without header. It is possible to set starting number -% for bibliography counter. -% -% \begin{biblist}[start number]{prototype} ... \end{biblist} -% -\newcommand{\bibliststyle}{\small} -\newenvironment*{biblist}[2][0]{ - \bibliststyle - \list{\@biblabel{\@arabic\c@enumiv}}{% - \settowidth\labelwidth{\@biblabel{#2}}% - \leftmargin\labelwidth \advance\leftmargin\labelsep \itemsep\parsep - \@openbib@code - \usecounter{enumiv}\let\p@enumiv\@empty - \renewcommand\theenumiv{\@arabic\c@enumiv}% - }% - \setcounter{enumiv}{#1}% - \sloppy \widowpenalty 4000 - \clubpenalty 4000 \@clubpenalty \clubpenalty - \sfcode`\.\@m -}{\def\@noitemerr{\@latex@warning{Empty `biblist' environment}}% - \endlist -} -\newcommand{\newblock}{\hskip .11em\@plus .33em\@minus .07em} -% -% Footnote make commands. +% Footnote making commands % \renewcommand{\footnoterule}{% \kern-3\p@ \hrule\@width .4\columnwidth \kern2.6\p@ @@ -558,28 +415,20 @@ % % \tableofcontents, \listoffigures, \listoftables % -% They use the \NCC@tochead{header} command defined later in subclasses -% \newcommand{\tableofcontents}{\NCC@toc\contentsname{toc}} \newcommand{\listoffigures}{\NCC@toc\listfigurename{lof}} \newcommand{\listoftables}{\NCC@toc\listtablename{lot}} -\def\NCC@toc#1#2{% - \NCC@tochead{#1}% - \begingroup - \normalfont \NCC@tocstyle\NCC@setpnum - \@starttoc{#2}% - \endgroup -} +\def\NCC@toc#1{\skipwritingtoaux\topsection{#1}\@starttoc} % -% theindex and theglossary. They are based on \NCC@idxhead{header} -% defined later in subclasses +% theindex and theglossary % \newenvironment{theindex}{\NCC@index\indexname}{\endNCC@index} \newenvironment{theglossary}{\NCC@index\glossaryname}{\endNCC@index} \newenvironment*{NCC@index}[1]{% \if@twocolumn \@restonecolfalse \else \@restonecoltrue \fi \columnseprule \z@ \columnsep 35\p@ - \NCC@idxhead{#1}% + \@iftopchapter{\twocolumn \topsection{#1}}% + {\twocolumn[\topsection{#1}]\thispageheading{}}% \parindent\z@ \parskip\z@ \@plus .3\p@ \let\item\@idxitem \small }{\if@restonecol\onecolumn \else \clearpage\fi} @@ -588,28 +437,11 @@ \newcommand\subsubitem{\@idxitem \hspace*{4em}} \newcommand\indexspace{\par \addvspace{4ex \@plus 1ex \@minus .5ex}} % -% NCC page style with headings -% -\def\NCC@setpsheading{% - \let\@oddfoot\@empty\let\@evenfoot\@empty - \def\@evenhead{% - \thepage\hfil - {\small\itshape\ignorespaces\leftmark\unskip}\hfil - }% - \def\@oddhead{% - \hfil{\small\itshape\ignorespaces\rightmark\unskip}\hfil - \thepage - }% - \reset@font -} -\def\NCC@firstmark#1{\markboth{#1}{#1}} -\def\NCC@secondmark#1{\markright{#1}} -% % Final actions % \pagenumbering{arabic} \NCC@clsload % load specified subclass -\@onlypreamble\NCC@clsload +\let\NCC@clsload\relax \if@twocolumn \twocolumn \sloppy \flushbottom \else diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccart.clo b/Master/texmf-dist/tex/latex/ncclatex/nccart.clo index 37c29edabac..95abb246ed7 100644 --- a/Master/texmf-dist/tex/latex/ncclatex/nccart.clo +++ b/Master/texmf-dist/tex/latex/ncclatex/nccart.clo @@ -1,5 +1,5 @@ \ProvidesFile{nccart.clo} - [2005/03/23 v1.05 Article subclass (NCC)] + [2005/12/27 v1.06 Article subclass (NCC)] % % \changes{v1.01}{2002/02/19}{This version is uploaded to CTAN} % \changes{v1.02}{2002/05/17}{Bug in abstract fixed. Extra space removed.} @@ -7,33 +7,12 @@ % \changes{v1.04}{2004/12/06}{Replace \NCC@null with \StartFromTextArea} % \changes{v1.04}{2004/12/16}{Replace \NCC@gempty with \@empty} % \changes{v1.05}{2005/03/23}{Remove \skipwritingtoaux in index head} +% \changes{v1.06}{2005/12/24}{Definition of |thebibliography| removed} +% \changes{v1.06}{2005/12/24}{Remove \NCC@tochead, \NCC@idxhead macros} +% \changes{v1.06}{2005/12/27}{Remove headings support} % \setcounter{tocdepth}{3} \setcounter{secnumdepth}{3} -\def\NCC@tochead#1{\noheadingtag\skipwritingtoaux\section{#1}} -\def\NCC@idxhead#1{% - \twocolumn[\noheadingtag\section{#1}]% - \thispageheading{}% -} -% -% \ps@headings, \ps@myheadings -% -\def\ps@headings{\NCC@setpsheading - \def\partmark##1{% - \NCC@firstmark{\ifnum \c@secnumdepth>\m@ne\thepart.\enskip \fi - \ignorespaces##1}}% - \def\sectionmark##1{% - \NCC@firstmark{\ifnum \c@secnumdepth>\z@\thesection.\enskip \fi - \ignorespaces##1}}% - \def\subsectionmark##1{% - \NCC@secondmark{\ifnum\c@secnumdepth>\@ne\thesubsection.\enskip\fi - \ignorespaces##1}}% -} -\def\ps@myheadings{\NCC@setpsheading - \let\partmark \@gobble - \let\sectionmark \@gobble - \let\subsectionmark\@gobble -} % % \maketitle % @@ -79,10 +58,4 @@ \setcounter{section}{-1}\stepcounter{section}% \gdef\thesection{\@Alph\c@section}% } -% -% thebibliography -% -\newenvironment{thebibliography}{% - \noheadingtag \section{\refname}\biblist[0]% -}{\endbiblist} \endinput diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccbiblist.sty b/Master/texmf-dist/tex/latex/ncclatex/nccbiblist.sty new file mode 100644 index 00000000000..758293992a7 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ncclatex/nccbiblist.sty @@ -0,0 +1,50 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{nccbiblist} + [2005/12/24 v1.00 Bibliography list (NCC)] +% +% \changes{v1.00}{2005/12/24}{This version is uploaded to CTAN} +% +\RequirePackage{topsection} +% +% Bibliography without header. It is possible to set starting number +% for the bibliography counter. If starting number is less that zero, +% the numbering will be continued from the previous biblist. +% +% \begin{biblist}[starting number]{prototype} ... \end{biblist} +% +% The biblist style is specified in the \bibliststyle macro. +% It is equal to \small by default. +% +\newcommand{\bibliststyle}{\small} +\providecommand*\@openbib@code{} +\def\NCC@bibliststart{0} +\def\NCC@biblisthook{} +\newenvironment*{biblist}[2][0]{ + \bibliststyle + \list{\@biblabel{\@arabic\c@enumiv}}{% + \settowidth\labelwidth{\@biblabel{#2}}% + \leftmargin\labelwidth \advance\leftmargin\labelsep + \@openbib@code + \usecounter{enumiv}\let\p@enumiv\@empty + \renewcommand\theenumiv{\@arabic\c@enumiv}% + \NCC@biblisthook + }% + \setcounter{enumiv}{#1}% + \ifnum \c@enumiv <\z@ \setcounter{enumiv}{\NCC@bibliststart}\fi + \sloppy \widowpenalty 4000 + \clubpenalty 4000 \@clubpenalty \clubpenalty + \sfcode`\.\@m +}{\def\@noitemerr{\@latex@warning{Empty `biblist' environment}}% + \xdef\NCC@bibliststart{\the\c@enumiv} + \endlist +} +% +% We also redefine |thebibliography| environment to be based on the +% biblist environment. +% +\def\thebibliography{% + \@iftopchapter{\topsection{\bibname}}{\topsection{\refname}}% + \biblist[0]% +} +\let\endthebibliography=\endbiblist +\endinput diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccbook.clo b/Master/texmf-dist/tex/latex/ncclatex/nccbook.clo index d3c98ad83fc..dbc04243375 100644 --- a/Master/texmf-dist/tex/latex/ncclatex/nccbook.clo +++ b/Master/texmf-dist/tex/latex/ncclatex/nccbook.clo @@ -1,5 +1,5 @@ \ProvidesFile{nccbook.clo} - [2005/06/19 v1.05 Book subclass (NCC)] + [2005/12/29 v1.06 Book subclass (NCC)] % % \changes{v1.00}{2002/03/24}{This version is uploaded to CTAN} % \changes{v1.01}{2003/01/12}{Bug in \ChapterPrefixStyle{toc} fixed} @@ -10,163 +10,22 @@ % \changes{v1.04}{2005/06/08}{Introduce the \DeclareTOCPart command} % \changes{v1.05}{2005/06/19}{Page break after \l@part is forbidden} % \changes{v1.05}{2005/06/19}{New optional parameter in \DeclareTOCPart} +% \changes{v1.06}{2005/12/24}{Definition of |thebibliography| removed} +% \changes{v1.06}{2005/12/24}{Remove \NCC@tochead, \NCC@idxhead macros} +% \changes{v1.06}{2005/12/27}{Move \ChapterPrefixStyle to nccdefaults} +% \changes{v1.06}{2005/12/27}{Remove headings support} +% \changes{v1.06}{2005/12/29}{Remove part declaration commands} % \@addtoreset{footnote}{chapter} \setcounter{tocdepth}{2} \setcounter{secnumdepth}{2} -\def\NCC@tochead#1{\noheadingtag\skipwritingtoaux\chapter{#1}} -\def\NCC@idxhead#1{% - \twocolumn \noheadingtag\chapter{#1}% -} -% -% \frontmatter, \mainmatter, \backmatter -% -\newif\if@mainmatter \@mainmattertrue -\newcommand\frontmatter{% - \@mainmatterfalse\pagenumbering{roman}% -} -\newcommand\mainmatter{% - {\@openrighttrue\openrightorany}% - \@mainmattertrue - \pagenumbering{arabic}% -} -\newcommand\backmatter{% - \openrightorany \@mainmatterfalse -} -% -% Control of appearance chapter name in header and toc: -% -% \ChapterPrefixStyle{header,toc} -% -% The parameter list can contain two words: header and/or toc. -% Using them you set prefix style for header and/or toc respectively. -% -\newcommand{\@chapapp}{\chaptername} -\newcommand*{\ChapterPrefixStyle}[1]{% - \def\NCC@thetocchapter{\thechapter}% - \def\NCC@theheadchapter{\thechapter}% - \@for\@tempa:=#1\do - {\csname NCC@chapin@\@tempa\endcsname}% -} -\def\NCC@chapin@toc{\def\NCC@thetocchapter{\@chapapp\ \thechapter}} -\def\NCC@chapin@header{\def\NCC@theheadchapter{\@chapapp\ \thechapter}} -\@onlypreamble\ChapterPrefixStyle -\@onlypreamble\NCC@chapin@toc -\@onlypreamble\NCC@chapin@header -\ChapterPrefixStyle{} % no prefix by default -% -% \ps@headings, \ps@myheadings -% -\def\ps@headings{\NCC@setpsheading - \def\partmark##1{% - \NCC@firstmark{\ifnum \c@secnumdepth>-2\relax - \partname\ \thepart.\enskip \fi - \ignorespaces##1}}% - \def\chaptermark##1{% - \NCC@firstmark{\ifnum \c@secnumdepth>\m@ne - \if@mainmatter \NCC@theheadchapter.\enskip \fi \fi - \ignorespaces##1}}% - \def\sectionmark##1{% - \NCC@secondmark{\ifnum\c@secnumdepth>\z@\thesection.\enskip\fi - \ignorespaces##1}}% -} -\def\ps@myheadings{\NCC@setpsheading - \let\partmark \@gobble - \let\chaptermark\@gobble - \let\sectionmark\@gobble -} % % \appendix % +\newcommand\@chapapp{\chaptername} \newcommand{\appendix}{\par \setcounter{chapter}{-1}\stepcounter{chapter}% \gdef\@chapapp{\appendixname}% \gdef\thechapter{\@Alph\c@chapter}% } -% -% thebibliography -% -\newenvironment{thebibliography}{% - \noheadingtag \chapter{\bibname}\biblist[0]% -}{\endbiblist} -% -% Redefine start chapter hook -% -\def\NCC@startchap{% - \openrightorany - \thispageheading{}% - \global\@topnum\z@ -} -% -% \DeclarePart{BEFORE}{AFTER}{PREFIX}{STYLE} -% -\newcommand\DeclarePart[4]{% - \def\part{% - \openrightorany - \thispageheading{}% - \def\NCC@makesectag####1{\leavevmode#3\partname\nobreakspace####1}% - \secdef\@part\@spart - }% - \def\NCC@makepart##1##2{% - \if@twocolumn \onecolumn \@tempswatrue \else \@tempswafalse \fi - \begingroup\normalfont - #1% - \ifx\@svsec\@empty \else {\@svsec\par}\nobreak \fi - \interlinepenalty \@M - #4{##1}\par - \endgroup - ##2#2% - \if@tempswa \twocolumn \fi - } -} -\@onlypreamble\DeclarePart -\def\@spart#1{% - \let\@svsec\@empty - \NCC@makepart{#1}{}% - \NCC@sec@reset@controls - \NCC@defaultsectag -} -\def\@part[#1]#2{% - \def\NCC@make{\NCC@makepart{#2}}% - \NCC@makesection{part}{\m@ne}{#1}{% - \addcontentsline{toc}{part}{% - \ifnum \c@secnumdepth>-2 - \protect\numberline{\partname\ \thepart}\fi - #1% - }% - }% - \NCC@defaultsectag -} -% -% \DeclareTOCPart{ACTION}[AFTERSKIP]{PREFIX}{PROTOTYPE}{STYLE} -% -\newcommand*\DeclareTOCPart[1]{% - \@ifnextchar[{\NCC@dtocpart{#1}}{\NCC@dtocpart{#1}[\NCC@runskip]}% -} -\def\NCC@dtocpart#1[#2]#3#4#5{% - \def\l@part##1##2{% - \NCC@tocentry{-1}{% - \setlength\@tempdimb\@tocrmarg - \edef\@tocrmarg{\the\@tempdimb plus 1fil}% - \addpenalty{-\@highpenalty}#1% - }{#3}{#4}{#5}{##1}{\hss##2}% - \nobreak \vskip #2\relax - \@nobreaktrue - \everypar{\@nobreakfalse\everypar{}}% - }% -} -\@onlypreamble\DeclareTOCPart -\@onlypreamble\NCC@dtocpart -% -% Defaults -% -\ifNCC@small - \DeclarePart{\StartFromTextArea\vspace{\stretch{.5}}\centering} - {\vfill\newpage}{\vspace{1.5em}\Large\bff}{\huge\bff} -\else - \DeclarePart{\StartFromTextArea\vspace{\stretch{.5}}\centering} - {\vfill\newpage}{\vspace{2em}\LARGE\bff}{\Huge\bff} -\fi -\DeclareTOCPart{\NCC@secskip{4ex \@plus .2ex}\def\@dotsep{1000}} - {}{\partname\ II}{\large\bff} \endinput diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccdefaults.sty b/Master/texmf-dist/tex/latex/ncclatex/nccdefaults.sty new file mode 100644 index 00000000000..1ac2ebdb1e2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ncclatex/nccdefaults.sty @@ -0,0 +1,131 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{nccdefaults} + [2006/01/17 v1.03 NCC-LaTeX default settings (NCC)] +% +% \changes{v1.01}{2006/01/05}{This version is uploaded to CTAN} +% \changes{v1.02}{2006/01/06}{Remove \SetTOCStyle and \ChapterPrefixStyle} +% \changes{v1.03}{2006/01/17}{addtopackage -> afterpackage} +% +% The package specifies default settings to be applied to some packages +% from ncctools collection when they will be loaded. All this technique +% is based on the `afterpackage' package from ncctools. +% +\RequirePackage{afterpackage} +% +% Declare the equation counter to be dynamic and specify the default +% count style depending on class in use. +% +\AfterPackage{dcounter}{% + \DeclareDynamicCounter{equation} + \@ifundefined{chapter}{\countstyle{}}{\countstyle{chapter}} +} +% +% The default style of table headers is \scriptsize +% +\AfterPackage{nccboxes}{\renewcommand{\cboxstyle}{\scriptsize}} +% +% Change defaults for the nccsect package +% +\AfterPackage{nccsect}{% +% +% Specify section, toc, and caption syffices and default section style. +% + \SectionTagSuffix{.\hskip .6em} + \CaptionTagSuffix{.\hskip .6em \@plus .2em \@minus .1em} + \NumberlineSuffix{.\hskip .6em}{.\hskip .4em} + \sectionstyle{hangindent*} +% +% \openrightorany clears page or double page depending on openright +% mode selected. +% + \@ifundefined{if@openright}{% + \newcommand\openrightorany{\clearpage}% + }{% + \newcommand\openrightorany{\clearpage + \if@openright \if@twoside + \begingroup\let\leftmark\relax \cleardoublepage\endgroup + \fi\fi + }% + } + \@ifundefined{chapter}{}{% +% +% The following hooks are specified in books and reports only. +% +% Redefine the start-part and start-chapter hooks: +% + \RequirePackage{watermark} + \def\NCC@startpart{\openrightorany\thispageheading{}} + \def\NCC@startchap{\openrightorany\thispageheading{}% + \global\@topnum\z@ + } +% +% Specify the appearance of part and chapter prefices +% + \def\NCC@thetocpart{\partname\ \thepart} + \ChapterPrefixStyle{}% no prefix by default +% +% Provide \frontmatter, \mainmatter, and \backmatter commands +% + \@ifundefined{if@mainmatter}{% + \newif\if@mainmatter \@mainmattertrue + }{} + \providecommand\frontmatter{% + \@mainmatterfalse\pagenumbering{roman}% + } + \providecommand\mainmatter{% + {\@openrighttrue\openrightorany}% + \@mainmattertrue + \pagenumbering{arabic}% + } + \providecommand\backmatter{% + \openrightorany \@mainmatterfalse + } + } +} +% +% Specify default styles for theorems +% +\AfterPackage{nccthm}{% + \renewtheoremtype{remark}{\bfseries}{}{} + \TheoremCommentDelimiters{}{} + \AfterTheoremHeaderChar{.} + \AfterTheoremHeaderSkip{\hskip .7em \@plus .2em \@minus .1em} + \AparStyleParameters{\bfseries\mathversion{bold}}% + {\bfseries\mathversion{bold}}{.\enskip} + \ProofStyleParameters{\bfseries\mathversion{bold}}{\proofname} + \newcommand\proofname{Proof} + \AfterPackage{babel}{% + \addto\captionsrussian{% + \def\proofname{% + {\cyr\CYRD\cyro\cyrk\cyra\cyrz\cyra\cyrt\cyre\cyrl\cyrsftsn% + \cyrs\cyrt\cyrv\cyro}}% + } + } +} +% +% Patch to the russian style of babel +% +\AfterPackage{babel}{% + \ifx\cyrillicencoding\undefined \else +% +% Add a small kern to German left double quote shorthand +% + \declare@shorthand{russian}{"`}{\glqq\nobreak\hskip.0166667em } +% +% Remove last Babel's ``improvements'' to \flqq and \frqq commands. +% The result of these improvements is that russian corner quotes +% are taken from another font encoding than T2 and look very bad. +% + \DeclareRobustCommand{\flqq}{% + \textormath{\guillemotleft}{\mbox{\guillemotleft}}} + \DeclareRobustCommand{\frqq}{% + \textormath{\guillemotright}{\mbox{\guillemotright}}} +% +% Redefine the numero sign to work in any encoding +% + \DeclareRobustCommand{\No}{% + \ifmmode{\nfss@text{\textnumero}}\else{\cyr\textnumero}\fi + } + \fi +} +\endinput diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncchdr.sty b/Master/texmf-dist/tex/latex/ncclatex/ncchdr.sty index f05c47adc2f..49d03ba041a 100644 --- a/Master/texmf-dist/tex/latex/ncclatex/ncchdr.sty +++ b/Master/texmf-dist/tex/latex/ncclatex/ncchdr.sty @@ -1,39 +1,32 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{ncchdr} - [2005/01/12 v1.02 Fancy headers for NCC class (NCC)] + [2005/12/27 v1.04 Fancy headers for NCC class (NCC)] % % \changes{v1.01}{2002/02/14}{This version is uploaded to CTAN} % \changes{v1.02}{2002/04/25}{Bug in left header fixed} % \changes{v1.03}{2005/01/12}{Bug in \PassOptionsToPackage command fixed} +% \changes{v1.04}{2005/12/27}{It is based now on the nccheadings package} % % This package redefines NCC page styles to fancy styles % and defines the fancy `title' page style if the `title' option is used. % This style has three header marks: % \lefttitlemark, \titlemark (in center), and \righttitlemark. % -% If NCC class is not loaded, the package transfers redifinition of -% styles to the nccfancyhdr package in assumption that one of standard -% LaTeX classes is loaded. -% -\@ifundefined{NCC@setpsheading}{% - \def\NCC@temp{\PassOptionsToPackage{\CurrentOption}{nccfancyhdr}}% -}{% - \def\NCC@temp{% - \def\NCC@setpsheading{\ps@fancy - \fancyhead[CO]{% - \fancycenter{}% - {\small\itshape\ignorespaces\rightmark\unskip}% - {\thepage}% - }% - \fancyhead[CE]{% - \fancycenter{\thepage}% - {\small\itshape\ignorespaces\leftmark\unskip}% - {}% - }% +\RequirePackage{nccheadings} +\def\NCC@temp{% + \def\NCC@setpsheading{\ps@fancy + \fancyhead[CO]{% + \fancycenter{}% + {\small\itshape\ignorespaces\rightmark\unskip}% + {\thepage}% + }% + \fancyhead[CE]{% + \fancycenter{\thepage}% + {\small\itshape\ignorespaces\leftmark\unskip}% + {}% }% }% -} -% +}% \DeclareOption{empty}{% \PassOptionsToPackage{\CurrentOption}{nccfancyhdr}% \AtEndOfPackage{\pagestyle{empty}}% diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccheadings.sty b/Master/texmf-dist/tex/latex/ncclatex/nccheadings.sty new file mode 100644 index 00000000000..c97e7deb60c --- /dev/null +++ b/Master/texmf-dist/tex/latex/ncclatex/nccheadings.sty @@ -0,0 +1,74 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{nccheadings} + [2005/12/28 v1.00 Headings in ncc-style (NCC)] +% +% \changes{v1.00}{2005/12/28}{This version is uploaded to CTAN} +% +% NCC page style with headings support +% +\def\NCC@setpsheading{% + \let\@oddfoot\@empty\let\@evenfoot\@empty + \def\@evenhead{% + \thepage\hfil + {\small\itshape\ignorespaces\leftmark\unskip}\hfil + }% + \def\@oddhead{% + \hfil{\small\itshape\ignorespaces\rightmark\unskip}\hfil + \thepage + }% + \reset@font +} +\def\NCC@firstmark#1{\markboth{#1}{#1}} +\def\NCC@secondmark#1{\markright{#1}} +% +% Specify `headings' and `myheadings' page styles +% +\@ifundefined{chapter}{% +% +% Styles for article-like classes +% + \def\ps@headings{\NCC@setpsheading + \def\partmark##1{% + \NCC@firstmark{\ifnum \c@secnumdepth>\m@ne\thepart.\enskip \fi + \ignorespaces##1}}% + \def\sectionmark##1{% + \NCC@firstmark{\ifnum \c@secnumdepth>\z@\thesection.\enskip \fi + \ignorespaces##1}}% + \def\subsectionmark##1{% + \NCC@secondmark{\ifnum\c@secnumdepth>\@ne\thesubsection.\enskip\fi + \ignorespaces##1}}% + } + \def\ps@myheadings{\NCC@setpsheading + \let\partmark \@gobble + \let\sectionmark \@gobble + \let\subsectionmark\@gobble + } + \ps@myheadings +}{% +% +% Styles for book-like classes +% + \@ifundefined{if@mainmatter}{% + \newif\if@mainmatter \@mainmattertrue + } + \def\ps@headings{\NCC@setpsheading + \def\partmark##1{% + \NCC@firstmark{\ifnum \c@secnumdepth>-2\relax + \partname\ \thepart.\enskip \fi + \ignorespaces##1}}% + \def\chaptermark##1{% + \NCC@firstmark{\ifnum \c@secnumdepth>\m@ne + \if@mainmatter \@chapapp\ \thechapter.\enskip \fi \fi + \ignorespaces##1}}% + \def\sectionmark##1{% + \NCC@secondmark{\ifnum\c@secnumdepth>\z@\thesection.\enskip\fi + \ignorespaces##1}}% + } + \def\ps@myheadings{\NCC@setpsheading + \let\partmark \@gobble + \let\chaptermark\@gobble + \let\sectionmark\@gobble + } + \ps@headings +} +\endinput
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccindex.sty b/Master/texmf-dist/tex/latex/ncclatex/nccindex.sty index b0cfa2438b7..551ec196333 100644 --- a/Master/texmf-dist/tex/latex/ncclatex/nccindex.sty +++ b/Master/texmf-dist/tex/latex/ncclatex/nccindex.sty @@ -1,24 +1,25 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{nccindex} - [2005/03/24 v1.00 Multicolumn index for NCC class (NCC)] + [2005/12/24 v1.01 Multicolumn index for NCC class (NCC)] % % \changes{v1.00}{2005/03/24}{This version is uploaded to CTAN} +% \changes{v1.01}{2005/12/24}{Do package independent on ncc class} % -% The package redefines index-preparing commands on the base of multicol +% The package redefines index on the base of multicol % package. Some index control commands are specified here. % -\@ifundefined{NCC@index}{% - \PackageError{nccindex}{The package is used with the ncc class only}{}}{} +\RequirePackage{topsection} \RequirePackage{multicol} -\renewenvironment*{NCC@index}[1]{% +\def\NCC@index#1{% \if@twocolumn \onecolumn \fi - \noheadingtag - \@ifundefined{chapter}{\section{#1}}{\chapter{#1}}% + \topsection{#1}% \columnseprule\z@ \columnsep 2em \parindent\z@ \parskip\z@ \@plus .3\p@ \NCC@index@ \NCC@indexstart -}{\end{multicols}} +} +\def\endNCC@index{\end{multicols}} +\renewenvironment{theindex}{\NCC@index\indexname}{\endNCC@index} % % \indexparameters{columns}{indexspace}{margin1}{margin2}{margin3}{style} % diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncclatex.sty b/Master/texmf-dist/tex/latex/ncclatex/ncclatex.sty index 42965e9966a..dc7903bfa55 100644 --- a/Master/texmf-dist/tex/latex/ncclatex/ncclatex.sty +++ b/Master/texmf-dist/tex/latex/ncclatex/ncclatex.sty @@ -1,6 +1,6 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{ncclatex} - [2005/05/20 v1.05 NCC-LaTeX Extension Package (NCC)] + [2006/01/17 v1.07 NCC-LaTeX Extension Package (NCC)] % % \changes{v1.00}{2002/03/16}{This version is uploaded to CTAN} % \changes{v1.01}{2002/05/17}{Package extdash is loaded with cyremdash} @@ -14,19 +14,21 @@ % \changes{v1.05}{2005/03/23}{Add \NCC logo} % \changes{v1.05}{2005/04/25}{Declare equation counter as dynamic one} % \changes{v1.05}{2005/05/20}{Change nccsect package date to 2005/05/20} +% \changes{v1.06}{2005/12/27}{Reorganize the package!!!} +% \changes{v1.06}{2005/12/27}{The `minimize' option is introduced} +% \changes{v1.06}{2005/12/29}{Add defaults for parts in books} +% \changes{v1.06}{2006/01/01}{Minor changes} +% \changes{v1.07}{2006/01/17}{addtopackage -> afterpackage} % -% Define headers for theorem-like environments and acknowledgements. +% Load basic packages % -\newcommand{\theoremname}{Theorem} -\newcommand{\lemmaname}{Lemma} -\newcommand{\propositionname}{Proposition} -\newcommand{\corollaryname}{Corollary} -\newcommand{\definitionname}{Definition} -\newcommand{\statementname}{Statement} -\newcommand{\examplename}{Example} -\newcommand{\remarkname}{Remark} -\newcommand{\proofname}{Proof} -\newcommand{\acknowname}{Acknowledgements} +\RequirePackage{nccdefaults} +\RequirePackage{dcounter}[2005/04/25] +\RequirePackage{desclist} +\RequirePackage[shortcuts,cyremdash]{extdash} +\RequirePackage{nccmath} +\def\maketag@@@#1{\hbox{$\m@th\mathrm{#1}$}} +\RequirePackage{nccsect}[2005/05/20] % % Russian headings (Babel needed) % @@ -36,26 +38,45 @@ \DeclareOption{T2B}{\def\NCC@cyrenc{T2B}} \DeclareOption{T2A}{\def\NCC@cyrenc{T2A}} % -% Smaller headings of sections +% Smaller section titles % \newif\ifNCC@small \NCC@smallfalse \DeclareOption{small}{\NCC@smalltrue} +% +% The `minimize' option does not load the optional packages: +% +\def\NCC@temp{% + \RequirePackage{ncctheorems} + \RequirePackage{nccthm} + \RequirePackage{nccboxes} + \RequirePackage{nccfoots} + \RequirePackage{nccpic} + \RequirePackage{nccfloats} +} +\DeclareOption{minimize}{\let\NCC@temp\relax} +% +% Process options +% \ExecuteOptions{T2A} \ProcessOptions\relax +\NCC@temp \let\NCC@temp\relax % -% Load packages +% \acknow starts acknowledgements +% +\newcommand\acknowname{Acknowledgements} +\AfterPackage{babel}{% + \addto\captionsrussian{% + \def\acknowname{% + {\cyr\CYRB\cyrl\cyra\cyrg\cyro\cyrd\cyra\cyrr\cyrn\cyro\cyrs\cyrt\cyri}}% + } +} +\newcommand{\acknow}{% + \NCC@secskip{\NCC@runskip}\@nobreakfalse + \noindent\normalfont\textit\acknowname.\enskip +} +% +% Language specific actions % -\RequirePackage{dcounter}[2005/04/25] -\RequirePackage{desclist} -\RequirePackage[shortcuts,cyremdash]{extdash} -\RequirePackage{nccboxes} -\RequirePackage{nccfoots} -\RequirePackage{nccmath} -\def\maketag@@@#1{\hbox{$\m@th\mathrm{#1}$}} -\RequirePackage{nccpic} -\RequirePackage{nccthm} -\RequirePackage{nccsect}[2005/05/20] -\RequirePackage{nccfloats} \ifNCC@rus \RequirePackage[\NCC@cyrenc]{fontenc} \RequirePackage[russian]{nccltrus} @@ -68,71 +89,21 @@ \fi \let\NCC@cyrenc\relax % -% Declare the equation counter in the dynamic style. -% -\DeclareDynamicCounter{equation} -% % \cref{label} is cite without square brackets % \newcommand*{\cref}[1]{{\def\@cite##1##2{##1}\cite{#1}}} % -% Prepare theorem-like environments -% -\newtheorem{theorem}{\theoremname} -\newtheorem{lemma}{\lemmaname} -\newtheorem{proposition}{\propositionname} -\newtheorem{corollary}{\corollaryname} -\newtheorem{statement}{\statementname}[remark] -\newtheorem{definition}{\definitionname}[remark] -\newtheorem{example}{\examplename}[remark] -\newtheorem{remark}{\remarkname}[remark] -% -% Prepare APAR theorem-like environments -% -\newtheorem*{atheorem}{\theoremname} -\newtheorem*{alemma}{\lemmaname} -\newtheorem*{aproposition}{\propositionname} -\newtheorem*{acorollary}{\corollaryname} -\newtheorem*{astatement}{\statementname}[remark] -\newtheorem*{adefinition}{\definitionname}[remark] -\newtheorem*{anexample}{\examplename}[remark] -\newtheorem*{aremark}{\remarkname}[remark] -% -% Prepare manual theorem-like environments -% -\newenvironment{Theorem}{\liketheorem{\theoremname}}{\qef} -\newenvironment{Lemma}{\liketheorem{\lemmaname}}{\qef} -\newenvironment{Proposition}{\liketheorem{\propositionname}}{\qef} -\newenvironment{Corollary}{\liketheorem{\corollaryname}}{\qef} -\newenvironment{Statement}{\likeremark{\statementname}}{\qef} -\newenvironment{Definition}{\likeremark{\definitionname}}{\qef} -\newenvironment{Example}{\likeremark{\examplename}}{\qef} -\newenvironment{Remark}{\likeremark{\remarkname}}{\qef} -% -% Change default settings for theorems -% -\renewtheoremtype{remark}{\bfseries}{}{} -\TheoremCommentDelimiters{}{} -\AfterTheoremHeaderChar{.} -\AfterTheoremHeaderSkip{\hskip .7em \@plus .2em \@minus .1em} -\AparStyleParameters{\bff}{\bff}{.\enskip} -\ProofStyleParameters{\bff}{\proofname} -% -% \acknow starts acknowledgements. -% -\newcommand{\acknow}{\likeremark{\normalfont\itshape\acknowname}{}} -% % \mop{FOO} is equivalent to \operatorname{FOO} % \newcommand{\mop}{\operatorname} % -% NCC logo: +% Define NCC logo % \DeclareRobustCommand{\NCC}{{\protect\AmSfont N\kern-.05em\lower.5ex\hbox{C}\kern.05emC}% } % -% Customize sections and captions. +% Customize sections and captions % \def\NCC@runskip{2.3ex \@plus 1ex \@minus .2ex} \DeclareSection{-2}{table}{\bfseries}{\z@}{1.3ex}{\small} @@ -143,6 +114,8 @@ {4ex \@plus 1ex \@minus .2ex}% {2.8ex \@plus .2ex}{\LARGE\bff} }{% + \DeclarePart{\StartFromTextArea\vspace{\stretch{.5}}\centering}% + {\vfill\newpage}{\vspace{1.5em}\Large\bff}{\huge\bff} \DeclareSection*0{chapter}{\vspace{1.5ex}\large\bff}{\z@}% {6ex \@plus .2ex}{\LARGE\bff} } @@ -161,6 +134,8 @@ {5ex \@plus 1ex \@minus .2ex}% {3.8ex \@plus .2ex}{\huge\bff} }{% + \DeclarePart{\StartFromTextArea\vspace{\stretch{.5}}\centering}% + {\vfill\newpage}{\vspace{2em}\LARGE\bff}{\Huge\bff} \DeclareSection*0{chapter}{\vspace{2ex}\Large\bff}{\z@}% {8ex \@plus .2ex}{\huge\bff} } @@ -178,13 +153,8 @@ {-.6em \@plus -.2em \@minus -.1em}{\normalsize\bff} \DeclareSection5{subparagraph}[\parindent]{}{\NCC@runskip}% {-.6em \@plus -.2em \@minus -.1em}{\normalsize\bff} -\SectionTagSuffix{.\hskip .6em} -\CaptionTagSuffix{.\hskip .6em \@plus .2em \@minus .1em} -\NumberlineSuffix{.\hskip .6em}{.\hskip .4em} -\sectionstyle{hangindent*} % -% Millimeters are default units in NCC-LaTeX. +% Millimeters are default units in NCC-LaTeX % \unitlength=1mm -\renewcommand{\cboxstyle}{\scriptsize} \endinput diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccltrus.sty b/Master/texmf-dist/tex/latex/ncclatex/nccltrus.sty index 5480b6eede6..490693a0ae7 100644 --- a/Master/texmf-dist/tex/latex/ncclatex/nccltrus.sty +++ b/Master/texmf-dist/tex/latex/ncclatex/nccltrus.sty @@ -1,6 +1,6 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{nccltrus} - [2005/07/02 v1.06 Russian specifics (NCC)] + [2005/12/27 v1.07 Russian specifics (NCC)] % % \changes{v1.01}{2002/03/24}{This version is uploaded to CTAN} % \changes{v1.02}{2004/04/08}{All options are passed to babel} @@ -11,6 +11,8 @@ % \changes{v1.05}{2005/01/09}{Improve definition of \No command} % \changes{v1.05}{2005/04/13}{Add a small kern to \glqq shorthand} % \changes{v1.06}{2005/07/02}{Change kern with nonbreakable hspace in \glqq} +% \changes{v1.07}{2005/12/24}{Undo Babel's ``improvements'' to \flqq, \frqq} +% \changes{v1.07}{2005/12/27}{Move Babel's customization to other packages} % % The trick with temporary definition of \ver@inputenc.sty command % removes a warning from the [russian] option of the Babel package about @@ -28,17 +30,6 @@ \expandafter\let\csname ver@inputenc.sty\endcsname\NCC@tempa \ifx\cyrillicencoding\undefined \endinput\fi % -% Add a small kern to German left double quote shorthand -% -\declare@shorthand{russian}{"`}{\glqq\nobreak\hskip.0166667em } -% -% Redefine the numero sign to work in any encoding. -% -\let\No\relax -\DeclareRobustCommand{\No}{% - \ifmmode{\nfss@text{\textnumero}}\else{\cyr\textnumero}\fi -} -% % Load cp1251-light input encoding at the beginning of document % if no encoding was loaded at all % @@ -60,29 +51,4 @@ \let\@Alphlatin\@Alph \newcommand*\Alphlatin[1]{\expandafter\@Alphlatin\csname c@#1\endcsname} \def\@Alph#1{\text{\cyr\@Asbuk{#1}}} -% -% Redefine theorem-like headers for russian -% -\addto\captionsrussian{% - \def\theoremname{{\cyr\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}}% - \def\lemmaname{{\cyr\CYRL\cyre\cyrm\cyrm\cyra}}% - \def\propositionname{% - {\cyr\CYRP\cyrr\cyre\cyrd\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}}% - \def\corollaryname{% - {\cyr\CYRS\cyrl\cyre\cyrd\cyrs\cyrt\cyrv\cyri\cyre}}% - \def\definitionname{% - {\cyr\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyre}}% - \def\statementname{% - {\cyr\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyre}}% - \def\examplename{{\cyr\CYRP\cyrr\cyri\cyrm\cyre\cyrr}}% - \def\remarkname{% - {\cyr\CYRZ\cyra\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyre}}% - \def\proofname{% - {\cyr\CYRD\cyro\cyrk\cyra\cyrz\cyra\cyrt\cyre\cyrl\cyrsftsn% - \cyrs\cyrt\cyrv\cyro}}% - \def\acknowname{% - {\cyr\CYRB\cyrl\cyra\cyrg\cyro\cyrd\cyra\cyrr\cyrn\cyro\cyrs\cyrt\cyri}}% - \def\preprintname{% - {\cyr\CYRP\cyrr\cyre\cyrp\cyrr\cyri\cyrn\cyrt}}% -} \endinput diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccproc.cls b/Master/texmf-dist/tex/latex/ncclatex/nccproc.cls index 7a41334f7f8..bb0e94ba270 100644 --- a/Master/texmf-dist/tex/latex/ncclatex/nccproc.cls +++ b/Master/texmf-dist/tex/latex/ncclatex/nccproc.cls @@ -1,10 +1,11 @@ \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesClass{nccproc} - [2005/01/14 v1.2 Generic Proceedings Class (NCC)] + [2005/12/27 v1.3 Generic Proceedings Class (NCC)] % % \changes{v1.0}{2004/04/08}{This version was uploaded to CTAN} % \changes{v1.1}{2004/09/18}{Documentation was corrected} % \changes{v1.2}{2005/01/14}{Remove small, fleqn, and leqno options} +% \changes{v1.3}{2005/12/27}{11pt option is allowed now} % % The base class for NCC Proceedings. It supports bilingual % (Russian and English) proceedings. @@ -16,7 +17,6 @@ \DeclareOption{legalpaper}{\OptionNotUsed} \DeclareOption{executivepaper}{\OptionNotUsed} \DeclareOption{fittopage}{\OptionNotUsed} -\DeclareOption{11pt}{\OptionNotUsed} \DeclareOption{12pt}{\OptionNotUsed} \DeclareOption{14pt}{\OptionNotUsed} \DeclareOption{oneside}{\OptionNotUsed} diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccsections.sty b/Master/texmf-dist/tex/latex/ncclatex/nccsections.sty new file mode 100644 index 00000000000..0b1021b938c --- /dev/null +++ b/Master/texmf-dist/tex/latex/ncclatex/nccsections.sty @@ -0,0 +1,220 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{nccsections} + [2006/01/19 v1.01 Custom sectioning styles (NCC)] +% +% \changes{v1.00}{2006/01/01}{This version is uploaded to CTAN} +% \changes{v1.01}{2006/01/17}{addtopackage -> afterpackage} +% \changes{v1.01}{2006/01/19}{Add modification of \NCC@secflush hook} +% +\RequirePackage{afterpackage} +\RequirePackage{nccsect}[2006/01/19] +% +% The style parameter in section declaration commands is applied +% to the section text only +% +\DeclareOption{newsecstyle}{% + \def\NCC@preparesectag#1#2{\def\NCC@makesectag##1{#1{#2##1\NCC@asecnum}}} + \def\NCC@secttitle#1#2#3{#2#1{#3}} + \let\NCC@secptitle\NCC@secttitle + \let\NCC@secxtitle\NCC@secttitle + \DeclareSection*1{section}{\Large\bff}% + {3.5ex \@plus 1ex \@minus .2ex}% + {2.3ex \@plus .2ex}{\Large\bff} + \DeclareSection*2{subsection}{\large\bff}% + {3.25ex \@plus 1ex \@minus .2ex}% + {1.5ex \@plus .2ex}{\large\bff} + \DeclareSection*3{subsubsection}{\normalsize\bff}% + {3ex \@plus 1ex \@minus .2ex}% + {1.5ex \@plus .2ex}{\normalsize\bff} + \DeclareSection4{paragraph}{\normalsize\bff}% + {\NCC@runskip}{-1em}{\normalsize\bff} + \DeclareSection5{subparagraph}[\parindent]{\normalsize\bff}% + {\NCC@runskip}{-1em}{\normalsize\bff} + \AfterPackage{ncclatex}{% + \ifNCC@small + \DeclareSection*1{section}{\large\bff}% + {3.1ex \@plus 1ex \@minus .2ex}% + {1.5ex \@plus .2ex}{\large\bff} + \DeclareSection*2{subsection}{\normalsize\bff}% + {2.7ex \@plus 1ex \@minus .2ex}% + {1.5ex \@plus .2ex}{\normalsize\bff} + \DeclareSection*3{subsubsection}{\normalsize\bff\itshape}% + {\NCC@runskip}% + {1.5ex \@plus .2ex}{\normalsize\bff\itshape} + \else + \DeclareSection*1{section}{\Large\bff}% + {3.5ex \@plus 1ex \@minus .2ex}% + {2.3ex \@plus .2ex}{\Large\bff} + \DeclareSection*2{subsection}{\large\bff}% + {3.1ex \@plus 1ex \@minus .2ex}% + {1.5ex \@plus .2ex}{\large\bff} + \DeclareSection*3{subsubsection}{\normalsize\bff}% + {2.7ex \@plus 1ex \@minus .2ex}% + {1.5ex \@plus .2ex}{\normalsize\bff} + \fi + \DeclareSection4{paragraph}{\normalsize\bff}{\NCC@runskip}% + {-.6em \@plus -.2em \@minus -.1em}{\normalsize\bff} + \DeclareSection5{subparagraph}[\parindent]{\normalsize\bff}{\NCC@runskip}% + {-.6em \@plus -.2em \@minus -.1em}{\normalsize\bff} + } +} +% +% The style parameter in toc-entry declaration commands is applied +% to the toc-entry text only +% +\DeclareOption{newtocstyle}{% + \let\NCC@tocnumprototype\@secondoftwo + \def\NCC@nexttocnum#1#2{#1{#2\NCC@atocnum}} + \def\NCC@preparetocnum#1#2{\def\NCC@maketocnum##1{#2{##1\NCC@atocnum}}} + \def\NCC@tocentrytitle#1#2{% + \def\@tempa##1{#1{\ignorespaces##1}}% + \NCC@parsetocnum#2\NCC@do + } + \def\NCC@parsetocnum{\futurelet\@tempb\NCC@testtocnum} + \def\NCC@testtocnum{% + \ifx\@tempb\numberline + \expandafter\NCC@gettocnum + \else + \expandafter\NCC@gettoctext + \fi + } + \def\NCC@gettocnum#1#2{#1{#2}\NCC@gettoctext} + \def\NCC@gettoctext#1\NCC@do{\@tempa{#1}} + \@ifundefined{chapter}{% + \DeclareTOCEntry0{\runinsectionskip\def\@dotsep{1000}}% + {\bff}{III}{\bff}[] + }{% + \DeclareTOCPart{\NCC@secskip{4ex \@plus .2ex}\def\@dotsep{1000}}% + {\large\bff}{II}{\large\bff} + \DeclareTOCEntry0{\runinsectionskip\def\@dotsep{1000}% + \aftergroup\penalty\aftergroup\@highpenalty}% + {\bff}{9}{\bff} + } +} +% +% A chapter tag goes inline with title +% +\DeclareOption{chapterinline}{% + \@ifundefined{chapter}{\NCC@secoptionerror}{% + \let\NCC@chap@@gobble\@empty + \def\NCC@secflush{\NCC@secsave} + \@ifpackagewith{nccsections}{newsecstyle}{% + \def\NCC@makechaptitle#1#2#3{\NCC@chap@@gobble + \ifx\NCC@sec@@main\@empty #1\@svsec \else \NCC@sec{\@svsec}#1\fi + \interlinepenalty \@M #2{#3\@@par}% + } + }{% + \def\NCC@makechaptitle#1#2#3{\NCC@chap@@gobble + \ifx\NCC@sec@@main\@empty \def\NCC@sec@@main{#1\@svsec}\else + \def\NCC@sec@@main{\protect\NCC@sec{\@svsec}#1}\fi + #2{\NCC@sec@@main\interlinepenalty \@M #3\@@par}% + } + } + \DeclareSection*0{chapter}{\huge\bff}{10ex}% + {8ex \@plus .2ex}{\huge\bff} + \AfterPackage{ncclatex}{% + \ifNCC@small + \DeclareSection*0{chapter}{\Large\bff}{\z@}% + {6ex \@plus .2ex}{\Large\bff} + \else + \DeclareSection*0{chapter}{\LARGE\bff}{\z@}% + {8ex \@plus .2ex}{\LARGE\bff} + \fi + } + } +} +% +% Chapter like a section +% +\DeclareOption{chaptersection}{% + \@ifundefined{chapter}{\NCC@secoptionerror}{% + \@ifpackagewith{nccsections}{chapterinline}{}{% + \ExecuteOptions{chapterinline}% + } + \def\NCC@chap@@gobble{\let\@chapapp\@gobble} + \AtBeginDocument{% + \def\NCC@thetocchapter{\thechapter} + \let\NCC@makechapfinal\NCC@makechapfinalgobble + } + } +} +% +% A part tag goes inline with title +% +\DeclareOption{partinline}{% + \let\NCC@part@@gobble\@empty + \@ifundefined{chapter}{% + \def\NCC@secflush{\NCC@secsave} + \@ifpackagewith{nccsections}{newsecstyle}{% + \def\NCC@makeparttitle#1#2#3{\NCC@part@@gobble + \ifx\NCC@sec@@main\@empty #1\@svsec \else \NCC@sec{\@svsec}#1\fi + \interlinepenalty \@M #2{#3\@@par}% + } + }{% + \def\NCC@makeparttitle#1#2#3{\NCC@part@@gobble + \ifx\NCC@sec@@main\@empty \def\NCC@sec@@main{#1\@svsec}\else + \def\NCC@sec@@main{\protect\NCC@sec{\@svsec}#1}\fi + #2{\NCC@sec@@main\interlinepenalty \@M #3\@@par}% + } + } + \DeclareSection*0{part}{\LARGE\bff}% + {5ex \@plus 1ex \@minus .2ex}% + {4ex \@plus .2ex}{\LARGE\bff} + \AfterPackage{ncclatex}{% + \ifNCC@small + \DeclareSection*0{part}{\Large\bff}% + {4ex \@plus 1ex \@minus .2ex}% + {2.8ex \@plus .2ex}{\Large\bff} + \else + \DeclareSection*0{part}{\LARGE\bff}% + {5ex \@plus 1ex \@minus .2ex}% + {3.8ex \@plus .2ex}{\LARGE\bff} + \fi + } + }{% + \@ifpackagewith{nccsections}{newsecstyle}{% + \def\NCC@makeparttitle#1#2#3{#1\NCC@part@@gobble + \@svsec\interlinepenalty \@M #2{#3\@@par}% + } + }{% + \def\NCC@makeparttitle#1#2#3{#1\NCC@part@@gobble + #2{\@svsec\interlinepenalty \@M #3\@@par}% + } + } + \DeclarePart{\StartFromTextArea\vfil\centering}% + {\vfil\newpage \if@twoside\if@openright + \mbox{}\thispagestyle{empty}\newpage\fi\fi}% + {\huge\bff}{\huge\bff} + \AfterPackage{ncclatex}{% + \ifNCC@small + \DeclarePart{\StartFromTextArea\vspace{\stretch{.5}}\centering} + {\vfill\newpage}{\LARGE\bff}{\LARGE\bff} + \else + \DeclarePart{\StartFromTextArea\vspace{\stretch{.5}}\centering} + {\vfill\newpage}{\huge\bff}{\huge\bff} + \fi + } + } +} +% +% Part like a section +% +\DeclareOption{partsection}{% + \@ifpackagewith{nccsections}{partinline}{}{% + \ExecuteOptions{partinline}% + } + \def\NCC@part@@gobble{\let\partname\@gobble} + \@ifundefined{chapter}{}{% + \AtBeginDocument{% + \def\NCC@thetocpart{\thepart} + \let\NCC@makepartfinal\NCC@makepartfinalgobble + } + } +} +\def\NCC@secoptionerror{% + \PackageError{nccsections}% + {Option `\CurrentOption' useful in book-like classes only}{}% +} +\@onlypreamble\NCC@secoptionerror +\ProcessOptions\relax +\endinput diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncctheorems.sty b/Master/texmf-dist/tex/latex/ncclatex/ncctheorems.sty new file mode 100644 index 00000000000..adda7572826 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ncclatex/ncctheorems.sty @@ -0,0 +1,82 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{ncctheorems} + [2006/01/17 v1.01 NCC-LaTeX default theorems (NCC)] +% +% \changes{v1.00}{2005/12/27}{This version is uploaded to CTAN} +% \changes{v1.01}{2006/01/17}{addtopackage -> afterpackage} +% +% The package specifies theorem-like environments to be defined when the +% nccthm package will be loaded. It extends the default settings from +% the nccdefaults package. +% +\RequirePackage{nccdefaults} +% +% Customize nccthm package +% +\AfterPackage{nccthm}{% +% +% Define headers for theorem-like environments. +% + \newcommand{\theoremname}{Theorem} + \newcommand{\lemmaname}{Lemma} + \newcommand{\propositionname}{Proposition} + \newcommand{\corollaryname}{Corollary} + \newcommand{\definitionname}{Definition} + \newcommand{\statementname}{Statement} + \newcommand{\examplename}{Example} + \newcommand{\remarkname}{Remark} +% +% Prepare theorem-like environments +% + \newtheorem{theorem}{\theoremname} + \newtheorem{lemma}{\lemmaname} + \newtheorem{proposition}{\propositionname} + \newtheorem{corollary}{\corollaryname} + \newtheorem{statement}{\statementname}[remark] + \newtheorem{definition}{\definitionname}[remark] + \newtheorem{example}{\examplename}[remark] + \newtheorem{remark}{\remarkname}[remark] +% +% Prepare APAR theorem-like environments +% + \newtheorem*{atheorem}{\theoremname} + \newtheorem*{alemma}{\lemmaname} + \newtheorem*{aproposition}{\propositionname} + \newtheorem*{acorollary}{\corollaryname} + \newtheorem*{astatement}{\statementname}[remark] + \newtheorem*{adefinition}{\definitionname}[remark] + \newtheorem*{anexample}{\examplename}[remark] + \newtheorem*{aremark}{\remarkname}[remark] +% +% Prepare manual theorem-like environments +% + \newenvironment{Theorem}{\liketheorem{\theoremname}}{\qef} + \newenvironment{Lemma}{\liketheorem{\lemmaname}}{\qef} + \newenvironment{Proposition}{\liketheorem{\propositionname}}{\qef} + \newenvironment{Corollary}{\liketheorem{\corollaryname}}{\qef} + \newenvironment{Statement}{\likeremark{\statementname}}{\qef} + \newenvironment{Definition}{\likeremark{\definitionname}}{\qef} + \newenvironment{Example}{\likeremark{\examplename}}{\qef} + \newenvironment{Remark}{\likeremark{\remarkname}}{\qef} +} +% +% Specify russian versions of theorem-like titles. +% +\AfterPackage{babel}{% + \addto\captionsrussian{% + \def\theoremname{{\cyr\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}}% + \def\lemmaname{{\cyr\CYRL\cyre\cyrm\cyrm\cyra}}% + \def\propositionname{% + {\cyr\CYRP\cyrr\cyre\cyrd\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}}% + \def\corollaryname{% + {\cyr\CYRS\cyrl\cyre\cyrd\cyrs\cyrt\cyrv\cyri\cyre}}% + \def\definitionname{% + {\cyr\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyre}}% + \def\statementname{% + {\cyr\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyre}}% + \def\examplename{{\cyr\CYRP\cyrr\cyri\cyrm\cyre\cyrr}}% + \def\remarkname{% + {\cyr\CYRZ\cyra\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyre}}% + } +} +\endinput
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncctitle.clo b/Master/texmf-dist/tex/latex/ncclatex/ncctitle.clo index 719f1a8de92..3117a064d49 100644 --- a/Master/texmf-dist/tex/latex/ncclatex/ncctitle.clo +++ b/Master/texmf-dist/tex/latex/ncclatex/ncctitle.clo @@ -1,5 +1,5 @@ \ProvidesFile{ncctitle.clo} - [2005/07/24 v1.05 Title page (NCC)] + [2005/12/26 v1.06 Title page (NCC)] % % \changes{v1.00}{2002/02/19}{This version is uploaded to CTAN} % \changes{v1.01}{2004/11/30}{Add the \NCC@titlestyle hook} @@ -13,206 +13,7 @@ % \changes{v1.04}{2005/06/18}{Use \ExpandTextArea in title pages} % \changes{v1.04}{2005/06/18}{Introduce \titleareadefault} % \changes{v1.05}{2005/07/24}{Replace \vfil to \vfill in the \endabstract} +% \changes{v1.06}{2005/12/26}{This class option is obsolete now} % -% This file provides a title, an abstract, and a last page prepared -% on separate title pages. -% -% The expansion of the text area on these pages is specified with the -% \titleareadefault macro. -% -\newcommand\titleareadefault{*} -% -% The \maketitle uses the following hooks: -% -% \NCC@titlestyle a style applied to the title -% \NCC@titlebegin typed out at the beginning of title -% \@maketitle prepares a title -% \NCC@titlecomment typed out right after the title -% \NCC@titleend typed out at the end of title -% -% We do not delete title specific commands because the \@maketitle -% command can be used for preparing other special pages also. -% -\newcommand{\maketitle}{% - \begin{titlepage}% - \NCC@titlestyle - \ExpandTextArea[\titleareadefault]% - \let\footnoterule\relax - \renewcommand\thefootnote{\@fnsymbol\c@footnote}% - \begingroup - \def\@makefnmark{\@textsuperscript{\normalfont\@thefnmark}}% - \NCC@titlebegin - \@maketitle - \NCC@titlecomment - \NCC@titleend - \endgroup - \@thanks\setcounter{footnote}{0}\gdef\@thanks{}% - \end{titlepage}% -} -\let\NCC@titlecomment\@empty -% -% \@maketitle makes the title itself. The \@date useless in NCC titles -% -\def\@maketitle{% - \ifx\@author\@empty {\huge\bff \@title \par}% - \else - \ifNCC@authorbeforetitle \else - {\huge\bff \@title \par}\vskip 3em - \fi - {\Large\bfseries \lineskip .75em \@author \par}% - \ifNCC@authorbeforetitle - \vskip 2em {\huge\bff \@title \par}% - \fi - \fi -} -% -% Service hooks for the title: -% -% \titlestretch{value} -% \titlestyle{A style} -% \titlehead{A text at the top of title} -% \titlesign{A sign of Publishing House} -% \titlefoot{A text at the bottom of title} -% \titlecomment{A comment below title} -% -% The \titlecomment is also applied to the last page -% -\newcommand*\titlestretch[1]{\def\NCC@titlestretch{#1}} -\newcommand*\titlestyle[1]{\def\NCC@titlestyle{#1}} -\newcommand\titlehead[1]{\def\NCC@titlebegin{{#1\par}\vfill}} -\newcommand\titlesign[1]{\def\NCC@titlesign{#1}} -\newcommand\titlefoot[1]{% - \def\NCC@titleend{% - \vspace{\stretch{\NCC@titlestretch}}% - {\NCC@titlesign\par}% - \vspace{\stretch{\NCC@titlestretch}}% - {#1\par}% - }% -} -\newcommand\titlecomment[1]{% - \def\@tempa{#1}% - \ifx\@tempa\@empty - \let\NCC@titlecomment\@empty - \else - \def\NCC@titlecomment{\vskip 1.5em {\large#1\par}}% - \fi -} -% -% The abstract environment uses the following hooks: -% -% \NCC@abstractstyle a style applied to the abstract -% \NCC@abstractbegin typed out at the beginning of abstract -% \NCC@abstractend typed out at the end of abstract -% -% The area of the abstract page is specified with \TitleAreaDefault macro. -% -\newenvironment{abstract}{% - \titlepage - \NCC@abstractstyle - \ExpandTextArea[\titleareadefault]% - \NCC@abstractbegin - \begingroup -}{ - \par\endgroup - \vfill - \NCC@abstractend - \endtitlepage -} -% -% Service hooks for the abstract: -% -% \abstractstyle{A style for main part of abstract} -% \bibindex[style]{A bibliography index of the document} -% \copyrighttable[style]{ISBN}{\item copyright\\ \item copyright ...} -% -% \fulltitle[style]{authors}{full title} this command is used inside -% the abstract. -% -% In the \bibindex and \copyrighttable, the default style is \footnotesize. -% In the \fulltitle, the default style is \normalsize. -% -\newcommand*\abstractstyle[1]{% - \def\NCC@abstractstyle{#1\def\qef{\par\addvspace{2.5ex \@minus .5ex}}}% -} -\newcommand\bibindex[2][\footnotesize]{% - \if!#2!% - \let\NCC@abstractbegin\@empty - \else - \def\NCC@abstractbegin{{\noindent#1\ignorespaces#2\par}\qef}% - \fi -} -\newcommand*\copyrighttable[3][\footnotesize]{% - \def\NCC@abstractend{#1\noindent - \pbox[lb]{#2}\hfill - \def\item{\llap{\copyright\ }}% - \pbox[lb]{#3}% - \par - } -} -\newcommand*\fulltitle[3][\normalsize]{% - {\par#1\normalfont{\bfseries#2} #3\par}% - \qef% -} -% -% The \makelastpage uses the following hooks: -% -% \NCC@lastpagestyle a style applied to the last page -% \NCC@lastpagebegin typed out at the beginning of the last page -% \@maketitle prepares a title -% \NCC@titlecomment typed out right after the title on the last page -% \NCC@lastpageend typed out at the end of the last page -% -% The area of the last page is specified with \TitleAreaDefault macro. -% -\newcommand{\makelastpage}{% - \begin{titlepage}% - \NCC@lastpagestyle - \ExpandTextArea[\titleareadefault]% - \NCC@lastpagebegin - \@maketitle - \NCC@titlecomment - \NCC@lastpageend - \end{titlepage}% -} -% -% Service hooks for the last page: -% -% \lastpagestretch{value} -% \lastpagestyle{A style} -% \lastpagehead{A text at the top of the last page} -% \lastpageinfo[style]{Designers}{Publishing attributes}{Publisher} -% -\newcommand*\lastpagestretch[1]{\def\NCC@lastpagestretch{#1}} -\newcommand*\lastpagestyle[1]{\def\NCC@lastpagestyle{#1}} -\newcommand\lastpagehead[1]{\def\NCC@lastpagebegin{{#1\par}\vfill}% -} -\newcommand\lastpageinfo[4][\small]{% - \def\NCC@lastpageend{#1% - \vspace{\stretch{\NCC@lastpagestretch}}% - {#2\par}\bigskip - \hrule \@height .6pt\@width\linewidth - {\Strut/.5/\ignorespaces#3\unskip\Strut/-.5/\par}% - \hrule \@height .6pt\@width\linewidth - \bigskip{#4\par}% - }% -} -% -% Defaults -% -\titlestretch{1} -\titlestyle{\centering} -\titlehead{} -\titlesign{} -\titlefoot{} -\titlecomment{} -% -\abstractstyle{\small} -\bibindex{} -\def\NCC@abstractend{} -% -\lastpagestretch{1} -\lastpagestyle{\centering} -\lastpagehead{} -\def\NCC@lastpageend{\vspace{\stretch{\NCC@lastpagestretch}}} -% +\@latex@warning{Obsolete option ncctitle.clo. Use ncctitle package instead.} \endinput diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncctitle.sty b/Master/texmf-dist/tex/latex/ncclatex/ncctitle.sty new file mode 100644 index 00000000000..5a38762aae6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ncclatex/ncctitle.sty @@ -0,0 +1,233 @@ +\ProvidesPackage{ncctitle} + [2005/12/26 v1.06 Title page (NCC)] +% +% \changes{v1.00}{2002/02/19}{This version is uploaded to CTAN} +% \changes{v1.01}{2004/11/30}{Add the \NCC@titlestyle hook} +% \changes{v1.01}{2004/11/30}{Add the \StartFromHeaderArea command +% at the beginning of title and abstract} +% \changes{v1.01}{2004/11/30}{Service title management commands added} +% \changes{v1.02}{2004/12/07}{Add the \NCC@abstractstyle hook} +% \changes{v1.02}{2004/12/07}{Introduce \makelastpage command} +% \changes{v1.02}{2004/12/07}{Add services for the abstract and last page} +% \changes{v1.03}{2004/12/16}{Replace \NCC@gempty with \@empty} +% \changes{v1.04}{2005/06/18}{Use \ExpandTextArea in title pages} +% \changes{v1.04}{2005/06/18}{Introduce \titleareadefault} +% \changes{v1.05}{2005/07/24}{Replace \vfil to \vfill in the \endabstract} +% \changes{v1.06}{2005/12/26}{Change extension from .clo to .sty} +% +% This package provides a title, an abstract, and a last page prepared +% on separate title pages. +% +\RequirePackage{ncctitlepage} +% +% The expansion of the text area on these pages is specified with the +% \titleareadefault macro. +% +\newcommand\titleareadefault{*} +% +% The \maketitle uses the following hooks: +% +% \NCC@titlestyle a style applied to the title +% \NCC@titlebegin typed out at the beginning of title +% \@maketitle prepares a title +% \NCC@titlecomment typed out right after the title +% \NCC@titleend typed out at the end of title +% +% We do not delete title specific commands because the \@maketitle +% command can be used for preparing other special pages also. +% +\def\maketitle{% + \begin{titlepage}% + \NCC@titlestyle + \ExpandTextArea[\titleareadefault]% + \let\footnoterule\relax + \renewcommand\thefootnote{\@fnsymbol\c@footnote}% + \begingroup + \def\@makefnmark{\@textsuperscript{\normalfont\@thefnmark}}% + \NCC@titlebegin + \@maketitle + \NCC@titlecomment + \NCC@titleend + \endgroup + \@thanks\setcounter{footnote}{0}\gdef\@thanks{}% + \end{titlepage}% +} +\let\NCC@titlecomment\@empty +% +% What goes first in title: author or title? +% +\@ifundefined{ifNCC@authorbeforetitle}{% + \newif\ifNCC@authorbeforetitle + \newcommand{\AuthorBeforeTitle}{\NCC@authorbeforetitletrue} + \newcommand{\TitleBeforeAuthor}{\NCC@authorbeforetitlefalse} + \@onlypreamble\AuthorBeforeTitle + \@onlypreamble\TitleBeforeAuthor + \AuthorBeforeTitle +} +% +% \@maketitle makes the title itself. The \@date useless in NCC titles +% +\def\@maketitle{% + \ifx\@author\@empty {\huge\bff \@title \par}% + \else + \ifNCC@authorbeforetitle \else + {\huge\bff \@title \par}\vskip 3em + \fi + {\Large\bfseries \lineskip .75em \@author \par}% + \ifNCC@authorbeforetitle + \vskip 2em {\huge\bff \@title \par}% + \fi + \fi +} +% +% Service hooks for the title: +% +% \titlestretch{value} +% \titlestyle{A style} +% \titlehead{A text at the top of title} +% \titlesign{A sign of Publishing House} +% \titlefoot{A text at the bottom of title} +% \titlecomment{A comment below title} +% +% The \titlecomment is also applied to the last page +% +\newcommand*\titlestretch[1]{\def\NCC@titlestretch{#1}} +\newcommand*\titlestyle[1]{\def\NCC@titlestyle{#1}} +\newcommand\titlehead[1]{\def\NCC@titlebegin{{#1\par}\vfill}} +\newcommand\titlesign[1]{\def\NCC@titlesign{#1}} +\newcommand\titlefoot[1]{% + \def\NCC@titleend{% + \vspace{\stretch{\NCC@titlestretch}}% + {\NCC@titlesign\par}% + \vspace{\stretch{\NCC@titlestretch}}% + {#1\par}% + }% +} +\newcommand\titlecomment[1]{% + \def\@tempa{#1}% + \ifx\@tempa\@empty + \let\NCC@titlecomment\@empty + \else + \def\NCC@titlecomment{\vskip 1.5em {\large#1\par}}% + \fi +} +% +% The abstract environment uses the following hooks: +% +% \NCC@abstractstyle a style applied to the abstract +% \NCC@abstractbegin typed out at the beginning of abstract +% \NCC@abstractend typed out at the end of abstract +% +% The area of the abstract page is specified with \TitleAreaDefault macro. +% +\def\abstract{% + \titlepage + \NCC@abstractstyle + \ExpandTextArea[\titleareadefault]% + \NCC@abstractbegin + \begingroup +} +\def\endabstract{ + \par\endgroup + \vfill + \NCC@abstractend + \endtitlepage +} +% +% Service hooks for the abstract: +% +% \abstractstyle{A style for main part of abstract} +% \bibindex[style]{A bibliography index of the document} +% \copyrighttable[style]{ISBN}{\item copyright\\ \item copyright ...} +% +% \fulltitle[style]{authors}{full title} this command is used inside +% the abstract. +% +% In the \bibindex and \copyrighttable, the default style is \footnotesize. +% In the \fulltitle, the default style is \normalsize. +% +\newcommand*\abstractstyle[1]{% + \def\NCC@abstractstyle{#1\def\qef{\par\addvspace{2.5ex \@minus .5ex}}}% +} +\newcommand\bibindex[2][\footnotesize]{% + \if!#2!% + \let\NCC@abstractbegin\@empty + \else + \def\NCC@abstractbegin{{\noindent#1\ignorespaces#2\par}\qef}% + \fi +} +\newcommand*\copyrighttable[3][\footnotesize]{% + \def\NCC@abstractend{#1\noindent + \pbox[lb]{#2}\hfill + \def\item{\llap{\copyright\ }}% + \pbox[lb]{#3}% + \par + } +} +\newcommand*\fulltitle[3][\normalsize]{% + {\par#1\normalfont{\bfseries#2} #3\par}% + \qef% +} +% +% The \makelastpage uses the following hooks: +% +% \NCC@lastpagestyle a style applied to the last page +% \NCC@lastpagebegin typed out at the beginning of the last page +% \@maketitle prepares a title +% \NCC@titlecomment typed out right after the title on the last page +% \NCC@lastpageend typed out at the end of the last page +% +% The area of the last page is specified with \TitleAreaDefault macro. +% +\newcommand{\makelastpage}{% + \begin{titlepage}% + \NCC@lastpagestyle + \ExpandTextArea[\titleareadefault]% + \NCC@lastpagebegin + \@maketitle + \NCC@titlecomment + \NCC@lastpageend + \end{titlepage}% +} +% +% Service hooks for the last page: +% +% \lastpagestretch{value} +% \lastpagestyle{A style} +% \lastpagehead{A text at the top of the last page} +% \lastpageinfo[style]{Designers}{Publishing attributes}{Publisher} +% +\newcommand*\lastpagestretch[1]{\def\NCC@lastpagestretch{#1}} +\newcommand*\lastpagestyle[1]{\def\NCC@lastpagestyle{#1}} +\newcommand\lastpagehead[1]{\def\NCC@lastpagebegin{{#1\par}\vfill}% +} +\newcommand\lastpageinfo[4][\small]{% + \def\NCC@lastpageend{#1% + \vspace{\stretch{\NCC@lastpagestretch}}% + {#2\par}\bigskip + \hrule \@height .6pt\@width\linewidth + {\Strut/.5/\ignorespaces#3\unskip\Strut/-.5/\par}% + \hrule \@height .6pt\@width\linewidth + \bigskip{#4\par}% + }% +} +% +% Defaults +% +\titlestretch{1} +\titlestyle{\centering} +\titlehead{} +\titlesign{} +\titlefoot{} +\titlecomment{} +% +\abstractstyle{\small} +\bibindex{} +\def\NCC@abstractend{} +% +\lastpagestretch{1} +\lastpagestyle{\centering} +\lastpagehead{} +\def\NCC@lastpageend{\vspace{\stretch{\NCC@lastpagestretch}}} +% +\endinput diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncctitlepage.sty b/Master/texmf-dist/tex/latex/ncclatex/ncctitlepage.sty new file mode 100644 index 00000000000..bbcfb0a8b0f --- /dev/null +++ b/Master/texmf-dist/tex/latex/ncclatex/ncctitlepage.sty @@ -0,0 +1,44 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{ncctitlepage} + [2005/12/26 v1.00 The titlepage environment (NCC)] +% +% \changes{v1.00}{2005/12/26}{This version is uploaded to CTAN} +% +\RequirePackage{textarea} +\@ifundefined{if@restonecol}{\newif\if@restonecol} +% +% The titlepage environment. Sets the empty page style at the top-level +% title page. We suppose that a title page can contain many pages and many +% title pages inside. The page counter is restored to its +% original value after leaving a top-level title page. +% +\newif\ifNCC@intitle \NCC@intitlefalse +\def\titlepage{% + \clearpage + \if@twocolumn \@restonecoltrue \onecolumn \else \@restonecolfalse \fi + \ifNCC@intitle + \let\NCC@restorepagecount\@empty + \else + \pagestyle{empty} + \edef\NCC@restorepagecount{% + \noexpand\global\noexpand\c@page \@arabic\c@page\relax}% + \setcounter{page}\z@ + \c@footnote\z@ \def\thefootnote{\@fnsymbol\c@footnote}% + \NCC@intitletrue + \fi + \let\NCC@restoretextarea\@empty +} +\def\endtitlepage{% + \clearpage + \NCC@restoretextarea + \if@restonecol\twocolumn \fi + \NCC@restorepagecount +} +% +% The star-form of the titlepage environment works as an inner one, +% i.e. it does not change the page counter. +\newenvironment{titlepage*}{\NCC@intitletrue + \clearpage\pagestyle{empty}\titlepage +}{\endtitlepage} + +\endinput
\ No newline at end of file |