Difference between revisions of "Command/placefloat"

From Wiki
Jump to navigation Jump to search
m (typo)
(Added note re setupfloatsplitting command)
 
(2 intermediate revisions by 2 users not shown)
Line 12: Line 12:
 
     <cd:keywords list="yes" optional="yes" ordinal="2">
 
     <cd:keywords list="yes" optional="yes" ordinal="2">
 
     <cd:keywordsdoc>optional positioning key. There are a great many positioning keys defined, and they can be combined (although not all combinations make sense).</cd:keywordsdoc>
 
     <cd:keywordsdoc>optional positioning key. There are a great many positioning keys defined, and they can be combined (although not all combinations make sense).</cd:keywordsdoc>
     <cd:constant type="split">For tables: may split over pages</cd:constant>
+
     <cd:constant type="split">If a table is too long for the page, and split has been specified, then the table will be split over as many pages as are required.
 +
See the command {{cmd|setupfloatsplitting}} for options specific to the split.</cd:constant>
 
     <cd:constant type="always">Precedence over stored floats</cd:constant>
 
     <cd:constant type="always">Precedence over stored floats</cd:constant>
     <cd:constant type="left">To the left of text</cd:constant>
+
     <cd:constant type="left">To the left of the text</cd:constant>
 
     <cd:constant type="right">To the right of the text</cd:constant>
 
     <cd:constant type="right">To the right of the text</cd:constant>
     <cd:constant type="inner">In inner margin</cd:constant>
+
     <cd:constant type="inner">like left/right</cd:constant>
     <cd:constant type="outer">In outer margin</cd:constant>
+
     <cd:constant type="outer">lik left/right</cd:constant>
 
     <cd:constant type="backspace">?</cd:constant>
 
     <cd:constant type="backspace">?</cd:constant>
 
     <cd:constant type="cutspace">?</cd:constant>
 
     <cd:constant type="cutspace">?</cd:constant>
Line 39: Line 40:
 
     <cd:constant type="halfline">?</cd:constant>
 
     <cd:constant type="halfline">?</cd:constant>
 
     <cd:constant type="grid">?</cd:constant>
 
     <cd:constant type="grid">?</cd:constant>
     <cd:constant type="high">Switch off page headings (for page floats)</cd:constant>
+
     <cd:constant type="high">with "page": like top. with left/right: move up.</cd:constant>
     <cd:constant type="low">Switch off page footers (for page floats) (?)</cd:constant>
+
     <cd:constant type="low">with "page": like bottom. with left/right: move down.</cd:constant>
     <cd:constant type="fit">?</cd:constant>
+
     <cd:constant type="fit">with left/right: no distance between float and text</cd:constant>
 
     <cd:constant type="90">Rotation of float and caption</cd:constant>
 
     <cd:constant type="90">Rotation of float and caption</cd:constant>
 
     <cd:constant type="180">Rotation of float and caption</cd:constant>
 
     <cd:constant type="180">Rotation of float and caption</cd:constant>
Line 58: Line 59:
 
     <cd:constant type="offset">?</cd:constant>
 
     <cd:constant type="offset">?</cd:constant>
 
     <cd:constant type="top">At the top of the page</cd:constant>
 
     <cd:constant type="top">At the top of the page</cd:constant>
     <cd:constant type="bottom">At the bottom of the page</cd:constant>
+
     <cd:constant type="bottom">At the bottom of the page (unreliable)</cd:constant>
 
     <cd:constant type="auto">?</cd:constant>
 
     <cd:constant type="auto">?</cd:constant>
 
     <cd:constant type="page">On a new (empty) page</cd:constant>
 
     <cd:constant type="page">On a new (empty) page</cd:constant>
 
     <cd:constant type="leftpage">On an empty left page</cd:constant>
 
     <cd:constant type="leftpage">On an empty left page</cd:constant>
 
     <cd:constant type="rightpage">On an empty right page</cd:constant>
 
     <cd:constant type="rightpage">On an empty right page</cd:constant>
     <cd:constant type="somewhere">?</cd:constant>
