diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/mfpic/mfpdoc.sty')
-rw-r--r-- | Master/texmf-dist/doc/generic/mfpic/mfpdoc.sty | 56 |
1 files changed, 37 insertions, 19 deletions
diff --git a/Master/texmf-dist/doc/generic/mfpic/mfpdoc.sty b/Master/texmf-dist/doc/generic/mfpic/mfpdoc.sty index 8814c8c89ff..405a80fe071 100644 --- a/Master/texmf-dist/doc/generic/mfpic/mfpdoc.sty +++ b/Master/texmf-dist/doc/generic/mfpic/mfpdoc.sty @@ -1,11 +1,10 @@ % File: mfpdoc.sty -% A part of mfpic 1.06 2011/03/08 +% A part of mfpic 1.10 2012/12/03 % -\ProvidesPackage{mfpdoc}[2011/03/08 v1.06 macros for mfpic documentation] -\newcommand\mfpversion{1.06} -\newcommand\mfpicversion{106} -\newcommand\mfpfiledate {2011/03/08} - +\ProvidesPackage{mfpdoc}[2012/12/03 v1.10 macros for mfpic documentation] +\newcommand\mfpversion{1.10} +\newcommand\mfpicversion{110} +\newcommand\mfpfiledate {2012/12/03} \newif\if@chapters \@chaptersfalse \DeclareOption{chapters}{\@chapterstrue} @@ -35,10 +34,10 @@ \advance\topmargin-\headheight \advance\topmargin-\headsep +\ifpdf % These two are now defaults in TeX Live: % \pdfminorversion 5 % \pdfobjcompresslevel 2 -\ifpdf \pdfpageheight\paperheight \pdfpagewidth\paperwidth \def\mfpHyOpts{% @@ -70,7 +69,6 @@ {-1ex\@plus -.2ex \@minus -.1ex}% {.4ex \@plus .1ex}% {\normalfont\itshape\raggedright}} - % % To allow \chapter command in article class, load this package with % [chapters] option @@ -103,9 +101,6 @@ }% \vskip 1em\relax} -\def\mfpindexheading{} -\def\mfpindexpagemarks{} - \def\@listi{\leftmargin\leftmargini \parsep \z@ \@plus\p@ \@minus\z@ \topsep 1ex \@plus.2ex \@minus 1ex @@ -120,7 +115,7 @@ \def\mfpindexheading{} \def\mfpindexpagemarks{} -% If *headings.ist is used we need these: +% If lcheadings.ist or ucheadings.ist is used we need these: \def\headingprefix#1{\textbf{#1}} \def\headingsuffix{\par\nobreak\smallskip} @@ -180,8 +175,21 @@ \def\pdfLaTeX{pdf\kern.06em\LaTeX} \def\ConTeXt{Con\kern-.16em \TeX \kern-0.06em t} \def\eTeX{e\kern-.10em \TeX} + \def\LMcal{\fontencoding{OMS}\fontfamily{lmsy}\selectfont} \def\CMcal{\fontencoding{OMS}\fontfamily{cmsy}\selectfont} - \def\AmSTeX{{\CMcal A\kern-.1667em\lower.5ex\hbox{M}\kern-.125em S}-\TeX} +% +% Use CM mathcal for AMS logo +% \def\AmSTeX{{\CMcal A\kern-.1667em\lower.5ex\hbox{M}\kern-.125em S}-\TeX} +% +% Use whatever is default for \mathcal: +% \def\AmSTeX{% +% $\mathcal{A}\kern-.1667em +% \lower.5ex +% \hbox{$\mathcal{M}$}\kern-.125em +% \mathcal{S}$-\TeX} +% +% Use LM mathcal for AMS logo + \def\AmSTeX{{\LMcal A\kern-.1667em\lower.5ex\hbox{M}\kern-.125em S}-\TeX} \def\PiCTeX{P\kern-.06em\lower.4ex\hbox{I}\kern-.075emC\kern-.06em\TeX} \else \def\TeX {\textsc{TeX}} @@ -212,14 +220,24 @@ %% font commands \def\mytt#1{\relax - \ifmmode \mathtt{#1} - \else {\upshape\ttfamily#1}\fi} + \ifmmode + \mathtt{#1}% + \else + {\upshape\ttfamily#1}% + \fi +} \def\mfc{% % Metafont/Post code \begingroup \ttfamily\catcode`\_=12 \grabit } \def\grabit#1{#1\endgroup} -\def\_{{\upshape\ttfamily\char`\_}} +% like \mfc, but no line breaks +\def\codebox{% + \hbox\bgroup + \ttfamily\catcode`\_=12 \boxgrabit +} +\def\boxgrabit#1{#1\egroup} +\def\_{\mytt{\char`\_}} \def\prog#1{{\mdseries\scshape#1}} % programs, packages \let\file\mytt % filenames \def\opt#1{{\upshape\sffamily#1}} % package options @@ -228,7 +246,7 @@ \let\email\file % email addresses \let\mail \file % (ditto) \let\dim \file % TeX and Metafont dimensions -\let\kw \opt % MF key words, e.g., numeric +\let\kw \opt % MF key word like numeric %% TeX code %%%%%%%%%%%%%%% { @@ -254,7 +272,7 @@ \let\@mkboth\markboth \def\sectionmark##1{\thispagestyle{plain}} \def\subsectionmark##1{% - \markright {\thesection\quad##1}}% + \markright {\thesubsection\enspace##1}}% \def\subsubsectionmark##1{}} \if@chapters @@ -264,7 +282,7 @@ \@starttoc{toc}\clearpage\pagenumbering{arabic}} \fi -%% figures (none so far): +%% figures: \@fptop=-\@fpsep \@addtoreset{figure}{section} |