2

when I use cuted/strip, I got no output. The MWE is below:

\documentclass[twocolumn]{article}
\usepackage{cuted}
\begin{document}
\section{Foo}
foo
\section{Bar}
bar
\begin{strip}
baz
\end{strip}
\end{document}

What is the correct way to use this package?

I am using basic-miktex-2.9.5105-x64 on windows 8.1, have tried both pdfLaTeX and XeLaTeX.

I think I removed too many blank lines, when posting here. If I do so, it works, strange. When running pdfLaTeX on the following code, it says "No pages of output."

\documentclass[twocolumn]{article}

\usepackage{cuted}

\begin{document}

\section{Foo}

foo

\section{Bar}

bar

\begin{strip}
baz
\end{strip}

\end{document}
  • 1
    Welcome to TeX.SX! What do you mean by "no output"? You do not get a PDF? It is empty? Just "baz" is missing? It works perfectly for me, though. – LaRiFaRi Sep 03 '15 at 07:00
  • I'm not entirely sure what the expected output is. But I am getting all the words of the source code in the output. Do you get any warnings or errors on your example? – moewe Sep 03 '15 at 07:21
  • 1
    You need some text after \end{strip} or, at least, \vspace*{\fill} if you want the strip is at the end of the document. – egreg Sep 03 '15 at 11:09
  • Still curious why first MWE works, though. @egreg – OstCollector Sep 03 '15 at 11:19
  • @OstCollector No idea. ;-) – egreg Sep 03 '15 at 11:33

2 Answers2

3

It seems the strip environment requires something after it. Here is a work-around with etoolbox:

\documentclass[twocolumn]{article}
\usepackage{color}
\usepackage{cuted}
\usepackage{etoolbox}
\AfterEndEnvironment{strip}{\leavevmode}

\begin{document}

\section{Foo}

foo

\section{Bar}

bar

\begin{strip}
  \centering\color{red} \fbox{baz}
\end{strip}

\end{document} 

enter image description here

Bernard
  • 271,350
1

I had problems with \strip and struggled a lot with it!

For me, it made some text invisible (probably they were printed behind the formula). Sometimes parts of the text were shown if I typed a few characters after \end{strip} and before next section of the document, but this didn't show all of them!

I ended up leaving \strip, and using multicol package (thanks to another post) which works like a charm.

The trick is that you can define the layout (by default) as one column document, then, in most parts (except the title and wide formulas) change it to two columns:

\begin{document}
\onecolumn
\titlepage or \maketitle

\begin{multicols}{2}
\begin{abstract}
...
%The contents of your paper; anything before the wide formula
\end{multicols}

\begin{equation}
 %Write wide or long equation here ...
\end{equation}

\begin{multicols}{2}
%The rest of the paper; anything after the wide formula ...
\end{multicols} 

\end{document}
Alisa
  • 363
  • You're awesome. Really. That multicol solution made things a lot easier than dealing with the strip. I really appreciate your answer. Thank you! – Theo Jul 10 '18 at 11:43