+
     <cd:constant type="somewhere">Used as a location prefix with {{cmd|placenamedfloat}}. See that command page for example usage</cd:constant>
 
     <cd:constant type="effective">?</cd:constant>
 
     <cd:constant type="effective">?</cd:constant>
 
     <cd:constant type="header">Use header space (combine with "high")</cd:constant>
 
     <cd:constant type="header">Use header space (combine with "high")</cd:constant>
Line 101: Line 102:
 
<cd:commandref name="definefloat"></cd:commandref>
 
<cd:commandref name="definefloat"></cd:commandref>
 
<cd:commandref name="setupfloat"></cd:commandref>
 
<cd:commandref name="setupfloat"></cd:commandref>
 +
<cd:commandref name="setupfloatsplitting"></cd:commandref>
 
<cd:source file="page-cst.lua">Lua functions that control the four-letter placement codes in page columns</cd:source></cd:seealso>
 
<cd:source file="page-cst.lua">Lua functions that control the four-letter placement codes in page columns</cd:source></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 20:40, 13 August 2022


\placefloat

Summary

The command \placefloat is the basis for all float placement commands like \placefigure, \placetable etc.

Settings

\placefloat[...][...,...][...,...]{...}{...}
[...]singular
[...,...]split always left right inner outer backspace cutspace inleft inright inmargin leftmargin rightmargin leftedge rightedge innermargin outermargin inneredge outeredge text opposite reset height depth [+-]line halfline grid high low fit 90 180 270 nonumber none local here force margin [+-]hang hanging tall both middle offset top bottom auto page leftpage rightpage somewhere effective header footer tblr lrtb tbrl rltb fxtb btlr lrbt btrl rlbt fxbt fixd
[...,...]reference
{...}text
{...}content

OptionExplanation
name of the float class, e.g. image, table
optional positioning key. There are a great many positioning keys defined, and they can be combined (although not all combinations make sense).
split If a table is too long for the page, and split has been specified, then the table will be split over as many pages as are required. See the command \setupfloatsplitting for options specific to the split.
always Precedence over stored floats
left To the left of the text
right To the right of the text
inner like left/right
outer lik left/right
backspace ?
cutspace ?
inleft In left margin
inright In right margin
inmargin In the margin (left or right)
leftmargin In left margin
rightmargin In right margin
leftedge In left edge area
rightedge In right edge area
innermargin In inner margin
outermargin In outer margin
inneredge In inner edge area
outeredge In outer edge area
text In main text area
opposite On the opposite page of a spread
reset ?
height ?
depth ?
[+-]line ?
halfline ?
grid ?
high with "page": like top. with left/right: move up.
low with "page": like bottom. with left/right: move down.
fit with left/right: no distance between float and text
90 Rotation of float and caption
180 Rotation of float and caption
270 Rotation of float and caption
nonumber Suppress the float number
none Suppress the caption, including the "FLOAT 1" label.
local ?
here Preferably here
force Force placement here
margin In the margin (margin float)
[+-]hang ?
hanging ?
tall ?
both ?
middle ?
offset ?
top At the top of the page
bottom At the bottom of the page (unreliable)
auto ?
page On a new (empty) page
leftpage On an empty left page
rightpage On an empty right page
somewhere Used as a location prefix with \placenamedfloat. See that command page for example usage
effective ?
header Use header space (combine with "high")
footer Use footer space (combine with "low")
tblr Precedence in page columns: top, bottom, left, right
lrtb Precedence in page columns: left, right, top, bottom
tbrl Precedence in page columns: top, bottom, right, left
rltb Precedence in page columns: right, left, top, bottom
fxtb Precedence in page columns: top bottom (?)
btlr Precedence in page columns
lrbt Precedence in page columns
btrl Precedence in page columns
rlbt Precedence in page columns
fxbt Precedence in page columns: bottom top (?)
fixd Precedence in page columns: force here (?)
optional reference label
caption content
{...} float content

Description

Examples

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: