When writing (co)homological grading, the command \bullet yields a bullet that is too big for my taste, see the example below. Therefore, I usually define a command \smallbullet as below. However, my construction should probably be made more robust using \mathpalette, using ideas similar to this and this. However, if you apply the constructions from these other solutions, you get a bullet with the wrong vertical position. What would be the best (and most robust) way to correct this in my case?
\documentclass{article}
\usepackage{graphicx}
\newcommand\smallbullet{%
\raisebox{-0.25ex}{\scalebox{1.2}{$\cdot$}}%
}
\begin{document}
$ H^{\bullet} $
$ H^{\smallbullet} $
\end{document}




%at the end of lines for math mode-only commands? I understand it for text mode commands where these spaces would actually matter, but not math mode commands. – Gaussler Sep 28 '20 at 11:32expl3, but I am unsure if there are ways to do things better with the new standards? I have posted it as a separate answer. Any comments are welcome.:-)– Gaussler Oct 03 '20 at 10:30\mathpaletteor\vcenter, I'm not sure I'd go forexpl3in this case. – egreg Oct 03 '20 at 10:34expl3package), would you do it this way? – Gaussler Oct 03 '20 at 10:36\hbox_set:Nn, say\gaussler_math_hbox_set:Nnn, where the first argument is the box register, the second argument a style selection and the third the material to set, so you can add to it\mathsurround=0ptwithout need to do it explicitly in the macro. Note that\__gaussler_bullet_auxiliary:Nnshould be protected as well. – egreg Oct 03 '20 at 10:42\smallbullet@? Anyway, why does it matter if it is used inside a robust command anyway? – Gaussler Oct 03 '20 at 10:45;-)– Gaussler Oct 03 '20 at 12:12