Thomas A. Schmitz wrote: > I'm playing with (and happy about) linenotes; I'm just running into > one small (?) problem. Here's a testfile: > > > \starttext > > % \setuplinenumbering[location=intext,step=2] > > \startlinenumbering > Long and boring text that has \linenote{note one} no other sense than > demonstrating a problem with the linenote command in ConTeXt. > \stoplinenumbering > > \stoptext > > Run it, then comment out the \setuplinenumbering command. Is there a > way of having linenotes displayed correctly even when the numbers are > not displayed because of the step= setting? > \unprotect
\def\donoplacelinenumber {\the\everylinenumber} \def\doplacelinenumber {\ifnum\linenumber<\@@rnstart\relax \donoplacelinenumber \else \ifnum\numexpr(\linenumber/\@@rnstep)*\@@rnstep\relax=\linenumber \doattributes\??rn\c!style\c!color\dodoplacelinenumber \else \donoplacelinenumber \fi \fi} ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context