Open main menu


\startline

Summary

The command \startline is used for creating a line number range reference

Settings

\startline[...]
[...]reference

Description

The commands \startline and \stopline add a label to a range of lines inside a typing. This range can then be referred to using \inline, or \inlinerange, or directly with \in[lr:b:someref] and \in[lr:e:someref].

Examples

Example 1

\setuppapersize[A7,landscape]

% Ensure that the /BTEX.../ETEX escape is active inside \starttyping
\setuptyping[numbering=line,escape=yes]

\starttext

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

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

\stoptext

Notes

See also

Help from ConTeXt-Mailinglist/Forum