Difference between revisions of "Command/placefloat"

From ConTeXt wiki
(Create reference page)
 
(cleanup)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->
 
{{Reference_Cleanup}}
 
 
{{Reference
 
{{Reference
 
|name=placefloat
 
|name=placefloat
Line 31: Line 29:
  
 
== Description ==  
 
== Description ==  
<pre>
 
 
first text  = caption ('none'=no caption at all)
 
first text  = caption ('none'=no caption at all)
 
second text = float contain
 
second text = float contain
</pre>
+
 
== example ==
+
 
<pre class="example">
+
== Example ==
 +
<texcode>
 
% places two cows next to each other but each one with
 
% places two cows next to each other but each one with
 
% its own caption
 
% its own caption
Line 51: Line 49:
  
 
\stoptext
 
\stoptext
 
+
</texcode>
</pre>
 
  
  
Line 58: Line 55:
 
== Example ==
 
== Example ==
  
<pre class="example">
+
<texcode>
 
% two different ways to suppress numbering and caption
 
% two different ways to suppress numbering and caption
 
%
 
%
Line 66: Line 63:
 
\stoptext
 
\stoptext
  
</pre>
+
</texcode>
  
  

Revision as of 14:49, 11 April 2010

\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,...]
{...} text
{...} text


Description

first text = caption ('none'=no caption at all) second text = float contain


Example

% places two cows next to each other but each one with
% its own caption

\starttext

\placefigure
   [none]
   {}
   {\startcombination
      {\externalfigure[cow][width=4cm]} {\placefloatcaption[figure]{one}}
      {\externalfigure[cow][width=4cm]} {\placefloatcaption[figure]{two}}
    \stopcombination}

\stoptext


Example

% two different ways to suppress numbering and caption
%
\starttext
\placefigure{none}{\externalfigure[cow]}
\placefigure[none]{}{\externalfigure[cow]}
\stoptext


See also