Hot answers tagged floats
6
The solution is to load the footmisc package with the [bottom] option:
\usepackage[bottom]{footmisc}
For some interesting discussion of the rationale behind the standard behaviour, see:
Tables below footnotes, is this a good output routine algorithm or a bug?
4
Of course, David Carlisle has already mentioned in a comment the correct solution, which is to use the fixltx2e package. Among other goodies, this package will ensure that figures appear in the same order in the output as you specified them in the input.
If, however, you like how LaTeX does it by default, outputting single and double-column figures in ...
2
Most likely your figure is too large (in height) and you should get a warning when compiling. The geometry package can show you the actual available space with \usepackage[showframe]{geometry}. Usually figures are centred vertically on a page if there is no other content. You can align them at the top with
\makeatletter
\setlength{\@fptop}{0pt}
\makeatother
...
2
Here's one option using the subfigure environment from the subcaption package and taking advantage of the optional arguments for the environment (the same as those for a minipage); depending on the actual size of your images, you might need to adjust some lengths:
:
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subcaption}
...
2
Using LyX, how do you put a table and a figure side by side and caption them Table XX and Figure XX?
This approach numbers all tables correctly in LyX and LaTeX. It has the drawback that a table in a "floatrow" environment is not listed under "List of Tables" in the "Outline" side bar of LyX.
In Local Layout under "Document settings" add the following code and "validate" it.
Style FloatRowTableCaption
LatexType command
LatexName caption
...
1
Add \label after the caption.
\centering
\begin{tabular}{cc}
\subfloat[$a=0.2$\label{fig:whatever}]{\includegraphics[width=2in]{...
You can the reference the figure using \ref{fig:whatever} in your text.
Note: I usually prefix my labels using something fig:, eqn: or similar so I can better see what I'm referencing when I read the .tex source.
1
Not sure if this will solve your problem, but when having problems with figure placements (often relating to all figures being sparsely dumped into one column) I've played with these settings in the preample. Even though my problem was sort of the opposite from yours they might help. These will modify the float defaults, and allow for tighter text-float ...
Only top voted, non community-wiki answers of a minimum length are eligible