On Sun, 23 Nov 2003, Henrik Edlund wrote: > I would like to add the pseudo language "nohyphenation" to the LyX > drop-down so that I can mark certain words in my text as this language, > and hence get them no to break. > > How do I do this?
This is latex domain. If you really want to do this, you should start reading the lyx-path/language file and the different babel files in your latex distribution. > (I want to do this instead of \hyphenation because it makes it easier to > spot them in LyX window due to the blue line beneath them.) I suggest you use \hyphenation anyway :). It is cleaner and the right way... It also make the same word always break in the same place, or never break. To make hyphenation work without ERT try placing this in your /usr/local/share/lyx/layout/stdclass.layout file: #hypenation Style Hyphenation Margin static Latextype Command Latexname hyphenation ParSkip 0.4 ItemSep 0 TopSep 0 BottomSep 1 ParSep 1 Align Center AlignPossible Center Font Size Normal Shape Italic Color Blue EndFont End (Remember to reconfigure LyX) Then in your document choose the Hypenation "environment" from the list, before rthe word to be hyphenated, and add the words with the chosen hyphenation or without... And they are easy to spot as they as they are on a line all alone and in blue italics ;) Ingar