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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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