Changes

Jump to navigation Jump to search
4,374 bytes added ,  20:09, 18 November 2013
Created page with "{{Reference |name=mixedcolumns |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd">\startm..."
{{Reference
|name=mixedcolumns
|attributes=
}}

== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[instance][settings]</span> ... \stopmixedcolumns</td>
</tr>
<tr>
<td> Or </td>
</tr>
<tr>
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[instance]</span></td>
</tr>
<tr>
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[settings]</span></td>
<tr>
<td colspan="2" class="cmd">\stopmixedcolumns</td>
</tr>
</table>
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\mixedcolumns<span class="first" >[...,...=...,...]</span></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:distance|distance]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:n|n]]</td>
<td>[[Command/value:number|number]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:rule|rule]]</td>
<td>[[Command/value:on|on]] [[Command/value:off|off]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:frame|frame]]</td>
<td> </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:strut|strut]]</td>
<td>default no </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:offset|offset]]</td>
<td>default overlay </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:direction|direction]]</td>
<td>[[Command/value:left|left]] [[Command/value:right|right]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:maxheight|maxheight]]</td>
<td>[[Command/value:dimension|dimension]] \textheight</td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:maxwidth|maxwidth]]</td>
<td>[[Command/value:dimension|dimension]] \makeupwidth</td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:grid|grid]]</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 valign="top" class="first">
<td class="cmd">[[Command/keyword:step|step]]</td>
<td>default: .25\lineheight Still needs experimenting </td>
</tr>
</table>


== Description ==


{| class="wikitable"
|-
| distance
| Distance between columns.
|-
| n
| Number of columns. Default is n=2.
|-
| rule
| Draw a line between the columns. Default is off.
|-
| frame
|
|-
| strut
|
|-
| grid
| Grid snapping mode. Default is tolerant.
|-
| balance
| Left and right columns balanced at bottom of columns
|-
| align
| Left, right (raggedleft, raggedright).
|-
| direction
| Default is right, i.e. the first column is on the left; 'left' means the first column is the rightmost.
|-
|}
== Description ==

Hans comments in the source that it is possible to define columns using a start command, but it is best to define an instance by using {{cmd|definemixedcolumns}}. This does not seem to be implemented yet. I could only get it to work without defining an instance as the example shows below.

== Example ==
<context source=yes>
\startcolumns[n=2, distance=5mm, rule=on, balance=yes]
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\stopcolumns

</context>

This example works with ConTeXt ver: 2013.05.28 00:36 MKIV.

== See also ==
* {{cmd|column}}

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

{{Columns navbox}}

[[Category:Command/Columns|mixedcolumns]]
18

edits

Navigation menu