Article View: comp.text.tex
Article #839Problems with floats in LaTeX.
From: Rama Porrat
Date: Wed, 05 Aug 1992 09:34
Date: Wed, 05 Aug 1992 09:34
89 lines
5182 bytes
5182 bytes
There has recently been a question on that subject.
I include here information pertaining to the subject.
Before describing the float package for LaTeX, here are tips from
Martin Jourdan jourdan@minos.inria.fr
In order to get control over floats in LaTeX, tune the relevant style
parameters described in section c.8.1 pp.177-178 of Lamport's
LaTeX manual. In particular you should increase (through \setcounter)
the value of topnumber and totalnumber to, say, five, increase (through
\renewcommand) the value of \topfraction to, say, 0.7 and
decrease that of \textfraction to, say, 0.3, and maybe adjust
a number of other parameters (\floatpagefraction and possibly
the dbl-version of these if you want to have multiple columns).
To force floats to appear at a given subsection, you have to call
\clearpage at the end of the subsection.
FLOAT
-----
The FLOAT package includes the files of Anselm Lingnau's
<lingnau@informatik.uni-frankfurt.de> float package -- An Improved
Environment for Floats -- (version 1.0b; 28 January 1992). This style
option improves the interface for defining floating objects such as figures
and tables in LaTeX. It adds the notion of a `float style' that governs
appearance of floats. New kinds of floats may be defined using a \newfloat
command analogous to \newtheorem.
Among the features of LaTeX are `floating' figures and tables that drift
from where they appear in the input text to, say, the top of a page. The
contents and formatting of floats is pretty much up to the user, except
that there is a \caption command that governs formatting of the caption --
it is centered if it is short, and formatted as a paragraph if it is longer
than a single line of text. Sometimes other types of floating objects,
e.g., algorithms or programs, are desirable, but they must be defined by
analogy to the existing floats since there is no simple command for doing
this. This goes beyond the knowledge or inclination of the average LaTeX
user.
This style option presents an interface to floating objects that attempts
to fix some of these shortcomings. First of all, it introduces the notion
of a `float style'. A float style governs the appearance of a class of
floats like a page style governs the appearance of a page (LaTeX has page
styles plain, empty and headings, among others). This style option
provides some exemplary float styles:
o plain -- This is the float style that LaTeX normally applies to its
floats, i.e., nothing in particular. The only difference is
that the caption comes out below the body of the float,
regardless of where it is given in the text.
o boxed -- The body of the float is printed inside a box. The caption
goes below that box.
o ruled -- This float style is patterned on the table style of Concrete
Mathematics. The caption is printed at the top of the float,
surrounded by rules; another rule finishes off the float.
The most important command in float.sty is the \newfloat command. As
mentioned above, it is patterned on \newtheorem. The use of \newfloat
allows the user to create their own floats, as well as supporting a
user-defined \listof listing for these floats (analogous to \listoftables),
sectional numbering, default positioning by float, the standard LaTeX
positioning parameters, and the standard *-forms which produce doube column
floats.
To retrieve the entire package of 5 files, include:
SENDME FLOAT
in the body of a mail message to FILESERV@SHSU.BITNET (FILESERV@SHSU.edu).
To retrieve a specific file, such as FLOAT.FLOAT_DOC, include:
SENDME FLOAT.FLOAT_DOC
in your mail message to FILESERV. For users desiring anonymous ftp
retrieval, these files, along with a ZIP archive file containing this
package, are available in the [.FLOAT] directory on Niord.SHSU.edu
(192.92.115.8).
Files in this package: (1 Block = 512 bytes)
File Blocks Save file as:
-------------------------------------------------------------------------------
FLOAT.DOCSTRIP_CMD 2 DOCSTRIP.CMD
FLOAT.FLOAT_DOC 54 FLOAT.DOC
FLOAT.FLOAT_TEX 6 FLOAT.TEX
FLOAT.FLTEST_TEX 5 FLTEST.TEX
FLOAT.README 8 README
Approximate total blocks in full FLOAT package = 75
-------------------------------------------------------------------------------
NOTE: This package is built using docstrip and multicol. If you require
these files, include the message SENDME MULTICOL in your mail to FILESERV.
Users of ftp may find these files in the directory [FILESERV.MULTICOL].
Technical Details
Message-ID:
<9208050934.AA05087@noa.huji.ac.il>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!swrinde!mips!pacbell.com!network.ucsd.edu!mvb.saic.com!info-texShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!swrinde!mips!pacbell.com!network.ucsd.edu!mvb.saic.com!info-tex From: rama@noa.huji.ac.il (Rama Porrat) Newsgroups: comp.text.tex Subject: Problems with floats in LaTeX. Message-ID: <9208050934.AA05087@noa.huji.ac.il> Date: 5 Aug 92 09:34:16 GMT Organization: Info-Tex<==>Comp.Text.Tex Gateway Lines: 89 X-Gateway-Source-Info: Mailing List