Command/definelines

From ConTeXt wiki
Jump to: navigation, search

\definelines

Syntax

\definelines[...][...=...]
[...] name
[...=...] see \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.

Example

% mode=mkiv

\setuppapersize[A5]
\setupindenting[yes, 1em]
\setupwhitespace[line]

% define, then set up
\definelines[evenly]
\setuplines[evenly][indenting=even]

% define with setup
\definelines[oddly][indenting=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

See also

Help from ConTeXt-Mailinglist/Forum

All issues with:

C O N T E X T G A R D E N

Personal tools
Namespaces
Variants
Actions
Help
External Help
Installation
Navigation
Toolbox