Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using graphics in multicols

1,454 views
Skip to first unread message

我要引娣

unread,
Jul 2, 2003, 11:22:12 AM7/2/03
to
Hi,

I met error when using "graphics" inside the "multicols".

The error messages:

Package multicol Warning: Floats and marginpars not allowed
inside `multicols' environment! .

Is there any solution to this problem?

Thanks a lot!

--
[1;36m※ 飄雨蘭城‧Kavalan.twbbs.org‧[From: mailgate.csie.nctu.edu.tw] [m

Will Henney

unread,
Jul 2, 2003, 5:44:25 PM7/2/03
to
Jame...@Kavalan.csie.NCTU.edu.tw (我要引娣) wrote in message news:<4774Oa$T...@Kavalan.csie.NCTU.edu.tw>...

> I met error when using "graphics" inside the "multicols".
>
> The error messages:
>
> Package multicol Warning: Floats and marginpars not allowed
> inside `multicols' environment! .
>
> Is there any solution to this problem?

It is not graphics as such that are not allowed, rather
it is single-column floats. Presumably you put

\begin{multicols}{2}
...
\begin{figure}
\includegraphics{whatever}
\caption{blah}\label{foo}
\end{figure}
...
\end{multicols}

This is not allowed, as the message told you.

There are two `solutions' to this:

1. use full-pagewidth floats - \begin{figure*} instead of
\begin{figure}

2. don't use floats at all - just stick your graphics directly
in your text (maybe in a center or quote environment).

Neither are ideal but one or other may be acceptable
to you. In the second case you will have to do something
to get access to the \caption command outside of a float
environment. I can't remember the details but I believe
this is dicussed in epslatex.ps

By the way, you could have found all this out for yourself
by reading the documentation for multicol.sty. If you are using
teTeX then you can just do `texdoc multicol'. Otherwise, look
in the directories given by the command

kpsewhich --show-path='TeX system documentation'

Cheers

Will

0 new messages