Re: [NTG-context] Referencing line numbers inside a typing

2010-10-27 Thread Stefan Müller
Am Dienstag 26 Oktober 2010, 21:12:01 schrieb Wolfgang Schuster:
 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

Thanks Wolgang, this looks pretty nice. Unfortunately I get the following 
error when running your example (ConTeXt  ver: 2010.10.22 16:46 MKIV  fmt: 
2010.10.27  int: english/english):

references  : unknown reference [][lr:b:line:single]
references  : unknown reference [][lr:b:line:range]

Any ideas?

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
___


Re: [NTG-context] Referencing line numbers inside a typing

2010-10-27 Thread Stefan Müller
Am Mittwoch 27 Oktober 2010, 16:52:07 schrieb Wolfgang Schuster:
 Am 27.10.2010 um 11:34 schrieb Stefan Müller:
  Thanks Wolgang, this looks pretty nice. Unfortunately I get the following
  error when running your example (ConTeXt  ver: 2010.10.22 16:46 MKIV 
  fmt: 2010.10.27  int: english/english):
  
  references  : unknown reference [][lr:b:line:single]
  references  : unknown reference [][lr:b:line:range]
  
  Any ideas?
 
 Works for me with the same context version.
 
 Do you use 'texexec' or 'context' to process the file?
 
 Wolfgang

My mistake. I forgot \stoptext. It seems kind of inconvenient that I get such 
a misleading error message.

I added some stuff regarding this thread to the wiki.

http://wiki.contextgarden.net/Verbatim_text#Referencing_line_numbers
http://wiki.contextgarden.net/Reference/en/inline
http://wiki.contextgarden.net/Reference/en/someline
http://wiki.contextgarden.net/Reference/en/startline
http://wiki.contextgarden.net/Reference/en/inlinerange

I hope that helps others.

Best wishes,
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
___


[NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread 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

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
___


Re: [NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Wolfgang Schuster

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

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


Re: [NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Stefan Müller



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
___


Re: [NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Wolfgang Schuster

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
___