Difference between revisions of "Floating Objects"

From Wiki
Jump to navigation Jump to search
(explanation of placements, added cmd links)
m (another link)
Line 1: Line 1:
< [[Using Graphics]]
+
< [[Visuals]] | [[Graphics]] | [[Using Graphics]] >
  
 
Floats are elements like tables or figures that are placed (and numbered) automatically by TeX.
 
Floats are elements like tables or figures that are placed (and numbered) automatically by TeX.
Line 38: Line 38:
 
'''caption'''
 
'''caption'''
  
You get ''no'' caption with <tt>none</tt>.
+
You get ''no'' caption with the keyword <tt>none</tt>.

Revision as of 13:30, 6 July 2005

< Visuals | Graphics | Using Graphics >

Floats are elements like tables or figures that are placed (and numbered) automatically by TeX.

Floats are ConTeXt's "base class" for everything that uses a \place... command (table, figure, own floats).

If you search options of e.g. \placeexternalfigure you must look after \placefloat in the manual! (same for \setup... etc.)

The float types "graphic", "figure", "table" and "intermezzo" are readily defined. If you need more (i.e. if you need another numbering or table of something), you can easily define your own floats with \definefloat.

\placefloat[place][reference]{caption}{some float}

place is one or several (comma separated) of:

preferenceresult
leftleft of text
rightright of text
herepreferably here
topat top of page
bottomat bottom of page
inleftin left margin
inrightin right margin
inmarginin the margin (left or right)
marginin the margin (margin float)
pageon a new (empty) page
oppositeon the left page
alwaysprecedence over stored floats
forceper se here

(table copied from the manual)

reference

If you don't need to refer to your float, you can leave this parameter out.

caption

You get no caption with the keyword none.