diff options
Diffstat (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-wdnohyph.html')
-rw-r--r-- | Master/texmf-doc/doc/english/FAQ-en/html/FAQ-wdnohyph.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-wdnohyph.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-wdnohyph.html new file mode 100644 index 00000000000..69af7d9e2c1 --- /dev/null +++ b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-wdnohyph.html @@ -0,0 +1,34 @@ +<head> +<title>UK TeX FAQ -- question label wdnohyph</title> +</head><body> +<h3>Preventing hyphenation of a particular word</h3> +<p>It's quite possible for (<em>any</em>) hyphenation of a particular word +to seem "completely wrong", so that you want to prevent it being +hyphenated. +<p>If the word occurs in just one place, put it in a box: +<pre> + \mbox{oddword} +</pre> +(Plain TeX users should use <code>\</code><code>hbox</code>, and take care at the start +of paragraphs.) However, boxing the word is not really advisable +unless you are sure it only occurs once. +<p>If the word occurs commonly, the best choice is to assert a +non-hyphenation for it: +<pre> + \hyphenation{oddword} +</pre> +This hyphenation exception (with no break points) will be used in +preference to what TeX's hyphenation algorithm may come up with. +<p>In a multilingual document, repeat the exception specification for +each language the word may appear in. So: +<pre> + \usepackage[french,english]{babel} + \selectlanguage{english} + \hyphenation{oddword} + \selectlanguage{french} + \hyphenation{oddword} +</pre> +(note that <i>babel</i> will select the default language for the +document - English, in this case - at <code>\</code><code>begin{document}</code>.) +<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=wdnohyph">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=wdnohyph</a> +</body> |