答案1
您可以将文本放入minipage
或中\parbox
。
\documentclass{article}
\usepackage{ulem}
\begin{document}
With \verb+minipage+:
\begin{minipage}[t]{150pt}
\uline{This a very long title just for demonstration so how to make it wrap automatically according to the fixed width}
\end{minipage}
\bigskip
With \verb+\parbox+:
\parbox[t]{200pt}{%
\uline{This a very long title just for demonstration so how to make it wrap automatically according to the fixed width}}
\end{document}