Is it possible to write a new command/macro in infix syntax instead of prefix syntax; especially I'd like to have this for $\frac{a}{b}$.
I use LuaLaTeX and with \newunicodechar{‾}{\overline} I can write ‾{blah} and this is expanded to \overline{blah}. Analogously I'd like to have $\frac{a}{b}$ to be something like {a}➗{b} or a÷b which would be much more readable.
\lastbox(not in math mode, however), but seemingly this doesn't work with single characters, only with "explicit" boxes. I am not sure, however, whether similar things couldn't be possible in LuaTeX-it's quite possible that you could use some lua trickery to retrieve a few last tokens (digits, for instance). Still, it is highly non-standard and would imho qualify for Appendix D of "The LuaTeXbook" (if it ever gets written) ;). – mbork Dec 18 '11 at 17:23