Changes

Jump to navigation Jump to search
Create reference page
<!-- please remove this and the following line if you have checked this page -->
{{Reference_Cleanup}}
{{Reference
|name=defineparagraphs
|attributes=
}}

== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\defineparagraphs<span class="first" >[...]</span><span class="second" >[...,...=...,...]</span></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[...]</td>
<td>name </td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[[Reference/en/keyword:n|n]]</td>
<td>[[Reference/en/value:number|number]] </td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[[Reference/en/keyword:rule|rule]]</td>
<td>[[Reference/en/value:on|on]] [[Reference/en/value:off|off]] </td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[[Reference/en/keyword:height|height]]</td>
<td>[[Reference/en/value:fit|fit]] [[Reference/en/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[[Reference/en/keyword:before|before]]</td>
<td>[[Reference/en/value:command|command]] </td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[[Reference/en/keyword:after|after]]</td>
<td>[[Reference/en/value:command|command]] </td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[[Reference/en/keyword:inner|inner]]</td>
<td>[[Reference/en/value:command|command]] </td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[[Reference/en/keyword:distance|distance]]</td>
<td>[[Reference/en/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[[Reference/en/keyword:tolerance|tolerance]]</td>
<td>[[Reference/en/value:verystrict|verystrict]] [[Reference/en/value:strict|strict]] [[Reference/en/value:tolerant|tolerant]] [[Reference/en/value:verytolerant|verytolerant]] [[Reference/en/value:stretch|stretch]] </td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[[Reference/en/keyword:align|align]]</td>
<td>[[Reference/en/value:left|left]] [[Reference/en/value:right|right]] [[Reference/en/value:middle|middle]] </td>
</tr>
</table>


== Description ==
== example ==
<pre class="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

</pre>



== Example ==

<pre class="example">
% when using footnotes, you have to do the following trick
% (from Hans on mailinglist, Date: Tue, 15 Jun 2004 00:53:48 +0200)

\defineparagraphs[Par][n=3]
\starttext
\startPar
Text \Par and more\postponefootnotes\footnote{a footnote, that gets
hidden...}\Par text
\stopPar
\flushfootnotes
\stoptext

</pre>


== See also ==
<!-- something like [[cmd:goto|\goto]] -->

[[Category:Reference/en|defineparagraphs]]
Anonymous user

Navigation menu