<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 1, 2016 at 6:10 AM, Hans Georg Schaathun <span dir="ltr"><<a href="mailto:georg+tex@schaathun.net" target="_blank">georg+tex@schaathun.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":126" class="a3s aXjCH m1582003301209c43">I tried to define an \sp macro in LaTeX, to do something like this:<br>
   \def\sp{\mathsf{span}}<br>
   \[ \sp\{x\} \]<br>
   \[ x^2 \]<br>
There is no problem with pdflatex, but evidently tex4ht uses \sp for<br>
something special.  The first formula gives a parser error in firefox,<br>
and the second is not the simple power that it should be.<br>
</div></blockquote></div><br></div><div class="gmail_extra">Unfortunately, latex.ltx (in the latex base) contains:  \let\sp=^<br><br></div><div class="gmail_extra">(Aside: I object to any markup that preempts one or two letter names thereby blocking user convenience usage of such names.)<br><br></div><div class="gmail_extra">In this case replacing \sp with \Sp works around the problem.<br><br></div><div class="gmail_extra">In principle, with LaTeX \newcommand should be used instead of \def and that should trap the prior usage.  But \renewcommand could then elude the prior usage and does so with pdflatex.  But, alas, \renewcommand does not get beyond this issue with tex4ht, which I think must be a bug.<br><br></div><div class="gmail_extra">                 -- Bill<br><br>--- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">William F Hammond<br>Email: <a href="mailto:gellmu@gmail.com" target="_blank">gellmu@gmail.com</a><br><a href="https://www.facebook.com/william.f.hammond" target="_blank">https://www.facebook.com/william.f.hammond</a><br><a href="http://www.albany.edu/~hammond/" target="_blank">http://www.albany.edu/~hammond/</a><br><br></div></div>
</div></div>