What is the name of the following symbol and how to type it in LATEX?
Thanks!
All the ways (by using existing symbols) I found next to a \sigma:
\usepackage{tikz}
\usepackage{mdsymbol}
\usepackage{allrunes}
\begin{document}
\begin{enumerate}
\item $\sigma$
\item $\sigma$ $\hourglass$ %mdsymbol
\item $\sigma$ $\upbowtie$ %mdsymbol
\item $\sigma$ \tikz \node [inner sep=0,rotate=90]{$\lrtimes$};%mdsymbol
\item $\sigma$ \tikz \node [inner sep=0,rotate=90]{$\Join$};%mdsymbol
\item $\sigma$ \tikz \node [inner sep=0,rotate=90]{\textara{d}}; %allrunes
\end{enumerate}
\end{document}
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{scalerel}
\makeatletter
\newcommand{\myhg}{\mathbin{\scalerel*{\@hgpic}{\ensuremath{\sigma}}}}% Or \Sigma, or any symbol you want to scale to.
\newcommand{\@hgpic}{%
\setlength{\unitlength}{0.34cm}% reduce this to increase thickness of line
\begin{picture}(1,1.5)%
\thicklines%
\put(0,0){\line(2,3){1}}%
\put(1,1.5){\line(-1,0){1}}%
\put(0,1.5){\line(2,-3){1}}%
\put(1,0){\line(-1,0){1}}%
\end{picture}%
}
\makeatother
\begin{document}
$\sigma a \myhg b$
\[\sigma a \myhg b\]
\end{document}
It's a simple affair to draw the hourglass using picture, then using the scalerel package to scale the symbol to the \sigma symbol (change this to whatever fits your use case).
If you would like to make the lines thicker, you can reduce the unitlength slightly (not too much though).
Also, note the spacing that should go around your hourglass symbol. I follow the convention of mdsymbol's \hourglass/\upbowtiesymbol and declared it as a binary operator, hence the \mathbin. You can remove it if you are intending to use it as a letter like \sigma.
\sigma I'll keep it as the small letter for now :) OP's use case is not really clear so alot of it is just assumed. (+1 to your ans too -- quite creative)
– Troy
Oct 28 '17 at 02:25
You could also to use a similar code which is loaded with XeLaTeX and fontspec, where you can replace the respective hourglass code unicode instead of the asterisk (*) (for example of the type "211E).
\documentclass{article}
\usepackage{fontspec}
\setmainfont{quivira.otf}
\renewcommand{\hourglass}{{\fontspec{quivira.otf}\symbol{*}}}
\begin{document}
\hourglass
\end{document}
You can rotate \bowtie; depending on the nature of the symbol, you may want to use \mathbin (operation) instead of \mathrel (relation).
\documentclass{article}
\usepackage{graphicx}
\makeatletter
\newcommand{\hourglass}{}% preempt
\DeclareRobustCommand{\hourglass}{\mathrel{\mathpalette\hour@glass\relax}}
\newcommand\hour@glass[2]{%
\vcenter{\hbox{%
\rotatebox[origin=c]{90}{$\m@th#1\bowtie$}%
}}%
}
\makeatother
\begin{document}
$A\hourglass \sigma < B$
\end{document}
If it's too big, you can scale it a bit:
\documentclass{article}
\usepackage{graphicx}
\makeatletter
\newcommand{\hourglass}{}% preempt
\DeclareRobustCommand{\hourglass}{\mathrel{\mathpalette\hour@glass\relax}}
\newcommand\hour@glass[2]{%
\vcenter{\hbox{%
\rotatebox[origin=c]{90}{\scalebox{0.8}{$\m@th#1\bowtie$}}%
}}%
}
\makeatother
\begin{document}
$A\hourglass \sigma < B$
\end{document}
mdsymbolpackage there is a $\hourglass$... Is it ok for you? Try it! – koleygr Oct 28 '17 at 01:01mdsymbolpackage optionnormalweight=Light. Size can also be scaled up via the package optionsize=1.3– Troy Oct 28 '17 at 01:37