Fußnoten zwischen Unterabbildungen in einer eigenständigen Dokumentklasse

Fußnoten zwischen Unterabbildungen in einer eigenständigen Dokumentklasse

Im folgenden MCE steht die Fußnote zwischen der ersten und der zweiten Unterabbildung. Okay, die Dokumentklasse ist standaloneund das Protokoll warnt mich:

LaTeX-Warnung: Verschachtelte Miniseite: Fußnoten können in der Eingabezeile 11 falsch platziert sein.

Aber wie kann man solch ein merkwürdiges Verhalten umgehen?

\documentclass[varwidth=18cm]{standalone}

\usepackage{subcaption}

\begin{document}

Some dummy text with a footnote\footnote{This is the footnote's content.}.

\begin{figure}[ht]
  \centering
  \begin{subfigure}[b]{.3\linewidth}
    \centering
    First subfigure
    \caption{Caption of the first subfigure}
  \end{subfigure}
  \begin{subfigure}[b]{.3\linewidth}
    \centering
    Second subfigure
    \caption{Caption of the second subfigure}
  \end{subfigure}
  \begin{subfigure}[b]{.3\linewidth}
    \centering
    Third subfigure
    \caption{Caption of the third subfigure}
  \end{subfigure}
  \caption{Caption of the (global) figure}
\end{figure}

Some dummy text.
\end{document}

Bildbeschreibung hier eingeben

Antwort1

Dies verwendet eine Savebox, um die Miniseiten zu erweiternVordie Fußnote. Beachten Sie, dass \centeringinnerhalb einer varwidth nichts passiert.

\documentclass[varwidth=18cm]{standalone}

\usepackage{subcaption}

\begin{document}

\sbox0{\begin{varwidth}{18cm}
\begin{figure}[ht]
  \centering
  \begin{subfigure}[b]{.3\linewidth}
    \centering
    First subfigure
    \caption{Caption of the first subfigure}
  \end{subfigure}
  \begin{subfigure}[b]{.3\linewidth}
    \centering
    Second subfigure
    \caption{Caption of the second subfigure}
  \end{subfigure}
  \begin{subfigure}[b]{.3\linewidth}
    \centering
    Third subfigure
    \caption{Caption of the third subfigure}
  \end{subfigure}
  \caption{Caption of the (global) figure}
\end{figure}%
\end{varwidth}}

Some dummy text with a footnote\footnote{This is the footnote's content.}.

\noindent\usebox0

Some dummy text.
\end{document}

verwandte Informationen