![子浮动标题与页面不相符](https://linux22.com/image/236197/%E5%AD%90%E6%B5%AE%E5%8A%A8%E6%A0%87%E9%A2%98%E4%B8%8E%E9%A1%B5%E9%9D%A2%E4%B8%8D%E7%9B%B8%E7%AC%A6.png)
在我的论文中,我想在一页上显示 13 个图。由于最后一个图位于左侧,因此右侧有一些空间,我想将其用作标题。不知何故,标题位于图下方,并且部分被截断。我怎样才能让标题使用最后一个图的右侧。以下是代码和图
\begin{figure}[htbp]
%\centering
\subfloat[\tiny\textbf{Ip, 0.00kcal/mol}] {\label{fig:czar1p}\includegraphics[width=0.33\textwidth]{chap2/figs/czar1p.jpg}}
\subfloat[\tiny\textbf{IIp, 0.57kcal/mol}]{\label{fig:czar2p}\includegraphics[width=0.33\textwidth]{chap2/figs/czar2p.jpg}}
\subfloat[\tiny\textbf{IIn, 0.51kcal/mol}]{\label{fig:czar2n}\includegraphics[width=0.33\textwidth]{chap2/figs/czar2n.jpg}}
:
:
:
:
:
\subfloat[\tiny\textbf{VIIIn, 7.09kcal/mol}] {\label{fig:czar8n}\includegraphics[width=0.33\textwidth]{chap2/figs/czar8n.jpg}}\\
\caption{ The thirteen conformers of Cs\"{a}sz\"{a}r \cite{csaszar92} using MP2(full)/6- 311++G**. The nomenclature used here is adopted throughout this text for glycine. The representation p indicates that the heavy atom backbone C(=O)(CN)O is planar and n indicates they are nonplanar. The figure is the relative energy with respect to Ip}
\label{fig:czars}
\end{figure}
先感谢您。
答案1
我使用了一个简单的\parbox
来放置标题(我使用了demo
选项来graphicx
使我的示例可供所有人编译;请不要在实际代码中使用该选项):
\documentclass{book}
\usepackage[demo]{graphicx}
\usepackage{subfig}
\usepackage{caption}
\begin{document}
\begin{figure}[htbp] %
\subfloat[\tiny\textbf{Ip, 0.00kcal/mol}]{\label{fig:czar1p}\includegraphics[width=0.32\textwidth]{chap2/figs/czar1p.jpg}}\hfill
\subfloat[\tiny\textbf{IIp, 0.57kcal/mol}]{\label{fig:czar2p}\includegraphics[width=0.32\textwidth]{chap2/figs/czar2p.jpg}}\hfill
\subfloat[\tiny\textbf{IIn, 0.51kcal/mol}]{\label{fig:czar3n}\includegraphics[width=0.32\textwidth]{chap2/figs/czar2n.jpg}}\\
\subfloat[\tiny\textbf{Ip, 0.00kcal/mol}]{\label{fig:czar4p}\includegraphics[width=0.32\textwidth]{chap2/figs/czar1p.jpg}}\hfill
\subfloat[\tiny\textbf{IIp, 0.57kcal/mol}]{\label{fig:czar5p}\includegraphics[width=0.32\textwidth]{chap2/figs/czar2p.jpg}}\hfill
\subfloat[\tiny\textbf{IIn, 0.51kcal/mol}]{\label{fig:czar6n}\includegraphics[width=0.32\textwidth]{chap2/figs/czar2n.jpg}}\\
\subfloat[\tiny\textbf{Ip, 0.00kcal/mol}]{\label{fig:czar7p}\includegraphics[width=0.32\textwidth]{chap2/figs/czar1p.jpg}}\hfill
\subfloat[\tiny\textbf{IIp, 0.57kcal/mol}]{\label{fig:czar8p}\includegraphics[width=0.32\textwidth]{chap2/figs/czar2p.jpg}}\hfill
\subfloat[\tiny\textbf{IIn, 0.51kcal/mol}]{\label{fig:czar9n}\includegraphics[width=0.32\textwidth]{chap2/figs/czar2n.jpg}}\\
\subfloat[\tiny\textbf{Ip, 0.00kcal/mol}]{\label{fig:czar10p}\includegraphics[width=0.32\textwidth]{chap2/figs/czar1p.jpg}}\hfill
\subfloat[\tiny\textbf{IIp, 0.57kcal/mol}]{\label{fig:czar11p}\includegraphics[width=0.32\textwidth]{chap2/figs/czar2p.jpg}}\hfill
\subfloat[\tiny\textbf{IIn, 0.51kcal/mol}]{\label{fig:czar12n}\includegraphics[width=0.32\textwidth]{chap2/figs/czar2n.jpg}}\\
\subfloat[\tiny\textbf{VIIIn, 7.09kcal/mol}]{\label{fig:czar13n}\includegraphics[width=0.32\textwidth]{chap2/figs/czar8n.jpg}}\hfill
\parbox[b]{.6\textwidth}{\caption[caption for the LoF]{The thirteen conformers of Cs\"{a}sz\"{a}r \cite{csaszar92} using MP2(full)/6-311++G**. The nomenclature used here is adopted throughout this text for glycine. The representation p indicates that the heavy atom backbone C(=O)(CN)O is planar and n indicates they are nonplanar. The figure is the relative energy with respect to Ip}}
\label{fig:subfigures}
\end{figure}
\end{document}
编辑:我根据 Axel Sommerfeldt 的评论修改了我的代码。