Difference between revisions of "Command/setupcaption"

From Wiki
Jump to navigation Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
}}
 
}}
  
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>setupcaption</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
Line 11: Line 13:
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
 
     <td class="cmd">[...]</td>
 
     <td class="cmd">[...]</td>
     <td>name </td>
+
     <td>''float type''</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
Line 19: Line 21:
 
</table>
 
</table>
  
 +
== Description ==
 +
Set up the caption for a specific kind of float. To set up captions for all floats, see {{cmd|setupcaptions}}.
  
== Description ==  
+
== Example ==
  
 +
<context source=yes>
 +
\definefloat[rightfigure][rightfigure][figure]
  
 +
\setupcaption[rightfigure][location=right]
  
== Example ==
+
\starttext
<!-- Please fill in an example if you can -->
+
\placefigure{caption 1}{\framed{figure 1}}
 +
\placerightfigure{caption 2}{\framed{figure 2}}
 +
\placefigure{caption 3}{\framed{figure 3}}
 +
\stoptext
 +
</context>
  
 
== See also ==
 
== See also ==
<!-- something like {{cmd|goto}} -->
+
* {{cmd|setupcaptions}}
 +
* {{cmd|definefloat}}
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Revision as of 14:53, 15 October 2019

\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


Syntax

\setupcaption[...][...,...=...,...]
[...] float type
[...,...=...,...] see \setupcaptions

Description

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

Example

\definefloat[rightfigure][rightfigure][figure]

\setupcaption[rightfigure][location=right]

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

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: