[Tex/LaTex] How to get a black hexagon symbol

symbols

I am looking for a filled version of \hexagon.

I found \Steelhexagon from "marvosym", but in the template that I am using it seems to render as an arrow and I get conflicts because of other symbols in "marvosym". I wonder if there is a black hexagon symbol in a more common latex package.

Best Answer

As for most unicode symbols, there are filled hexagons in the STIX font.

They can be imported without importing the whole font.

\documentclass{article}
\DeclareFontEncoding{LS1}{}{}
\DeclareFontSubstitution{LS1}{stix}{m}{n}
\DeclareSymbolFont{symbols4}{LS1}{stixbb}{m}{it}
\DeclareMathSymbol{\varhexagonblack}{\mathord}{symbols4}{"DD}
\DeclareMathSymbol{\hexagonblack}   {\mathord}{symbols4}{"DE}
\begin{document}
\verb|\hexagonblack|: \( \hexagonblack \)

\verb|\varhexagonblack|: \( \varhexagonblack \)
\end{document}