1

I am using revtex4-1 with the argument twocolumn. In some part of the text I want to work under \onecolumngrid. However the footnote still appears in two-column format. How can I get a one-column footnote?

Here is a minimal working example:

\documentclass[twocolumn,nofootinbib]{revtex4-1}
\usepackage{lipsum}

\begin{document}
\onecolumngrid
\lipsum

Footnoted text.\footnote{\lipsum}

\end{document}
7
  • Unrelated but note that revtex4-1 is marked as obsolete, revtex4-2 is the current supported one
    – daleif
    Commented May 13, 2021 at 10:06
  • @daleif Thanks. I actually use ‘revtex4-2’, but wasn’t sure whether this is standard now. Commented May 13, 2021 at 10:26
  • I think is has been for a while. Miktex does not even provide it anymore
    – daleif
    Commented May 13, 2021 at 10:33
  • Please try the updated answer. Commented May 13, 2021 at 14:08
  • You were right about the extra space. I corrected the code to make it similar to the one used in the normal two columns mode. Also changed the first figure. Thank you for your feedback Commented May 13, 2021 at 23:17

1 Answer 1

2

Invoking the re-defined \onecolumngrid will make the following footnotes to use both two columns, until a \twocolumngrid returns to the footnotes and the text to the two column mode.

A\newpage should be inserted in the right place, before using \twocolumngrid to switch to text to two columns, to start a new page in this mode.

Add this code to the preamble:

% ********************* added<<<<<<<<<<<<<<<<<<<<
\makeatletter 
    
\renewcommand\onecolumngrid{% <<<<<<
\do@columngrid{one}{\@ne}%
\def\set@footnotewidth{\onecolumngrid}% <<<<<<<<<<<<<<<<
\def\footnoterule{\kern-6pt\hrule width 1.5in\kern6pt}%
}

\renewcommand\twocolumngrid{% <<<<<<
        \def\footnoterule{% restore rule
        \dimen@\skip\footins\divide\dimen@\thr@@
        \kern-\dimen@\hrule width.5in\kern\dimen@}
        \do@columngrid{mlt}{\tw@}
}%

\makeatother    
%%  *********************************************** 

Footnote using both two columns with \onecolumngrid

a

Back later to footnote and text in two columns with \twocolumngrid

x

\documentclass[twocolumn,nofootinbib]{revtex4-2}

\usepackage{lipsum}     
    
% ********************* added<<<<<<<<<<<<<<<<<<<<
\makeatletter 
    
\renewcommand\onecolumngrid{% <<<<<<
\do@columngrid{one}{\@ne}%
\def\set@footnotewidth{\onecolumngrid}% <<<<<<<<<<<<<<<<
\def\footnoterule{\kern-6pt\hrule width 1.5in\kern6pt}%
}

\renewcommand\twocolumngrid{% <<<<<<
        \def\footnoterule{% restore rule
        \dimen@\skip\footins\divide\dimen@\thr@@
        \kern-\dimen@\hrule width.5in\kern\dimen@}
        \do@columngrid{mlt}{\tw@}
}%

\makeatother    
%%  *********************************************** 

\begin{document}
    
\onecolumngrid   
    
1. \lipsum[2-5]

\textbf{\Large Footnoted text 1.}\footnote{\lipsum[1]}
\medskip
    
\textbf{\Large Footnoted text 2.}\footnote{\lipsum[2]}
\medskip

\textbf{\Large Footnoted text 3.}\footnote{\lipsum[3]}

2. \lipsum[2-3]

\newpage % needed to start a new page with two columns

\twocolumngrid %back to two column

6. \lipsum[7-8]

\textbf{\Large Another footnoted text.}\footnote{\lipsum[1]}

\medskip
\textbf{\Large Another footnoted text.}\footnote{\lipsum[3]}        

9. \lipsum[9-15]    

\end{document
3
  • Thank you so much! However when two footnotes appear together, the horizontal line appears twice. Is there a easy fix for this? Thanks! Commented May 13, 2021 at 5:48
  • @WunderNatur Fixed. I updated my answer Commented May 13, 2021 at 14:09
  • Thanks! One more minor issue: the space between the horizontal line and the footnotes seems too large to me. Or would you mind to explain your codes a little bit, so that I can modify them myself? I am pretty basic at TeX, and do not even understand \do, @, etc. Some references would also be great! Commented May 13, 2021 at 20:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .