Difference between revisions of "Command/definefloat"
< Command
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<cd:shortdesc>The command <tt>\definefloat</tt> defines floating object classes. | <cd:shortdesc>The command <tt>\definefloat</tt> defines floating object classes. | ||
− | {{bug|there are backslashes in front of the instance names below, which is misleading. Until I find a solution for the incorrect visual, just pretend the backslashes are not there. --[[User:Taco|Taco]] ([[User talk:Taco|talk]]) 20:35, 7 September 2020 (CEST)}</cd:shortdesc> | + | {{bug|there are backslashes in front of the instance names below, which is misleading. Until I find a solution for the incorrect visual, just pretend the backslashes are not there. --[[User:Taco|Taco]] ([[User talk:Taco|talk]]) 20:35, 7 September 2020 (CEST)}}</cd:shortdesc> |
<cd:instances> | <cd:instances> | ||
<cd:constant value="chemical"></cd:constant> | <cd:constant value="chemical"></cd:constant> | ||
Line 62: | Line 62: | ||
{{todo|there are some more commands and internals automatically generated}}</cd:description> | {{todo|there are some more commands and internals automatically generated}}</cd:description> | ||
<cd:examples><cd:example title=""><context source="yes"> | <cd:examples><cd:example title=""><context source="yes"> | ||
+ | \setuppapersize[A7,landscape] | ||
\definefloat[rightfigure][rightfigures][figure] | \definefloat[rightfigure][rightfigures][figure] | ||
Line 77: | Line 78: | ||
<cd:source file="strc-flt.mkvi" originator="system"></cd:source> | <cd:source file="strc-flt.mkvi" originator="system"></cd:source> | ||
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage> | <cd:wikipage originator="system" page="Category:Structure"></cd:wikipage> | ||
− | <cd:wikipage page="Floating | + | <cd:wikipage page="Floating Objects"></cd:wikipage> |
<cd:commandref name="setupcaption"></cd:commandref></cd:seealso> | <cd:commandref name="setupcaption"></cd:commandref></cd:seealso> | ||
</cd:commandgroup> | </cd:commandgroup> |
Latest revision as of 18:40, 7 September 2020
Contents
\definefloat
Summary
The command \definefloat defines floating object classes.
Bug report: there are backslashes in front of the instance names below, which is misleading. Until I find a solution for the incorrect visual, just pretend the backslashes are not there. --Taco (talk) 20:35, 7 September 2020 (CEST) (See: Bug List) |
Instances
\chemical | |
\figure | |
\table | |
\intermezzo | |
\graphic |
Settings
\definefloat[...][...][...=...,...] | |
[...] | singular |
[...] | singular plural |
...=...,... | inherits from \setupfloat |
Settings name
Description
Define a new float type additional to predefined types "chemical", "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\startplaceremark...\stopplaceremark
is the same, as an environment\placelistofremarks
for a 'table of remarks'.\completelistofremarks
for a table of remarks with a header\startremarktext...\stopremarktext
It also defines:
- the counter 'remark' (inherits from intermezzo)
- the label 'remark' (inherits from intermezzo)
If no parent is given, then the label is the \Word value of the name (so: Remark) in this case.
TODO: there are some more commands and internals automatically generated (See: To-Do List) |
Examples
Example 1
\setuppapersize[A7,landscape] \definefloat[rightfigure][rightfigures][figure] \setupcaption[rightfigure][location=right] \starttext \placefigure{caption 1}{\framed{figure 1}} % old one \placerightfigure{caption 2}{\framed{figure 2}} % new one \placefigure{caption 3}{\framed{figure 3}} \stoptext
Notes
See also
Help from ConTeXt-Mailinglist/Forum
All issues with:
- \chemical on the mailing list (all results)
- \chemical on the mailing list (subject only)
- \chemical on stack exchange
- \chemical in ConTeXt's source
- \figure on the mailing list (all results)
- \figure on the mailing list (subject only)
- \figure on stack exchange
- \figure in ConTeXt's source
- \table on the mailing list (all results)
- \table on the mailing list (subject only)
- \table on stack exchange
- \table in ConTeXt's source