[Tex/LaTex] Unable to make symbol similar to bowtie or lrtimes

math-modemath-operators

I wish to write something like this in latex:

enter image description here

I tried using \lrtimes and also \bowtie, but none is able to give me the correct output. Also, i had problems getting that {task1} below the symbol. For this, i tried using $\bowtie_\{task_1\}$, but it didnt give me the required output. Any help would be appreciated.

Best Answer

Here is a possibility:

enter image description here

\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\newcommand{\newbowtie}{\mathrel{\ooalign{$\triangleright$\,\cr\,$\triangleleft$}}}
\begin{document}
\[
  (\text{Resource}_0 \mathbin{||} \text{Resource}_0)
  \underset{\{\text{task 1}\}}{\bowtie}
  (\text{Processor}_0 \mathbin{||} \text{Processor}_0)
\]

\[
  (\text{Resource}_0 \mathbin{||} \text{Resource}_0)
  \underset{\{\text{task 1}\}}{\newbowtie}
  (\text{Processor}_0 \mathbin{||} \text{Processor}_0)
\]
\end{document}

The above symbol creation uses \ooalign which overlays elements on top of one another. For a quick course in \ooalign, see \subseteq + \circ as a single symbol (“open subset”).

Related Question