Changes

Jump to navigation Jump to search
2,599 bytes added ,  14:34, 26 September 2020
Created page with "Documentation for \inline"
<cd:commandgroup name="inline" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\inline</tt> is used to refer to numbered lines</cd:shortdesc>
<cd:variants>
<cd:command category="structure" file="page-lin.mkvi" interfacedate="2020-07-14T09:24" interfacefile="i-linenumber.xml" level="document" name="inline" variantnumber="1">
<cd:arguments>
<cd:keywords delimiters="braces" optional="yes" ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:text"></cd:constant>
</cd:keywords>
<cd:keywords ordinal="2">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:reference"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description>The command <code>\inline</code> inserts a reference to one or multiple lines inside a typing that has been marked with a label. The curly braces are optional and may contain a text prefix. The default prefix is "line" or "lines" (with <code>\mainlanguage[en]</code>) depending on the number of referenced lines.
</cd:description>
<cd:examples><cd:example title=""><context source="yes">
\setuppapersize[A7,landscape]
\starttext
See \inline[myline] and also \inline[myrange].\crlf
See \inline{typeline}[myline] and also \inline{typelines}[myrange].

% escape=yes enables /BTEX.../ETEX
\setuptyping[escape=yes,numbering=line]
\starttyping
"do i remember a girl with blue-/BTEX\startline[myrange]/ETEX
sky eyes and sun-yellow hair?"
"do you?"/BTEX\stopline[myrange]/ETEX

"absolutely"
"that's very odd,
for i've never forgotten one frecklefaced lad"/BTEX\someline[myline]/ETEX

"what could have happened to her and him?"
"maybe they walked and called it a dream"
\stoptyping
\rightaligned{---E.E. Cummings, excerpt from untitled poem}

\stoptext
</context>
</cd:example><cd:example title=""><context source="yes">
\setuppapersize[A7,landscape]
\starttext
\startlinenumbering
First line\crlf
Some text\someline[demo]\crlf
Another line
\stoplinenumbering

\blank

See \inline[demo] for some text
\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">to label a range of lines</cd:commandref>
<cd:commandref name="someline">to label a single line</cd:commandref>
<cd:commandref name="inlinerange"> to refer to lines or lineranges.</cd:commandref></cd:seealso>
</cd:commandgroup>

Navigation menu