[tex-live] error in supp-pdf.mkii again?

Heiko Oberdiek heiko.oberdiek at googlemail.com
Thu Mar 11 12:49:51 CET 2010


On Thu, Mar 11, 2010 at 12:07:43PM +0100, Taco Hoekwater wrote:

> Heiko Oberdiek wrote:
> >On Thu, Mar 11, 2010 at 11:02:09AM +0100, Taco Hoekwater wrote:
> >
> >>Taco Hoekwater wrote:
> >>>Well, in one-and-a-half decades of \undefined, you are the first
> >>>person to run into this and complain (there could be more that
> >>>didn't complain, of course). But I'll talk it over with Hans.
> >>Hans sent me new versions of supp-pdf.mkii and supp-mis.mkii
> >>that use eTeX's \ifdefined instead of \ifx\undefined.
> >
> >It adds an unnecessary dependency on eTeX.
> 
> Does that matter?

Yes, documents just loading supp-pdf.mkii without using it
will break. It isn't possible to simulate \ifdefined using macros.

> I highly doubt TeX82 will be able to process
> mptopdf-created output...

supp-pdf.mkii didn't need eTeX to process MetaPost PostScript output.
Even metafun can be used without eTeX:

%%% cut %%% testmetafun %%% cut %%%
% process with:
% pdflatex "testmetafun.tex"
% metafun "testmetafun.mp"
% pdflatex "testmetafun.tex"
\documentclass{article}

\usepackage[pdftex]{graphicx}
\DeclareGraphicsRule{*}{mps}{*}{}
\LoadMetaPostSpecialExtensions

\usepackage{emp}
%\empprelude{input mp-spec} % if you use mpost, not metafun.

\begin{document}
\begin{empfile}

\begin{figure}
\begin{emp}(0,0)
  fill unitsquare scaled(72bp) withcolor 0.5;
  fill unitsquare scaled(72bp) shifted(36bp,36bp) withcolor transparent(1,0.5,red);
\end{emp}
\end{figure}

\end{empfile}
\end{document}
%%% cut %%% testmetafun %%% cut %%%

supp-pdf.mkii takes care of non-eTeX users:

| \def\dohandleMPsequenceB#1 %
|   {... using eTeX ...}
|
| \ifx\eTeXversion\undefined
|     \def\dohandleMPsequenceB#1 %
|       {... not using eTeX ...}
| \fi

If \ifdefined or \ifcsname are only used at top level, then
I can write a workaround for pdftex.def. Otherwise I would
have to drop MetaPost support in pdftex.def, if eTeX is not
enabled.

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>


More information about the tex-live mailing list