问题:图像之间不应该有空格。但是却有。
代码 (合理使用):
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{mwe}
\begin{document}
\begin{figure*}
\centering
\begin{subfigure}[b]{.5\columnwidth}
\centering
\caption{{\small Network 1}}
\includegraphics[width=\columnwidth]{frog.jpg}
\label{fig:mean and std of net14}
\end{subfigure}
\begin{subfigure}[b]{.5\columnwidth}
\centering
\caption{{\small Network 1}}
\includegraphics[width=\columnwidth]{frog.jpg}
\label{fig:mean and std of net24}
\end{subfigure}
\begin{subfigure}[b]{.5\columnwidth}
\centering
\includegraphics[width=\columnwidth]{frog.jpg}
\caption{{\small Network 1}}
\label{fig:mean and std of net34}
\end{subfigure}
\begin{subfigure}[b]{.5\columnwidth}
\centering
\includegraphics[width=\columnwidth]{frog.jpg}
\caption{{\small Network 1}}
\label{fig:mean and std of net44}
\end{subfigure}
\caption[ The average and standard deviation of critical parameters ]
{\small The average and standard deviation of critical parameters: Region R4}
\label{fig:mean and std of nets}
\end{figure*}
\end{document}
答案1
我明白了
在列( )和行( )tabular
之间的空间被抑制的地方插入子图,并用符号消除一些虚假空间。@{}
\renewcommand{\arraystretch}{0}
%
\documentclass[twocolumn]{article}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{mwe}
\begin{document}
\begin{figure*}
\centering
{\renewcommand{\arraystretch}{0}
\begin{tabular}{c@{}c}
\begin{subfigure}[b]{.5\columnwidth}
\centering
\caption{{\small Network 1}}
\includegraphics[width=\columnwidth]{frog.jpg}%
\label{fig:mean and std of net14}
\end{subfigure}&
\begin{subfigure}[b]{.5\columnwidth}
\centering
\caption{{\small Network 1}}
\includegraphics[width=\columnwidth]{frog.jpg}%
\label{fig:mean and std of net24}
\end{subfigure}\\
\begin{subfigure}[t]{.5\columnwidth}
\centering
\includegraphics[width=\textwidth]{frog.jpg}%
\caption{{\small Network 1}}
\label{fig:mean and std of net34}
\end{subfigure}&
\begin{subfigure}[t]{.5\columnwidth}
\centering
\includegraphics[width=\columnwidth]{frog.jpg}%
\caption{{\small Network 1}}
\label{fig:mean and std of net44}
\end{subfigure}
\end{tabular}}
\caption[ The average and standard deviation of critical parameters ]
{\small The average and standard deviation of critical parameters: Region R4}
\label{fig:mean and std of nets}
\end{figure*}
\end{document}