Does anyone know the name of this rotated, filled in, black square symbol?
Asked
Active
Viewed 587 times
1 Answers
1
Some packages (e.g., txfonts) change many symbols. One possibility is to use amssymb and rotate the \blacksquare symbol using \rotatebox from the graphicx package.
Depending on whether you're using the symbol as a relation, operation or ordinary symbol, you can use the following:
\documentclass{article}
\usepackage{amssymb,graphicx}
\newcommand{\blackdiam}{\rotatebox[origin=c]{45}{$\blacksquare$}}
\begin{document}
$a\blackdiam b$
$a\mathbin{\blackdiam}b$
$a\mathrel{\blackdiam}b$
\end{document}
Of course you can include the \mathbin or \mathrel in the macro. You can also use \mathchoice or \mathpalette so your symbol can be used in \scriptstyle or \scriptscriptstyle.
Sandy G
- 42,558


\blackdiamond(mathabx),\filleddiamond(MnSymbol),\Diamondblack(txfonts),\FilledDiamondshape(ifsym),\FilledBigDiamondshape(ifsym),\DiamondSolid(bbding) – Steven B. Segletes Mar 23 '19 at 23:09amssymbandgraphicx:\rotatebox[origin=c]{45}{$\blacksquare$}– Sandy G Mar 23 '19 at 23:20stixfonts have this in several sizes:\mdlgbkldiamond,\mdblkdiamond,\smblkdiamond. All are "ordinary" characters, but can be assigned another class. – barbara beeton Mar 24 '19 at 02:40fontspecandunicode-math. – Davislor Mar 24 '19 at 03:34