1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
% This file
% Adds support for extended MetaPost features (transparency)
\def\LoadMetaPostSpecialExtensions{%
\AtBeginDocument{%
\edef\@tempa{%
\catcode`\noexpand\=\the\catcode`\= %
\catcode`\noexpand\!\the\catcode`\! %
\catcode`\noexpand\@\the\catcode`\@ %
\catcode`\noexpand\?\the\catcode`\? %
}%
\@makeother\=%
\IfFileExists{supp-pdf}{%
\IfFileExists{supp-mis}{%
\IfFileExists{supp-mpe}{%
\input{supp-mis}%
\input{supp-mpe}%
\input{supp-mpe_mod}%
\MPcmykcolorstrue
\MPspotcolorstrue
\chardef\makeMPintoPDFobject=1 %
}{%
\GPT@warn{%
Cannot enable MetaPost Special Extensions,\MessageBreak
because supp-mpe.tex is missing%
}%
}%
}{%
\GPT@warn{%
Cannot enable MetaPost Special Extensions,\MessageBreak
because supp-mis.tex is missing%
}%
}%
}{%
\GPT@warn{%
Cannot enable support for MetaPost images,\MessageBreak
because supp-pdf.tex is missing%
}%
}%
\@tempa
}%
}
\ifx\@onlypreamble\@undefined
\else
\@onlypreamble\LoadMetaPostSpecialExtensions
\fi
|