On Wed, Oct 16, 2002 at 01:12:11PM +0300, Janne Kivijarvi wrote: > > So, is there a way (adding something to the preamble, tweaking a knob > somewhere in LyX settings etc) to make LyX substitute all my hyphens > (but not minuses in math mode, and I guess also --'s and ---'s) as the > TeX mode string "- upon conversion to .tex or just simply make LaTeX > hyphenate all words the way it ought to, without turning -'s into "-'s?
Maybe the following will code do that \catcode\-=\active \def-#1#2{\ifx-#1\ifx-#2\char'55\char'55\char'55% \else\char'55\char'55#2\fi% \else\nobreak\char'55\allowhyphens #1#2\fi} but it have some side effects (for example, you can put only one letter after an hyphen [althugh I think I can solve this problem]), so you better not use it. You can redefine \- (which you insert in lyx by pressing ctrl+'-') to behave like "- by adding \addto\extrasfinnish{\def\-{\nobreak-\bbl@allowhyphens}} to the preamble.