Changes

Jump to navigation Jump to search
716 bytes added ,  20:57, 27 October 2010
Added an example for referencing line numbers in verbatim
\stopcode
</context>
 
== Referencing line numbers ==
The following example from the mailing list [http://archive.contextgarden.net/thread/20101026.191201.55344b94.en.html#20101026.191201.55344b94] shows how to reference line numbers from a typing in the surrounding text (MkIV).
 
<texcode>
\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
</texcode>
18

edits

Navigation menu