我尝试使用 subfigure 将两个图形放在一起,但不幸的是 LaTeX 将它们放在了右边。我过去常常hspace
缩小它们之间的间距,结果导致标题混乱。所以我认为解决方案可能是更改行的长度,使标题行自动换行。
\begin{figure}[~hbt]
\subfigure[Nonuniform distribution of points on sphere when the $n$-spherical coordinates are uniformly chosen from related intervals]
{
\includegraphics[scale=0.4]{sphere}
}
\hspace{-3em}
\subfigure[Nonuniform distribution of points on cube when the points on left figure has been transformed using the mentioned diffeomorphism]
{
\includegraphics[scale=0.4]{cube}
}
\end{figure}
任何其他解决方案也受到欢迎。
答案1
这是一个使用该subcaption
包的解决方案(该subfigure
包已被弃用)。
\documentclass{article}
\pagestyle{empty}% for cropping
\usepackage{subcaption}
\usepackage[demo]{graphicx}
\begin{document}
\begin{figure}[hbt]
\begin{subfigure}[t]{.45\linewidth}
\centering
\includegraphics[scale=0.4]{sphere}
\caption{Nonuniform distribution of points on sphere when the $n$-spherical coordinates are uniformly chosen from related intervals}
\end{subfigure}
\hspace{.06\linewidth}
\begin{subfigure}[t]{.45\linewidth}
\centering
\includegraphics[scale=0.4]{cube}
\caption{Nonuniform distribution of points on cube when the points on left figure has been transformed using the mentioned diffeomorphism}
\end{subfigure}
\caption{Caption for the overall figure}
\end{figure}
\end{document}