在两列乳胶文档中,我使用widetext
环境,这导致在widetext
。这是为了引导读者从两列到widetext
但我想摆脱它。我该怎么做?
我尝试使用\onecolumngrid
,但保留了线条(现在它横跨两列)。显然,这些线条是可以操纵的,现在我想删除它们。
MWE 在这里。
\documentclass[aps,prl,twocolumn,balance,superscriptaddress,floats,showpacs,a4paper]{revtex4}
\usepackage{latexsym}
\usepackage{dcolumn}
\usepackage{amsmath}
\usepackage{epsf}
\usepackage{float}
\usepackage{hyperref}
\begin{document}
Blah blah, blah blah blah blah
\begin{widetext}
Yada Yada Yada
\end{widetext}
Blah blah blah
\end{document}
答案1
您可以复制定义并注释掉有问题的部分:
\documentclass[aps,prl,twocolumn,balance,superscriptaddress,floats,showpacs,a4paper]{revtex4}
\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{%
\leaders\hrule\hfil
\vrule\@height6\p@
}%
\vskip6\p@
}%
\setbox\widetext@bot\hb@xt@\hsize{%
\vrule\@depth6\p@
\leaders\hrule\hfil
}%
\onecolumngrid
% \dimen@\ht\widetext@top\advance\dimen@\dp\widetext@top
% \cleaders\box\widetext@top\vskip\dimen@
\let\set@footnotewidth\set@footnotewidth@ii
}{%
\par
% \setbox\widetext@bot\vbox{%
% \hb@xt@\hsize{\hfil\box\widetext@bot}%
% \vskip14\p@
% }%
% \dimen@\ht\widetext@bot\advance\dimen@\dp\widetext@bot
% \cleaders\box\widetext@bot\vskip\dimen@
\twocolumngrid\global\@ignoretrue
\@endpetrue
}%
\makeatother
\begin{document}
Blah blah, blah blah blah blah
\begin{widetext}
Yada Yada Yada Yada Yada Yada Yada Yada Yada Yada Yada Yada
\end{widetext}
Blah blah blah
\end{document}
答案2
您可以尝试使用\onecolumngrid
:
\documentclass[twocolumn]{revtex4}
\usepackage{lipsum}
\begin{document}
\lipsum[1-3]
\onecolumngrid
\vspace{\columnsep}
\lipsum[5-6]
\vspace{\columnsep}
\twocolumngrid
\lipsum[7-9]
\end{document}
给出: