Changes

Jump to navigation Jump to search
1,307 bytes added ,  17:47, 22 February 2022
m
no edit summary
}}
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>setupcaptions</syntax>
== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<td class="cmd">[[Command/keyword:stopper|stopper]]</td>
<td>[[Command/value:text|text]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:numberstopper|numberstopper]]</td>
<td>[[Command/value:text|text]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:prefix|prefix]]</td>
<td>[[Command/value:yes|yes]] [[Command/value:no|no]] </td>
</tr>
<tr valign="top" class="first">
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:distance|distance]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:spaceafter|spaceafter]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
|- style="vertical-align: top"
| {{key|width}}
| This is the width of the figure caption. If you do not like default captions that are driven by figure (table) width, try: <code>\setupcaptions[minwidth=\textwidth, align=middle]</code>
|- style="vertical-align: top"
| {{key|headstyle}}
| {{key|way}}
| Using option <code>[way=bysection]</code> 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: <code>\setupcaptions[way=bysection,prefixsegments=section]</code>. If one has only a small number of figures and wishes to label them sequentially from 1 to ''n'', the following works:<code>\setupcaptions[way=bytext, prefixsegments=none]</code>.
|- style="vertical-align: top"
| {{key|stopper'''}}
| MKII only. The stopper text follows the number and, if present, the ''suffix'', and precedes the caption text. It does not appear in references.
|- style="vertical-align: top"
| {{key|numberstopper'''}}
| MKIV only. The numberstopper text follows the number and, if present, the ''suffix'', and precedes the caption text. It does not appear in references.
|- style="vertical-align: top"
| {{key|separator'''}}
| The separator (in MKIV, ''prefixconnector'') text separates components of the number in the caption and in references when sectioned numbers are used.
|- style="vertical-align: top"
| {{key|suffix'''}}
| If you like to have a colon The suffix text immediately follows the number in your the caption, try:<code>\setupcaptions[suffix={:}]</code>and in references.
|- style="vertical-align: top"
| {{key|prefixsegments}}
| To have a figure number such as ''Figure 2.3'', where 2 is the section number and 3 the figure number, you can use this option. Normally, you want to reset the figure number with every section as well, so that ''Figure 2.1'' follows ''Figure 1.12'' instead of ''Figure 2.13''. Therefore, you have to use <code>\setupcaptions[prefix=yes,way=bysection,prefixsegments=section]</code>.|-| {{key|spaceafter}}| Add some vertical space after the caption.
|}
style={\tfx\setupinterlinespace[line=10pt]},
headstyle=\rm,
stoppernumberstopper={:}]
\placefigure
[[Category:Command/Floating|setupcaptions]]
td class="cmd">[[Command/keyword:style|style]]
10

edits

Navigation menu