[XeTeX] linux libertine and number

Dominik Wujastyk wujastyk at gmail.com
Wed Dec 29 00:10:21 CET 2010


And we can dub this, um, let me see, ... ActiveteX.  :-)


2010/12/28 Philip Taylor (Webmaster, Ret'd) <P.Taylor at rhul.ac.uk>

>
>
> François Patte wrote:
>
>  Thanks for this answer. It is not too nice if you have to write:
>>
>> Multiply 5 by 7: $7\times 5 = 35$
>>
>
> Bonjour, François : is this perhaps the sort of
> thing you had in mind ?
>
> \documentclass {minimal}
> \usepackage {fontspec}
> \setmainfont {Linux Libertine O}
> \begin {document}
>
> Multiply 5 by 7: $7\times 5 = 35$
>
> \catcode `\5 = \active
> \catcode `\7 = \active
> \def 5{\ifmmode \string 5 \else $5$\fi}
> \def 7{\ifmmode \string 7 \else $7$\fi}
>
> Multiply 5 by 7: $7\times 5 = 35$
>
> \end {document}
>
> Obviously you can \catcode and \def all digits
> from zero to nine in a simple loop to cope with
> the general case.
>
> Philip TAYLOR
>
>
>
> --------------------------------------------------
> 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/20101229/6d2d6af8/attachment.html>


More information about the XeTeX mailing list