blob: 6d4a9780294eb939d5fab3e576ecc5416c738ab4 (
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
|
\ProvidesFile{makedoc.cfg}[2009/04/15
local settings for `makedoc.sty' etc.]
\RequirePackage{moreverb}
\newenvironment{packagecode}
{\PackageCode}
{\endPackageCode}
\gdef\PackageCode{%
\small
%% Get rid of 'niceverb' stuff:
% \MakeOther\`\MakeOther\'%% probably OK with moreverb
\MakeOther<\MakeOther\|%
%% <- TODO should be 'niceverb' command 2009/04/08
\listing{1}}
\gdef\endPackageCode{%
\endlisting
\global\def\PackageCode{%
\small
% \MakeOther\`\MakeOther\'%% probably OK with moreverb
\MakeOther<\MakeOther\|% niceverb
\listingcont}%
\global\let\endPackageCode\endlistingcont}
\renewcommand*{\listinglabel}[1]{%
\llap{\scriptsize\rmfamily\the#1}\hskip\listingoffset\relax}
\RequirePackage{niceverb}[2009/04/11] %% (' and ''; `etc.'\@
\DeclareRobustCommand{\cs}[1]{\texttt{\char`\\#1}}
%% <- `&\@tempa' and `&\_tempa' fail 2009/04/14
\RequirePackage{color}
%% TODO rather in 'niceverb' 2009/04/06:
\CatCode\|\active
\newcommand*{\CmdBox}{%
\ifvmode \pagebreak[1]\fi %% TODO!? 2009/04/06
\begingroup \let\do\MakeOther \dospecials \tt \TypesetCmdBox}
\def\TypesetCmdBox#1|{%% redefine for changing design
% \fboxrule=.6pt \fboxsep=-\fboxrule
% \fcolorbox[cmyk]{0,0,0,1}{.1,0,.2,.1}{%
% \kern2pt\strut\CmdSyntaxVerb#1\kern2pt}}}
% \kern2pt\strut#1\kern2pt}%% \dospecials version
% \fboxrule=.6pt \fboxsep=.2pt
% \fbox{%
% \fboxrule=0pt \fboxsep=-1pt
\fboxrule=0pt \fboxsep=0pt
% \kern.2pt
\colorbox[cmyk]{.1,0,.2,.05}{%
\kern1.6pt\strut#1\kern1.6pt}%
% \kern.2pt
% }%
\endgroup
\nopagebreak[3]} %% TODO!? 2009/04/06
\let|\CmdBox
\pagestyle{headings}
\endinput
|