我试图对齐图像 e),使其位于图像 b) 下方,并紧跟在图像 d) 之后,但我没有成功。
你知道该怎么做吗?
\begin{figure*}[t!]
\begin{subfigure}{0.30\textwidth}
\includegraphics[width=\linewidth]{s_r}
\caption{$S[r]$} \label{fig:a}
\end{subfigure}
\hspace*{\fill}
\begin{subfigure}{0.30\textwidth}
\includegraphics[width=\linewidth]{f_r}
\caption{$I[r]$} \label{fig:b}
\end{subfigure}
\hspace*{\fill}
\begin{subfigure}{0.30\textwidth}
\includegraphics[width=\linewidth]{c_r}
\caption{$\varepsilon[r]$} \label{fig:c}
\end{subfigure}
\medskip
\begin{subfigure}{0.30\textwidth}
\includegraphics[width=\linewidth]{d_r}
\caption{$\Delta[r]$} \label{fig:d}
\end{subfigure}
% ??????
\begin{subfigure}{0.30\textwidth}
\includegraphics[width=\linewidth]{k_r}
\caption{$K[r]$} \label{fig:e}
\end{subfigure}
\medskip
\centering
\caption{Medidas de incertidumbre} \label{fig:1}
\end{figure*}
答案1
您必须添加一个与其他对象相同水平尺寸的空对象。
\documentclass[twocolumn]{article}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{kantlipsum}
\begin{document}
\section{Start}
\kant[1]
\begin{figure*}[t!]
\begin{subfigure}{0.30\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{$S[r]$} \label{fig:a}
\end{subfigure}\hfill
\begin{subfigure}{0.30\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{$I[r]$} \label{fig:b}
\end{subfigure}\hfill
\begin{subfigure}{0.30\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{$\varepsilon[r]$} \label{fig:c}
\end{subfigure}
\medskip
\begin{subfigure}{0.30\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{$\Delta[r]$} \label{fig:d}
\end{subfigure}\hfill
\begin{subfigure}{0.30\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{$K[r]$} \label{fig:e}
\end{subfigure}\hfill
\makebox[0.30\textwidth]{}
\caption{Medidas de incertidumbre} \label{fig:1}
\end{figure*}
\kant[2-12]
\end{document}
您还可以将底行置于中央,方法是在侧面添加半个幻影,并将空间拉伸至中间的一半。
\documentclass[twocolumn]{article}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{kantlipsum}
\begin{document}
\section{Start}
\kant[1]
\begin{figure*}[t!]
\begin{subfigure}{0.30\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{$S[r]$} \label{fig:a}
\end{subfigure}\hfill
\begin{subfigure}{0.30\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{$I[r]$} \label{fig:b}
\end{subfigure}\hfill
\begin{subfigure}{0.30\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{$\varepsilon[r]$} \label{fig:c}
\end{subfigure}
\medskip
\makebox[0.15\textwidth]{}\hspace{\stretch{0.5}}%
\begin{subfigure}{0.30\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{$\Delta[r]$} \label{fig:d}
\end{subfigure}\hfill
\begin{subfigure}{0.30\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{$K[r]$} \label{fig:e}
\end{subfigure}\hspace{\stretch{0.5}}%
\makebox[0.15\textwidth]{}
\caption{Medidas de incertidumbre} \label{fig:1}
\end{figure*}
\kant[2-12]
\end{document}