[XeTeX] No-Break Space

enrico.gregorio at univr.it enrico.gregorio at univr.it
Wed Mar 2 19:27:56 CET 2011


"Philip Taylor (Webmaster, Ret'd)" wrote:

> enrico.gregorio at univr.it wrote:
> 
> > You can try with
> >
> > \newunicodechar{·}{·\nobreak\hspace{0pt}}
> 
> Can you really use an instance of "·" within the
> \newunicodechar definition of "." ?

Yes. :-) The definition of \newunicodechar is essentially (only
some consistency checks are omitted here)

\def\newunicodechar#1#2{%
  \catcode`#1=\active
  \begingroup\lccode`\~=`#1
  \lowercase{\endgroup\protected\def~}{#2}}

What's in #2 has already been tokenized when the catcode of #1
is changed. Actually the catcode change might even be deferred
at a later moment. Of course I don't expect that anybody calls
\newunicodechar inside a group.

Ciao
Enrico

--
Enrico Gregorio          + Dipartimento di Informatica          + Tel: +39 045 8027937
Enrico.Gregorio at univr.it + Università degli Studi di Verona     +
(gregorio at math.unipd.it) + Strada le Grazie 15 / I-37134 Verona + Fax: +39 045 8027928




More information about the XeTeX mailing list