2열 문서의 그림은 열을 비워 둡니다.

2열 문서의 그림은 열을 비워 둡니다.

revtex4-1 클래스의 2열 문서에 있는 그림에 문제가 있습니다.

내 MWE에는 두 개의 수치가 있습니다.

단일 열의 경우 두 수치가 서로 비교하기에는 너무 높습니다. 따라서 가장 좋은 해결책은 두 번째 숫자를 다음 열에 넣는 것입니다.

그러나 Latex는 다음 열을 완전히 비워두고 두 번째 그림을 다음 페이지에 배치합니다.

여기에 이미지 설명을 입력하세요

이 문제를 어떻게 해결할 수 있나요?

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

또는 두 개의 미니페이지를 전체 너비 그림에 넣을 수 있습니다.

\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} 

전체 페이지

관련 정보