Difference between revisions of "Command/setupcaptions"

From Wiki
Jump to navigation Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
Line 40: Line 40:
 
     <td class="cmd">[[Command/keyword:align|align]]</td>
 
     <td class="cmd">[[Command/keyword:align|align]]</td>
 
     <td>[[Command/value:left|left]] [[Command/value:middle|middle]] [[Command/value:right|right]] [[Command/value:no|no]] </td>
 
     <td>[[Command/value:left|left]] [[Command/value:middle|middle]] [[Command/value:right|right]] [[Command/value:no|no]] </td>
 +
  </tr>
 +
  <tr valign="top" class="first">
 +
    <td class="cmd">[[Command/keyword:numberconversion|numberconversion]]</td>
 +
    <td>[[Command/value:numbers|numbers]] [[Command/value:characters|characters]] [[Command/value:Characters|Characters]] [[Command/value:romannumerals|romannumerals]] [[Command/value:Romannumerals|Romannumerals]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
Line 95: Line 99:
 
\setupcaptions[minwidth=\textwidth, align=middle]
 
\setupcaptions[minwidth=\textwidth, align=middle]
 
</code>
 
</code>
 +
 +
<code>conversion</code> is the MkII keyword whereas you must use <code>numberconversion</code>
 +
in MkIV.
  
 
== Example ==
 
== Example ==

Revision as of 22:03, 21 April 2012

\setupcaptions

Syntax

\setupcaptions[...,...=...,...]
location top bottom none high low middle
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
prefigsegments none section ...
command command
distance dimension

Description

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 is the MkII keyword whereas you must use numberconversion in MkIV.

Example

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: