[texhax] abbrevs package: incorrect spacing
Paul Isambert
zappathustra at free.fr
Thu Nov 10 16:54:37 CET 2011
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/1fd519d4/attachment.html>
More information about the texhax
mailing list