Command/placefloat

From ConTeXt wiki
< Command
Revision as of 23:34, 2 June 2012 by Adityam (talk | contribs)

\placefloat

Syntax

\placefloat[...][ref,ref,...]{...}{...}
[...] left right here top bottom inleft inright inmargin margin leftmargin rightmargin leftedge rightedge innermargin outermargin inneredge outeredge inner outer line high low fit page leftpage rightpage opposite always auto force tall reset line height depth
[ref,ref,...] references
{...} caption
{...} float contents

Description

With \placefloat[location][ref]{caption}{contents} you can declare that you want to take certain contents, and place them on the page as a (numbered) figure, table, graphic, or intermezzo, or as some other object type that you defined using \definefloat. ref is an optional reference label; location is an optional positioning key. There are a great many positioning keys defined; the following table describes them.

Keyword Meaning
none Suppress the caption, including the "Figure 1" label.
left Left of text
right To the right of the text
here Preferably here
force Force placement here
top At the top of the page
bottom At the bottom of the page
inleft In the left margin
inright In the right margin
inmargin In the margin (left or right)
margin In the margin (margin float)
leftmargin
rightmargin
leftedge
rightedge
innermargin
outermargin
inneredge
outeredge
inner
outer
line
high
low
fit
page on a new (empty) page
leftpage
rightpage
opposite on the left page (is this correct?)
always precedence over stored floats
auto
tall
reset
line
height
depth

Example

% Tell ConTeXt where the cow picture is stored
\setupexternalfigures[location={local,default}]

\startcolumns[n=3]
    caption=none
    \placefigure{none}{\externalfigure[cow][height=1cm]}
\column
    key=none
    \placefigure[none]{}{\externalfigure[cow][height=1cm]}
\column
    empty caption
    \placefigure{}{\externalfigure[cow][height=1cm]}
\stopcolumns

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: