I am trying to make a symbol for a "twisted product". I've tried stackrel:

$A \mathbin{\stackrel{\sim}{\times}} B$

but the sim floats too high above the times, causing unpleasant line spacing. I've also tried widetilde

$A \mathbin{\widetilde{\times}} B$ 

but it has the same problem. Ideally I'd like the tilde to have the same width as the times and for the spacing between the two to be pretty tight.


4 Answers 4


Detexify didn't help, so maybe you really have to do it yourself:


Adjust the 0.9ex to your needs.

  • 1
    Perfect. I used 0.6ex. Thank you very much!
    – Sam Nead
    Mar 3, 2011 at 19:03

The parameters 0.7 and 0.3 might be needed adjustment if used with different fonts.


% a general purpose macro


      \noalign{\nointerlineskip\kern-0.3\fontdimen5 #2 2}


$S^2\twistedproduct S^2$ $X_{\twistedproduct_{\twistedproduct}}$


The macro \xmathpalette is an extension of \mathpalette that makes also the font in the current style (\textfont, \scriptfont or \scriptscriptfont). In this case we use it to access the x-height of the symbol font for the current style.

enter image description here


For slightly improved spacing displayed and inline, you can use \ooalign. The code is


enter image description here

If you will ever use the symbol in a subscript or superscript, \mathchoice allows for greatly improved spacing in scriptstyle. The height of the \sim is easily adjustable by changing the 1.15ex for display and inline, .85ex for script and (though I can't imagine using it) .65ex for scriptscript.




$S^2\twprod S^2\quad F_{S^2\twprod S^2}$


As shown, \ttimes has the same spacing as \times. It adjusts automatically to the math style.

$ A\ttimes C$\par
$ A\times C$\par
$ \scriptstyle A\ttimes C$\par
$ \scriptstyle A\times C$\par
$ \scriptscriptstyle A\ttimes C$\par
$ \scriptscriptstyle A\times C$\par

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .