https://wiki.contextgarden.net/index.php?title=Command/inline&feed=atom&action=historyCommand/inline - Revision history2024-03-28T20:45:54ZRevision history for this page on the wikiMediaWiki 1.34.1https://wiki.contextgarden.net/index.php?title=Command/inline&diff=31881&oldid=prevTaco: Created page with "Documentation for \inline"2020-09-26T14:32:28Z<p>Created page with "Documentation for \inline"</p>
<p><b>New page</b></p><div><cd:commandgroup name="inline" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807"><br />
<cd:shortdesc><!-- a short command summary goes here --><br />
The command <tt>\inline</tt> is used to refer to numbered lines</cd:shortdesc><br />
<cd:variants><br />
<cd:command category="structure" file="page-lin.mkvi" interfacedate="2020-07-14T09:24" interfacefile="i-linenumber.xml" level="document" name="inline" variantnumber="1"><br />
<cd:arguments><br />
<cd:keywords delimiters="braces" optional="yes" ordinal="1"><br />
<cd:keywordsdoc></cd:keywordsdoc><br />
<cd:constant type="cd:text"></cd:constant><br />
</cd:keywords><br />
<cd:keywords ordinal="2"><br />
<cd:keywordsdoc></cd:keywordsdoc><br />
<cd:constant type="cd:reference"></cd:constant><br />
</cd:keywords><br />
</cd:arguments><br />
</cd:command><br />
</cd:variants><br />
<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.<br />
</cd:description><br />
<cd:examples><cd:example title=""><context source="yes"><br />
\setuppapersize[A7,landscape]<br />
\starttext<br />
See \inline[myline] and also \inline[myrange].\crlf<br />
See \inline{typeline}[myline] and also \inline{typelines}[myrange].<br />
<br />
% escape=yes enables /BTEX.../ETEX<br />
\setuptyping[escape=yes,numbering=line]<br />
\starttyping<br />
"do i remember a girl with blue-/BTEX\startline[myrange]/ETEX<br />
sky eyes and sun-yellow hair?"<br />
"do you?"/BTEX\stopline[myrange]/ETEX<br />
<br />
"absolutely"<br />
"that's very odd,<br />
for i've never forgotten one frecklefaced lad"/BTEX\someline[myline]/ETEX<br />
<br />
"what could have happened to her and him?"<br />
"maybe they walked and called it a dream"<br />
\stoptyping<br />
\rightaligned{---E.E. Cummings, excerpt from untitled poem}<br />
<br />
\stoptext<br />
</context><br />
</cd:example><cd:example title=""><context source="yes"><br />
\setuppapersize[A7,landscape]<br />
\starttext<br />
\startlinenumbering<br />
First line\crlf<br />
Some text\someline[demo]\crlf<br />
Another line<br />
\stoplinenumbering<br />
<br />
\blank<br />
<br />
See \inline[demo] for some text<br />
\stoptext<br />
</context></cd:example></cd:examples><br />
<cd:notes></cd:notes><br />
<cd:seealso><br />
<cd:source file="page-lin.mkvi" originator="system"></cd:source><br />
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage><br />
<cd:commandref name="startline">to label a range of lines</cd:commandref><br />
<cd:commandref name="someline">to label a single line</cd:commandref><br />
<cd:commandref name="inlinerange"> to refer to lines or lineranges.</cd:commandref></cd:seealso><br />
</cd:commandgroup></div>Taco