[luatex] letterspacing in LuaTeX

Ulrike Fischer luatex at nililand.de
Tue Jul 27 10:15:19 CEST 2010


Am Mon, 26 Jul 2010 23:10:39 +0200 schrieb Pablo Rodríguez:


>> \documentclass[10pt]{book}
>> \usepackage{soul}
>> \makeatletter
>> \showboxdepth=100
>> \def\SOUL at doword{%
>>      \edef\x{\the\SOUL at word}%
>>      \ifx\x\empty
>>      \else
>>          \SOUL at buffer={}%
>>          \setbox\z@\vbox{%
>>              \SOUL at tt
>>              \hyphenchar\font`\-
>>              \hfuzz\maxdimen
>>              \hbadness\@M
>>              \pretolerance\m at ne
>>         %     \tolerance\@M %<--------------
>>              \leftskip\z@
>>              \rightskip\z@
>>              \hsize1sp
>>              \everypar{}%
>>              \parfillskip\z@\@plus1fil
>>              \hyphenpenalty-\@M
>>              \noindent
>>              \hskip\z@
>>              \relax
>>              \the\SOUL at word}%
>>          \showbox\z@    %<------show
>>          \let\SOUL at errmsg\SOUL at error
>>          \let\-\relax
>>          \count@\m at ne
>>          \SOUL at analyze
>>          \SOUL at word={}%
>>      \fi
>> }
>>
>>
>> \begin{document}
>> \so{a}
>> \end{document}


> If the above document is supposed to work, I'm afraid it doesn't.

Well _this_ document is meant to work in the sense the \so doesn't
give an error. But it will not run unattended as it will stop at the
\showbox\z@ and wait that you hit "enter". And I also don't know
what removing the \tolerance setting means to soul. Probably it will
find less break points. 

The other document wasn't meant to work, it should only show the
content of the boxes involved.


-- 
Ulrike Fischer 



More information about the luatex mailing list