summaryrefslogtreecommitdiff
path: root/tex/context/base/attr-ini.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/attr-ini.tex')
-rw-r--r--tex/context/base/attr-ini.tex13
1 files changed, 5 insertions, 8 deletions
diff --git a/tex/context/base/attr-ini.tex b/tex/context/base/attr-ini.tex
index d579429dd..a73e15cf7 100644
--- a/tex/context/base/attr-ini.tex
+++ b/tex/context/base/attr-ini.tex
@@ -164,22 +164,19 @@
% {\ctxlua{nodes.process_page(tex.box[\number\nextbox])}%
% \primitive\shipout\box\nextbox}}
+% Objects are processed indepently \unknown\ actually we may need a proper callback.
+
\newbox\finalizedshipoutbox
+\def\finalizeobjectbox#1{\ctxlua{nodes.process_page(tex.box[\number#1])}}
+
\def\finalizeshipoutbox#1% % hack till we have access to pdf backend
{\global\setbox\finalizedshipoutbox\hbox{#1}%
- \ctxlua{nodes.process_page(tex.box[\number\finalizedshipoutbox])}%
+ \finalizeobjectbox\finalizedshipoutbox
\hbox{\ctxlua{states.flush()}\box\finalizedshipoutbox}}
-% \def\shipout
-% {\dowithnextbox{\ctxlua{tex.primitive('shipout', nodes.process_page(tex.nextbox)}}}
-
\let\normalshipout\shipout
-% Objects are processed indepently \unknown\ actually we may need a proper callback.
-
-\def\finalizeobjectbox#1%
- {\ctxlua{nodes.process_page(tex.box[\number#1])}}
% tricky stuff: