Redian新闻
>
怎样让单词不在换行时被打断, avoid hyphenation
avatar
怎样让单词不在换行时被打断, avoid hyphenation# TeX - TeX电子排版系统
q*t
1
How to avoid hyphenation for a single word?
请教一下, 记得好像有个简单办法能够强迫一个单词不在换行时被打断的。
急用,多谢了!!
设置\righthyphenmin,\lefthyphenmin 等变量我现在不能用。
avatar
f*h
2
\mbox{donotbreakthisword}

【在 q******t 的大作中提到】
: How to avoid hyphenation for a single word?
: 请教一下, 记得好像有个简单办法能够强迫一个单词不在换行时被打断的。
: 急用,多谢了!!
: 设置\righthyphenmin,\lefthyphenmin 等变量我现在不能用。

avatar
z*n
3
I guess this will make the content in \mbox out of
range.

【在 f********h 的大作中提到】
: \mbox{donotbreakthisword}
avatar
T*n
4
There is no need to mess around with the \...hyphenmin primitives.
They don't prevent hyphenation, but are used to set the minimum
letter count in each part of a hyphenated word.
As mentioned, \mbox{...} will work, but should be used as a last
resort.
The better solution is to use the \hyphenation command to teach
(La)TeX how to hyphenate a word. If you never want
"thisisalongword" to be hyphenated, just add
\hyphenation{thisisalongword}
and the word will not be hyphenated from that paragra

【在 q******t 的大作中提到】
: How to avoid hyphenation for a single word?
: 请教一下, 记得好像有个简单办法能够强迫一个单词不在换行时被打断的。
: 急用,多谢了!!
: 设置\righthyphenmin,\lefthyphenmin 等变量我现在不能用。

avatar
T*n
5
To avoid bad line breaks (that cause overfull \hbox'es or
other problems) in a paragraph, you can try
\begin{sloppypar}
This is a paragraph that would normally cause bad line
breaks
\end{sloppypar}
This relaxes the line breaking penalties, which might
lead to looser lines in the paragraph.

【在 z*****n 的大作中提到】
: I guess this will make the content in \mbox out of
: range.

avatar
q*t
6
Thanks for all for helping.
I finally used all the methods, \hyphenation, \mbox, \lefthyphenmin and \
righthyphenmin.
Test right a while for value setting.

【在 T*******n 的大作中提到】
: To avoid bad line breaks (that cause overfull \hbox'es or
: other problems) in a paragraph, you can try
: \begin{sloppypar}
: This is a paragraph that would normally cause bad line
: breaks
: \end{sloppypar}
: This relaxes the line breaking penalties, which might
: lead to looser lines in the paragraph.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。