summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/nicetext/makedoc.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/nicetext/makedoc.cfg')
-rw-r--r--Master/texmf-dist/source/latex/nicetext/makedoc.cfg57
1 files changed, 57 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/nicetext/makedoc.cfg b/Master/texmf-dist/source/latex/nicetext/makedoc.cfg
new file mode 100644
index 00000000000..6d4a9780294
--- /dev/null
+++ b/Master/texmf-dist/source/latex/nicetext/makedoc.cfg
@@ -0,0 +1,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
+