Hello, I'd need to to hook \stoptext by Lua - I'd need to write something right before the end of the text.
See the simple example:
---- t-Hook.mkiv
\startluacode
local stoptext_p = context.stoptext
context.stoptext = function(...)
context("END")
stoptext_p(...)
end
\stopluacode
\starttext
\input knuth
\stoptext % To be hooked by Lua
----
This code should write "END" right before the end of the document, but it
doesn't.
How to achieve that?
- I'd rather Lua to TeX do the job as I need Lua to do more complicated things
(the example above is very simplified).
TIA.
Best regards,
Lukas
--
Ing. Lukáš Procházka [mailto:[email protected]]
Pontex s. r. o. [mailto:[email protected]] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 244 062 238
Fax: +420 244 461 038
t-Hook.mkiv
Description: Binary data
t-Hook.pdf
Description: Adobe PDF document
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : [email protected] / 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 ___________________________________________________________________________________
