Jürgen Hanneder via ntg-context schrieb am 31.08.2024 um 17:27:
I recently learned not to leave a space before and after \reference , but have not seen further complex problems as you describe so far. Can you give more specific examples for these, I have to check, because I am also finalising a book at the moment.
References need an anchor to know on which page they end up because a page is finished you don't know the answer. The following example sets three references, one and three marks the start of each paragraph but where should two end up? %%%% begin example \usemodule[visual] \setuppapersize[A6,landscape] \setupwhitespace[line] \starttext \showmakeup[hbox] \pagereference[one]\fakelines{10}{10} \pagereference[two] \pagereference[three]\fakelines{10}{10} \page \showmakeup[reset] \starttabulate \NC one \NC \at[one] \NC\NR \NC two \NC \at[two] \NC\NR \NC three \NC \at[three] \NC\NR \stoptabulate \stoptext %%%% end example When you process the example you get page 1 as output, but why is this the case. Take a look the the tracing information and you can see a "H" at the left bottom on page 1 which is missing on page 2, this is where ConTeXt places reference two. You get this "H" mark because \pagereference starts a new paragraph to ensure the is a anchorpoint but as a side effect you can end up with unwanted empty lines in your document, to test this change the argument of the first \fakelines from 10 to 12 and now the stray "H" appears at the top left on the second page but in addition you get 2 empty lines at the top (1 for the reference and another 1 for the parskip). Wolfgang