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

 

posted @   bH1pJ  阅读(192)  评论(0编辑  收藏  举报
编辑推荐:
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
点击右上角即可分享
微信分享提示