latex中的图片布局,如何高效地利用空间
latex 一行能不能放3张图
这个博客写的好,解决了我的问题:
https://blog.csdn.net/qq_32791307/article/details/80715902
\begin{figure} \centering
\begin{minipage}[t]{.25\linewidth}
\framebox{framed text}
\caption{a figure}
\end{minipage}
\begin{minipage}[t]{.25\linewidth}
\framebox{framed text}
\caption{a figure}
\end{minipage}
\begin{minipage}[t]{.25\linewidth}
\framebox{framed text}
\caption{a figure}
\end{minipage}
\end{figure}
结果如下:
不满足要求。 原因是 \centering的位置写错了
这样写:
\begin{figure}
\centering
\begin{minipage}[t]{.25\linewidth}
\framebox{framed text}
\caption{a figure}
\end{minipage}
\begin{minipage}[t]{.25\linewidth}
\framebox{framed text}
\caption{a figure}
\end{minipage}
\begin{minipage}[t]{.25\linewidth}
\framebox{framed text}
\caption{a figure}
\end{minipage}
\end{figure}
就是我们要的结果了
\begin{figure}[htbp]
\centering
\includegraphics[width=.25\textwidth]{Pictures/Fig-face feature PCA results.png}
\includegraphics[width=.25\textwidth]{Pictures/Fig-face feature PCA results.png}
\includegraphics[width=.25\textwidth]{Pictures/Fig-face feature PCA results.png}
\end{figure}
没有图标,不满足要求
\begin{figure}[htbp]
\centering
\begin{minipage}[c]{0.05\textwidth}
\centering
\includegraphics[width=0.25\textwidth]{Pictures/Fig-face feature PCA results.png} %0.5指图片宽度
\caption{渐变1}
\end{minipage}%
\begin{minipage}[c]{0.05\textwidth}
\centering
\includegraphics[width=0.25\textwidth]{Pictures/Fig-face feature PCA results.png}
\caption{渐变2}
\end{minipage}
\begin{minipage}[c]{0.05\textwidth}
\centering
\includegraphics[width=0.25\textwidth]{Pictures/Fig-face feature PCA results.png}
\caption{渐变3}
\end{minipage}
\begin{minipage}[c]{0.05\textwidth}
\centering
\includegraphics[width=0.25\textwidth]{Pictures/Fig-face feature PCA results.png}
\caption{渐变4}
\end{minipage}
\end{figure}
满足要求
总结,有两种方案:
(1)includegraphics
(2)minipage