Difference between revisions of "Command/startcombination"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \startcombination ... \stopcombination") |
(No difference)
|
Revision as of 09:42, 14 September 2023
Contents
\startcombination ... \stopcombination
Summary
The environment \startcombination ... \stopcombination is used for grouping visual objects
Settings
\startcombination[...][...=...,...] ... \stopcombination | |
[...] | name |
...=...,... | inherits from \setupcombination |
Settings matrix
Description
A combination is a number of objects arranged in a matrix, with a caption below each object. (The captions may be empty.)
Examples
Example 1
\setupexternalfigures[location={local, default}] \placefigure [here] % figure placement [fig:combinations] % figure reference {An example of \type{\startcombination...}.} % figure caption {\startcombination[3*2] % contents of the figure: a combination % first row {\externalfigure[cow][height=1cm]} {a} % subfigure and subcaption {\externalfigure[cow][height=1cm]} {b} {\externalfigure[cow][height=1cm]} {c} % second row {\externalfigure[cow][height=1cm]} {d} {\externalfigure[cow][height=1cm]} {e} {\externalfigure[cow][height=1cm]} {f} \stopcombination}
![](/wikiteximage/0e81fa9d50eeb3ed8e5230e4fc436423.png)
Automatic caption labels
This example shows how to autolabel figures
\useMPlibrary[dum] \definecombination[mycombi][alternative=label] \setuplabel[combination:mycombi][ text={Item }, numberconversion=character, stopper=!, ] 4 pics \startcombination[mycombi][2*2] {\externalfigure[dummy][width=4cm,height=1cm]} {\externalfigure[dummy][width=4cm,height=1cm]} {\externalfigure[dummy][width=4cm,height=1cm]} {\externalfigure[dummy][width=4cm,height=1cm]} \stopcombination \blank[2*big] 2 more pics \startcombination[mycombi][nx=2,ny=1,continue=yes] {\externalfigure[dummy][width=4cm,height=1cm]} {\externalfigure[dummy][width=4cm,height=1cm]} \stopcombination
![](/wikiteximage/560eb19bd1ed2fb4cb3ed6d6a1c11c54.png)
Notes
See also
- \definecombination
- \setupcombination
- pack-com.mkiv
- \defineparagraphs for non-floating side-by-side items.
- \placefloat for singular floating items.
- Combinations