summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/classpack/classpack.sty
blob: fbbdb876eb231b1eeb2d171ccde1cfec34bd7175 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
%%
%% This is file `classpack.sty',
%% generated with the docstrip utility.
%%
%% 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}[2015/01/01]
\ProvidesPackage{classpack}[2020/05/19 v1.19
  Macros for ClassPack documentation]
%%
%% Packages required for the class or package
%%
%% 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}%
%%
%% ******************************************************************
%%
%% Index settings
\@ifundefined{c@IndexColumns}{}{\setcounter{IndexColumns}{2}}
\setlength{\columnsep}{3pc}
%%
%% ******************************************************************
%%
%% 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
%%
%% ******************************************************************
%%
%% 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
%%
%% End of file `classpack.sty'.