Difference between revisions of "Command/startcombination"

From ConTeXt wiki
Jump to navigationJump to search
m (Category Floating)
(Improve synopsis, description, example, See Also)
Line 7: Line 7:
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
   <tr>
 
   <tr>
     <td colspan="2" class="cmd">\startcombination<span class="first" >[...]</span> ... \stopcombination</td>
+
     <td colspan="2" class="cmd">\startcombination<span class="first" >[''r''*''c'']</span> ... \stopcombination</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[...]</td>
+
     <td class="cmd">[''r''*''c'']</td>
     <td>matrix </td>
+
     <td>''rows * columns''</td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>
 
  
 
== Description ==  
 
== Description ==  
matrix = cols*rows (e.g. 3*2 means 3 columns and 2 rows).
 
 
This command can be used with figures, tables or other floats.
 
 
 
  
 +
A combination is a number of objects arranged in a matrix, with a caption below each object. (The captions may be empty.)
  
 
== Example ==
 
== Example ==
  
<texcode>
+
<context>
 +
\setupexternalfigures[location={local, default}]
 
\placefigure
 
\placefigure
  [here]
+
    [here]                                       % figure placement
  {Caption.}
+
    [fig:combinations]                          % figure reference
  {\startcombination[3*2]
+
    {An example of \type{\startcombination...}.} % figure caption
    {\externalfigure[f11][width=\OneColWidth]}{Subcaption 11.}
+
    {\startcombination[3*2]                     % contents of the figure: a combination
    {\externalfigure[f12][width=\OneColWidth]}{Subcaption 12.}
+
        % first row
    {\externalfigure[f13][width=\OneColWidth]}{Subcaption 13.}
+
        {\externalfigure[cow][height=1cm]} {a}   % subfigure and subcaption
    {\externalfigure[f21][width=\OneColWidth]}{Subcaption 21.}
+
        {\externalfigure[cow][height=1cm]} {b}
    {\externalfigure[f22][width=\OneColWidth]}{Subcaption 22.}
+
        {\externalfigure[cow][height=1cm]} {c}  
    {\externalfigure[f23][width=\OneColWidth]}{Subcaption 23.}
+
        % second row
  \stopcombination}
+
        {\externalfigure[cow][height=1cm]} {d}
 
+
        {\externalfigure[cow][height=1cm]} {e}  
</texcode>
+
        {\externalfigure[cow][height=1cm]} {f}
 
+
    \stopcombination}
 +
</context>
  
 
== See also ==
 
== See also ==
<!-- something like {{cmd|goto}} -->
+
* {{cmd|placefloat}}
 +
* {{cmd|defineparagraphs}} for non-floating side-by-side.
 +
* [[Combinations]]
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==
Line 50: Line 49:
  
 
[[Category:Command/Floating|startcombination]]
 
[[Category:Command/Floating|startcombination]]
 +
[[Category:Command/FiguresImages|startcombination]]

Revision as of 19:24, 25 May 2012

\startcombination

Syntax

\startcombination[r*c] ... \stopcombination
[r*c] rows * columns

Description

A combination is a number of objects arranged in a matrix, with a caption below each object. (The captions may be empty.)

Example

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: