Command/setupcaptions

From Wiki
Revision as of 19:36, 3 June 2012 by Andy (talk | contribs) (added location description)
Jump to navigation Jump to search

\setupcaptions

Syntax

\setupcaptions[...,...=...,...]
location top bottom none high low middle left right
width fit broad max dimension
minwidth fit dimension
headstyle normal bold slanted boldslanted type cap small... command
style normal bold slanted boldslanted type cap small... command
number yes no
inbetween command
align left middle right no
numberconversion numbers characters Characters romannumerals Romannumerals
conversion numbers characters Characters romannumerals Romannumerals
way bytext bysection
separator text
stopper text
suffix text
prefixsegments none section ...
command command
distance dimension

Description

The first option defines the location of the caption relative to the figure itself. The option [location=right] e.g. puts the caption on the right of the figure. The values of the location can be combined, so that [location={right,low}] adjusts the caption position to be to the right of the figure and in a low vertical position.

Using option [way=bysection] resets the numbering to 1 at each new section, but does not prefix the numbers with the section number, to do that, use the following options: \setupcaptions[way=bysection,prefixsegments=section]

If one has only a small number of figures and wishes to label them sequentially from 1 to n, the following works: \setupcaptions[way=bytext, prefixsegments=none]

If you like to have a colon in your caption, try: \setupcaptions[suffix={:}]

If you don't like default captions that are driven by figure(table) width, try: \setupcaptions[minwidth=\textwidth, align=middle]

conversion works only in MkII, with MkIV numberconversion must be used.

Example

\setupcaption[style={\tfx\setupinterlinespace[line=10pt]}, headstyle=\rm, suffix={:}] The caption is smaller than the other text with 10pt interline spacing. The word 'figure' is switched from bold to roman regular and the suffix after figure is ':'.

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: