# Latex widetext environment without the lines

In a two column latex document, I use widetext environment which results in a line above and below the widetext. This is to guide the reader from the two column to the widetext but I want to get rid of it. How can I do it?

I tried using \onecolumngrid but this retained the line (it now stretches across both columns). Clearly, the lines can be manipulated, now I want to remove them.

MWE here.

\usepackage{latexsym}
\usepackage{dcolumn}
\usepackage{amsmath}
\usepackage{epsf}
\usepackage{float}
\usepackage{hyperref}

\begin{document}

Blah blah, blah blah blah blah

\begin{widetext}
\end{widetext}

Blah blah blah

\end{document}

You can just copy the definition and comment out the offending bits:

\usepackage{latexsym}
\usepackage{dcolumn}
\usepackage{amsmath}
\usepackage{epsf}
\usepackage{float}
\usepackage{hyperref}
\makeatletter

\renewenvironment{widetext@grid}{%
\par\ignorespaces
\setbox\widetext@top\vbox{%
\vskip15\p@
\hb@xt@\hsize{%
\vrule\@height6\p@
}%
\vskip6\p@
}%
\setbox\widetext@bot\hb@xt@\hsize{%
\vrule\@depth6\p@
}%
\onecolumngrid
\let\set@footnotewidth\set@footnotewidth@ii
}{%
\par
%  \setbox\widetext@bot\vbox{%
%   \hb@xt@\hsize{\hfil\box\widetext@bot}%
%   \vskip14\p@
%  }%
\twocolumngrid\global\@ignoretrue
\@endpetrue
}%

\makeatother

\begin{document}

Blah blah, blah blah blah blah

\begin{widetext}
\end{widetext}

Blah blah blah

\end{document}
• It worked well but can I ask how one should do it for only one instance while leaving all other instances of widetext with the lines? I'm guessing I should define a new "widetextwithoutlines" environment but keep the regular widetext too. Thanks! – user1936752 Jan 13 '14 at 11:31
• you could or if it is just one you could move that redefinition into the document body {\makeatletter\renwcommand....\makeatother \begin{widetext}....\end{widetext}} – David Carlisle Jan 13 '14 at 12:07

You can try to use \onecolumngrid for that:

\documentclass[twocolumn]{revtex4}

\usepackage{lipsum}

\begin{document}

\lipsum[1-3]

\onecolumngrid
\vspace{\columnsep}
\lipsum[5-6]
\vspace{\columnsep}
\twocolumngrid

\lipsum[7-9]

\end{document}

gives: