I am writing a revtex document that requires some equations to be typeset differently depending on whether I am in one-column preprint or in two-column reprint mode. Is there a way to specify separate equations depending on the mode?
This is similar to this question, but the solution proposed there doesn't seem to work with revtex:
\documentclass[aip,jcp,reprint,citeautoscript,longbibliography]{revtex4-1}
\begin{document}
\makeatletter
\if@twocolumn
\newcommand{\whencolumns}[2]{
#2
}
\else
\newcommand{\whencolumns}[2]{
#1
}
\fi
\makeatother
\whencolumns{One Column}{Two Columns}
\end{document}
This generates the text "One Column" both in reprint and in preprint mode.