[texhax] double column section headers?

Schwartz, Steven J s.schwartz at imperial.ac.uk
Wed Nov 30 11:21:05 CET 2011


Thanks all but muliticol will only handle double-width floats and so doesn't satisfy my needs.

I'll stick to my workaholic and see if it spawns problems elsewhere.

Cheers
Steve
-----------
Steve Schwartz
Space and Atmospheric Physics
Imperial College London
Tel 020 7594 7660

On 30 Nov 2011, at 05:15, "Hubert Lam" <hubert at lamfamily.info<mailto:hubert at lamfamily.info>> wrote:

Sorry, needs package varioref as well – add \usepackage{varioref} to the preamble :p

From: Hubert Lam
Sent: Wednesday, November 30, 2011 4:15 PM
To: 'Steve Schwartz'
Cc: <mailto:texhax at tug.org> texhax at tug.org<mailto:texhax at tug.org>
Subject: RE: [texhax] double column section headers?


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]<mailto:[mailto:s.schwartz at imperial.ac.uk]>

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

> To: Hubert Lam

> Cc: <mailto:texhax at tug.org> texhax at tug.org<mailto: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/ea2b120f/attachment.html>


More information about the texhax mailing list