summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-textflow.html
blob: 625db53d66d92ecaa44a46eba41f509510ba9194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<head>
<title>UK TeX FAQ -- question label textflow</title>
</head><body>
<h3>Flowing text around figures in LaTeX</h3>
<p/>There are several LaTeX packages that purport to do this, but they
all have their limitations because the TeX machine isn&rsquo;t really
designed to solve this sort of problem.  Piet van Oostrum has
conducted a survey of the available packages; he recommends:
<dl>
<dt><code>floatflt</code><dd> <i>floatflt</i> is an improved version
  (for LaTeX2e) of <i>floatfig.sty</i>, and its syntax is:
<blockquote>
<pre>
\begin{floatingfigure}[options]{width of figure}
  figure contents
\end{floatingfigure}
</pre>
</blockquote><p>

There is a (more or less similar) <code>floatingtable</code>
environment.
<p/>The tables or figures can be set left or right, or alternating on
even/odd pages in a double-sided document.
<p/>The package works with the <code>multicol</code> package, but doesn&rsquo;t work well
in the neighbourhood of list environments (unless you change your
LaTeX document).
<dt><code>wrapfig</code><dd> <i>wrapfig</i> has syntax:
<blockquote>
<pre>
\begin{wrapfigure}[height of figure in lines]{l,r,...}[overhang]{width}
  figure, caption, etc.
\end{wrapfigure}
</pre>
</blockquote><p>
    
    The syntax of the <code>wraptable</code> environment is similar.
<p/>    Height can be omitted, in which case it will be calculated by the
    package; the package will use the greater of the specified and the
    actual width.  The <code>{l,r,<em>etc</em>.}</code> parameter may
    also be specified as <code>i</code><em>(nside)</em> or
    <code>o</code><em>(utside)</em> for two-sided documents, and uppercase
    may be used to indicate that the picture should float.  The
    overhang allows the figure to be
    moved into the margin.  The figure or table will entered into the
    list of figures or tables if you use the <code>\</code><code>caption</code> command.
<p/>    The environments do not work within list environments that end
    before the figure or table has finished, but can be used in a
    parbox or minipage, and in twocolumn format.
  <dt><code>picins</code><dd> <i>Picins</i> is part of a large bundle
    that allows inclusion of pictures (e.g., with shadow boxes,
    various MSDOS formats, etc.).  The command for inserting a
    picture at the start of a paragraph is:
  <blockquote>
    <code>\</code><code>parpic</code><code>(width,height)(x-off,y-off)[Options][Position]{Picture}</code><br>
    <em>Paragraph text</em>
  </blockquote><p>
  
  All parameters except the <em>Picture</em> are optional.  The picture
  can be positioned left or right, boxed with a rectangle, oval,
  shadowbox, dashed box, and a caption can be given which will be
  included in the list of figures.
<p/>  Unfortunately (for those of us whose understanding of German is not
  good), the documentation is in German.  Piet van Oostrum has written
  a summary in English.
</dl>
<dl>
<dt><tt><i>floatflt.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/floatflt.zip">macros/latex/contrib/floatflt</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/floatflt.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/floatflt/">browse</a>)
<dt><tt><i>picins.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex209/contrib/picins.zip">macros/latex209/contrib/picins</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex209/contrib/picins.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex209/contrib/picins/">browse</a>)
<dt><tt><i>picins documentation summary</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex209/contrib/picins/picins.txt">macros/latex209/contrib/picins/picins.txt</a>
<dt><tt><i>wrapfig.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/wrapfig.zip">macros/latex/contrib/wrapfig</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/wrapfig.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/wrapfig/">browse</a>)
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=textflow">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=textflow</a>
</body>