summaryrefslogtreecommitdiff
path: root/tex/context/base/mlib-pdf.mkiv
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2012-01-05 19:27:53 +0100
committerHans Hagen <pragma@wxs.nl>2012-01-05 19:27:53 +0100
commit4b459764a30ae1fb1e124b1a7a5a44ecb5a4d54b (patch)
treec40189f3df34d9843149b5b0154b424df8de02dd /tex/context/base/mlib-pdf.mkiv
parentf55d2b463bb22fc74c5da3a3e0a699901540f727 (diff)
downloadcontext-4b459764a30ae1fb1e124b1a7a5a44ecb5a4d54b.tar.gz
beta 2011.12.31 13:16
Diffstat (limited to 'tex/context/base/mlib-pdf.mkiv')
-rw-r--r--tex/context/base/mlib-pdf.mkiv18
1 files changed, 9 insertions, 9 deletions
diff --git a/tex/context/base/mlib-pdf.mkiv b/tex/context/base/mlib-pdf.mkiv
index 05c772720..407ecb534 100644
--- a/tex/context/base/mlib-pdf.mkiv
+++ b/tex/context/base/mlib-pdf.mkiv
@@ -93,7 +93,7 @@
\def\startMPLIBtoPDF#1#2#3#4%
{\dostarttagged\t!mpgraphic\empty
\naturalhbox attr \imageattribute 1 \bgroup
- \doactivatecolor\s!black\forcecolorhack
+ \dousecolorparameter\s!black\forcecolorhack
\setMPboundingbox{#1}{#2}{#3}{#4}%
\setbox\MPbox\vbox\bgroup
% \forgetall % already done elsewhere
@@ -130,23 +130,23 @@
\def\directstopMPLIBtoPDF {\normalstopMPLIBtoPDF\stopTEXpage}
\unexpanded\def\directMPgraphic
- {\dodoublegroupempty\dodirectMPgraphic}
+ {\dodoublegroupempty\mlib_direct_graphic}
-\unexpanded\long\def\directMPgraphic#1#2% makes pages (todo: make boxes)
- {\beginMPgraphicgroup{#1}%
+\def\mlib_direct_graphic#1#2% makes pages (todo: make boxes)
+ {\mp_begin_graphic_group{#1}%
\let\startMPLIBtoPDF\directstartMPLIBtoPDF
\let\stopMPLIBtoPDF \directstopMPLIBtoPDF
- \dostartcurrentMPgraphic
+ \mp_start_current_graphic
\forgetall
\normalexpanded{\noexpand\ctxlua{metapost.graphic(
"\currentMPgraphicinstance",
"\currentMPgraphicformat",
\!!bs#2;\!!es,
- \!!bs\currentMPinitializations;\!!es,
- \!!bs\currentMPpreamble;\!!es,
+ \!!bs\mp_flush_current_initializations;\!!es,
+ \!!bs\mp_flush_current_preamble;\!!es,
"all"
)}}%
- \dostopcurrentMPgraphic
- \endMPgraphicgroup}
+ \mp_stop_current_graphic
+ \mp_end_graphic_group}
\protect \endinput