On Fri, 31 Oct 2008, Khaled Hosny wrote:
> On Thu, Oct 30, 2008 at 11:32:48PM +0100, Hartmut Henkel wrote:
> > On Thu, 30 Oct 2008, Khaled Hosny wrote:
> > >
> > > \hbox{Not seen}
> >
> > that's just a \hbox{} within the page's \vbox{}, it's not starting a
> > paragraph. A \hbox{} at the beginning of a new paragraph you would get
> > e. g., by \leavevmode\hbox{Seen}.
>
> my question is how I go through the nodes in that \hbox not getting a
> box at start of paragraph.
seems it works through the hpack_filter:
% just to get rid of header/footer boxes from plain.tex
[EMAIL PROTECTED]
\def\plainoutput{\shipout\vbox{\pagebody}%
\advancepageno
\ifnum\outputpenalty>[EMAIL PROTECTED] \else\dosupereject\fi}
[EMAIL PROTECTED]
\directlua0{
local function traverse(h)
for n in node.traverse (h)
do texio.write_nl('node id='..node.type(n.id))
if n.id == node.id('hlist') then
traverse(n.list)
end
end
end
callback.register('hpack_filter',
function(h,a)
texio.write_nl("=== "..a)
traverse(h)
return true
end
)
}
\hbox{Also seen}
Hello \hbox{seen}
\bye
Regards, Hartmut
_______________________________________________
dev-luatex mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/dev-luatex