summaryrefslogtreecommitdiff
path: root/tex/context/base/page-app.mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/page-app.mkiv')
-rw-r--r--tex/context/base/page-app.mkiv17
1 files changed, 14 insertions, 3 deletions
diff --git a/tex/context/base/page-app.mkiv b/tex/context/base/page-app.mkiv
index 0cf83592d..5f1c2f297 100644
--- a/tex/context/base/page-app.mkiv
+++ b/tex/context/base/page-app.mkiv
@@ -186,17 +186,28 @@
\unexpanded\def\startpagefigure
{\dodoubleempty\page_figures_start}
+% this one:
+%
+% \def\page_figures_start[#1][#2]%
+% {\bgroup
+% \def\currentexternalfigure{\v!page:\v!figure}%
+% \setupcurrentexternalfigure[\c!offset=\v!overlay,#2]%
+% \startTEXpage[\c!offset=\externalfigureparameter\c!offset]%
+% \externalfigure[#1]\ignorespaces} % so we can put some text below the graphic
+%
+% or this one:
+
\def\page_figures_start[#1][#2]%
{\bgroup
\setupexternalfigure[\v!page:\v!figure][\c!offset=\v!overlay,#2]%
- \startTEXpage[\c!offset=\externalfigureparameter\c!offset]%
- \externalfigure[#1][\v!page:\v!figure]\ignorespaces} % so we can put some text below the graphic
+ \startTEXpage[\c!offset=\namedexternalfigureparameter{\v!page:\v!figure}\c!offset]%
+ \externalfigure[#1]\ignorespaces} % so we can put some text below the graphic
\unexpanded\def\stoppagefigure
{\stopTEXpage
\egroup}
-\def\pagefigure
+\unexpanded\def\pagefigure
{\dodoubleempty\page_figure}
\def\page_figure[#1][#2]%