Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

论文题目的bug #133

Closed
HouCAS opened this Issue Mar 27, 2019 · 3 comments

Comments

Projects
None yet
2 participants
@HouCAS
Copy link

HouCAS commented Mar 27, 2019

论文的英文题目稍长,不能自动换行的问题

@HouCAS HouCAS changed the title 题目 论文题目的bug Mar 27, 2019

@mohuangrui

This comment has been minimized.

Copy link
Owner

mohuangrui commented Mar 27, 2019

你好,英文题目是不能自动换行,按照范例给出的手动换行即可:

\TITLE{\LaTeX{} Thesis Template\\ of \\ The University of Chinese Academy of Sciences {$~^{\pi}\pi^{\pi}$}}% 论文英文题目
@HouCAS

This comment has been minimized.

Copy link
Author

HouCAS commented Mar 27, 2019

非常感谢!

@mohuangrui

This comment has been minimized.

Copy link
Owner

mohuangrui commented Mar 27, 2019

@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 上一个类似的问题,尝试进行了修正,应该是可以在大多数情况下正常自动换行了。

请测试更新版。

@mohuangrui mohuangrui closed this Mar 27, 2019

@mohuangrui mohuangrui reopened this Mar 27, 2019

@mohuangrui mohuangrui added the bug label Mar 27, 2019

@mohuangrui mohuangrui closed this Mar 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.