[XeTeX] Space characters and whitespace

enrico.gregorio at univr.it enrico.gregorio at univr.it
Wed Mar 2 22:07:04 CET 2011

Tobias Schoel wrote:

> So would it be wise to make for example u2009 (narrow space) and u202f 
> (narrow no break space) active and map it to {\,} or {\nolinebreak\,} 
> respectively?
> ciao
> Toscho
> Am 22.02.2011 23:00, schrieb enrico.gregorio at univr.it:
> [...]
> > See my message<http://tug.org/pipermail/xetex/2011-
> February/020100.html>> concerning U+00A0 (NO BREAK SPACE).

In (Xe)LaTeX, \, inserts a kern and TeX won't break a line at a kern unless
it's followed by glue (a normal space, usually). Thus you can get what you
want by


(with the real characters, of course). The newunicodechar package was
designed primarily in order to free the user from the need to consult long
code pages. Maybe I'll add the possibility to specify a character by code
point (in XeLaTeX, as with LaTeX there's already \DeclareUnicodeCharacter).


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