我正在使用 tufte-book documentclass。我只想能够在 marignfigure 的标题中写多个段落。如果我写这个
\documentclass{tufte-book}
\usepackage{graphicx}
\begin{document}
\begin{marginfigure}
\includegraphics[scale=0.5]{example-image-a}
\caption{This is a paragraph This is a paragraph This is a paragraph.
This should be another paragraph.
}
\end{marginfigure}
\end{document}
那么输出是
这显然是有缺陷的。
答案1
无法包含多个段落,但您可以插入换行符并获得所需的输出:
\documentclass{tufte-book}
\usepackage{graphicx}
\begin{document}
\begin{marginfigure}
\includegraphics[scale=0.5]{example-image-a}
\caption{This is a paragraph This is a paragraph This is a paragraph.\\
This should be another paragraph.
}
\end{marginfigure}
\end{document}