Changes

Jump to navigation Jump to search
More complete example, syntax synopsis
<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> <span class="third" style="color:red;">[...,...=...,...]</span> </td>
</tr>
<tr valign="top" class="first">
<td class="cmd" style="color:red">[...]</td>
<td>''delimitedtext to inherit from''</td>
</tr>
<tr valign="top" class="third">
<td class="cmd" style="color:red">[...,...=...,...]</td>
<td>see {{cmd|setupdelimitedtext}}</td>
</tr>
</table>
== Example ==
<context mode=mkiv source="yes">% Narrower output, pleasemode=mkiv \setuppapersize[A5A6] Here come the delimited texts! \setupquotation[color=red]\startquotation Plain quotation\stopquotation
% We'll be wanting a 3-point distance between the Definition inherits, followed by setting up\definedelimitedtext[qone][quotation and the text before it]\defineblanksetupdelimitedtext[extractdistanceqone][3ptleft=«]
% Define a new \startextract environmentstartqone Inheritance followed by setup\definedelimitedtext[extract][blockquote]stopqone
% Set Definition inherits and sets up the new \startextract environmentall in one step\setupdelimitedtext definedelimitedtext[qtwo][extractquotation] [spacebeforeright=extractdistance,»]\startqtwo leftmargin=1.5pc,Inheritance simultaneous with setup before={\setupindenting[next]} ]stopqtwo
\starttext \quotation{Under Milk Wood} opens as follows: \startextract To begin at the beginning: It is spring, moonless night The last form does not work in the small town, starless and bible-black, the cobblestreets silent and MkIV on the hunchedwiki (\contextversionnumber), courters'-and-rabbits' wood limping invisible down to the sloeblack, slow, black, crowblack, fishingboatbobbing seabut it works with ConTeXt 201200419 23:18 MkIV. \stopextract\stoptext
</context>

Navigation menu