
В следующем MCE сноска находится между первым и вторым подрисунками. Хорошо, класс документа есть, standalone
и журнал предупреждает меня:
Предупреждение LaTeX: вложенная мини-страница: сноски могут быть размещены не на своем месте в строке ввода 11.
Но как обойти столь странное поведение?
\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}
решение1
Здесь используется поле сохранения для расширения мини-страниц.досноска. Обратите внимание, что это \centering
не делает ничего внутри varwidth.
\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}