ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: question about linenotes
Date: Sun, 05 Nov 2006 18:35:40 +0100	[thread overview]
Message-ID: <454E20EC.9070502@wxs.nl> (raw)
In-Reply-To: <501DE1D3-AF7F-4CA8-9507-F1D7D9842001@uni-bonn.de>

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
-----------------------------------------------------------------

  reply	other threads:[~2006-11-05 17:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-05 12:33 Thomas A. Schmitz
2006-11-05 17:35 ` Hans Hagen [this message]
2006-11-05 21:20   ` Thomas A. Schmitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=454E20EC.9070502@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).