4 tools/3747: xspace doesn't work with babel
6 Description of bug: All tests inside \@xspace fail when the
7 characters are active so using xspace in conjunction with babel is
8 great fun. As an example, using "!" after a command using \xspace in
9 French works because "!" starts with \unskip, but when switching to
10 English you get a space before the "!".
13 This version runs *without* eTeX as compiler.
15 The logfile should show xspace not inserting a space in all the
16 cases except for |\Gb a| and |\GB \textbf{a}|. The seven tokens
17 ";:?!,'-" are recognized both when active and when having category
24 \documentclass{article}
26 \AUTHOR{Morten H\o gholm}
27 \PACKAGE{xspace v1.08 Space after command names (DPC,MH)}
30 \usepackage[T1]{fontenc}
33 \let\eTeXversion\@undefined
36 \newcommand*\GB{x\xspace}
37 \newcommand*\GBi[1]{#1\xspace}
50 % ,.'/?;:!~-)\ \/\bgroup\egroup\@sptoken\space\@xobeysp
51 % \footnote\footnotemark
67 \GB\footnotemark{} a \\
87 \xspaceaddexceptions{\textbf}
89 \xspaceremoveexception{\textbf}