I am looking for a filled-in version of the \diamond
(⬦) command. More specifically, I'd like a filled-in version that is
- the same size as
\diamond
, - centered vertically in the same way as
\diamond
.
I think the Unicode symbol I am looking for is 02B25 (⬥), but since I am not using XeLaTeX
, I couldn't find a way to load this symbol. I couldn't get \DeclareUnicodeCharacter
to do what I wanted it to do, but this may be due to my ignorance of how to use the command.
Note that the 'diamond' talked about in the accepted answer here is not what I'm looking for, as that diamond shape is different (⬧). There is an answer at the bottom of that page that seems to do what I want, but running that code gives me an error, as I commented there.
I tried the following ugly workaround:
\documentclass{article}
\usepackage{graphicx}
\usepackage{amssymb}
\newcommand{\blackdiamond}{\rotatebox[origin=c]{45}{$\vcenter{\hbox{$\scriptscriptstyle\blacksquare$}}$}}
\begin{document}
\[
\diamond \blackdiamond
\]
\end{document}
The result is close, but not exactly what I wanted, due to the resulting symbol being slightly larger.
I'm sure there must be a better way of shrinking the symbol down in a less hacky way than I did above, which should be more flexible to give what I want too.
\diamond
can be used without load amssymb or any other package.