Command/someline

From Wiki
< Command
Revision as of 14:43, 26 September 2020 by Taco (talk | contribs) (Created page with "Documentation for \someline")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


\someline

Summary

The command \someline is used to create a line reference

Settings

\someline[...]
[...]reference

Description

The command \someline[someref] adds a label to a line inside a typing. This label can then be accessed with \inline or \inlinerange, or directly with e.g. \in[lr:b: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

All issues with: