ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Referencing line numbers inside a typing
Date: Tue, 26 Oct 2010 21:12:01 +0200	[thread overview]
Message-ID: <F765A307-4068-453C-A65F-C9D58B9C44BC@gmail.com> (raw)
In-Reply-To: <4CC72255.2050907@gmx.de>


Am 26.10.2010 um 20:47 schrieb Stefan Müller:

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


The texts „line“ and „lines“ are set with \setuplabeltext but you can see alternative texts with \inline{...}[<ref>].

\setuptyping[numbering=line,escape=yes]

\starttext

See \inline[line:single] and also \inline[line:range].

See \inline{typeline}[line:single] and also \inline{typelines}[line:range].

See line~\inlinerange[line:single] and also lines~\inlinerange[line:range].

\starttyping
line 1
line 2/BTEX\startline[line:range]/ETEX
line 3/BTEX\someline[line:single]/ETEX
line 4
line 5/BTEX\stopline[line:range]/ETEX
line 6
\stoptyping

\stoptext

Wolfgang

___________________________________________________________________________________
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 19:12 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
2010-10-26 19:12     ` Wolfgang Schuster [this message]
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=F765A307-4068-453C-A65F-C9D58B9C44BC@gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).