Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
floatflt

floatflt

Ratings:
(0)
|Views: 159|Likes:
Published by api-3735277

More info:

Published by: api-3735277 on Oct 15, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

06/21/2014

pdf

text

original

Welcome to the\ufb02oat\ufb02t package!\u2217
Mats Dahlgren\u2020
1998/06/23
Abstract
The\ufb02oat\ufb02t package is an extension of Thomas Kneser\u2019s style optionfloatfig.sty for
LATEX 2.09. The extension was done by Mats Dahlgren (matsd@sssk.se http://www.homenet.se/matsd/).
This \ufb01le and the package: Copyrightc
\ue0001994-1998 by Mats Dahlgren. All rights reserved.
1 Introduction

The\ufb02oat\ufb02t package de\ufb01nes two environments:floatingfigure andfloatingtable. In principle the two environments work the same way and do the same job, but there are some important di\ufb00erences, which are explained below. The general idea is that a \ufb01gure or table which is not very wide should be allowed to have regular text typeset beside itself. In Thomas Kneser\u2019s \ufb01le

floatfig.styand in the documentation thereof, such \ufb01gures are called\ufb02oating \ufb01gures. In the
\ufb02oat\ufb02tpackage, the term\ufb02oating is generally used for such \ufb01gures and tables, despite the slight
di\ufb00erent use of the term\ufb02oat in LATEX. Hence the term\ufb02oating \ufb02oats for such \ufb01gures and tables.
This userguide is also available in.pdf-format on the internet. It is found from my LATEX web
page:http://www.homenet.se/matsd/latex/
1.1 Forfloatfig.sty users
There are \ufb01ve major di\ufb00erences in the use of\ufb02oat\ufb02t as compared tofloatfig:

\u2022The extension to thefloattable environment.
\u2022There is no longer any need for initialization, thanks to the\AtBeginDocument command.
\u2022Optional arguments for the environments which allows the user to place the \ufb02oating \ufb02oats

left, right or according to the page number (as withfloatfig.sty); this is mainly due to
the possibility to have optional arguments in newly de\ufb01ned environments.
\u2022Optional argument for the package as a whole if the user wants to force all \ufb02oating
\ufb02oats to be to the right or left. The placement option at\begin{floatingfigure} (and
\begin{floatingtable}) overrides this (and there is also the optional placement option to
re-introduce the page-number dependent placement for one \ufb01gure or table).
\u2022Compatibility with themulticol package is now obtained.
\u2217This document describes\ufb02oat\ufb02t v.1.31 and was last updated 1998/06/23.
\u2020Email:matsd@sssk.se Web:http://www.homenet.se/matsd/
1
2 Userguide
In the following, the usage of the package is explained in some detail. Users who are unfamiliar
with thefloatfig.sty package by Thomas Kneser may also \ufb01nd it useful to run LATEX on the \ufb01le
floatfge.tex.
2.1 How to call the package
The\ufb02oat\ufb02t package is activated by the following line in your LATEX input \ufb01le following your
\documentclasscommand:
\usepackage[option ]{floatflt}
Theoption may be either one of the following:rflt,lflt, orvflt.
2.1.1 The package options
The three package options have the following functions:

rfltForces the default for the \ufb02oating \ufb01gures and tables to be typeset to the right in a paragraph. lfltForces the default for the \ufb02oating \ufb01gures and tables to be typeset to the left in a paragraph. vfltForces the \ufb02oating \ufb01gures and tables to be typeset to the right in a paragraph on odd-nubered

pages, and to the left on even-numbered pages; this is also the default.

The optionvflt is actually not needed and does nothing but tells LATEX to use the default, it is also the internal default. It is supported for symmetry reasons with the optional arguments for the environments temselves.

2.2 How to use thefloatingfigure environment
In your LATEX document you invoke thefloatingfigure environment by typing:
\begin{floatingfigure}[option ]{width }
\ufb01gure commands with or without\caption
\end{floatingfigure}
Theoption may be either one of the following:r,l,p, orv. The quantitywidth is the width you
want your \ufb02oating \ufb01gure to have (such as \u201c75mm\u201d).
2.2.1 Thefloatingfigure options
The options to thefloatingfigure environment all overrule any present package option which
may be in e\ufb00ect. The options have the following functions:

rForces the current \ufb02oating \ufb01gure to be typeset to the right in a paragraph.
lForces the current \ufb02oating \ufb01gure to be typeset to the left in a paragraph.
pForces the current \ufb02oating \ufb01gure to be typeset to the right in a paragraph if the pagenumber

is odd, and to the left if even.
vApplies the package option to the current \ufb01gure, and if no package option is speci\ufb01ed, it
forces the current \ufb02oating \ufb01gure to be typeset to the right in a paragraph if the pagenumber
is odd, and to the left if even.
2

Thep option is used when the default alternating right/left typesetting of \ufb02oating \ufb01gures is desired despite the use of therflt orlflt package option. Thev option is the internal default, and does not have any e\ufb00ect other than applying either the default or the option speci\ufb01ed for the whole package.

2.3 How to use thefloatingtable environment
In your LATEX document you invoke thefloatingtable environment by typing:
\begin{floatingtable}[option ]{
\begin{tabular}{tabular speci\ufb01ers }
here you put your table entries

\end{tabular}}
\captionif desired
\end{floatingtable}

Theoption may be either one of the following:r,l,p, orv. No speci\ufb01cation of the width is explic- itly made, insteadthe wholetabular environment is a mandatory argument. Thus, it is important to always have the \u201c{\u201d before\begin{tabular} and the \u201cextra\u201d \u201c}\u201d after\end{tabular}. At present, thetabbing environment can not be used in thefloatingtable environment. (Other commands and environments such as the\parbox command may be used instead of thetabular environment within afloatingtable environment.)

2.3.1 Thefloatingtable options
The options for thefloatingtable environment are exactly the same as for thefloatingfigure
environment, and they also have the same e\ufb00ects.
2.4 Compatibility

The present version of\ufb02oat\ufb02t (v.1.31) has been tested with LATEX 2\u03b5 of 1997/06/01 using MiKTEX 1.07 running TEX 3.14159 under Win95, using thearticle document class. Only changes to the documentation have been made since the previous version.

The regular\caption command of both thefigure andtabular environments works \ufb01ne. The\hangcaption command of David M. Jones (dmjones@theory.lcs.mit.edu) does not work with\ufb02oat\ufb02t. The use of\hangcaption gives the same result as\caption. The listing commands

\listoffiguresand \listoftablesalso work properly. However, since \ufb02oating \ufb01gures and tables
normally are typeset in a paragraph, the order in the lists may be strange if also regularfigure
andtable environments are used close to the \ufb02oating ones.

Unlikefloatfig.sty,\ufb02oat\ufb02t works with themulticol package, provided the \ufb02oating \ufb02oats are still less wide than the columns. If not, or if the \ufb02oating \ufb02oats and the columns have almost the same width, text may drift away and overlap text in adjacent column(s). However, this combination has several restrictions, and the placement of the \ufb02oating \ufb02oats may not always be correct according to the page numbering. Normally it also leads to many \u201cUnderfull \hbox\u201d warnings. The use of this combination is discouraged.

2.5 Warnings and messages

In Thomas Kneser\u2019s original workfloatfig.sty, there are several warnings issued when problems occur. These are kept in\ufb02oat\ufb02t. Warnings will be issued if two \ufb02oating \ufb01gures, two \ufb02oating tables, or if one \ufb02oating table is colliding with one \ufb02oating \ufb01gure. Also, message(s) will be displayed if

3

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->