Hans wrote:
can you try (test extensively):
\def\dodoregister[#1]#2#3%
{\dogotopar{\dontleavehmode\doprocesspageregister[#1]{#2}{#3}}}
Well, it has some problems, introducing vertical space in certain
circumstances. Will try to work up a minimal, but two observations:
1. The extra
The manual suggests that you can put index calls between a \section
heading and its first paragraph without worry, but for me it breaks the
page-breaking mechanism, allowing the section title to end up at the
bottom of a page like this:
\starttext
\section{Tufte}
\dorecurse{4}{\input tufte \par}
I said:
Is there any workaround/fix?
I find that the addition of \dontleavehmode fixes it. Is this safe to
use in general?
\starttext
\section{Tufte}
\dorecurse{4}{\input tufte \par}
\section{Knuth}
\dontleavehmode\index{knuth}
\input knuth \par
\stoptext
Thanks,
Duncan
Duncan Hothersall wrote:
I said:
Is there any workaround/fix?
I find that the addition of \dontleavehmode fixes it. Is this safe to
use in general?
\starttext
\section{Tufte}
\dorecurse{4}{\input tufte \par}
\section{Knuth}
\dontleavehmode\index{knuth}
\input knuth \par
\stoptext
Hans Hagen wrote:
Duncan Hothersall wrote:
I find that the addition of \dontleavehmode fixes it. Is this safe to
use in general?
no, use \dontleavehmode instead
;-)
___
ntg-context mailing list
ntg-context@ntg.nl
Duncan Hothersall wrote:
The manual suggests that you can put index calls between a \section
heading and its first paragraph without worry, but for me it breaks the
page-breaking mechanism, allowing the section title to end up at the
bottom of a page like this:
\starttext
\section{Tufte}