[texhax] xspace
Disgusted of Tunbridge Wells
Disgusted at Royal-Tunbridge-Wells.Org
Fri Dec 8 23:28:08 CET 2006
Tom Sgouros wrote:
> My questions:
>
> o What token does the \xspace macro think is following it in a sentence
> like "The \tableref{mg} lists the elements..."
Presumably an e-group ("}"); that is what follows it in the definition ...
>
> o How can I persuade it to look at the token that follows the \tableref
> macro instead of whatever it's seeing?
By removing the superfluous grouping, or by placing it outside
of the group
>
> Incidentally, I do know that I could change \tableref to this, and it would work:
>
> \renewcommand{\tableref}[1]{\testref{#1}{User Guide}{Table~\ref{#1}}\xspace}
That is (I think) what I suggested above !
>
> But I'm still curious about what's going on in the other case. I can't
> explain it, so I'm apparently missing something I wish I understood better.
** Phil.
More information about the texhax
mailing list