调整框标题中的换行符

调整框标题中的换行符

调整框的标题中可以有段落分隔符或换行符吗?

\\ \newline似乎\tabularnewline不起作用。谢谢

\documentclass{article}
\usepackage{adjustbox}

\begin{document}

\begin{adjustbox}{width=\textwidth,totalheight=\textheight,keepaspectratio,rotate=0,caption={blah \\ blah},float=table}
BLAH BLAH BLAH
    \end{adjustbox}

\end{document}

答案1

加载字幕包:

\documentclass{article}
\usepackage{caption}
\usepackage{adjustbox}

\begin{document}
\begin{figure}
\caption{abc\\abc}
\end{figure}

\begin{adjustbox}{width=\textwidth,totalheight=\textheight,keepaspectratio,rotate=0,
caption={blah \\ blah},float=table}
BLAH BLAH BLAH
\end{adjustbox}

\end{document}

相关内容