I'd suggest you not to use widetext
, but figure*
instead; notice that now the figure (and its caption) will span both columns, but the image will appear on the top of the following page:
\documentclass[twocolumn]{revtex4-1}
\usepackage{graphicx}
\usepackage{lipsum}% just to generate text for the example
\begin{document}
\lipsum[1-8]
\begin{figure*}
\includegraphics{example-image-a}
\caption{some text for the caption of the example figure; it will span at least two lines just for the example; here we add some more text just to make the caption longer}
\end{figure*}
\lipsum[1-3]
\end{document}
![enter image description here](https://i.stack.imgur.com/a50RX.png)
You can, but I don't think the copy editors of the journal you're submitting the paper to will be happy. Here is the code for a two column caption:
\documentclass[reprint, aps, pra]{revtex4-1}
\usepackage[demo]{graphicx}
\usepackage{lipsum}
\begin{document}
\maketitle
\lipsum[1-8]
\begin{figure*}[t]
\includegraphics[width=\columnwidth]{figure}
\makeatletter
\renewcommand{\@makecaption}[2]{%
\par\vskip\abovecaptionskip\begingroup\small\rmfamily
\splittopskip=0pt
\setbox\@tempboxa=\vbox{
\@arrayparboxrestore \let \\\@normalcr
\hsize=.5\hsize \advance\hsize-1em
\let\\\heading@cr
\@make@capt@title {#1}{#2}
}%
\vbadness=10000
\setbox\z@=\vsplit\@tempboxa to .55\ht\@tempboxa
\setbox\z@=\vtop{\hrule height 0pt \unvbox\z@}
\setbox\tw@=\vtop{\hrule height 0pt \unvbox\@tempboxa}
\noindent\box\z@\hfill\box\tw@\par
\endgroup\vskip \belowcaptionskip
}
\makeatother
\caption[]{
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut,
placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero,
nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis
egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum
urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer
sapien est, iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo ultrix
bibendum. Aenean faucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac.
Curabitur auctor semper nulla. Donec varius orci eget risus. Duis nibh mi, congue eu,
accumsan eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim rutrum.
}
\end{figure*}
\lipsum[1-6]
\end{document}
![enter image description here](https://i.stack.imgur.com/iTuIh.png)
Best Answer
I assume you are using
revtex4-1
. This is the code that I am using for when I want a figure on both columns. You might need to modify thescale
parameter for your images.You might be tempted to use
\usepackage[caption=false]{subfig}
instead ofcaption
andsubcaption
but then you will not be able to have, as far as I know, the main capture for your figure. I am sure there is a way around it I just couldn't find it.The code when
\usepackage[caption=false]{subfig}
is used would look something like this:EDIT
The caption can be moved to the side by using
sidecap
. Therefore, the code is modified by changing thefigure
toSCfigure
and removing the[h]
from theSCfigure
. To achieve optimal side captions, the user has to adjust manually the figure boarders or useminipage
to separate the figure and the caption.