[XeTeX] XeTeXcharclass and '\texttrademark'

Michael Joyner michael at newsrx.com
Mon May 9 20:53:34 CEST 2011


Hello and help!

I am trying to setup a custom negative kerning setting for the following
letter pairs: ™. and ™, so that the . and the , are under the ™.

Here is my code fragment, but I can't figure how to tell it to also consider
'\texttrademark' as part of the charclass.

\XeTeXinterchartokenstate=1
\newXeTeXintercharclass \pAfterTM
\XeTeXcharclass `. \pAfterTM
\XeTeXcharclass `, \pAfterTM
\newXeTeXintercharclass \ptrademark
\XeTeXcharclass `™ \ptrademark
\XeTeXcharclass `\texttrademark \ptrademark
\XeTeXinterchartoks \ptrademark \pAfterTM = {\kern-0.75em}

Thanks for any suggestions!

-Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20110509/d26ac2a5/attachment.html>


More information about the XeTeX mailing list