From e9351f8ac4f8603d6020be78e092e939e24d89d0 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 13 Jan 2006 00:00:27 +0000
Subject: ncclatex

git-svn-id: svn://tug.org/texlive/trunk@1131 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/ncclatex/ncclatex.sty | 190 ++++++++++++++++++++++
 1 file changed, 190 insertions(+)
 create mode 100644 Master/texmf-dist/tex/latex/ncclatex/ncclatex.sty

(limited to 'Master/texmf-dist/tex/latex/ncclatex/ncclatex.sty')

diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncclatex.sty b/Master/texmf-dist/tex/latex/ncclatex/ncclatex.sty
new file mode 100644
index 00000000000..42965e9966a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncclatex/ncclatex.sty
@@ -0,0 +1,190 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{ncclatex}
+         [2005/05/20 v1.05 NCC-LaTeX Extension Package (NCC)]
+%
+% \changes{v1.00}{2002/03/16}{This version is uploaded to CTAN}
+% \changes{v1.01}{2002/05/17}{Package extdash is loaded with cyremdash}
+% \changes{v1.01}{2002/05/17}{The equation counter is dynamic now}
+% \changes{v1.02}{2002/05/19}{Vskip after table's caption is reduced}
+% \changes{v1.03}{2004/04/08}{The processing of 'russian' option is improved}
+% \changes{v1.04}{2004/12/12}{Require the latest version of nccsect}
+% \changes{v1.05}{2005/01/09}{Add options T2A, T2B, T2C}
+% \changes{v1.05}{2005/02/07}{Remove |\tr|, |\tl|, and |\tc| commands}
+% \changes{v1.05}{2005/02/15}{Prepare equations tag in |\mathrm|)
+% \changes{v1.05}{2005/03/23}{Add \NCC logo}
+% \changes{v1.05}{2005/04/25}{Declare equation counter as dynamic one}
+% \changes{v1.05}{2005/05/20}{Change nccsect package date to 2005/05/20}
+%
+% Define headers for theorem-like environments and acknowledgements.
+%
+\newcommand{\theoremname}{Theorem}
+\newcommand{\lemmaname}{Lemma}
+\newcommand{\propositionname}{Proposition}
+\newcommand{\corollaryname}{Corollary}
+\newcommand{\definitionname}{Definition}
+\newcommand{\statementname}{Statement}
+\newcommand{\examplename}{Example}
+\newcommand{\remarkname}{Remark}
+\newcommand{\proofname}{Proof}
+\newcommand{\acknowname}{Acknowledgements}
+%
+% Russian headings (Babel needed)
+%
+\newif\ifNCC@rus \NCC@rusfalse
+\DeclareOption{russian}{\NCC@rustrue}
+\DeclareOption{T2C}{\def\NCC@cyrenc{T2C}}
+\DeclareOption{T2B}{\def\NCC@cyrenc{T2B}}
+\DeclareOption{T2A}{\def\NCC@cyrenc{T2A}}
+%
+% Smaller headings of sections
+%
+\newif\ifNCC@small \NCC@smallfalse
+\DeclareOption{small}{\NCC@smalltrue}
+\ExecuteOptions{T2A}
+\ProcessOptions\relax
+%
+% Load packages
+%
+\RequirePackage{dcounter}[2005/04/25]
+\RequirePackage{desclist}
+\RequirePackage[shortcuts,cyremdash]{extdash}
+\RequirePackage{nccboxes}
+\RequirePackage{nccfoots}
+\RequirePackage{nccmath}
+\def\maketag@@@#1{\hbox{$\m@th\mathrm{#1}$}}
+\RequirePackage{nccpic}
+\RequirePackage{nccthm}
+\RequirePackage{nccsect}[2005/05/20]
+\RequirePackage{nccfloats}
+\ifNCC@rus
+  \RequirePackage[\NCC@cyrenc]{fontenc}
+  \RequirePackage[russian]{nccltrus}
+\else
+  \def\tg{\qopname\relax o{tg}}
+  \def\arctg{\qopname\relax o{arctg}}
+  \def\ctg{\qopname\relax o{ctg}}
+  \def\arcctg{\qopname\relax o{arcctg}}
+  \@ifundefined{No}{\def\No{\mbox{No.}}}{}
+\fi
+\let\NCC@cyrenc\relax
+%
+% Declare the equation counter in the dynamic style.
+%
+\DeclareDynamicCounter{equation}
+%
+% \cref{label} is cite without square brackets
+%
+\newcommand*{\cref}[1]{{\def\@cite##1##2{##1}\cite{#1}}}
+%
+% Prepare theorem-like environments
+%
+\newtheorem{theorem}{\theoremname}
+\newtheorem{lemma}{\lemmaname}
+\newtheorem{proposition}{\propositionname}
+\newtheorem{corollary}{\corollaryname}
+\newtheorem{statement}{\statementname}[remark]
+\newtheorem{definition}{\definitionname}[remark]
+\newtheorem{example}{\examplename}[remark]
+\newtheorem{remark}{\remarkname}[remark]
+%
+% Prepare APAR theorem-like environments
+%
+\newtheorem*{atheorem}{\theoremname}
+\newtheorem*{alemma}{\lemmaname}
+\newtheorem*{aproposition}{\propositionname}
+\newtheorem*{acorollary}{\corollaryname}
+\newtheorem*{astatement}{\statementname}[remark]
+\newtheorem*{adefinition}{\definitionname}[remark]
+\newtheorem*{anexample}{\examplename}[remark]
+\newtheorem*{aremark}{\remarkname}[remark]
+%
+% Prepare manual theorem-like environments
+%
+\newenvironment{Theorem}{\liketheorem{\theoremname}}{\qef}
+\newenvironment{Lemma}{\liketheorem{\lemmaname}}{\qef}
+\newenvironment{Proposition}{\liketheorem{\propositionname}}{\qef}
+\newenvironment{Corollary}{\liketheorem{\corollaryname}}{\qef}
+\newenvironment{Statement}{\likeremark{\statementname}}{\qef}
+\newenvironment{Definition}{\likeremark{\definitionname}}{\qef}
+\newenvironment{Example}{\likeremark{\examplename}}{\qef}
+\newenvironment{Remark}{\likeremark{\remarkname}}{\qef}
+%
+% Change default settings for theorems
+%
+\renewtheoremtype{remark}{\bfseries}{}{}
+\TheoremCommentDelimiters{}{}
+\AfterTheoremHeaderChar{.}
+\AfterTheoremHeaderSkip{\hskip .7em \@plus .2em \@minus .1em}
+\AparStyleParameters{\bff}{\bff}{.\enskip}
+\ProofStyleParameters{\bff}{\proofname}
+%
+% \acknow starts acknowledgements.
+%
+\newcommand{\acknow}{\likeremark{\normalfont\itshape\acknowname}{}}
+%
+% \mop{FOO} is equivalent to \operatorname{FOO}
+%
+\newcommand{\mop}{\operatorname}
+%
+% NCC logo:
+%
+\DeclareRobustCommand{\NCC}{{\protect\AmSfont
+  N\kern-.05em\lower.5ex\hbox{C}\kern.05emC}%
+}
+%
+% Customize sections and captions.
+%
+\def\NCC@runskip{2.3ex \@plus 1ex \@minus .2ex}
+\DeclareSection{-2}{table}{\bfseries}{\z@}{1.3ex}{\small}
+\DeclareSection{-1}{figure}{\bfseries}{2ex}{\z@}{\small}
+\ifNCC@small
+  \@ifundefined{chapter}{%
+    \DeclareSection*0{part}{\large\bff}%
+                    {4ex \@plus 1ex \@minus .2ex}%
+                    {2.8ex \@plus .2ex}{\LARGE\bff}
+  }{%
+    \DeclareSection*0{chapter}{\vspace{1.5ex}\large\bff}{\z@}%
+                    {6ex \@plus .2ex}{\LARGE\bff}
+  }
+  \DeclareSection*1{section}{}%
+                  {3.1ex \@plus 1ex \@minus .2ex}%
+                  {1.5ex \@plus .2ex}{\large\bff}
+  \DeclareSection*2{subsection}{}%
+                  {2.7ex \@plus 1ex \@minus .2ex}%
+                  {1.5ex \@plus .2ex}{\normalsize\bff}
+  \DeclareSection*3{subsubsection}{}%
+                  {\NCC@runskip}%
+                  {1.5ex \@plus .2ex}{\normalsize\bff\itshape}
+\else
+  \@ifundefined{chapter}{%
+    \DeclareSection*0{part}{\Large\bff}%
+                    {5ex \@plus 1ex \@minus .2ex}%
+                    {3.8ex \@plus .2ex}{\huge\bff}
+  }{%
+    \DeclareSection*0{chapter}{\vspace{2ex}\Large\bff}{\z@}%
+                    {8ex \@plus .2ex}{\huge\bff}
+  }
+  \DeclareSection*1{section}{}%
+                  {3.5ex \@plus 1ex \@minus .2ex}%
+                  {2.3ex \@plus .2ex}{\Large\bff}
+  \DeclareSection*2{subsection}{}%
+                  {3.1ex \@plus 1ex \@minus .2ex}%
+                  {1.5ex \@plus .2ex}{\large\bff}
+  \DeclareSection*3{subsubsection}{}%
+                  {2.7ex \@plus 1ex \@minus .2ex}%
+                  {1.5ex \@plus .2ex}{\normalsize\bff}
+\fi
+\DeclareSection4{paragraph}{}{\NCC@runskip}%
+                {-.6em \@plus -.2em \@minus -.1em}{\normalsize\bff}
+\DeclareSection5{subparagraph}[\parindent]{}{\NCC@runskip}%
+                {-.6em \@plus -.2em \@minus -.1em}{\normalsize\bff}
+\SectionTagSuffix{.\hskip .6em}
+\CaptionTagSuffix{.\hskip .6em \@plus .2em \@minus .1em}
+\NumberlineSuffix{.\hskip .6em}{.\hskip .4em}
+\sectionstyle{hangindent*}
+%
+% Millimeters are default units in NCC-LaTeX.
+%
+\unitlength=1mm
+\renewcommand{\cboxstyle}{\scriptsize}
+\endinput
-- 
cgit v1.2.3

