[XeTeX] fontspec and tabularx (was: Colored Arabic in Tables)

Ross Moore ross at ics.mq.edu.au
Fri Mar 13 06:45:51 CET 2009

Hi Will,

On 13/03/2009, at 4:21 PM, Will Robertson wrote:

> On 2009-03-13 14:48:16 +1030, Ross Moore
> <ross at ics.mq.edu.au> said:
>> The problem is due to your use of LaTeX's \newcounter macro.
>> As well as doing the obvious thing of establishing a counter,
>> it also adds the counter name to a list macro:  \cl@@ckpt
>> which allows coding in packages to do things to all the counters
>> that have been defined.
> Ah, jeez, it's so simple :)

Isn't it always?    :-)

> I never knew about this internal feature of LaTeX's counters.

Presumably it is used with multi-chapter documents
via the  \include   mechanism, whereby all counter values
are written out into a .aux file for each \include'd portion.

This might have the potential to wreak havoc with font-instances,
if an author is adding attributes willy-nilly inside different
portions. I'm sure you can think up a scenario.
It's a wonder this kind of thing hasn't been observed and
reported yet!

> Many thanks for the help; I've updated the development version here:
>   <http://github.com/wspr/fontspec/tree/master>
> I'll make sure it gets into TeXLive 2009.


> Cheers,
> Will



Ross Moore                                       ross at maths.mq.edu.au
Mathematics Department                           office: E7A-419
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114

More information about the XeTeX mailing list