Writing fractions using different syntax would sometimes be useful, instead of using \frac{ab}{cd}, I would prefer to write something like
\frac{ab⌂cd}
where the Unicode ⌂ is the }{.
n.b., I don't want to mess with the \frac definition, but rather something like \newcommand{\myfrac}[2]{#1⌂#2}
Approach-My understanding of TeX is limited, but I think I can use catcode to do this, My understanding is that:
\catcode `@=2is equivalent to}\catcode `@=1is equivalent to{
However just writing
\catcode`\⌂=\active
\def ⌂{ \catcode `@=2 \catcode `@=1 }
\def\myfrac#1⌂#2{\frac{#1}{#2}}. – Eddy_Em Jan 23 '13 at 07:05\myfrac25⌂{36}because\myfrac25⌂36would be displayed as(25/3)6. – bodo Jan 23 '13 at 07:12\myfrac. – Eddy_Em Jan 23 '13 at 07:16\catcode\⌂=13 \let⌂\over $ {1⌂2} $ \bye`? – morbusg Jan 23 '13 at 08:11