Text Formatting ⇒ no hyphentation for one word
no hyphentation for one word
I am using hyphenation for my document but I need to turn it off for some particular words (like POSIX or openVPN). I want to use it for the rest of the document but I want POSIX or openVPN to always "stick together". How can I achieve that?
thanks
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
no hyphentation for one word
Code: Select all
\hyphenation{posix openvpn}
Another way might be the manual one: to use \mbox{}:
Code: Select all
\mbox{POSIX}
\mbox{openVPN}
Code: Select all
\newcommand{\nohyph}[1]{\mbox{#1}}
\nohyph{POSIX}, \nohyph{openVPN} ...
no hyphentation for one word
Code: Select all
\hyphenation{openVPN}
\hyphenation{POSIX}
Code: Select all
\nohyphens{openVPN}

Follow howtoTeX on twitter
no hyphentation for one word
Re: no hyphentation for one word

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
no hyphentation for one word
Now that the problem is solved, please mark the topic (not the last post) accordingly.koszta5 wrote:thank you all […]
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10