![子图标题中的换行符](https://linux22.com/image/279099/%E5%AD%90%E5%9B%BE%E6%A0%87%E9%A2%98%E4%B8%AD%E7%9A%84%E6%8D%A2%E8%A1%8C%E7%AC%A6.png)
我想在标题中添加换行符subfigure
:
\begin{figure}
\subfigure[a long line]{%
\includegraphics[width=0.23\textwidth]{figures/cells_time.eps}
}
\end{figure}
所以我想在里面的特定位置添加换行符a long line
,有人知道怎么做吗?
答案1
自动换行;如果你想强制换行,请使用
\protect\\
例子:
\documentclass{article}
\usepackage{graphicx}
\usepackage{subfigure}
\begin{document}
\begin{figure}
\subfigure[A long line\protect\\ and another]{%
\includegraphics[width=0.23\textwidth]{example-image}%
}
\end{figure}
\end{document}
请注意subfigure
已经过时好几年了。请使用其后继版本subfig
或更现代、更强大的subcaption
。