[XeTeX] XeTeXcharclass and '\texttrademark'

Andrew Moschou andmos at gmail.com
Tue May 10 04:20:30 CEST 2011


Just make sure that \texttrademark is defined as ™ like this:
\renewcommand\texttrademark{™}.


On 10 May 2011 04:23, Michael Joyner <michael at newsrx.com> wrote:

> 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
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20110510/ccaf7ae1/attachment.html>


More information about the XeTeX mailing list