[texhax] double column section headers?

Hubert Lam hubert at lamfamily.info
Wed Nov 30 06:14:42 CET 2011


Hi again Steve



Do you absolutely need the figure/float "HERE" (\begin{figure}[H])?



If not, the starred version works, but places it outside of the multicols, most likely on the next page. It seems that this would be the solution I would use, though others may have another (more elegant) solution?





\usepackage{pstricks-add} % for \psLoop

\begin{document}

\begin{multicols}{2}

\psLoop{100}{Testing }



Figure \vref{fig1}



\begin{figure*}

\begin{center}

\fbox{\textbf{Hello!}}

\end{center}

\caption{Testing as well} \label{fig1}

\end{figure*}



\psLoop{100}{Lorem ipsum }

\end{multicols}





\end{document}



Hubert



> -----Original Message-----

> From: Steve Schwartz [mailto:s.schwartz at imperial.ac.uk]

> Sent: Tuesday, November 29, 2011 10:57 PM

> To: Hubert Lam

> Cc: texhax at tug.org

> Subject: Re: [texhax] double column section headers?

>

> Hubert,

>

> On Tue, 2011-11-29 at 07:37 +0000, Hubert Lam wrote:

> > Hi Steve

> >

> > Have you tried the multicol package?

>

> Yes, your example works, but you can't put a figure (float) inside a multicol,

> so:

>

> \begin{multicols}{2}

>  Stuff in

>   \begin{figure}\fbox{figure here}\caption{fig cap}\end{figure}

> \columnbreak  Two columns \end{multicols}

>

> generates the warning:

>

> Package multicol Warning: Floats and marginpars not allowed inside

> `multicols' environment!.

>

> This is a documented "feature" of multicols.

>

> Best wishes

> Steve

>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20111130/8592c688/attachment.html>


More information about the texhax mailing list