Difference between revisions of "Command/setupparagraphs"
< Command
Jump to navigation
Jump to search
m (Text replace - "Reference/en|" to "Commands|") |
m (Text replace - "Reference/en/" to "Command/") |
||
Line 18: | Line 18: | ||
</tr> | </tr> | ||
<tr valign="top" class="third"> | <tr valign="top" class="third"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:style|style]]</td> |
− | <td>[[ | + | <td>[[Command/value:normal|normal]] [[Command/value:bold|bold]] [[Command/value:slanted|slanted]] [[Command/value:boldslanted|boldslanted]] [[Command/value:type|type]] [[Command/value:cap|cap]] [[Command/value:small...|small...]] [[Command/value:command|command]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="third"> | <tr valign="top" class="third"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:width|width]]</td> |
− | <td>[[ | + | <td>[[Command/value:dimension|dimension]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="third"> | <tr valign="top" class="third"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:height|height]]</td> |
− | <td>[[ | + | <td>[[Command/value:dimension|dimension]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="third"> | <tr valign="top" class="third"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:align|align]]</td> |
− | <td>[[ | + | <td>[[Command/value:flushleft|flushleft]] [[Command/value:flushright|flushright]] [[Command/value:middle|middle]] [[Command/value:width|width]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="third"> | <tr valign="top" class="third"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:tolerance|tolerance]]</td> |
− | <td>[[ | + | <td>[[Command/value:verystrict|verystrict]] [[Command/value:strict|strict]] [[Command/value:tolerant|tolerant]] [[Command/value:verytolerant|verytolerant]] [[Command/value:stretch|stretch]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="third"> | <tr valign="top" class="third"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:distance|distance]]</td> |
− | <td>[[ | + | <td>[[Command/value:dimension|dimension]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="third"> | <tr valign="top" class="third"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:before|before]]</td> |
− | <td>[[ | + | <td>[[Command/value:command|command]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="third"> | <tr valign="top" class="third"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:after|after]]</td> |
− | <td>[[ | + | <td>[[Command/value:command|command]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="third"> | <tr valign="top" class="third"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:inner|inner]]</td> |
− | <td>[[ | + | <td>[[Command/value:command|command]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="third"> | <tr valign="top" class="third"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:command|command]]</td> |
− | <td>[[ | + | <td>[[Command/value:command|command]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="third"> | <tr valign="top" class="third"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:rule|rule]]</td> |
− | <td>[[ | + | <td>[[Command/value:on|on]] [[Command/value:off|off]] </td> |
</tr> | </tr> | ||
</table> | </table> |
Revision as of 01:06, 14 March 2012
\setupparagraphs
Syntax
\setupparagraphs[...][...][...,...=...,...] | |
[...] | name |
[...] | number each |
style | normal bold slanted boldslanted type cap small... command |
width | dimension |
height | dimension |
align | flushleft flushright middle width |
tolerance | verystrict strict tolerant verytolerant stretch |
distance | dimension |
before | command |
after | command |
inner | command |
command | command |
rule | on off |
Description
Example
% Source: ConText Manual ms-cb-en.pdf % 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 % the remaining 50% of the text's width. % Set a paragraph with "mypar" \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
results in