Difference between revisions of "Command/setupfloatframed"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \setupfloatframed")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<cd:commandgroup name="setupfloatframed" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
 
<cd:commandgroup name="setupfloatframed" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
 
<cd:shortdesc><!-- a short command summary goes here -->
 
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\setupfloatframed</tt> is used for ...
+
The command <tt>\setupfloatframed</tt> is used for formatting the framed which encapsulate the float and the caption.
 
</cd:shortdesc>
 
</cd:shortdesc>
 
<cd:variants>
 
<cd:variants>
Line 20: Line 20:
 
</cd:description>
 
</cd:description>
 
<cd:examples><cd:example title=""><context source="yes">
 
<cd:examples><cd:example title=""><context source="yes">
\setupfloat      [intermezzo] [background=color,backgroundcolor=red]
+
\setupfloatframed [intermezzo] [background=color,backgroundcolor=lightmagenta]
\setupcaption    [intermezzo] [background=color,backgroundcolor=blue]
+
\startplaceintermezzo[title={Another cow}]
\setupfloatframed [intermezzo] [background=color,backgroundcolor=green]
+
  \externalfigure[cow][width=6cm]
 +
\stopplaceintermezzo
 +
 
 +
\setupfloat      [intermezzo] [background=color,backgroundcolor=lightcyan]
 +
\setupcaption    [intermezzo] [background=color,backgroundcolor=lightyellow]
 +
 
  
 
\startplaceintermezzo[title={Another cow}]
 
\startplaceintermezzo[title={Another cow}]

Latest revision as of 21:06, 19 May 2024


\setupfloatframed

Summary

The command \setupfloatframed is used for formatting the framed which encapsulate the float and the caption.

Settings

\setupfloatframed[...,...][...=...,...]
[...,...]name
...=...,...inherits from \setupframed

Description

Examples

Example 1

\setupfloatframed [intermezzo] [background=color,backgroundcolor=lightmagenta]
\startplaceintermezzo[title={Another cow}]
  \externalfigure[cow][width=6cm]
\stopplaceintermezzo

\setupfloat       [intermezzo] [background=color,backgroundcolor=lightcyan]
\setupcaption     [intermezzo] [background=color,backgroundcolor=lightyellow]


\startplaceintermezzo[title={Another cow}]
  \externalfigure[cow][width=6cm]
\stopplaceintermezzo

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: