[XeTeX] Mysterious nonzero lastskip

Vadim Radionov vadim.radionov at gmail.com
Tue Dec 1 23:33:50 CET 2009


Dear all,

Can you explain me the strange behaviour of this short TeX script:

% -*- tex-command: "xelatex" -*-
\documentclass{minimal}
\usepackage{xltxtra}

\let\dash—
\catcode`\—=\active
\def—{\ifdim\lastskip>0pt\message{!!!}\showthe\lastskip\fi\dash}

\begin{document}
This is a test.—
\end{document}

In my case (XeTeX, Version 3.1415926-2.2-0.9994.1 (Web2C 7.5.6); xltxtra
2008/07/29 v0.4) it executes the TRUE clause of \if with message, but shows
zero lastskip there.  But when I add a soft hyphen in "te\-st", \if
condition changes to FALSE, hence no message.

Without xltxtra, no message in both cases (with or without soft hyphen).

Vadim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20091202/c100bca2/attachment.html>


More information about the XeTeX mailing list