<--- On Feb 9, Hans Hagen wrote --->
Aditya Mahajan wrote:
Hi,
There was some discussion about this in the past (2002)
http://archive.contextgarden.net/message/20020117.124319.5d0f9b9e.en.html
which Hans concluded by saying
<quote> it should hook into processsynonym but in such a way that it does not break other code because synonyms are used (here) for more purposes then you want to know. </quote>
i've forgotten what thi sis supposed to do (what its' used for)
It basically saves the pain of typing \ or {} after all commands. Suppose I have \abbreviation {ABC} {Some abbreviation} As we know \ABC is an abbreviation. Notice that there is no \ or {} after \ABC. Normally tex will gobble this space. With xspace one can use something like \def\ABC{Some abbreviation\xspace} and it will intelligently decide whether to keep a space or not. Adding this feature will not effect existing documents. More details and deinition from xspace.dtx % |\xspace| should be used at the end of a macro designed to be used % mainly in text. It adds a space unless the macro is followed by % certain punctuation characters. % After |\newcommand{\gb}{Great Britain\xspace}|\\ % \newcommand{\gb}{Great Britain\xspace} % |\gb is a very nice place to live.|\\ % \gb is a very nice place to live.\\ % |\gb, a small island off the coast of France.|\\ % \gb, a small island off the coast of France. % % |\xspace| saves the user from having to type \verb*+\ + or |{}| after % most occurrences of a macro name in text. However if either of these % constructions follows |\xspace|, a space is not added by |\xspace|. % This means that it is safe to add |\xspace| to the end of an existing % macro without making too many changes in your document. % % Sometimes |\xspace| may make the wrong decision, and add a space when % it is not required. In these cases follow the macro with |{}|, as this % has the effect of suppressing the space. % % Note that this package must be loaded \emph{after} any language (or % other) packages that make punctuation characters `active'. \def\@xspace{% \ifx\@let@token\bgroup\else \ifx\@let@token\egroup\else \ifx\@let@token\/\else \ifx\@let@token\ \else \ifx\@let@token~\else \ifx\@let@token.\else \ifx\@let@token!\else \ifx\@let@token,\else \ifx\@let@token:\else \ifx\@let@token;\else \ifx\@let@token?\else \ifx\@let@token/\else \ifx\@let@token'\else \ifx\@let@token)\else \ifx\@let@token-\else \ifx\@let@token\@xobeysp\else \ifx\@let@token\space\else \ifx\@let@token\@sptoken\else \space \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi} -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008