Hi all,
5 years ago, on the mailing list, there was a thread started by Pablo
Rodríguez (http://www.mail-archive.com/ntg-context@ntg.nl/msg62140.html)
about line numbers in headers. Wolfgang Schuster replied that in
principle, it's possible to have line numbers in headers, "but it’s not
usable because the numbers are always shown on the next page." He made
the following example (which I have slightly adapted):
\definemarking[linenumber]
\define\LinenumberCommand
{\normalexpanded{\setmarking[linenumber]{\linenumber}}}
\setuplinenumbering[command=\LinenumberCommand]
\startsetups linenumber
\doiftext {
\getmarking[linenumber]
}
{
\getmarking[linenumber][top] –
\getmarking[linenumber][bottom]
}
\stopsetups
\setupheadertexts[\texsetup{linenumber}]
\starttext
\dorecurse{6}{\input tufte\par}
\startlinenumbering
\dorecurse{20}{\input knuth\par}
\stoplinenumbering
\resetmarking[linenumber]
\dorecurse{6}{\input tufte\par}
\stoptext
Hans wrote: "currently it's not possible but it's no big deal to add
that feature at some point." I have now a similar problem with markings
in a header. Is there a solution to this? Could it be implemented now?
Thanks, and best wishes
Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________