我试图在一篇文章的一栏中放置 3 个数字。
我想把这些数字放在 3 个子图中。
第一个是单独的,后面跟着另一行中的两个较小的子图,如下所示:
但它必须适合文章文档的一列:
編輯: 代码如下”:
\begin{figure}[t]
\centering
\begin{subfigure}{0.97\linewidth}
\centering
\includegraphics[width=\linewidth]{imagens/improviso.jpg}
\caption{Lorem ipsum}
\end{subfigure}\\
\begin{subfigure}{0.97\linewidth}
\centering
\includegraphics[width=\linewidth]{imagens/compositor.jpg}
\caption{Lorem ipsum}
\end{subfigure}\\
\begin{subfigure}{0.97\linewidth}
\centering
\includegraphics[width=\columnwidth]{imagens/Hibrido.jpg}
\caption{Lorem ipsum}
\end{subfigure}
\caption{Caption place holder}
\end{figure}
非常感谢
答案1
再举一个例子...使用subfigure
来自subcaption
koleygr 的包和答案作为 OP MWE:
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}[t]
\begin{subfigure}{\linewidth}
\includegraphics[width=\linewidth]{example-image-duck}
\caption{Lorem ipsum}
\end{subfigure}
\medskip
\begin{subfigure}{0.48\linewidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{Lorem ipsum}
\end{subfigure}
\hfill
\begin{subfigure}{0.48\linewidth}
\includegraphics[width=\linewidth]{example-image-b}
\caption{Lorem ipsum}
\end{subfigure}
\caption{Caption place holder}
\end{figure}
\end{document}
答案2
minipage
使用s 和包的解决方案subcaption
:
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}[t]
\centering
\begin{minipage}[inner sep=0pt, outer sep=0pt]{\linewidth}
\centering
\includegraphics[width=\linewidth]{example-image-a}
\captionof{subfigure}{Lorem ipsum}
\end{minipage}\\
\hfill\begin{minipage}{0.46\linewidth}
\centering
\includegraphics[width=\linewidth]{example-image-a}
\captionof{subfigure}{Lorem ipsum}
\end{minipage}\hfill
\begin{minipage}{0.46\linewidth}
\centering
\includegraphics[width=\linewidth]{example-image-b}
\captionof{subfigure}{Lorem ipsum}
\end{minipage}\hfill\null
\caption{Caption place holder}
\end{figure}
\end{document}
答案3
我建议你使用副标题包。此包提供了一种使用类似于 caption 包的工具的方法,用于为子图等编写标题。请参阅下面的代码和附图。
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{blindtext}
\usepackage{mwe}
\begin{document}
\blindtext
\begin{figure}[ht!]
\centering
\subcaptionbox{ Text1 \label{figA}}{\includegraphics[width=0.3\linewidth]{example-image-a}}
\subcaptionbox{ Text2 \label{figB}}{\includegraphics[width=0.3\linewidth]{example-image-a}}
\subcaptionbox{ Text3 \label{figC}}{\includegraphics[width=0.3\linewidth]{example-image-a}}
\caption{Text}
\label{AES:fig_MUE6_311}
\end{figure}
\end{document}
如果您想将第三张图片放在下一行,只需添加\newline
或更好\linebreak
:
\subcaptionbox{ Text1 \label{figA}}{\includegraphics[width=0.3\linewidth]{example-image-a}} \newline
\subcaptionbox{ Text2 \label{figB}}{\includegraphics[width=0.3\linewidth]{example-image-a}}
\subcaptionbox{ Text3 \label{figC}}{\includegraphics[width=0.3\linewidth]{example-image-a}}