<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>many thanks,</span></div><div><span>Joel.</span></div><div><br></div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Paul Isambert <zappathustra@free.fr><br><b><span style="font-weight: bold;">To:</span></b> Joel T. <jtzzxx11@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b> TeX mailing list <texhax@tug.org><br><b><span style="font-weight: bold;">Sent:</span></b> Friday, 11 November 2011 12:54 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [texhax] abbrevs package: incorrect spacing<br></font><br><div id="yiv211820473">
<div>
Le 10/11/2011 09:02, Joel T. a écrit :<br>
<span style="white-space:pre;">> Thanks for the prompt reply.<br>
><br>
> "\@tempswatrue" to "\maybe at ictrue": did you mean
\maybe@ictrue ?<br>
><br>
> and<br>
> "\if at tempswa" to "\ifmaybe at ic": is that \if@tempswa to
\ifmaybe@ic ?</span><br>
<br>
Yes. It got mangled into an email address somewhere along the way.<br>
<br>
<span style="white-space:pre;">> Also, let's assume these
changes are incompatible with some other<br>
> packages. how can I set the conditional to be always false,
namely, to<br>
> never add that extra space?.</span><br>
<br>
You'd better rewrite the internal macros to work properly; replace
the<br>
definition of \maybe@space@ (l.479-491 of abbrevs.sty) by:<br>
<br>
\newif\if@abbrevs<br>
\def\abbrevs@t@st@ic {%<br>
\expandafter\let\expandafter\reserved@b\expandafter=\reserved@a\relax<br>
\ifx\reserved@b\@let@token<br>
\@abbrevsfalse<br>
\@break@tfor<br>
\fi<br>
}<br>
\newcommand\maybe@space@ {%<br>
\@abbrevstrue<br>
\expandafter \@tfor<br>
\expandafter \reserved@a<br>
\expandafter :%<br>
\expandafter =%<br>
\nospacelist<br>
\do \abbrevs@t@st@ic<br>
\if@abbrevs<br>
\space<br>
\fi<br>
}<br>
<br>
It does exactly the same thing, except things are rewritten to rely
on<br>
its own conditional (hence the rewriting of \t@st@ic into
\abbrevs@t@st@ic).<br>
<br>
Best,<br>
Paul<br>
<br>
</div>
</div><br><br></div></div></div></body></html>