27 Oct
2011
27 Oct
'11
9:23 a.m.
On 10/25/2011 12:27 PM, Thomas A. Schmitz wrote:
Wolfgang, Hans,
thanks a lot, this works now. Will now try and move the code to a ctxluafile and see if I can make it work again. If not, I'll be back; no good deed goes unpunished...
Thomas
OK, I'm slowly making progress processing xml in lua. One naive question now: how can I have access to and manipulate the textwidth dimension? In other words, given 0.4\textwidth what would be the equivalent in lua code? I tried 0.4 * tex.dimen.textwidth or 0.4 * tex.dimen["textwidth"] but couldn't make that work. Also tried grepping the tex/context/base/*.lua files for width, but couldn't find anything immediately obvious. Thanks! Thomas