[luatex] letterspacing in LuaTeX

Pablo Rodríguez oinos at web.de
Mon Jul 26 23:04:21 CEST 2010


On 07/26/2010 11:04 AM, Ulrike Fischer wrote:
> \documentclass[10pt]{book}
> \usepackage{soul}
> \makeatletter
> \showboxdepth=100
> \def\SOUL at analyze{{%
>      \setbox\z@\vbox{%
>          \unvcopy\z@
>          \unskip
>          \unpenalty
>         \global\setbox\@ne=\lastbox}%
>      \showbox\@ne  %show box @ne
>      \ifvoid\@ne
>      \else
>          \setbox\@ne\hbox{\unhbox\@ne}%
>          \SOUL at syllgoal=\wd\@ne
>          \showthe\SOUL at syllgoal %show goal
>          \advance\count@\@ne
>          \SOUL at analyze
>          \SOUL at syllwidth\z@
>          \SOUL at syllable={}%
>          \ifnum\count@>\z@
>              \advance\SOUL at syllgoal-\SOUL at ttwidth
>              \SOUL at dosyllable
>              \SOUL at getkern{\the\SOUL at lasttoken}{\SOUL at hyphkern}%
>                  {\SOUL at sethyphenchar}%
>              \SOUL at everyhyphen
>          \else
>              \SOUL at dosyllable
>          \fi
>      \fi
> }}
>
> \begin{document}
> This is only a \so{a}.
> \end{document}

Thanks for your in-depth explanation, Ulrike, but I'm afraid I don't 
understand a word (sorry, but it is too complicated for me).

My LuaTeX version is beta-0.60.2-2010071217 (TeX Live 2010) (rev 3736).

BTW, is the sample document above supposed to work. (I'm afraid it doesn't.)

Thanks for your help,


Pablo


More information about the luatex mailing list