Difference between revisions of "Command/inline"

From ConTeXt wiki
 
Line 4: Line 4:
 
}}
 
}}
  
== [[Help:Reference|Syntax]] (autogenerated)] ==
+
== [[Help:Reference|Syntax]] (autogenerated) ==
 
<syntax>inline</syntax>
 
<syntax>inline</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==

Latest revision as of 14:36, 13 October 2019

\inline

Syntax (autogenerated)

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


Syntax

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

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.

Example

\setuppapersize[A6]
\starttext

(\type{escape=yes} and \type{numbering=line} don't work together on the wiki.)

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

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: