<div dir="ltr">Hi Phil<div><br></div><div>[off-topic]</div><div><br></div><div>This reminds me of a memory, around 1990 probably. Pre-internet days. I had a problem I could not solve. I phoned you and asked how I would do a loop for a particular problem. You said you had some students just coming in but off the top of your head dictated a macro with \loop...</div><div><br></div><div>On the phone I tried it on my Mac Plus and it worked!!</div><div><br></div><div>Some things don't change. ;-)</div><div><br></div><div><div>Regards</div><div>Kaveh</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 October 2016 at 17:24, Philip Taylor <span dir="ltr"><<a href="mailto:P.Taylor@rhul.ac.uk" target="_blank">P.Taylor@rhul.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
But now that the cat has got off and I am wearing the right glasses,
I can confirm that my suggestion does not work as-is; even when
\futurelet has changed \nexttoken into the character '*', the \ifx
fails, for reasons that temporarily escape me ...<br>
<br>
<blockquote type="cite">{changing \nextoken=the letter a}
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">{into
\nextoken=the character *}</p>
</blockquote>
<blockquote type="cite">\treatasteriskspecially -> \ifx
*\nexttoken \item \else \char `\* \fi
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">{blank
space }</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">{\ifx:
(level 1) entered on line 7}</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">{false}</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">{\else:
\ifx (level 1) entered on line 7}</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">{\char}</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">{\fi: </p>
</blockquote><span class="">
<br>
<br>
<div>Philip Taylor wrote:<br>
</div>
<blockquote type="cite">
<pre> \def \treatasteriskspecially { \ifx *\nexttoken \item \else \char `\* \fi}
\catcode `\^^M = \active \def ^^M{\futurelet \nextoken \treatasteriskspecially}</pre>
</blockquote>
<br>
</span><span class="HOEnZb"><font color="#888888"><div>-- <br>
<img src="cid:part1.D0942B15.5E081709@Rhul.Ac.Uk"><br>
Philip Taylor</div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" rel="noreferrer" target="_blank">http://www.tex.ac.uk/faq</a><br>
Mailing list archives: <a href="http://tug.org/pipermail/texhax/" rel="noreferrer" target="_blank">http://tug.org/pipermail/<wbr>texhax/</a><br>
More links: <a href="http://tug.org/begin.html" rel="noreferrer" target="_blank">http://tug.org/begin.html</a><br>
<br>
Automated subscription management: <a href="http://tug.org/mailman/listinfo/texhax" rel="noreferrer" target="_blank">http://tug.org/mailman/<wbr>listinfo/texhax</a><br>
Human mailing list managers: <a href="mailto:postmaster@tug.org">postmaster@tug.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr" style="color:rgb(136,136,136);font-size:12.8000001907349px">Kaveh Bazargan </div><div dir="ltr"><font color="#888888"><span style="font-size:12.8000001907349px">Director</span></font><br><div style="color:rgb(136,136,136);font-size:12.8000001907349px">River Valley Technologies</div><div style="color:rgb(136,136,136);font-size:12.8000001907349px">@kaveh1000<br>+44 7771 824 111</div><div style="color:rgb(136,136,136);font-size:12.8000001907349px"><font color="#000000"><a href="http://www.rivervalleytechnologies.com/" style="color:rgb(17,85,204)" target="_blank">www.rivervalleytechnologies.com</a></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>