我尝试用标签给一些子图添加标题,但我也尝试稍微拉伸子图的文本。当我将这两段代码一起应用时,似乎会出现错误。有人能看出我做错了什么吗?
\documentclass[12pt, twoside]{report}
\usepackage{caption}
\usepackage{subcaption}
\captionsetup{font={stretch=1.3}} %This appears incompatable
\begin{document}
\begin{figure}
\begin{subfigure}{\linewidth}
\caption*{Unnumbered sub-image caption} %This appears incompatable
\end{subfigure}
\end{figure}
\end{document}
答案1
解决了。我忘了在开头添加包 {setspace}。
\documentclass[12pt, twoside]{report}
\usapackage{setspace}
\usepackage{caption}
\usepackage{subcaption}
\captionsetup{font={stretch=1.3}} %This appears incompatable
\begin{document}
\begin{figure}
\begin{subfigure}{\linewidth}
\caption*{Unnumbered sub-image caption} %This appears incompatable
\end{subfigure}
\end{figure}
\end{document}