
revtex4-1 クラスの 2 列ドキュメント内の図に問題があります。
私の MWE には 2 つの図があります。
1 つの列の場合、2 つの数字を互いに重ねて配置するには高すぎます。したがって、最善の解決策は、2 番目の数字を次の列に配置することです。
ただし、Latex は次の列を完全に空白のままにして、2 番目の図を次のページに配置します。
これをどうすれば解決できますか?
MWE は次のとおりです。
\documentclass[reprint,amsmath,amssymb,aps,]{revtex4-1}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{algpseudocode}
\begin{document}
\begin{figure}
\begin{algorithmic}
\ForAll{$\tau$}
\ForAll{$\bm G \in \mathcal G_\text{this}$}
\vspace{0.4em}
\ForAll{$i\in\mathcal I$}
\ForAll{$a\in \mathcal A_\text{this}$}
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\EndFor
\EndFor
\ForAll{$i\in \mathcal I$}
\ForAll{$j \in \mathcal I_\text{this}\;,j\leq i$}
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\EndFor
\EndFor
\ForAll{$i\in \mathcal I$}
\ForAll{$j \in \mathcal I_\text{this}\;,j\leq i$}
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\EndFor
\EndFor
\EndFor
\EndFor
\end{algorithmic}
\caption{Pseuocode of blablabla }
\end{figure}
\begin{figure}
\begin{algorithmic}
\ForAll{$\tau$}
\ForAll{$\bm G \in \mathcal G_\text{this}$}
\vspace{0.4em}
\ForAll{$i\in\mathcal I$}
\ForAll{$a\in \mathcal A_\text{this}$}
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\EndFor
\EndFor
\ForAll{$i\in \mathcal I$}
\ForAll{$j \in \mathcal I_\text{this}\;,j\leq i$}
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\EndFor
\EndFor
\ForAll{$i\in \mathcal I$}
\ForAll{$j \in \mathcal I_\text{this}\;,j\leq i$}
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\EndFor
\EndFor
\EndFor
\EndFor
\end{algorithmic}
\caption{Pseuocode of lululu }
\end{figure}
\end{document}
答え1
あるいは、全幅の図に 2 つのミニページを配置することもできます。
\documentclass[reprint,amsmath,amssymb,aps,]{revtex4-1}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{algpseudocode}
\begin{document}
\begin{figure*}
\begin{minipage}[t]{\dimexpr 0.5\textwidth - 0.5\columnsep}
\begin{algorithmic}
\ForAll{$\tau$}
\ForAll{$\bm G \in \mathcal G_\text{this}$}
\vspace{0.4em}
\ForAll{$i\in\mathcal I$}
\ForAll{$a\in \mathcal A_\text{this}$}
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\EndFor
\EndFor
\ForAll{$i\in \mathcal I$}
\ForAll{$j \in \mathcal I_\text{this}\;,j\leq i$}
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\EndFor
\EndFor
\ForAll{$i\in \mathcal I$}
\ForAll{$j \in \mathcal I_\text{this}\;,j\leq i$}
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\State $XYZ$
\EndFor
\EndFor
\EndFor
\EndFor
\end{algorithmic}
\caption{Pseuocode of blablabla }
\end{minipage}\hfill
\begin{minipage}[t]{\dimexpr 0.5\textwidth - 0.5\columnsep}
\begin{algorithmic}
\ForAll{$\tau$}
\ForAll{$\bm G \in \mathcal G_\text{this}$}
\vspace{0.4em}
\ForAll{$i\in\mathcal I$}
\ForAll{$a\in \mathcal A_\text{this}$}
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\EndFor
\EndFor
\ForAll{$i\in \mathcal I$}
\ForAll{$j \in \mathcal I_\text{this}\;,j\leq i$}
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\EndFor
\EndFor
\ForAll{$i\in \mathcal I$}
\ForAll{$j \in \mathcal I_\text{this}\;,j\leq i$}
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\State $ABC$
\EndFor
\EndFor
\EndFor
\EndFor
\end{algorithmic}
\caption{Pseuocode of lululu }
\end{minipage}
\end{figure*}
\end{document}