Changes

Jump to navigation Jump to search
1,866 bytes added ,  14:43, 26 September 2020
Created page with "Documentation for \someline"
<cd:commandgroup name="someline" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\someline</tt> is used to create a line reference
</cd:shortdesc>
<cd:variants>
<cd:command category="structure" file="page-lin.mkvi" interfacedate="2020-07-14T09:24" interfacefile="i-linenumber.xml" level="document" name="someline" variantnumber="1">
<cd:arguments>
<cd:keywords ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:reference"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description>The command <code>\someline[someref]</code> adds a label to a line inside a typing. This label can then be accessed with {{cmd|inline}} or {{cmd|inlinerange}}, or directly with e.g. <code>{{cmd|in}}[lr:b:someref]</code>.
</cd:description>
<cd:examples><cd:example title=""><context source="yes">
\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
</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="page-lin.mkvi" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>
<cd:commandref name="startline"></cd:commandref>
<cd:commandref name="inline"></cd:commandref>
<cd:commandref name="inlinerange"></cd:commandref></cd:seealso>
</cd:commandgroup>

Navigation menu