我有 3 个对齐的子图,我想将它们居中,总水平尺寸大于文本宽度。这是我目前的代码:
begin{figure}
\begin{adjustbox}{minipage=1.2\textwidth}
\captionsetup{font=scriptsize,justification=centering,singlelinecheck=false, labelfont=scriptsize, labelformat=empty}
\captionsetup[sub]{font=scriptsize,labelfont=scriptsize, justification = centering, labelformat=empty}
\begin{subfigure}[b]{0.3\textwidth}
\setlength\abovecaptionskip{0.0cm}
\caption{$H/L = 0.15m$}
\includegraphics[width=\textwidth]{bouss_L1_ep}
\end{subfigure}
\begin{subfigure}[b]{0.3\textwidth}
\setlength\abovecaptionskip{0.0cm}
\caption{$H/L = 0.05m$}
\includegraphics[width=\textwidth]{bouss_L3_ep}
\end{subfigure}
\begin{subfigure}[b]{0.3\textwidth}
\setlength\abovecaptionskip{0.0cm}
\caption{$H/L = 0.025m$}
\includegraphics[width=\textwidth]{bouss_L6_ep}
\end{subfigure}
\caption{Fonction de courant - différentes solutions obtenues pour différents \\ rapport d'aspects de la montagne.}
\end{adjustbox}
\end{figure}
但是,无法将所有这些都居中:我尝试使用中心环境,并将其更改为\begin{adjustbox}{minipage=1.2\textwidth}
。\begin{adjustbox}{minipage=1.2\textwidth, center}
然后,在网上搜索了一下,我尝试将所有这些都放在里面:
\makebox[\textwidth][\side]{ }
导致 :
\begin{frame}
\begin{figure}
\makebox[\textwidth][\side]{
\begin{adjustbox}{minipage=1.2\textwidth}
\captionsetup{font=scriptsize,justification=centering,singlelinecheck=false, labelfont=scriptsize, labelformat=empty}
\captionsetup[sub]{font=scriptsize,labelfont=scriptsize, justification = centering, labelformat=empty}
\begin{subfigure}[b]{0.3\textwidth}
\setlength\abovecaptionskip{0.0cm}
\caption{$H/L = 0.15m$}
\includegraphics[width=\textwidth]{bouss_L1_ep}
\end{subfigure}
\begin{subfigure}[b]{0.3\textwidth}
\setlength\abovecaptionskip{0.0cm}
\caption{$H/L = 0.05m$}
\includegraphics[width=\textwidth]{bouss_L3_ep}
\end{subfigure}
\begin{subfigure}[b]{0.3\textwidth}
\setlength\abovecaptionskip{0.0cm}
\caption{$H/L = 0.025m$}
\includegraphics[width=\textwidth]{bouss_L6_ep}
\end{subfigure}
\caption{Fonction de courant - différentes solutions obtenues pour différents \\ rapport d'aspects de la montagne.}
\end{adjustbox}
}
\end{figure}
\end{frame}
但它引发了一个错误:!未定义的控制序列。\side l.141 \end{frame}