Difference between revisions of "Command/setupcaption"
< Command
Jump to navigation
Jump to search
m |
|||
(5 intermediate revisions by 3 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> | + | <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}}. | ||
− | == | + | == Example == |
+ | <context source=yes> | ||
+ | \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 | ||
+ | </context> | ||
== See also == | == See also == | ||
− | + | * {{cmd|setupcaptions}} | |
+ | * {{cmd|definefloat}} | ||
− | == Help from ConTeXt-Forum == | + | == Help from ConTeXt-Mailinglist/Forum == |
All issues with: | All issues with: | ||
{{Forum|{{SUBPAGENAME}}}} | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category:Floating|setupcaption]] | + | [[Category:Command/Floating|setupcaption]] |
Revision as of 14:53, 15 October 2019
Syntax (autogenerated)
\setupcaption[...,...][...=...,...] | |
[...,...] | name |
suffix | command |
suffixseparator | command |
suffixstopper | command |
location | left right middle low high grid lines overlay inner outer innermargin outermargin leftmargin rightmargin lefthanging righthanging hang top bottom stretch tolerant verytolerant none default |
command | oneargument |
numbercommand | oneargument |
textcommand | oneargument |
spacebefore | see \blank |
spaceinbetween | see \blank |
spaceafter | see \blank |
distance | dimension |
headstyle | style command |
headcolor | color |
headseparator | text |
inbetween | command |
style | style command |
color | color |
topoffset | dimension |
bottomoffset | dimension |
number | yes no none |
group | text |
leftmargin | dimension |
rightmargin | dimension |
innermargin | dimension |
outermargin | dimension |
align | see \setupalign |
width | fit max dimension |
minwidth | fit dimension |
maxwidth | dimension |
hang | yes 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: