I am using a two column layout and I would like to have an equation in
there which is actually too wide to be put into 1 of these columns.
However when I use \begin{figure*} , the equation uses the whole two
columns, but it is not placed at the right position but at the
beginning of the next page. How can I put it in the text, but still
having it using the width of two columns?
Thanks for any help,
Laurent
In many cases it is best to break the equation into several lines (see
the amsmath documentation) or use suitable abbreviations. Where this is
not possible, several solutions have been proposed in the past:
* cuted.sty when the twcolumn option is used
* multicol.sty allows for this directly but interefers with floats
* ltxgrid as used in the revtex4 class
See past discussions on <URL:http://groups.google.com/> for their
relative merits.
cheerio
ralf
> "Laurent" <hol...@gmail.com> writes:
>
> > I am using a two column layout and I would like to have an equation in
> > there which is actually too wide to be put into 1 of these columns.
> > However when I use \begin{figure*} , the equation uses the whole two
> > columns, but it is not placed at the right position but at the
> > beginning of the next page. How can I put it in the text, but still
> > having it using the width of two columns?
>
> In many cases it is best to break the equation into several lines (see
> the amsmath documentation) or use suitable abbreviations. Where this is
> not possible, several solutions have been proposed in the past:
>
> * cuted.sty when the twcolumn option is used
Thanks for the info. But when I try to use the cuted.sty and start the
strip-environment, I get the following error:
! Improper \prevdepth.
<recently read> \prevdepth
l.143 \end{strip}
Any idea what this means? I tried to google it, but it doesn't seem to
help a lot.
Laurent
not seen that before. i _have_ had cuted working (i tried it before
putting it in the faq), so perhaps a minimal example is called for?
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
--
Robin Fairbairns, Cambridge
All right, it seems to have something to do with the equation. This
example gives me the error-message:
\documentclass[11pt,a4paper,twocolumn]{article}
\usepackage{cuted}
\begin{document}
This is a test
\begin{strip}
\begin{equation}
E=mc^2
\end{equation}
\end{strip}
\end{document}
Laurent
Obviously, it is related to the equation. cuted.sty realizes that it is
so short that the strip environment is not needed and hence refuses to
work. ;-) Seriously, it seems that the strip environment cannot be used
in horizontal mode. In addition, the document should not end with a
strip environment. So the following works for me:
\documentclass[11pt,a4paper,twocolumn]{article}
\usepackage{cuted}
\begin{document}
This is a test
\begin{strip}
\begin{equation}
E=mc^2
\end{equation}
\end{strip}
This is a test
\end{document}
Add \noindent, if you don't want to start a new paragraph after the
display. I don't know if it is possible to fix cuted.sty in this
respect.
cheerio
ralf
OK, this works indeed. But it seems I have cut my document a little bit
to drastically when trying to create a minimal example. Because in my
document the equation (which is a lot longer than E=mc^2) is part of a
section. So this gives still an error:
\documentclass[10pt,a4paper,twocolumn]{article}
\usepackage{cuted}
\begin{document}
\section{We apparently need a section}
Start of the text
\begin{strip}
\begin{equation}
E=mc^2
\end{equation}
\end{strip}
This is a huge test
\end{document}
Any ideas?
Laurent
> OK, this works indeed. But it seems I have cut my document a little bit
> to drastically when trying to create a minimal example. Because in my
> document the equation (which is a lot longer than E=mc^2) is part of a
> section. So this gives still an error:
>
> \documentclass[10pt,a4paper,twocolumn]{article}
> \usepackage{cuted}
> \begin{document}
> \section{We apparently need a section}
> Start of the text
[Add an emty line here]
> \begin{strip}
> \begin{equation}
> E=mc^2
> \end{equation}
> \end{strip}
> This is a huge test
> \end{document}
I guess you don't know what horizontal mode is. The empty line before
the strip environment in my example is intentional and necessary for the
strip environment to work. In other words, you can't use the strip
environment with a paragraph.
cheerio
ralf
OK, many thanks, I indeed didn't know what horizontal mode is, but I
will find it out :). Well at least it works fine now.
Cheers,
Laurent