Changes

Jump to navigation Jump to search
1,955 bytes added ,  14:41, 26 September 2020
Created page with "Documentation for \startline"
<cd:commandgroup name="startline" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\startline</tt> is used for creating a line number range 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="startline" 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 commands <code>\startline</code> and <code>\stopline</code> add a label to a range of lines inside a typing. This range can then be referred to using {{cmd|inline}}, or {{cmd|inlinerange}}, or directly with <code>{{cmd|in}}[lr:b:someref]</code> and <code>{{cmd|in}}[lr:e: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="someline"></cd:commandref>
<cd:commandref name="inline"></cd:commandref>
<cd:commandref name="inlinerange"></cd:commandref></cd:seealso>
</cd:commandgroup>

Navigation menu