I am looking for a symbol which exactly looks like \lhd
, except that the inner is filled.
Note: We have\blacktriangleleft
, but the shape is different.
I used detexify, but didn't find a suitable symbol.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityWith amssymb
, \lhd
and \blacktriangleleft
have the same shape.
\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage{xcolor}
\begin{document}
${\lhd}{\blacktriangleleft}$
${\blacktriangleleft}{\lhd}$
\makebox[0pt][l]{\color{red}${\lhd}$}%
${\blacktriangleleft}$
\makebox[0pt][l]{\color{red}${\blacktriangleleft}$}%
${\lhd}$
\makebox[0pt][l]{${\lhd}$}%
\textcolor{red}{${\blacktriangleleft}$}
\makebox[0pt][l]{${\blacktriangleleft}$}%
\textcolor{red}{${\lhd}$}
\sbox0{$\lhd$}\the\wd0\ \the\ht0\ \the\dp0
\sbox0{$\blacktriangleleft$}\the\wd0\ \the\ht0\ \the\dp0
\end{document}
Remember, though, that \lhd
is a binary operation symbol; if you want to use the glyph as a relation symbol, do something like
\newcommand{\lhdrel}{\mathrel\lhd}
and use \lhdrel
(any name is good, of course).
amsfonts
, the size and the shape of \lhd
and \blacktriangleleft
became the same.
\triangleleft
instead of\lhd
to match the filled version.