ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Stefan Müller" <warrence.stm@gmx.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Referencing line numbers inside a typing
Date: Tue, 26 Oct 2010 20:47:49 +0200	[thread overview]
Message-ID: <4CC72255.2050907@gmx.de> (raw)
In-Reply-To: <9593CB37-B476-4A6F-AFD6-E29A0B274A3B@gmail.com>



On 26.10.2010 15:31, Wolfgang Schuster wrote:
>
> Am 26.10.2010 um 10:30 schrieb Stefan Müller:
>
>> Hi list,
>>
>> is there a (preferably easy) way to reference line numbers inside a typing? Minimal (not working) example:
>>
>> \setuptyping[numbering=line]
>> \starttext
>> In the following typing, \in{line}{}[line:intyping] is really interesting.
>> \starttyping
>> This line is so interesting.
>> \stoptyping
>> \stoptext
>
> MkIV:
>
> \setuptyping[numbering=line,escape=yes]
> \starttext
> In the following typing, \inline[line:intyping] is really interesting.
> \starttyping
> line 1
> line 2
> line 3/BTEX\someline[line:intyping]/ETEX
> line 4
> \stoptyping
> \stoptext
>
> Wolfgang

One more question before wikifying: Is there a way to prevent the prefix 
"line"? I want to say something like "In lines 3 to 13".

Thanks,
Stefan
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2010-10-26 18:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-26  8:30 Stefan Müller
2010-10-26 13:31 ` Wolfgang Schuster
2010-10-26 18:47   ` Stefan Müller [this message]
2010-10-26 19:12     ` Wolfgang Schuster
2010-10-27  9:34       ` Stefan Müller
2010-10-27 14:52         ` Wolfgang Schuster
2010-10-27 22:14           ` Stefan Müller

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=4CC72255.2050907@gmx.de \
    --to=warrence.stm@gmx.de \
    --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).