[texhax] double column section headers?
Hubert Lam
hubert at lamfamily.info
Tue Nov 29 08:37:20 CET 2011
Hi Steve
Have you tried the multicol package?
\usepackage{multicol}
\section{A section}
\begin{multicols}{2}
Stuff in
\columnbreak
Two columns
\end{multicols}
\section{Another section}
\begin{multicols}{2}
Stuff in
\columnbreak
Two columns
\end{multicols}
Or is it not suitable for your needs?
Hubert
> -----Original Message-----
> From: texhax-bounces at tug.org [mailto:texhax-bounces at tug.org] On Behalf
> Of Steve Schwartz
> Sent: Tuesday, November 29, 2011 3:59 AM
> To: texhax at tug.org Hax
> Subject: [texhax] double column section headers?
>
> I'm typesetting a document in two-column mode. However, as some of the
> section headings are long, and always start on a new page since they come
> from an include'd file, I'd like to spread the header across both columns.
>
> The simple approach:
>
> \twocolumn[{\subsection[short]{section title}\label{sec:mysec}}] blah
>
> almost works. The heading is spread across the page, the toc entry is correct,
> and subsequent sectioning is fine. [If I put the \label outside the argument to
> \twocolumn it picks up the preceding sectioning. But \labels in subordinate
> \subsubsections are ok. I presume this is a scoping problem of some sort, as
> may be the following.]
>
> However, the \rightmark isn't updated. I can workaround the \rightmark by
> doing it manually:
>
> \twocolumn[{\subsection[short]{section title}\label{sec:mysec}}]
> \markright{\thesubsection\ short} blah
>
> but this makes me slightly nervous that something else may unravel for me
> later. Multicols isn't an option due to the inability to handle non-starred,
> single column floats.
>
> Any advice?
>
> Thanks
> Steve
>
> PS The extra braces around \subsection are necessary to hide the square
> bracket [short] for the short title, but the rightmark behaviour is the same
> even if I use:
>
> \twocolumn[\subsection{section title}]
>
> and then, of course, the long title ends up in the toc.
> --
> +-------------------------------------------------------------------+
> Professor Steven J Schwartz Phone: +44-(0)20-7594-7660
> Head, Space & Atmospheric Physics Fax: +44-(0)20-7594-7772
> The Blackett Laboratory E-mail: s.schwartz at imperial.ac.uk
> Imperial College London Office: Huxley 6M67A
> London SW7 2AZ, U.K. Web: www.sp.ph.ic.ac.uk/~sjs
> +-------------------------------------------------------------------+
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/ More links:
> http://tug.org/begin.html
>
> Automated subscription management:
> http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
More information about the texhax
mailing list