Open main menu

Changes

2,313 bytes added ,  15:13, 28 November 2021
m
Remove TEXpage from code snippets
\stoptext
</texcode>
 
= Float Combinations =
 
If you want to place floats besides each other or in a regular matrix,
each with its own number and caption, you need a float combination:
 
<context source=yes>
\useMPlibrary [dum] %% sample images
 
\startplacefigure [location=none] % disable numbering of outer float
\startfloatcombination [nx=2, ny=1] % two columns, one row
\startplacefigure [title=Left]
\externalfigure [dummy]
\stopplacefigure
\startplacefigure [title=Right]
\externalfigure [dummy]
\stopplacefigure
\stopfloatcombination
\stopplacefigure
</context>
 
If you want only one number for the whole thing, you may use a regular combination within a float:
 
<context source=yes>
\useMPlibrary [dum] %% sample images
 
\startplacefigure [title=My combination]
\startcombination [nx=2, ny=1]
\startcontent \externalfigure [dummy] \stopcontent
\startcaption Left \stopcaption
\startcontent \externalfigure [dummy] \stopcontent
\startcaption Right \stopcaption
\stopcombination
\stopplacefigure
</context>
 
 
See also {{cmd|startcombination}}, {{cmd|startfloatcombination}} and [[Combinations]].
 
= Subfloats =
Subfloatnumbering creates subfigures sharing a mutual figure prefix and an
individual subfigure designator (e.g. figure 1a), figure 1b, etc.). The command {{cmd|startsubfloatnumbering}} is used for this.
 
<context source=yes>
\useMPlibrary [dum] %% sample images
 
\startsubfloatnumbering
\startplacefigure [title=Alpha]
\externalfigure
\stopplacefigure
 
\startplacefigure [title=Beta]
\externalfigure
\stopplacefigure
\stopsubfloatnumbering
</context>
 
Subfloats can also be used with floatcombinations:
 
<context source=yes>
\useMPlibrary [dum] %% sample images
 
\startplacefigure [location=none]
\startsubfloatnumbering
\startfloatcombination [nx=2, ny=1]
\startplacefigure [title=Left, reference=fig:left] \externalfigure \stopplacefigure
\startplacefigure [title=Right, reference=fig:right] \externalfigure \stopplacefigure
\stopfloatcombination
\stopsubfloatnumbering
\stopplacefigure
 
See \in{figure}[fig:left] and \in{figure}[fig:right].
</context>
 
 
See also {{cmd|startcombination}}, {{cmd|startfloatcombination}}, [[Combinations]] and {{cmd|startsubfloatcombination}}.
= Flushing floats =
69

edits