Is there a way to write the symbol "lower or equal" with a dot directly after it? Just like \lessdot but with the horizontal line added. Would be awesome if someone can tell me. I didn't find it after a long search.
2 Answers
\documentclass{article}
\usepackage{amssymb,stackengine}
\newcommand\ledot{\mathrel{\ensurestackMath{%
\stackengine{-.5ex}{\lessdot}{-}{U}{c}{F}{F}{S}}}}
\begin{document}
$a\ledot b$
\end{document}
If you need it across mathstyles:
\documentclass{article}
\usepackage{amssymb,stackengine,scalerel}
\newcommand\ledot{\mathrel{\ThisStyle{\ensurestackMath{%
\stackengine{-.5\LMex}{\SavedStyle\lessdot}{\SavedStyle-}{U}{c}{F}{F}{S}}}}}
\begin{document}
$a\ledot b$
$\scriptstyle a\ledot b$
$\scriptscriptstyle a\ledot b$
\end{document}
ADDENDUM
Comments from the OP indicate a desire to add a subscript to the symbol. The above formulations have too much depth to make that work well directly, so here is an alternative in which the underset is \smash
ed and the underset depth is adjusted a bit:
\documentclass{article}
\usepackage{amssymb,stackengine,scalerel}
\newcommand\ledot{\mathrel{\ThisStyle{\ensurestackMath{%
\stackengine{.8\LMex}{\SavedStyle\lessdot}{\smash{\SavedStyle-}}%
{U}{c}{F}{F}{S}}}}}
\begin{document}
$a\ledot_{\!P} b$
$\scriptstyle a\ledot_{\!P} b$
$\scriptscriptstyle a\ledot_{\!P} b$
\end{document}
-
Thank you very much! I didn't think anyone could actually tell me how you get this symbol.– KegorusCommented Mar 30, 2020 at 12:25
-
@Kegorus you are welcome. Note you can change the value of
-.5\LMex
to adjust the amount of underset between<
and-
, if you prefer a narrower or wider gap. Commented Mar 30, 2020 at 12:27 -
This made it even better, thanks! And one more thing, would it be possible to add a "P" (for poset P) as index? Like \Ieq_P with dot?– KegorusCommented Mar 30, 2020 at 12:31
-
@Kegorus Do you mean for the
P
to be below the symbol, or to the lower right? Also, what is to prevent you from doing exactly what you suggest, namely\ledot_P
? Commented Mar 30, 2020 at 12:36 -
1
There is also a specific symbol \leqslantdot
with MnSymbol
package, or fdsymbol
.
Edit: We observe that the \leqslantdot
with MnSymbol
not changes the CM fonts.
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{MnSymbol}
\begin{document}
$f(a,b)\leqslantdot g(b,a)$
\end{document}
While if you use fdsymbol
, you have not an exact dot but it is similar to the square with a zoom and there is a change of the font of the rounded brackets (for example).
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{fdsymbol}
\begin{document}
$f(a,b)\leqslantdot g(b,a)$
\end{document}
-
1Thank you too! I will use the horizontal line version though.– KegorusCommented Mar 30, 2020 at 12:26
-
-
1
-
-