Closed quantenzitrone closed 2 years ago
that is just standard tex syntax: you can have multiple characters of catcode 11 (letter) or a single characer. You can define \=
but not \==
It is not related to Unicode.
Oh, ok thanks.
This works:
\catcode`∫=11
\newcommand{\∫}{\int}
\newcommand{\∫∫}{\iint}
\newcommand{\∫∫∫}{\iiint}
\newcommand{\o∫}{\oint}
\begin{document}
\catcode`∫=11
$$ \∫_{i=1}^{5} x^2 $$
$$ \o∫_{i=1}^{5} x^2 $$
$$ \∫∫_{i=1}^{5} x^2 $$
$$ \∫∫∫_{i=1}^{5} x^2 $$
\end{document}
thanks again!
Another option is to use a keyboard that has these symbols: ∑∫∮∬ for instance are available in the BÉPO keyboard on the “scientific deadkey” + all 4 standard combinations with the “s” key. ;)
Description
Using Unicode characters in \newcommand is limited to one character.
Add info or delete as appropriate:
Minimal example demonstrating the issue
works, but
doesn't work.