Zahlen in zweispaltigem Dokument lassen Spalte leer

Zahlen in zweispaltigem Dokument lassen Spalte leer

Ich habe Probleme mit Zahlen in einem zweispaltigen Dokument der Klasse revtex4-1.

In meinem MWE habe ich zwei Figuren.

Bei einer einzelnen Spalte sind die beiden Zahlen zu hoch, um übereinander platziert zu werden. Die beste Lösung wäre also, die zweite Zahl in die nächste Spalte zu setzen.

Latex lässt die nächste Spalte jedoch einfach komplett leer und platziert die zweite Abbildung auf der nächsten Seite:

Bildbeschreibung hier eingeben

Wie kann ich das lösen?

Hier ist ein 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} 

Antwort1

Alternativ können Sie zwei Miniseiten in eine Abbildung in voller Breite einfügen.

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

volle Seite

verwandte Informationen