[XeTeX] Mysterious nonzero lastskip

Vadim Radionov vadim.radionov at gmail.com
Wed Dec 2 22:24:30 CET 2009

Ross, Jonathan,
Thank you for the hint to fix the problem and the explanation of what

Ross, your guess was right: I add small amount of glue around dash, but i
have to check if the dash occurs in the beginning of a paragraph or right
after display formula, that's why this lastskip check.  Actually, I also
shrink a little the em-dash according to russian typography:

\def—{\relax\ifdim\lastskip>0pt\unskip\nobreak\hskip.2em plus.1em
     \scalebox{.75}[1]\dash\hskip.2em plus.1em minus.05em\ignorespaces}

May be I'd better do it making use of \XeTeXinterchartoks, but I cannot
write a simple code without switchig  \XeTeXinterchartokenstate off here and
as long as I set non-empty \XeTeXinterchartoks 255 \cyrdash for the starting


On Wed, Dec 2, 2009 at 1:07 PM, Jonathan Kew <jfkthame at googlemail.com>wrote:

> On 2 Dec 2009, at 04:35, David M. Jones wrote:
>  Date: Tue, 1 Dec 2009 22:07:58 -0500
>>> From: dmj at ams.org
>> Earlier I wrote:
>>  I don't even begin to understand how OpenType fonts are integrated
>>> into XeTeX, so that's as far as I can go.
>> But on further reflection, why should I allow ignorance stop me from
>> speculating?
> There's something more than ignorance here :) .... your speculation looks
> pretty accurate to me! Thanks for the analysis.
> JK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20091203/b17ea126/attachment.html>

More information about the XeTeX mailing list