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

用法:行溢出与换行(强制断词的方法) #89

Open
zoushucai opened this issue Mar 28, 2021 · 2 comments
Open

用法:行溢出与换行(强制断词的方法) #89

zoushucai opened this issue Mar 28, 2021 · 2 comments

Comments

@zoushucai
Copy link

zoushucai commented Mar 28, 2021

您好,我用的是中英文混合排版,对于中文没有问题,可以英文有些地方不换行,怎么强制断词换行?请问有没有这种设置选项?

@hushidong
Copy link
Owner

换行是有tex的机制决定的,所以用tex的方式处理。参考如下方式:

 {
 %\hyphenation{Proce-edings}
 \hyphenpenalty=5000 %断词阈值, 值越大越不容易出现断词
 \tolerance=500 %丑度, 10000为最大无溢出盒子, 参考the texbook 第6章
 \hbadness=100 %如果丑度超过hbadness这一阀值, 那么就会发出警告
 \printbibliography[heading=subbibintoc,title=【参考文献】 ]
7 }

类似的问题参考:stone-zeng/fduthesis#183

@hushidong
Copy link
Owner

当然如果不想这么设置,可以手动的修改参考文献表的内容,在需要换行的位置加上-符号。

@hushidong hushidong changed the title 有没有强制断词的选项 用法:行溢出与换行(强制断词的方法) Sep 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants