Difference between revisions of "Command/definedelimitedtext"
< Command
Jump to navigation
Jump to search
(Create page) |
m (Correct syntax synopsis) |
||
Line 7: | Line 7: | ||
<table cellspacing="4" cellpadding="2" class="cmd"> | <table cellspacing="4" cellpadding="2" class="cmd"> | ||
<tr> | <tr> | ||
− | <td colspan="2" class="cmd">\definedelimitedtext<span class="first" >[...]</span><span class="second" style="color:red;">[ | + | <td colspan="2" class="cmd">\definedelimitedtext<span class="first" >[...]</span><span class="second" style="color:red;">[...]</span></td> |
</tr> | </tr> | ||
<tr valign="top" class="first"> | <tr valign="top" class="first"> |
Revision as of 15:51, 24 May 2012
\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: