Command/definedelimitedtext

From Wiki
< Command
Revision as of 14:39, 24 May 2012 by Esteis (talk | contribs) (Create page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

\definedelimitedtext

Syntax

\definedelimitedtext[...][...,...=...,...]
[...] name
[...] delimitedtext to inherit from


Description

Define a new kind of delimited text (usually a quotation or blockquote) with an associated style.

Example

% Narrower output, please
\setuppapersize[A5]

% We'll be wanting a 3-point distance between the quotation and the text before it
\defineblank[extractdistance][3pt]

% Define a new \startextract environment
\definedelimitedtext[extract][blockquote]

% Set up the new \startextract environment
\setupdelimitedtext
   [extract]
   [spacebefore=extractdistance,
    leftmargin=1.5pc,
    before={\setupindenting[next]}
   ]

\starttext
    \quotation{Under Milk Wood} opens as follows:
    \startextract
        To begin at the beginning: It is spring, moonless night in the small town, 
        starless and bible-black, the cobblestreets silent and the hunched, 
        courters'-and-rabbits' wood limping invisible down to the sloeblack, slow, 
        black, crowblack, fishingboatbobbing sea.
    \stopextract
\stoptext

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: