summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/mfpic/mfpic.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/generic/mfpic/mfpic.dtx')
-rw-r--r--Master/texmf-dist/source/generic/mfpic/mfpic.dtx24
1 files changed, 12 insertions, 12 deletions
diff --git a/Master/texmf-dist/source/generic/mfpic/mfpic.dtx b/Master/texmf-dist/source/generic/mfpic/mfpic.dtx
index 6fa82af9255..940ee1651f5 100644
--- a/Master/texmf-dist/source/generic/mfpic/mfpic.dtx
+++ b/Master/texmf-dist/source/generic/mfpic/mfpic.dtx
@@ -1,6 +1,6 @@
% \iffalse
%%% File: mfpic.dtx
-%%% A part of mfpic 1.02 2009/10/29
+%%% A part of mfpic 1.03 2009/11/18
%%%
% -------------------------------------------------------------------
%
@@ -22,10 +22,10 @@
%</driver>
%<sty>\ProvidesPackage{mfpic}
%<*sty>
- [2009/10/29 v1.02. Macros for drawing with Metafont/MetaPost.]%
+ [2009/11/18 v1.03. Macros for drawing with Metafont/MetaPost.]%
%</sty>
%<*driver>
-\documentclass[draft]{ltxdoc}
+\documentclass{ltxdoc}
\addtolength{\textwidth}{.5878pt}
@@ -106,7 +106,7 @@
\end{document}
%</driver>
%\fi
-% \CheckSum{5116}
+% \CheckSum{5119}
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -170,9 +170,9 @@
\ifx\mfpfileversion\UndEfInEd\else\expandafter\endinput\fi%
{%
\catcode\lq\.12 \catcode\lq\/12%
- \gdef\mfpfileversion{1.02}%
- \gdef\mfpfiledate{2009/10/29}%
- \gdef\mfpicversion{102}%
+ \gdef\mfpfileversion{1.03}%
+ \gdef\mfpfiledate{2009/11/18}%
+ \gdef\mfpicversion{103}%
}%
% \end{macrocode}
%
@@ -353,14 +353,14 @@
% didn't work in \ConTeXt{} the last few times I tried.
%
% Here we see if \cs{documentstyle} is defined, and then make sure
-% we are not in \AmSTeX{}. Probably there is a better command to test,
-% and perhaps we should just test whether the functionality required is
-% present, but I'm not really sure how best to do either of those.
+% we are not in \AmSTeX{}. We used to detect \AmSTeX{} by checking
+% \cs{fmtname}. This leads to problems if some other format inputs
+% \file{amstex.tex} and redefined \cs{fmtname}. Thus we will now check
+% \cs{amstexloaded@}.
% \begin{macrocode}
\newif\ifmfp@latex \mfp@latexfalse
\mfp@ifdefined\documentstyle
- {\def\mfp@tempa{AmS-TeX}%
- \ifx \fmtname\mfp@tempa \mfp@DBlog{AmS-TeX detected.}%
+ {\ifx \amstexloaded@\relax \mfp@DBlog{AmS-TeX detected.}%
\else \mfp@DBlog{LaTeX detected.}\mfp@latextrue
\fi}%
{\mfp@DBlog{Neither LaTeX nor AmS-TeX detected.}}%