您可以将 的参数\section*
放在\mbox
:
就我个人而言,我认为在这里取消换行不是一个好主意。相反,我建议重写(即缩短)的参数\section*
。
\documentclass{article}
\begin{document}
\hrule % just to illustrate width of textblock
\section*{\mbox{A rather long title that I would prefer on one line}}
\hrule
\end{document}