Command/definefloat

From ConTeXt wiki

\definefloat

Syntax (autogenerated)

\definefloat[...][...][...=...,...]
[...]singular
[...]singular plural
...=...,...inherits from \setupfloat


\definefloat[...][...][...]
[...]singular
[...]plural
[...]singular


Syntax

\definefloat[...][...][...]
[...] singular name
[...] plural name
[...] parent (optional)

Description

Define a new float type additional to predefined types "graphic", "figure", "table" and "intermezzo". When invoked as \definefloat[remark][remarks][intermezzo], the following commands are defined, with defaults taken from the intermezzo environment, and the "intermezzo" counter will be used for "remark" floats:

  • \setupremark to set up the new environment
  • \placeremark to place a remark block
  • \placelistofremarks for a 'table of remarks'.
  • \completelistofremarks for a table of remarks with a header
  • \startplaceremark...\stopplaceremark is the same in startstopstyle
  • \startremarktext...\stopremarktext

Example

\definefloat[rightfigure][rightfigures][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: