diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/mfpic/mfpdoc.sty')
-rw-r--r-- | Master/texmf-dist/doc/generic/mfpic/mfpdoc.sty | 53 |
1 files changed, 38 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/generic/mfpic/mfpdoc.sty b/Master/texmf-dist/doc/generic/mfpic/mfpdoc.sty index 60b3648bf89..8814c8c89ff 100644 --- a/Master/texmf-dist/doc/generic/mfpic/mfpdoc.sty +++ b/Master/texmf-dist/doc/generic/mfpic/mfpdoc.sty @@ -1,7 +1,10 @@ -%%% File: mfpdoc.sty -%%% A part of mfpic 1.05 2010/06/10 -%%% -\ProvidesPackage{mfpdoc}[2010/06/10 v1.05 macros for mfpic documentation] +% File: mfpdoc.sty +% A part of mfpic 1.06 2011/03/08 +% +\ProvidesPackage{mfpdoc}[2011/03/08 v1.06 macros for mfpic documentation] +\newcommand\mfpversion{1.06} +\newcommand\mfpicversion{106} +\newcommand\mfpfiledate {2011/03/08} \newif\if@chapters \@chaptersfalse @@ -21,8 +24,6 @@ \pdftrue \fi\fi\fi} -\newcommand\mfpversion{1.05} -\newcommand\mfpdate {2010/06/10} %% Text size: @@ -34,6 +35,9 @@ \advance\topmargin-\headheight \advance\topmargin-\headsep +% These two are now defaults in TeX Live: +% \pdfminorversion 5 +% \pdfobjcompresslevel 2 \ifpdf \pdfpageheight\paperheight \pdfpagewidth\paperwidth @@ -42,8 +46,8 @@ pdfstartview={XYZ null null null},% plainpages=false,hypertexnames=true} \def\mfpHyDisable{% - \def\cs##1{\otherbackslash##1}\let\opt\@firstofone\let\prog\@firstofone} -\else + \let\opt\@firstofone\let\prog\@firstofone} +\else % dvi output could be for dvipdfm or dvips \ifx\mfpdvipdfm\UndEfInEd \special{papersize=\the\paperwidth,\the\paperheight} \else @@ -67,6 +71,9 @@ {.4ex \@plus .1ex}% {\normalfont\itshape\raggedright}} +% +% To allow \chapter command in article class, load this package with +% [chapters] option \if@chapters \let\chapter\section \let\section\subsection @@ -109,6 +116,14 @@ \renewcommand\labelitemiii{\textperiodcentered} \leftmargini 1.5\parindent +% Index stuff +\def\mfpindexheading{} +\def\mfpindexpagemarks{} + +% If *headings.ist is used we need these: +\def\headingprefix#1{\textbf{#1}} +\def\headingsuffix{\par\nobreak\smallskip} + \renewenvironment{theindex} {% \@restonecoltrue @@ -128,7 +143,7 @@ \newcommand\pagelabel{\ifpdf \phantomsection \fi\label} %% Displays %%%%%%%%%%% -%% command descriptions: +%% command descriptions (cd): \newenvironment{cd} {\par\addvspace{1.75ex plus .3ex minus .1ex} \parindent0pt @@ -139,7 +154,7 @@ \aftergroup\@afterindenttrue\aftergroup\@afterheading \nobreak\vskip.75ex plus .3ex minus .1ex} -%% examples: +%% examples (ex): \newenvironment{ex} {\par\addvspace{1ex plus.2ex minus.1ex}% \parindent0pt @@ -154,7 +169,7 @@ \def\verbatim@processline{\hspace{\leftmargini}\the\verbatim@line\par} \addto@hook\every@verbatim{\predisplaypenalty\@M} -%% other: +%% displayed text: \newenvironment{display}{\list{}{}\item[]}{\endlist} %% end displays %%%%%%% @@ -182,7 +197,7 @@ \hyphenation{meta-font meta-post Post-Script Ghost-script} -%% Special words %%%%%% +%% Special words %%%%%%%%%% \def\MF{\prog{metafont}} \def\CMF{\prog{Metafont}} \def\MP{\prog{metapost}} @@ -215,15 +230,23 @@ \let\dim \file % TeX and Metafont dimensions \let\kw \opt % MF key words, e.g., numeric -\edef\otherbackslash{\expandafter\@gobble\string\\} -\DeclareRobustCommand\cs[1]{\mytt{\char`\\#1}} -\def\bbsl{\cs{}\cs{}}% prints "\\" +%% TeX code %%%%%%%%%%%%%%% +{ +\escapechar`\\ +\xdef\otherbsbs{\string\\} +\escapechar-1 +\xdef\otherbackslash{\string\\} +} +\DeclareRobustCommand\cs[1]{% + \texorpdfstring{\leavevmode\mytt{\otherbackslash#1}}{\textbackslash#1}} +\def\bbsl{\mytt{\otherbsbs}}% prints "\\" \DeclareRobustCommand\meta[1]{% \ensuremath{\langle\mbox{\rmfamily\itshape#1\/}\rangle}} \providecommand\marg[1]{\mytt{\char`\{#1\char`\}}} \providecommand\oarg[1]{\mytt{[#1]}} \providecommand\parg[1]{\mytt{(#1)}} +%% page style %%%%%%%%%%%%%%% \def\ps@mfpdoc{% \let\@oddfoot\@empty\let\@evenfoot\@empty \def\@oddhead{\small{\scshape\rightmark}\hfil\thepage}% |