Difference between revisions of "Command/column"

From ConTeXt wiki
Jump to navigationJump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
(Better description, example, see also)
Line 12: Line 12:
  
 
== Description ==  
 
== Description ==  
Should go to the next column in <tt>\startcolumns</tt> ... <tt>\stopcolumns</tt> environment or in columnsets. For instance:
+
Go to the next column in a {{cmd|startcolumns}} environment or in a [[Columns#Column_Sets|column set]] environment.
  
<texcode>
+
== Example ==
\starttext
+
 
Here is some text before splitting into two columns
+
<context source=yes>
%[n=2] means the number of columns
+
\setuppapersize[A6]
\startcolumns[n=2]
+
\setupwhitespace[big]
 +
 
 +
Below, we have two separate columns; but up here, for the nonce, we have but the one.
  
text, text,\dots
+
\startcolumns[n=2]  % Two columns, please
in the first column
+
    Text, text, text \dots
 +
    all in the first column
 
\column
 
\column
some more text, text\dots
+
    Words, words, words \dots
in the second column
+
    all in the second column.
 
+
    And look ye here! Even more words!
 
\stopcolumns
 
\stopcolumns
and here we continue some text after having split into two columns.
+
</context>
\stoptext
 
</texcode>
 
 
 
 
 
== Example ==
 
<!-- Please fill in an example if you can -->
 
  
 
== See also ==
 
== See also ==
<!-- something like {{cmd|goto}} -->
+
* {{cmd|page}} to move to the next page
 +
* {{cmd|startcolumns}} for the columns environment
 +
* {{cmd|paragraph}} to move to the next column in a {{cmd|startparagraph}} environment.
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Revision as of 07:50, 25 June 2012

\column

Syntax

\column

Description

Go to the next column in a \startcolumns environment or in a column set environment.

Example

\setuppapersize[A6]
\setupwhitespace[big]

Below, we have two separate columns; but up here, for the nonce, we have but the one.

\startcolumns[n=2]  % Two columns, please
    Text, text, text \dots
    all in the first column
\column
    Words, words, words \dots
    all in the second column.
    And look ye here! Even more words!
\stopcolumns

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: