Hi,
I'm sure that for lua gurus it is known behavior that user_defined whatsit
clears the \lastskip but for me it was a big surprise.
that is consistent with other whatsits from classic tex like \special or \write, or in fact any node of any type.
\lastskip only picks up a value if the last node added to the current list is a skip.
little example:
aa
\vskip11.1pt
\showthe\lastskip
\directlua{%
local x = node.new('whatsit', 'user_defined')
x.type=115
x.value="TEXT"
node.write(x)
}%
\showthe\lastskip
\bye
log:
> 11.1pt.
l.4 \showthe\lastskip
?
> 0.0pt.
l.13 \showthe\lastskip
I just accidentally noticed that I messed up output trying to markup
document.
I was sure that luatex will step over these whatsits.
Is there another way to write user_defined whatsits directly without
effecting \lastskip?
My goal is to mark text in DVI mode with user_defined whatsits and on
the shipout turn them
to postscript \special's for accessible pdf
Thanks,
Linas
_______________________________________________
dev-luatex mailing list -- dev-luatex@ntg.nl
To unsubscribe send an email to dev-luatex-leave@ntg.nl