Changes

Jump to navigation Jump to search
2,279 bytes added ,  15:13, 28 November 2021
m
Remove TEXpage from code snippets
=Landscape Floats in a Portrait Document=
 
Wide tables, for example, can be turned and most likely will need to be put on a separate page.
<texcode>
= Floats and section headings =
 By default, section headings don't wrap "around" “around” floating objects. Instead, they will be moved down as far as needed to appear below the float. This behaviour can be controlled using the <tt>aligntitle</tt> option of the {{cmd|setupheads}} or {{cmd|setuphead}} commands.
= Captions =
 
To change the style of figure(table) captions, use {{cmd|setupcaptions}}.
To use a different (e.g. abbreviated) caption in the list of floats, you can do:
 
<texcode>
\startplacefigure[title={A rather long caption},list={A short caption}]
This is the content of the actual figure
\stopplacefigure
</texcode>
 
In MkII this was possible by:
<texcode>
</texcode>
Or = Float Combinations = If you want to place floats besides each other or in more recent (circa November 2011 a regular matrix,each with its own number and later) versions caption, you need a float combination: <context source=yes>\useMPlibrary [dum] %% sample images \startplacefigure [location=none] % disable numbering of ConTeXtouter 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
<texcode>\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 {{A rather long captioncmd|startcombination}},list{{cmd|startfloatcombination}} and [[Combinations]]. =Subfloats =Subfloatnumbering creates subfigures sharing a mutual figure prefix and anindividual subfigure designator (e.g. figure 1a), figure 1b, etc.). The command {A short caption{cmd|startsubfloatnumbering}} is used for this. <context source=yes>\useMPlibrary [dum] %% sample imagesThis is the content of the actual figure\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].</texcodecontext>  See also {{cmd|startcombination}}, {{cmd|startfloatcombination}}, [[Combinations]] and {{cmd|startsubfloatcombination}}.
= Flushing floats =
69

edits

Navigation menu