summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/classpack
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/classpack')
-rw-r--r--Master/texmf-dist/tex/latex/classpack/classpack.sty155
1 files changed, 131 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/latex/classpack/classpack.sty b/Master/texmf-dist/tex/latex/classpack/classpack.sty
index e55e53e9a2c..fbbdb876eb2 100644
--- a/Master/texmf-dist/tex/latex/classpack/classpack.sty
+++ b/Master/texmf-dist/tex/latex/classpack/classpack.sty
@@ -5,41 +5,148 @@
%% The original source files were:
%%
%% classpack.dtx (with options: `package')
+%%
+%% This is a generated file.
+%%
+%% Copyright © 2009– by Silmaril Consultants
+%%
%% This file was generated from an XML master source.
%% Amendments and corrections should be notified to the
%% maintainer for inclusion in future versions.
-\NeedsTeXFormat{LaTeX2e}[2011/06/27]
-\ProvidesPackage{classpack}[2013/05/28 v0.77
- XML mastering for LaTeX classes and packages]
+%%
+\NeedsTeXFormat{LaTeX2e}[2015/01/01]
+\ProvidesPackage{classpack}[2020/05/19 v1.19
+ Macros for ClassPack documentation]
%%
-%% SERVICE COMMANDS
+%% Packages required for the class or package
%%
-%% As ClassPack itself is not a document class or package per se, there
-%% is no operating code.
+%% Provide for graphics (PNG, JPG, or PDF format (only) for pdflatex; EPS format (only) for standard \LaTeX{}).
+\RequirePackage{graphicx}%
+%% Additional column formatting types for tables.
+\RequirePackage{array}%
+%% Handling of URI formatting.
+\RequirePackage{url}%
+%% Adds more flexibiltiy to marginal notes.
+\RequirePackage[fulladjust]{marginnote}%
%%
-%% However, there are some ancillary commands commonly used in
-%% documentation which should be expected by authors of classes and
-%% packages using ClassPack.
+%% ******************************************************************
%%
-%% This section therefore implements classpack.sty, which gets invoked
-%% automatically via its entry in prepost.xml.
-%%
-%% The doctex package uses a default three-column index, which is too
-%% narrow for most purposes. We therefore make the index in two columns,
-%% and space them slightly farther apart.
-\setcounter{IndexColumns}{2}
+%% Index settings
+\@ifundefined{c@IndexColumns}{}{\setcounter{IndexColumns}{2}}
\setlength{\columnsep}{3pc}
%%
-%% 1 TeX and other logos
+%% ******************************************************************
+%%
+%% Annotation settings
+\def\MacroFont{\fontencoding\encodingdefault
+ \ttfamily\fontseries{m}\fontshape\updefault
+ \small\selectfont\color{DarkBlue}}
+\newlength{\CPKrevmarg}
+\setlength{\CPKrevmarg}{25mm}
+\newcommand{\CPKrunningecho}[1]{\leavevmode
+ \marginnote[\sloppy\raggedleft\color{LightGrey}\hspace{0pt}#1]%
+ {\sloppy\raggedright\color{LightGrey}\hspace{0pt}#1}%
+}
+\let\marginfont\ttfamily
+%%
+%% ******************************************************************
+%%
+%% Table of Contents
+\renewcommand*\l@subsection{%
+ \@dottedtocline{2}{1.5em}{2.7em}}
+\renewcommand*\l@subsubsection{%
+ \@dottedtocline{3}{4.2em}{3.6em}}
+\renewcommand{\@pnumwidth}{3em}
+\renewcommand{\@tocrmarg}{4em plus1fil}
+%%
+%% ******************************************************************
+%%
+%% Lower-level sectioning
+\renewcommand\subsubsection{%
+ \@startsection{subsubsection}{3}{\z@}%
+ {-1ex\@plus -.25ex \@minus -.25ex}%
+ {1ex \@plus .25ex}%
+ {\sffamily\normalsize\bfseries}}
+%%
+%% ******************************************************************
+%%
+%% Appendix settings
+\renewcommand\appendix{\par
+ \setcounter{section}{0}%
+ \setcounter{subsection}{0}%
+ \gdef\thesection{\@Alph\c@section}}
+%%
+%% ******************************************************************
+%%
+%% TeX and other logos
+\def\ConTeXt{C\kern-.0333emon\-\kern-.0667em\TeX
+ \kern-.0333emt}
+\def\tubreflect#1{%
+ \@ifundefined{reflectbox}{%
+ \PackageError{classpack}%
+ {A graphics package must be loaded for \string\XeTeX}%
+ {Add the graphicx package to your Preamble}%
+ }{% otherwise OK
+ \ifdim \fontdimen1\font>0pt
+ \raise 1.75ex \hbox{\kern.1em
+ \rotatebox{180}{#1}}\kern-.1em
+ \else
+ \reflectbox{#1}%
+ \fi
+ }%
+}
+\def\tubhideheight#1{\setbox0=\hbox{#1}%
+ \ht0=0pt \dp0=0pt \box0 }
+\DeclareRobustCommand\Xe[1]{\leavevmode
+ \tubhideheight{\hbox{X%
+ \setbox0=\hbox{\TeX}\setbox1=\hbox{E}%
+ \lower\dp0\hbox{\raise\dp1\hbox{%
+ \kern-.125em\tubreflect{E}}}%
+ \kern-.1667em #1}}}
+\def\XeTeX{\Xe\TeX}
+\def\XeLaTeX{\Xe{\,\LaTeX}}
+\DeclareRobustCommand\SMC{%
+ \ifx\@currsize\normalsize\small\else
+ \ifx\@currsize\small\footnotesize\else
+ \ifx\@currsize\footnotesize\scriptsize\else
+ \ifx\@currsize\large\normalsize\else
+ \ifx\@currsize\Large\large\else
+ \ifx\@currsize\LARGE\Large\else
+ \ifx\@currsize\scriptsize\tiny\else
+ \ifx\@currsize\tiny\tiny\else
+ \ifx\@currsize\huge\LARGE\else
+ \ifx\@currsize\Huge\huge\else
+ \small\SMC@unknown@warning
+ \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
+}
+\newcommand\SMC@unknown@warning{\PackageError{classpack}%
+ {\string\SMC: nonstandard text font size command -- using
+ \string\small}%
+ {Check the font size or scaling for \the\@currsize}}
+\newcommand\textSMC[1]{{\SMC #1}}
+ \def\Bib{%
+ \ifdim \fontdimen1\font>0pt
+ B{\SMC\SMC IB}%
+ \else
+ \textsc{Bib}%
+ \fi
+}
+\def\BibTeX{\Bib\kern-.08em \TeX}
+\let\BiBTeX\BibTeX
+\let\BIBTeX\BibTeX
%%
-%% TeX and LaTeX are defined in the LaTeX kernel, but most of the others
-%% are not. The following definitions are taken from the ltugboat
-%% package, used for typesetting the TUGboat journal.
+%% ******************************************************************
%%
-%% \ConTeXt{} is a typography and typesetting system meant to provide
-%% users easy and consistent access to advanced typographical control (,
-%% ).
-\def\ConTeXt{C\kern-.0333emon\-\kern-.0667em\TeX\kern-.0333emt}
+%% Formatting additions
+\newcommand{\CPKvstrut}{\vrule height1.2em depth.6667ex width0pt}
+\def\CPKmenusep{\thinspace$\rightarrow$\thinspace\allowbreak}
+\newcommand{\CPKprestrut}{\vrule height1em width0pt}
+\newcommand{\CPKpoststrut}{\vrule depth.5ex width0pt}
+\hyphenation{ele-ment ele-ments attri-bute attri-butes
+ docu-ment docu-ments primi-tive helico-pter}
+\renewcommand*\descriptionlabel[1]{%
+ \hspace\labelsep\sffamily\bfseries #1}
+\newcounter{CPKcoref}
\endinput
%%