[texhax] Soul + Babel + multiple languages conflict

Dmitrii Dimandt dmitriid at gmail.com
Thu Jul 31 10:04:06 CEST 2008

Hi all.

I'm using the excellent memoir class to typeset my document which is  
mostly in Russian

Reading through eye-opening and mind-boggling MemoirChapterStyles I  
decided to try and use one of the fancier styles (daleif1)

This, however, presented a problem.

The word "Chapter" is being automatically generated for each chapter.  
In Russian this word is "Глава". However, since Russian is  
included via babel, hyphenation rules are automatically applied to  
this word and soul fails with "Package soul Error: Reconstruction  
failed." and forms a black square after the chapter word

Since I really like the style, i would like to find a way to suppress  
hyphenation for this automatically generated word so that soul can  
work with it.

Is there way to do that?

Here's the code for the daleif1 style:

\newlength\dlf at normtxtw
\setlength\dlf at normtxtw{\textwidth}
\newsavebox{\feline at chapter}
\newcommand\feline at chapter@marker[1][4cm]{%
\sbox\feline at chapter{%
\heightof{\usebox{\feline at chapter}}+\depthof{\usebox{\feline at chapter}}}%
\raisebox{\depthof{\usebox{\feline at chapter}}}{\usebox{\feline at chapter}}%
\newcommand\feline at chm[1][4cm]{%
\sbox\feline at chapter{\feline at chapter@marker[#1]}%
\makebox[0pt][l]{% aka \rlap
\makebox[1cm][r]{\usebox\feline at chapter}%
\renewcommand\printchapternum{\null\hfill\feline at chm[2.5cm]\par}
\renewcommand\printchaptertitle[1]{\chaptitlefont\raggedleft ##1\par}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/texhax/attachments/20080731/f359cd72/attachment.html 

More information about the texhax mailing list