gpt4 book ai didi

latex - 两列 Latex 文档中带有一个标题的几个图形

转载 作者:行者123 更新时间:2023-12-05 08:08:19 25 4
gpt4 key购买 nike

我想要的是 Screen

我做的是:

\begin{figure}[H]
\makebox[\paperwidth]
{
\begin{subfigure}
\includegraphics[width=0.4\paperwidth]{1.jpeg}
\label{1}
\end{subfigure}
\begin{subfigure}
\includegraphics[width=0.4\paperwidth]{2.jpeg}
\label{2}
\end{subfigure}
} \par
\makebox[\paperwidth]
{
\begin{subfigure}
\includegraphics[width=0.4\paperwidth]{3.jpeg}
\label{3}
\end{subfigure}
\begin{subfigure}
\includegraphics[width=0.4\paperwidth]{4.jpeg}
\label{4}
\end{subfigure}
} \par
\caption{\label{pic-map} ...}
\end{figure}
\FloatBarrier

Box 似乎是将这四张图片放在两列中的唯一解决方案,但现在发生的情况是图片移动并与第二列重叠,而标题保留在第一列中: Pictures are shifted and overlapping the second column and the caption remains in the first column

遇到这种情况我该怎么办?

最佳答案

\begin{figure*}[]% [hpbt] what you need
\centering
\subfigure[]{%
\includegraphics[width=0.4\linewidth, height=0.3\textwidth]{gen_1_1.png}
\label{fig:gull}}
\subfigure[]{%{0.3\textwidth}
\includegraphics[width=0.4\linewidth, height=0.3\textwidth]{gen_1_1.png}
\label{fig:tiger}}
\subfigure[]{%
\includegraphics[width=0.4\linewidth, height=0.3\textwidth]{gen_1_1.png}}
\label{fig:gull}}
\subfigure[]{%{0.3\textwidth}
\includegraphics[width=0.4\linewidth, height=0.3\textwidth]{gen_1_1.png}
\label{fig:tiger}}
\caption{Pictures}\label{fig:animals}
\end{figure*}
\blindtext

将返回四个预期的图形和文本。

enter image description here

关于latex - 两列 Latex 文档中带有一个标题的几个图形,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49939254/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com