[XeTeX] \beginL and colour

Hans Hagen pragma at wxs.nl
Mon Nov 15 10:53:24 CET 2004


Jonathan Kew wrote:
> On 12 Nov 2004, at 7:38 pm, Adam Lindsay wrote:
> 
>> Hi Jonathan, all.
>>
>> I ran into what I think is a bug. It's an interaction between colour and
>> the \beginL \endL mechanism. I reduced it to this:
>>
>> \TeXXeTstate=1
>> \def\babble{Wa dfonbds kmkn doni don cspdsc mpw mcpi kljndf l dlkn dmnde
>> knds, fdwih kdfj dowk. Ifskn nods ods  cskc vif kldn conc lc -- mioefj 
>> dinj
>> dfnwo dnnks kw mxzlkw mdow. }
>> \babble \par
>> \beginR
>> \babble
>> \special{x:textcolor=FF0000}
>> hello there world
>> \special{x:textcolor=000000}
>> \babble
>> \endR \par
>> \babble
>> \end
>>
>>
>> Is this a bug, or a complete lack of understanding on my part of the 
>> model?
> 
> 
> Looks like a bug to me. I wonder why it does that........

because the specials end up in the wrong order; and ... there is no way that oen 
can automatically decide what to do unless it's made explicit (some things 
indeed need to change order, others don't)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the XeTeX mailing list