LyXHyphenation Point inside the ERT Box

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
auvajs
Posts: 22
Joined: Wed Dec 21, 2011 11:21 pm

Hyphenation Point inside the ERT Box

Post by auvajs »

I have not managed to insert a hyphenation point ("Ctrl"+"-") into a word that is inside the ERT Box

Code: Select all

\usepackage{babel}
\usepackage[usenames,dvipsnames]{xcolor}
\textcolor{Plum}{NEJVYŠŠÍ}
and LyX doesn't hyphenate the word properly.

So I tried

Code: Select all

\hyphenation{NEJ-VYŠ-ŠÍ}
in the preamble but LyX probably doesn't like those characters (š) so it ended with an error:

Code: Select all

 \hyphenation{NEJ-VYŠ
                          -ŠÍ}
Hyphenation exceptions must contain only letters
and hyphens. But continue; I'll forgive and forget.
So - how to do it? I need to set-up my own hyphenation for a specific word with some punctuation characters and let it be used within a ert box...

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post Reply