summaryrefslogtreecommitdiff
path: root/tex/context/base/mlib-pps.mkiv
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2010-02-18 14:48:00 +0100
committerHans Hagen <pragma@wxs.nl>2010-02-18 14:48:00 +0100
commit4eb82e08c76a8fda9009bf04a3dd741bd2690f01 (patch)
tree7f0de19ab5db3724b590ae94cc5497dcb08efb44 /tex/context/base/mlib-pps.mkiv
parenta7dd0093b962777a8944812d5a56e6c5f972b8b1 (diff)
downloadcontext-4eb82e08c76a8fda9009bf04a3dd741bd2690f01.tar.gz
beta 2010.02.18 14:48
Diffstat (limited to 'tex/context/base/mlib-pps.mkiv')
-rw-r--r--tex/context/base/mlib-pps.mkiv14
1 files changed, 12 insertions, 2 deletions
diff --git a/tex/context/base/mlib-pps.mkiv b/tex/context/base/mlib-pps.mkiv
index 83880994b..fd9a3c29e 100644
--- a/tex/context/base/mlib-pps.mkiv
+++ b/tex/context/base/mlib-pps.mkiv
@@ -15,6 +15,15 @@
\registerctxluafile{mlib-pps}{1.001}
+%D Todo: catch nested graphics like external figures with dummies.
+
+% \newtoks\everyMPLIBtext % not yet used
+
+% \appendtoks
+% \let\handleuseMPgraphic \thirdofthreearguments
+% \let\handlereusableMPgraphic\thirdofthreearguments
+% \to \everyMPLIBtext
+
% this will move !
\def\MPLIBfigure#1#2#3#4#5#6#7% todo: move Q q to lua
@@ -24,8 +33,9 @@
\vbox to \zeropoint{\vss\hbox to \zeropoint{\scale[sx=\sx,sy=\sy]{\box\scratchbox}\hss}}%
\pdfliteral direct{Q}}
-\def\MPLIBsettext#1% #2%
- {\global\setbox#1\hbox}% {#2}}
+\def\MPLIBsettext#1% #2% we could as well store in hlists at the lua end i.e. just one box
+ {\global\setbox#1\hbox}
+% {\global\setbox#1\hbox\bgroup\the\everyMPLIBtext\let\next}
\def\MPLIBfreetext#1%
{\global\setbox#1\emptybox}