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

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

Post Reply