I would like to define a new division symbol similar to the bar "/" but which is a minus sign (-) rotated 45 degrees, in the same way \times
is a + rotated. I want it to have the same properties as the other arithmetic symbols (+,- and \times
), I mean, the same spacing etc.
What I have tried to do is the following.
% Inversa da multiplicação em anéis e grupos
\makeatletter
\providecommand{\newdiv}{%
\mathbin{
\hspace{-1.5pt}\mathpalette\@rotatinganeighth{-}\hspace{-1.5pt}
}
}
\newcommand*{\@rotatinganeighth}[2]{%
\rotatebox[origin=c]{45}{$\m@th#1#2$}%
}
\makeatother
The results seem fine, but I would like to have something "cleaner", I don't like the fact that I input the specific space \hspace{-1.5pt}
, I just wanted it to behave as a binary operation and, if possible, as an unary operation when there is no symbol before it (the same way the minus sign behaves).
\smallsetminus
fromamssymb
,