How to put a symbol on top of another with arbitrary vertical spacing?

Viewed 36

I want to design a new operator like the below, where a '⋖' is on the top of a '⋗'

enter image description here

I tried the following ones, but the vertical spacing between the two operators is still too large. I am wondering how can I reduce the space.

\documentclass{article}
\begin{document}
$_{\gtrdot}^{\lessdot}$
$\overset{\scalebox{1.06}[1.06]{\lessdot}{\gtrdot}$
$\gtrdot \above 0pt \lessdot$
$\gtrdot \atop \lessdot$
\end{document}

I then tried the following solution using the stackengine package suggested by samcarter_is_at_topanswers.xyz, but failed to put the operators horizontally aligned.

enter image description here

\documentclass{article}
\usepackage{stackengine}
\begin{document}
$\gtrdot$ \stackunder[-1.5pt]{$\gtrdot$}{$\lessdot$}
\end{document}
2 Answers

A solution based on array with easy control of vertical alignment

enter image description here

\documentclass{article}
\usepackage{amssymb}
\begin{document}
X \dotfill{} X
\(\gtrdot\)
\(\begin{array}[b]{@{}c@{}}\gtrdot\\[-8pt]\lessdot\end{array}\)
\(\begin{array}{@{}c@{}}\gtrdot\\[-8pt]\lessdot\end{array}\)
\(\begin{array}[t]{@{}c@{}}\gtrdot\\[-8pt]\lessdot\end{array}\)
\(\lessdot\)
X \dotfill{} X
\end{document}

My final solution

enter image description here

\documentclass{article}
\usepackage{stackengine}
\begin{document}
$\gtrdot$
\ensurestackMath{
     \stackengine{1pt}{\belowbaseline[-3.5pt] \lessdot}{\abovebaseline[0pt] \gtrdot}{O}{r}{F}{\useanchorwidth}{L}
}
\end{document}
Related