Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Could anyone tell me what is the command for this math symbol in LaTeX Math mode?

Symbol

share|improve this question
1  
It could be a rotated \exists. –  Manuel Jun 9 at 17:16
    
Welcome to the site! –  cmhughes Jun 9 at 18:33

2 Answers 2

up vote 9 down vote accepted

This combines two \sqcups and uses \mathchoice so that it sets in any mathstyle.

\documentclass{article}
\def\dsqcup{\sqcup\mathchoice{\mkern-7mu}{\mkern-7mu}{\mkern-3.2mu}{\mkern-3.8mu}\sqcup}
\begin{document}
$A \dsqcup B$

$\scriptstyle A \dsqcup B$

$\scriptscriptstyle A \dsqcup B$
\end{document}

enter image description here

share|improve this answer
    
That's awesome! –  JPi Jun 9 at 17:11
    
This is awesome ! –  Trúc Nguyễn Lâm Jun 9 at 21:01

The symbol is available in Unicode: U+29E2 Shuffle product

LuaTeX/XeTeX

  • Asana Math:

    \documentclass{article}  
    \usepackage{unicode-math}   
    \setmathfont{Asana-Math.otf}
    \begin{document}
    \[A \shuffle B\]
    \end{document}
    

    Asana Math

  • XITS Math

    \setmathfont{xits-math.otf}
    

    XITS Math

  • Not available in

    • Latin Modern Math
    • TeX Gyre Math fonts

Metafont

  • Package shuffle:

    \documentclass{article}
    \usepackage{shuffle}
    \begin{document}
    \[A \shuffle B\]
    \end{document}
    

    shuffle

    Or with support of any sizes (especially < 5pt, see Shuffle symbol breaks footnotes?):

    \documentclass{article}
    
    \DeclareSymbolFont{Shuffle}{U}{shuffle}{m}{n}
    \DeclareFontFamily{U}{shuffle}{}
    \DeclareFontShape{U}{shuffle}{m}{n}{%
      <-8>shuffle7%
      <8->shuffle10%
    }{}
    \DeclareMathSymbol\shuffle{\mathbin}{Shuffle}{"001}
    \DeclareMathSymbol\cshuffle{\mathbin}{Shuffle}{"002}
    
    \begin{document}
    \[ A \shuffle B \]
    \end{document}
    

Symbol composition with rules

Packages are not needed.

\documentclass{article}

\makeatletter
\providecommand*{\shuffle}{%
  \mathbin{\mathpalette\shuffle@{}}%
}
\newcommand*{\shuffle@}[2]{%
  % #1: math style
  % #2: unused
  \sbox0{$#1\vcenter{}$}%
  \kern .15\ht0 % side bearing
  \rlap{\vrule height .25\ht0 depth 0pt width 2.5\ht0}%
  \raise.1\ht0\hbox to 2.5\ht0{%
    \vrule height 1.75\ht0 depth -.1\ht0 width .17\ht0 %
    \hfill
    \vrule height 1.75\ht0 depth -.1\ht0 width .17\ht0 %
    \hfill
    \vrule height 1.75\ht0 depth -.1\ht0 width .17\ht0 %
  }%
  \kern .15\ht0 % side bearing
}
\makeatother

\begin{document}
\[
  A \shuffle B_{A \shuffle B_{A \shuffle B}}
\]
\end{document}

rules

share|improve this answer
    
See also tex.stackexchange.com/questions/166276/… for solving an issue involving the shuffle package –  egreg Jun 9 at 17:37
    
Thanks a lot, you're awesome. –  Trúc Nguyễn Lâm Jun 9 at 21:00
    
You beat Detexify on that one. It could not recognize it. –  Taladris Jun 10 at 10:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.