1,718 bytes added
, 14:39, 24 May 2012
{{Reference
|name=definedelimitedtext
|attributes=
}}
== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\definedelimitedtext<span class="first" >[...]</span><span class="second" style="color:red;">[...,...=...,...]</span></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[...]</td>
<td>''name''</td>
</tr>
<tr valign="top" class="second">
<td class="cmd" style="color:red">[...]</td>
<td>''delimitedtext to inherit from''</td>
</tr>
</table>
== Description ==
Define a new kind of delimited text (usually a quotation or blockquote) with an associated style.
== Example ==
<context source="yes">
% 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
</context>
== See also ==
* {{cmd|setupdelimitedtext}}
== Help from ConTeXt-Mailinglist/Forum ==
All issues with:
{{Forum|{{SUBPAGENAME}}}}
[[Category:Commands|definedelimitedtext]]