Command/definelines

From Wiki
< Command
Revision as of 10:31, 28 August 2020 by Taco (talk | contribs) (Created page with "Documentation for \definelines")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


\definelines

Summary

The command \definelines is used for defining line-oriented environments.

Settings

\definelines[...][...][...=...,...]
[...]name
[...]name
...=...,...inherits from \setuplines

Description

\definelines[mylines] defines a \startmylines environment (equivalent to \startlines) that can be set up with \setupmylines (equivalent to \setuplines). An optional second argument allows setups to be passed simultaneously with the definition, instead of via \setupmylines.


Examples

Example 1

% define, then set up
\definelines[evenly]
\setuplines[evenly][indenting={yes, 1em, even}]

% define with setup
\definelines[oddly][indenting={yes, 1em, odd}]

\startevenly
Chivalry, schmivalry!
Roger the thief has a
method he uses for
sneaky attacks:% Comment out last newline
\stopevenly

\startoddly
Folks who are reading are
characteristically
always forgetting to
guard their own bac\unknown% Comment out last newline
\stopoddly

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: