[texhax] abbrevs package: incorrect spacing

jtzzaa11-texhax1 at yahoo.com jtzzaa11-texhax1 at yahoo.com
Fri Nov 11 02:13:33 CET 2011


many thanks,
Joel.


________________________________
From: Paul Isambert <zappathustra at free.fr>
To: Joel T. <jtzzxx11 at yahoo.com>
Cc: TeX mailing list <texhax at tug.org>
Sent: Friday, 11 November 2011 12:54 AM
Subject: Re: [texhax] abbrevs package: incorrect spacing


Le 10/11/2011 09:02, Joel T. a écrit :
> Thanks for the prompt reply.
>
> "\@tempswatrue" to "\maybe at ictrue": did you mean
      \maybe at ictrue ?
>
> and
> "\if at tempswa" to "\ifmaybe at ic": is that \if at tempswa to
      \ifmaybe at ic ?

Yes. It got mangled into an email address somewhere along the way.

> Also, let's assume these changes are incompatible with some other
> packages. how can I set the conditional to be always false,
      namely, to
> never add that extra space?.

You'd better rewrite the internal macros to work properly; replace
    the
definition of \maybe at space@ (l.479-491 of abbrevs.sty) by:

\newif\if at abbrevs
\def\abbrevs at t@st at ic {%
 
    \expandafter\let\expandafter\reserved at b\expandafter=\reserved at a\relax
  \ifx\reserved at b\@let at token
    \@abbrevsfalse
    \@break at tfor
  \fi
}
\newcommand\maybe at space@ {%
  \@abbrevstrue
  \expandafter   \@tfor
    \expandafter \reserved at a
    \expandafter :%
    \expandafter =%
                 \nospacelist
                 \do \abbrevs at t@st at ic
  \if at abbrevs
    \space
  \fi
}

It does exactly the same thing, except things are rewritten to rely
    on
its own conditional (hence the rewriting of \t at st@ic into
    \abbrevs at t@st at ic).

Best,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20111110/4155ee6e/attachment.html>


More information about the texhax mailing list