-------- Original Message --------
Subject: Re: [macleod@cvrti.utah.edu: changebar support for pdflatex]
Date: Wed, 14 Sep 2005 00:46:11 +0200
From: Hans Hagen
Hi Hans and Taco,
here's a first rough try on \latelua: It just creates a node like \pdfliteral, and the given program code is executed by lua during shipout. Output (if any) currently goes via print into the PDF.
If we would get access to the position cur_h, cur_v valid at the point of lua call (Taco has this already?), we could then e. g. draw the changebars (and other random drawings on the page between previously marked points :-) with lua, single pass.
All lua register changes are obviously available to "later" both \lua or \latelua calls...
Currently the \latelua has the same options "page" and "direct" as \pdfliteral (because this happened by copying the code).
Couldn't such a \latelua be removed if one would change \lua to \immediate\lua and \lua? Or is this something different?
Sorry, still old system, no tex.print yet and the other fancy stuff from Taco.
interesting i don't like the \immediate\lus thing, too texie -) maybe better than \latelua is: \lua otr {...} since there can be more variants. I also wonder ... how about pdf.print.direct("...") pdf.print.page("...") (one can always say pdf.direct = pdf.print.direct) this is more luaish, esp if we also have: pdf.h (or pdf.x) pdf.v (or pdf.y) Interesting experiment Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------