I'm looking for the symbol that's similar to \cdot in math mode, but instead of a small circle, it's a square. Like this:
[Tex/LaTex] Square version of \cdot (small black square)
amsmathmath-modesymbols
Related Question
- [Tex/LaTex] this symbol consisting of a horizontal line crossed by a rotated vertial line
- [Tex/LaTex] How to put a character inside a square
- [Tex/LaTex] Left – Right ‘Double’ curly brace (Blackboard bold) symbol
- [Tex/LaTex] How to typeset a small black square as a binary operator
- [Tex/LaTex] Circle symbol compatible with \square and \triangle
Best Answer
There are several ways for doing this. One idea could be
\centerdot
fromamssymb
, but this has the defect of sitting on the baseline, despite its name.One can fix this by observing that the apparent height of the glyph is three times the real height. So smashing the height to one third and using
\vcenter
will raise the symbol up to the formula axis.Second way: import
\sqbullet
from themathabx
fonts.One could avoid wasting a symbol font with the help of
\text
:Both examples typeset the same
For using the glyph in the MnSymbol font, it is similar:
Take your pick.