2

I need to underline some text and hope the text automatically wrap at then end of the line.

see Why does underlined text not get wrapped once it hits the end of a line ?

The \uline works with texlive2020

However, after upgraduated to texlive2021, it doesn't work anymore.


Update:

I found that it's about Chinese characters。

A simple example (xelatex test.tex test.pdf):

\documentclass[a4paper,12pt,fontset=windows]{article}
\RequirePackage[normalem]{ulem}
\RequirePackage{ctex}

\begin{document}

\begin{tabular}{ll} fffffffffffffff & \parbox[t]{14em}{\uline {中文中文中文中文中文中文中文中文中文中 文中文中文中文中文中文中文中文中文中文中文中文中文中文}} \ fffffffffffffff & \parbox[t]{14em}{\uline {english englishenglish englishenglish englishenglish englishenglish englishenglish englishenglish englishenglish englishenglish englishenglish englishenglish englishenglish englishenglish englishenglish english}} \ \end{tabular}

\end{document}

in texlive 2020, it's:

enter image description here

However in texlive 2021, it's:

enter image description here

0 Answers0