0

This question already has an answer here:

Does anyone know the name of this rotated, filled in, black square symbol?

enter image description here

marked as duplicate by siracusa, marmot, Kurt, JouleV, Raaja Mar 24 at 6:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

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}

enter image description here

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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.