[Tex/LaTex] Rotated $\ltimes$ symbol

rotating

I'd like to use a rotated version of $\ltimes$ where the vertical line is at the top, and another where the vertical line is at the bottom. I tried using \rotatebox with graphicx, but it puts the symbol either too high or too low. Any thoughts?

Best Answer

You can rotate with respect to the center of the glyph:

\documentclass{article}
\usepackage{amssymb}
\usepackage{graphicx}

\newcommand{\btimes}{\mathbin{\rotatebox[origin=c]{90}{$\ltimes$}}}
\newcommand{\utimes}{\mathbin{\rotatebox[origin=c]{-90}{$\ltimes$}}}

\begin{document}
$A\btimes B\ltimes C\utimes D$
\end{document}

enter image description here

If you need the symbols also in subscripts or superscripts, then load also amsmath and do

\newcommand{\btimes}{\mathbin{\text{\rotatebox[origin=c]{90}{$\ltimes$}}}}
\newcommand{\utimes}{\mathbin{\text{\rotatebox[origin=c]{-90}{$\ltimes$}}}}