Difference between revisions of "Command/setupfloat"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \setupfloat")
 
(One intermediate revision by one other user not shown)
Line 31: Line 31:
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="criterium">
 
     <cd:parameter name="criterium">
       <cd:paramdoc></cd:paramdoc>
+
       <cd:paramdoc>Specify a size such as `criterium=.25\textwidth` and any side or margin image exceeding this width will be automatically changed to be a centred image.</cd:paramdoc>
 
       <cd:constant type="cd:dimension"></cd:constant>
 
       <cd:constant type="cd:dimension"></cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
Line 299: Line 299:
 
<cd:commandref name="snaptogrid" originator="system"></cd:commandref>
 
<cd:commandref name="snaptogrid" originator="system"></cd:commandref>
 
<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:seealso>
+
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>
 +
<cd:wikipage page="Floating objects"></cd:wikipage></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Revision as of 20:23, 20 September 2022


\setupfloat

Summary

The command \setupfloat configures floating objects

Settings

\setupfloat[...,...][...=...,...]
[...,...]singular
indentnextyes no auto
defaultsee \placefloat
fallbacksee \placefloat
innercommand
criteriumdimension
methodnumber
sidemethodnumber
textmethodnumber
sidealignheight depth line halfline grid normal
gridsee \snaptogrid
localyes no
commandoneargument
availablewidthdimension
availableheightdimension
minwidthdimension
maxwidthdimension
locationleft right middle flushleft flushright center max inner outer innermargin outermargin inneredge outeredge backspace cutspace leftmargin rightmargin leftedge rightedge
leftmargindistancedimension
rightmargindistancedimension
leftmargindimension
rightmargindimension
innermargindimension
outermargindimension
bottombeforecommand
bottomaftercommand
expansionyes no xml
referenceprefix+ - text
xmlsetupname
catcodesname
freeregionyes no
spacebeforenone see \blank
spaceafternone see \blank
widthdimension
heightdimension
offsetdimension none overlay
sidespacebeforenone see \blank
sidespaceafternone see \blank
spacebeforesidenone see \blank
spaceaftersidenone see \blank
sidethresholdold dimension
margindimension
ntopnumber
nbottomnumber
stepsmall medium big line depth
nlinesnumber
cacheyes no
compressyes no
compressdistancedimension
...=...,...inherits from \setupframed

OptionExplanation
name of the defined float
criterium
Specify a size such as criterium=.25\textwidth and any side or margin image exceeding this width will be automatically changed to be a centred image.

Description

Configures various float settings. For a previously defined specific float type (with \definefloat), use the first argument to enter its name.

Examples

Example 1

\setupfloat[table][default={here,split}]

\setupxtable[frame=off,split=yes,header=repeat,footer=repeat]
\setupxtable[head][topframe=on,bottomframe=on]
\setupxtable[body][]
\setupxtable[foot][bottomframe=on]

\starttext
\startplacetable[title={Average Annual Temperatures}]
\startxtable
\startxtablehead[head]
\startxrow
\startxcell[align=middle,width={0.10\textwidth}] Year \stopxcell
\startxcell[align=middle,width={0.14\textwidth}] Value \stopxcell
\stopxrow
\stopxtablehead
\startxtablebody[body]
\dorecurse{100}{%
\startxrow
\startxcell[align=middle,width={0.10\textwidth}] 1880 \stopxcell
\startxcell[align=middle,width={0.14\textwidth}] 0.1146 \stopxcell
\stopxrow}
\stopxtablebody
\startxtablefoot[foot]
\startxrow
\startxcell[align=middle,width={0.10\textwidth}] 2018 \stopxcell
\startxcell[align=middle,width={0.14\textwidth}] 1.014 \stopxcell
\stopxrow
\stopxtablefoot
\stopxtable
\stopplacetable
\stoptext

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: