Difference between revisions of "Command/setupcaption"

From Wiki
Jump to navigation Jump to search
m (simplify example)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
}}
 
}}
  
== [[Help:Reference|Syntax]] (autogenerated)] ==
+
== [[Help:Reference|Syntax]] (autogenerated) ==
 
<syntax>setupcaption</syntax>
 
<syntax>setupcaption</syntax>
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
  <tr>
 
    <td colspan="2" class="cmd">\setupcaption<span class="first" >[...]</span><span class="second" >[...,...=...,...]</span></td>
 
  </tr>
 
  <tr valign="top" class="first">
 
    <td class="cmd">[...]</td>
 
    <td>''float type''</td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[...,...=...,...]</td>
 
    <td>see [[Command/setupcaptions|\setupcaptions]] </td>
 
  </tr>
 
</table>
 
  
 
== Description ==  
 
== Description ==  
Set up the caption for a specific kind of float. To set up captions for all floats, see {{cmd|setupcaptions}}.
+
Set up the caption for a specific kind of float. To set up captions for all floats, use {{cmd|setupcaptions}}.
  
 
== Example ==
 
== Example ==
Line 31: Line 17:
 
\setupcaption[rightfigure][location=right]
 
\setupcaption[rightfigure][location=right]
  
\starttext
 
 
\placefigure{caption 1}{\framed{figure 1}}
 
\placefigure{caption 1}{\framed{figure 1}}
 
\placerightfigure{caption 2}{\framed{figure 2}}
 
\placerightfigure{caption 2}{\framed{figure 2}}
 
\placefigure{caption 3}{\framed{figure 3}}
 
\placefigure{caption 3}{\framed{figure 3}}
\stoptext
 
 
</context>
 
</context>
  

Latest revision as of 18:26, 29 July 2023

\setupcaption

Syntax (autogenerated)

\setupcaption[...,...][...=...,...]
[...,...]name
suffixcommand
suffixseparatorcommand
suffixstoppercommand
locationleft right middle low high grid lines overlay inner outer innermargin outermargin leftmargin rightmargin lefthanging righthanging hang top bottom stretch tolerant verytolerant none default
commandoneargument
numbercommandoneargument
textcommandoneargument
spacebeforesee \blank
spaceinbetweensee \blank
spaceaftersee \blank
distancedimension
headstylestyle command
headcolorcolor
headseparatortext
inbetweencommand
stylestyle command
colorcolor
topoffsetdimension
bottomoffsetdimension
numberyes no none
grouptext
leftmargindimension
rightmargindimension
innermargindimension
outermargindimension
alignsee \setupalign
widthfit max dimension
minwidthfit dimension
maxwidthdimension
hangyes no
...=...,...inherits from \setupcounter
...=...,...inherits from \setupframed


Description

Set up the caption for a specific kind of float. To set up captions for all floats, use \setupcaptions.

Example

\definefloat[rightfigure][rightfigure][figure]

\setupcaption[rightfigure][location=right]

\placefigure{caption 1}{\framed{figure 1}}
\placerightfigure{caption 2}{\framed{figure 2}}
\placefigure{caption 3}{\framed{figure 3}}

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: