论文题目的bug
HouCAS opened this issue · 3 comments
HouCAS commented
论文的英文题目稍长,不能自动换行的问题
mohuangrui commented
你好,英文题目是不能自动换行,按照范例给出的手动换行即可:
\TITLE{\LaTeX{} Thesis Template\\ of \\ The University of Chinese Academy of Sciences {$~^{\pi}\pi^{\pi}$}}% 论文英文题目
HouCAS commented
非常感谢!
mohuangrui commented
@bowenhou 你好,这个问题比较复杂,根据 ulem 下划线宏包:
One important incompatibility with braces and macro replacement: All the text in braces or coming
from a macro is typeset in a box (as if in \mbox). Consequently, braces will suppress stretching and
line-breaking in the text they enclose. Moreover, the specially-handled commands \-, \\, \newline and
\linebreak are usually ignored if they appear inside extra braces. They operate only when the braces
delimit a command parameter without introducing a level of grouping. (Even though braces delimiting
command parameters do not normally imply grouping, many commands will add their own grouping.)
Thus, you should try to limit inner braces to short bits of text or for delimiting parameters to
commands.
即这个问题是由ulem宏包本身无法合理处理macro中的文本换行问题所造成的,根据 tex.se 上一个类似的问题,尝试进行了修正,应该是可以在大多数情况下正常自动换行了。
请测试更新版。