Command/inline

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


\inline

Summary

The command \inline is used to refer to numbered lines

Settings

\inline{...}[...]
{...}text
[...]reference

Description

The command \inline 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 \mainlanguage[en]) depending on the number of referenced lines.

Examples

Example 1

\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

Example 2

\setuppapersize[A7,landscape]
\starttext
\startlinenumbering
First line\crlf
Some text\someline[demo]\crlf
Another line
\stoplinenumbering

\blank

See \inline[demo] for some text
\stoptext

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: