Changes

Jump to navigation Jump to search
Hurrah. Page finally complete.
{{Reference
|name=setupdelimitedtext
|attributes=
}}

== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd"><!--
-->\setupdelimitedtext<!--
--><span class="first">[''name'']</span><!--
--><span class="second" style="color:red">[''n'']</span><!--
--><span class="third">[...,...=...,...]</span><!--
--></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[''name'']</td>
<td>''name of the delimitedtext to set up''</td>
</tr>
<tr valign="top" class="second">
<td class="cmd" styles="color:red">[''n'']</td>
<td>''(optional) nesting level to set up<br />
(1 = outermost)''</td>
</tr>
<tr valign="top" class="third">
<td class="cmd"> location </td>
<td> margin text paragraph: ''function unknown'' </td>
</tr>
<tr valign="top" class="third">
<td class="cmd"> spacebefore </td>
<td> ''dimension: space above delimitedtext fragment'' </td>
</tr>
<tr valign="top" class="third">
<td class="cmd"> spaceafter </td>
<td> ''dimension, spacebefore by default: space below delimitedtext fragment'' </td>
</tr>
<tr valign="top" class="third">
<td class="cmd"> style </td>
<td> '''normal''' bold italic, ''etc''</td>
</tr>
<tr valign="top" class="third">
<td class="cmd"> color </td>
<td> ''color'' </td>
</tr>
<tr valign="top" class="third">
<td class="cmd"> leftmargin </td>
<td> ''dimension: distance to edge of the page's left margin area'' </td>
</tr>
<tr valign="top" class="third">
<td class="cmd"> rightmargin </td>
<td> ''dimension, leftmargin by default'' </td>
</tr>
<tr valign="top" class="third">
<td class="cmd"> indentnext </td>
<td> '''yes''' no </td>
</tr>
<tr valign="top" class="third">
<td class="cmd"> before </td>
<td> ''command'' </td>
</tr>
<tr valign="top" class="third">
<td class="cmd"> after </td>
<td> ''command'' </td>
</tr>
<tr valign="top" class="third">
<td class="cmd"> left </td>
<td> ''text'' </td>
</tr>
<tr valign="top" class="third">
<td class="cmd"> right </td>
<td> ''text'' </td>
</tr>
<tr valign="top" class="third">
<td class="cmd"> level=0, </td>
<td> ''unknown, 0 by default'' </td>
</tr>
<tr valign="top" class="third">
<td class="cmd"> repeat </td>
<td> '''no''' yes </td>
</tr>
<tr valign="top" class="third">
<td class="cmd"> method </td>
<td> ''unknown'' </td>
</tr>
</table>


== Description ==

Set up the appearance of a delimitedtext environment defined earlier with {{cmd|definedelimitedtext}}. {{cmd|quotation}} and {{cmd|quote}} are delimitedtexts, too, so you can also set up those with this command; but for those you can also use the special commands {{cmd|setupquotation}} and {{cmd|setupquote}}.

Most of the parameters are self-explanatory, but two things should be borne in mind:

* Nearly all of the parameters apply only if the new kind of text is invoked with <code>\startmydelimitedtext</code>: if one uses <code>\mydelimitedtext{...}</code>, only <code>left</code> and <code>right</code> have any effect.

* <code>leftmargin</code> contains the distance to the actual left margin, not to the edge of the body text. If the new delimitedtext inherits from <code>quotation</code>, the text will be indented a bit with respect to the body text; if you want to line them up, set the <code>leftmargin</code> to <code>\leftmargindistance</code> rather than to <code>0pt</code>.

== Example ==
<texcode>
\setuppapersize[A5]

\definedelimitedtext[mydt]
\setupdelimitedtext[mydt][left=», right=«]

\quotation{Clancy of the Overflow}, by Banjo Paterson

\startmydt
And an answer came directed in a manner unexpected, and I
think the same was written with a thumbnail dipped in tar;
't was his shearing-mate who wrote it, and verbatim I will quote it:
\quotation{Clancy's gone to Queensland droving, and we don't know where he are.}
\stopmydt
</texcode>

== See also ==
* {{cmd|definedelimitedtext}}
* {{cmd|setupquotation}}
* {{cmd|setupquote}}

== Help from ConTeXt-Mailinglist/Forum ==
All issues with:
{{Forum|{{SUBPAGENAME}}}}

[[Category:Command/Delimited text|setupdelimitedtext]]

Navigation menu