Changes

Jump to navigation Jump to search
no edit summary
<!-- please remove this and the following line if you have checked this page -->
{{Reference_Cleanup}}
{{Reference
|name=setupparagraphs
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>setupparagraphs</syntax>
== [[Help:Reference|Syntax]] ==
<tr valign="top" class="second">
<td class="cmd">[...]</td>
<td>''number '' each </td>
</tr>
<tr valign="top" class="third">
<td class="cmd">[[Reference/enCommand/keyword:style|style]]</td> <td>[[Reference/enCommand/value:normal|normal]] [[Reference/enCommand/value:bold|bold]] [[Reference/enCommand/value:slanted|slanted]] [[Reference/enCommand/value:boldslanted|boldslanted]] [[Reference/enCommand/value:type|type]] [[Reference/enCommand/value:cap|cap]] [[Reference/enCommand/value:small...|small...]] [[Reference/enCommand/value:command|command]] </td>
</tr>
<tr valign="top" class="third">
<td class="cmd">[[Reference/enCommand/keyword:width|width]]</td> <td>[[Reference/enCommand/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="third">
<td class="cmd">[[Reference/enCommand/keyword:height|height]]</td> <td>[[Reference/enCommand/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="third">
<td class="cmd">[[Reference/enCommand/keyword:align|align]]</td> <td>[[ReferenceCommand/envalue:flushleft|flushleft]] [[Command/value:leftflushright|leftflushright]] [[ReferenceCommand/envalue:righttoleft|righttoleft]] [[Command/value:rightlefttoright|rightlefttoright]] [[Reference/enCommand/value:middle|middle]] [[Reference/enCommand/value:width|width]] </td>
</tr>
<tr valign="top" class="third">
<td class="cmd">[[Reference/enCommand/keyword:tolerance|tolerance]]</td> <td>[[Reference/enCommand/value:verystrict|verystrict]] [[Reference/enCommand/value:strict|strict]] [[Reference/enCommand/value:tolerant|tolerant]] [[Reference/enCommand/value:verytolerant|verytolerant]] [[Reference/enCommand/value:stretch|stretch]] </td>
</tr>
<tr valign="top" class="third">
<td class="cmd">[[Reference/enCommand/keyword:distance|distance]]</td> <td>[[Reference/enCommand/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="third">
<td class="cmd">[[Reference/enCommand/keyword:before|before]]</td> <td>[[Reference/enCommand/value:command|command]] </td>
</tr>
<tr valign="top" class="third">
<td class="cmd">[[Reference/enCommand/keyword:after|after]]</td> <td>[[Reference/enCommand/value:command|command]] </td>
</tr>
<tr valign="top" class="third">
<td class="cmd">[[Reference/enCommand/keyword:inner|inner]]</td> <td>[[Reference/enCommand/value:command|command]] </td>
</tr>
<tr valign="top" class="third">
<td class="cmd">[[Reference/enCommand/keyword:command|command]]</td> <td>[[Reference/enCommand/value:command|command]] </td>
</tr>
<tr valign="top" class="third">
<td class="cmd">[[Reference/enCommand/keyword:rule|rule]]</td> <td>[[Reference/enCommand/value:on|on]] [[Reference/enCommand/value:off|off]] </td>
</tr>
</table>
 
== Description ==
Setup the paragraphs of a side-by-side environment defined with {{cmd|defineparagraphs}}. This command occurs in two forms. One to set options for the entire environment:<texcode>\setupparagraphs[EnglishLatin][each][n=2,before=\blank]</texcode>And one to set options for specific paragraphs (columns) in the environment:<texcode>\setupparagraphs[EnglishLatin][2][color=red,width=.6\textwidth]</texcode>
== Example ==
<code context source="texyes" text="results in">
% Source: ConText Manual ms-cb-en.pdf
\setuppapersize[A5] % narrower page --> better-sized picture for the wiki.
% Define a paragraph environment with 3 columns.
% Insert a blank line just before and just after the paragraph.
\defineparagraphs
[mypar] [n=3, before={\blank}, after={\blank}]
% The first column occupies 10% of the text's width and is rendered bold.
\setupparagraphs [mypar] [1] [width=.1\textwidth, style=bold]
% The second column occupies 40% of the text's width.
\setupparagraphs [mypar] [2] [width=.4\textwidth]
% The third column uses default settings. It will occupy
\startmypar % begin paragraph body with 1st column
1252  
\mypar % switch to 2nd column
  Hasselt obtains its city charter from bishop Hendrik van Vianden.  
\mypar % switch to 3rd column
Hendrik van Vianden was pressed by other towns not to agree
with the charter. It took Hasselt a long period of time to
convince the Bishop. After supporting the Bishop in a small
war against the Drents, the charter was released.
\stopmypar % end paragraph body
</context>
Hendrik van Vianden was pressed by other towns not to agree
with the charter. It took Hasselt a long period of time to
convince the Bishop. After supporting the Bishop in a small
war against the Drents, the charter was released.
\stopmypar % end paragraph body == See also ==* {{cmd|defineparagraphs}}* {{cmd|definetabulate}}, {{cmd|setuptabulate}}, and {{cmd|starttabulate}} for tables
<== Help from ConTeXt-Mailinglist/code>Forum ==All issues with:{{Forum|{{SUBPAGENAME}}}}
{{Columns navbox}}
== See also ==[[Category:Command/Paragraphs|setupparagraphs]]<!-- something like [[cmdCategory:gotoCommand/Tables|\gotosetupparagraphs]] --> [[Category:ReferenceCommand/enColumns|setupparagraphs]]

Navigation menu