q******t 发帖数: 50 | 1 How to avoid hyphenation for a single word?
请教一下, 记得好像有个简单办法能够强迫一个单词不在换行时被打断的。
急用,多谢了!!
设置\righthyphenmin,\lefthyphenmin 等变量我现在不能用。 |
f********h 发帖数: 149 | 2 \mbox{donotbreakthisword}
【在 q******t 的大作中提到】 : How to avoid hyphenation for a single word? : 请教一下, 记得好像有个简单办法能够强迫一个单词不在换行时被打断的。 : 急用,多谢了!! : 设置\righthyphenmin,\lefthyphenmin 等变量我现在不能用。
|
z*****n 发帖数: 7639 | 3 I guess this will make the content in \mbox out of
range.
【在 f********h 的大作中提到】 : \mbox{donotbreakthisword}
|
T*******n 发帖数: 493 | 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 等变量我现在不能用。
|
T*******n 发帖数: 493 | 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.
|
q******t 发帖数: 50 | 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.
|