Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nonfloating figure spanning two columns in multicol environment

I am using the multicol package, with two columns, and need a figure to span both columns. I am aware of \begin{figure*}, but I do not want the figure to float. I have been googling for about an hour, to no avail. Any help would be great.

like image 205
Mica Avatar asked Aug 06 '09 21:08

Mica


3 Answers

Have a look at the package nonfloat (it is part of TeXlive so there is a good chance you already have it). The following example taken from the manual of nonfloat shows how you can have a non-floating figure with caption:

\begin{minipage}{\linewidth} 
\centering% 
\includegraphics[width=0.8\linewidth,clip=]{input.eps}% 
\figcaption{Caption}% 
\label{fig:input.eps}% 
\end{minipage} 

The nonfloat package provides the \figcaption command that can be used outside floats. In order to combine this with multicol I think you have to \end{multicols}, put the figure, and then \begin{multicols}{2}.

like image 161
cefstat Avatar answered Nov 15 '22 11:11

cefstat


Not completely off-topic, http://www.deesaster.org/latex-magazinerstellung.php has an example article showing how to make magazines with latex (see the example LaTeX-Magazinerstellung-Artikel.pdf) which uses multicol and has pictures spanning more than one column. This, I think, is interesting, unfortunately the source code and guide are in German, but I think he does it with a \parbox ...

like image 25
nzroller Avatar answered Nov 15 '22 11:11

nzroller


Well, floating figures in LaTeX can be challenging... But as far as I remember, the core of it is that a figure always is floating and there is no way to change that other than not using a figure but includegraphics directly.

Having that said, chapter 9 "Floating tables and figures" in "Guide to LaTeX" mentions some things that might help you (listed in order mentioned):

\suppressfloats
package flafter
package float
package here
package floatflt
like image 22
hlovdal Avatar answered Nov 15 '22 10:11

hlovdal