On Tue, 08 Oct 2013 13:40:26 +0200, Marco Patzer <li...@homerow.info> wrote:
On 2013–10–08 Procházka Lukáš Ing. - Pontex s. r. o. wrote:
I'm trying to hook commands.stoptext()...
There is already a hook for that. No need to tinker with Lua.
\setupexternalfigures
[location=default]
\setupdocument
[after=\setups{document:after}]
\startsetups [document:after]
\startTEXpage
\externalfigure [cow]
\stopTEXpage
\stopsetups
\startdocument
\input knuth
\stopdocument
Marco
OK... But - is there a solution "more close" and "more Lua" to that mine?
The example is much simpler than I need to use in reality;
and I'd like to hide the document-after-operation to the user.
The hook should be automatically generated once the user uses Lua's "f()";
but not earlier (in the document setup).
In your example, user needs to "\setupdocument[after=...]" which I'd like to
avoid.
And - any idea why my minimal example works when the image is NOT surrounded
with \s/s-TEXpage, while when it is enclosed, only first figure appears?
Lukas
--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 244 062 238
Fax: +420 244 461 038
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________