Symbol for a “twisted product”?
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.
math-mode symbols
add a comment |
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.
math-mode symbols
1
Have a look at “How to look up a math symbol?” for ideas how you can easily find a particular symbol.
– Matthew Leingang
Mar 3 '11 at 18:20
I tried detexify and looking at the CTAN list. No joy.
– Sam Nead
Mar 3 '11 at 18:57
add a comment |
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.
math-mode symbols
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.
math-mode symbols
math-mode symbols
edited Dec 28 '17 at 9:46
Sam Nead
asked Mar 3 '11 at 18:10
Sam NeadSam Nead
5491614
5491614
1
Have a look at “How to look up a math symbol?” for ideas how you can easily find a particular symbol.
– Matthew Leingang
Mar 3 '11 at 18:20
I tried detexify and looking at the CTAN list. No joy.
– Sam Nead
Mar 3 '11 at 18:57
add a comment |
1
Have a look at “How to look up a math symbol?” for ideas how you can easily find a particular symbol.
– Matthew Leingang
Mar 3 '11 at 18:20
I tried detexify and looking at the CTAN list. No joy.
– Sam Nead
Mar 3 '11 at 18:57
1
1
Have a look at “How to look up a math symbol?” for ideas how you can easily find a particular symbol.
– Matthew Leingang
Mar 3 '11 at 18:20
Have a look at “How to look up a math symbol?” for ideas how you can easily find a particular symbol.
– Matthew Leingang
Mar 3 '11 at 18:20
I tried detexify and looking at the CTAN list. No joy.
– Sam Nead
Mar 3 '11 at 18:57
I tried detexify and looking at the CTAN list. No joy.
– Sam Nead
Mar 3 '11 at 18:57
add a comment |
4 Answers
4
active
oldest
votes
Detexify didn't help, so maybe you really have to do it yourself:
newcommandsimtimes{mathbin{%
stackrel{sim}{smash{times}rule{0pt}{0.9ex}}%
}}
Adjust the 0.9ex to your needs.
1
Perfect. I used 0.6ex. Thank you very much!
– Sam Nead
Mar 3 '11 at 19:03
add a comment |
The parameters 0.7 and 0.3 might be needed adjustment if used with different fonts.
documentclass{article}
usepackage{amsmath}
usepackage{graphicx}
% a general purpose macro
newcommand{xmathpalette}[2]{mathchoice
{#1displaystyletextfont{#2}}%
{#1textstyletextfont{#2}}%
{#1scriptstylescriptfont{#2}}%
{#1scriptscriptstylescriptscriptfont{#2}}%
}
makeatletter
newcommand{twistedproduct}{%
mathbin{xmathpalettetwisted@productrelax}%
}
newcommand{twisted@product}[3]{%
vbox{%
ialign{hfil##hfilcr
scalebox{0.7}{$m@th#1sim$}cr
noalign{nointerlineskipkern-0.3fontdimen5 #2 2}
$m@th#1times$cr
}%
}%
}
makeatother
begin{document}
$S^2twistedproduct S^2$ $X_{twistedproduct_{twistedproduct}}$
end{document}
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.

add a comment |
For slightly improved spacing displayed and inline, you can use ooalign. The code is
newcommand{twprod}{mathbin{%
ooalign{raise1.15exhbox{$scriptstylesim$}crhidewidth$times$hidewidthcr}%
}}

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.
documentclass{article}
newcommand{twprod}{mathbin{mathchoice%
{ooalign{raise1.15exhbox{$scriptstylesim$}crhidewidth$times$hidewidthcr}}%
{ooalign{raise1.15exhbox{$scriptstylesim$}crhidewidth$times$hidewidthcr}}%
{ooalign{raise.85exhbox{$scriptscriptstylesim$}crhidewidth$scriptstyletimes$hidewidthcr}}%
{ooalign{raise.65exhbox{$scriptscriptstylesim$}crhidewidth$scriptscriptstyletimes$hidewidthcr}}%
}}
begin{document}
$S^2twprod S^2quad F_{S^2twprod S^2}$
end{document}
add a comment |
As shown, ttimes has the same spacing as times. It adjusts automatically to the math style.
documentclass{article}
usepackage{stackengine,scalerel}
newcommandttimes{mathbin{ThisStyle{ensurestackMath{%
stackengine{-1LMpt}{SavedStyletimes}
{SavedStyle_{hstretch{.9}{mkern1musim}}}{O}{c}{F}{T}{S}}}}}
begin{document}
$ Attimes C$par
$ Atimes C$par
$ scriptstyle Attimes C$par
$ scriptstyle Atimes C$par
$ scriptscriptstyle Attimes C$par
$ scriptscriptstyle Atimes C$par
end{document}

add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f12579%2fsymbol-for-a-twisted-product%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Detexify didn't help, so maybe you really have to do it yourself:
newcommandsimtimes{mathbin{%
stackrel{sim}{smash{times}rule{0pt}{0.9ex}}%
}}
Adjust the 0.9ex to your needs.
1
Perfect. I used 0.6ex. Thank you very much!
– Sam Nead
Mar 3 '11 at 19:03
add a comment |
Detexify didn't help, so maybe you really have to do it yourself:
newcommandsimtimes{mathbin{%
stackrel{sim}{smash{times}rule{0pt}{0.9ex}}%
}}
Adjust the 0.9ex to your needs.
1
Perfect. I used 0.6ex. Thank you very much!
– Sam Nead
Mar 3 '11 at 19:03
add a comment |
Detexify didn't help, so maybe you really have to do it yourself:
newcommandsimtimes{mathbin{%
stackrel{sim}{smash{times}rule{0pt}{0.9ex}}%
}}
Adjust the 0.9ex to your needs.
Detexify didn't help, so maybe you really have to do it yourself:
newcommandsimtimes{mathbin{%
stackrel{sim}{smash{times}rule{0pt}{0.9ex}}%
}}
Adjust the 0.9ex to your needs.
answered Mar 3 '11 at 18:35
Hendrik VogtHendrik Vogt
29k4108191
29k4108191
1
Perfect. I used 0.6ex. Thank you very much!
– Sam Nead
Mar 3 '11 at 19:03
add a comment |
1
Perfect. I used 0.6ex. Thank you very much!
– Sam Nead
Mar 3 '11 at 19:03
1
1
Perfect. I used 0.6ex. Thank you very much!
– Sam Nead
Mar 3 '11 at 19:03
Perfect. I used 0.6ex. Thank you very much!
– Sam Nead
Mar 3 '11 at 19:03
add a comment |
The parameters 0.7 and 0.3 might be needed adjustment if used with different fonts.
documentclass{article}
usepackage{amsmath}
usepackage{graphicx}
% a general purpose macro
newcommand{xmathpalette}[2]{mathchoice
{#1displaystyletextfont{#2}}%
{#1textstyletextfont{#2}}%
{#1scriptstylescriptfont{#2}}%
{#1scriptscriptstylescriptscriptfont{#2}}%
}
makeatletter
newcommand{twistedproduct}{%
mathbin{xmathpalettetwisted@productrelax}%
}
newcommand{twisted@product}[3]{%
vbox{%
ialign{hfil##hfilcr
scalebox{0.7}{$m@th#1sim$}cr
noalign{nointerlineskipkern-0.3fontdimen5 #2 2}
$m@th#1times$cr
}%
}%
}
makeatother
begin{document}
$S^2twistedproduct S^2$ $X_{twistedproduct_{twistedproduct}}$
end{document}
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.

add a comment |
The parameters 0.7 and 0.3 might be needed adjustment if used with different fonts.
documentclass{article}
usepackage{amsmath}
usepackage{graphicx}
% a general purpose macro
newcommand{xmathpalette}[2]{mathchoice
{#1displaystyletextfont{#2}}%
{#1textstyletextfont{#2}}%
{#1scriptstylescriptfont{#2}}%
{#1scriptscriptstylescriptscriptfont{#2}}%
}
makeatletter
newcommand{twistedproduct}{%
mathbin{xmathpalettetwisted@productrelax}%
}
newcommand{twisted@product}[3]{%
vbox{%
ialign{hfil##hfilcr
scalebox{0.7}{$m@th#1sim$}cr
noalign{nointerlineskipkern-0.3fontdimen5 #2 2}
$m@th#1times$cr
}%
}%
}
makeatother
begin{document}
$S^2twistedproduct S^2$ $X_{twistedproduct_{twistedproduct}}$
end{document}
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.

add a comment |
The parameters 0.7 and 0.3 might be needed adjustment if used with different fonts.
documentclass{article}
usepackage{amsmath}
usepackage{graphicx}
% a general purpose macro
newcommand{xmathpalette}[2]{mathchoice
{#1displaystyletextfont{#2}}%
{#1textstyletextfont{#2}}%
{#1scriptstylescriptfont{#2}}%
{#1scriptscriptstylescriptscriptfont{#2}}%
}
makeatletter
newcommand{twistedproduct}{%
mathbin{xmathpalettetwisted@productrelax}%
}
newcommand{twisted@product}[3]{%
vbox{%
ialign{hfil##hfilcr
scalebox{0.7}{$m@th#1sim$}cr
noalign{nointerlineskipkern-0.3fontdimen5 #2 2}
$m@th#1times$cr
}%
}%
}
makeatother
begin{document}
$S^2twistedproduct S^2$ $X_{twistedproduct_{twistedproduct}}$
end{document}
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.

The parameters 0.7 and 0.3 might be needed adjustment if used with different fonts.
documentclass{article}
usepackage{amsmath}
usepackage{graphicx}
% a general purpose macro
newcommand{xmathpalette}[2]{mathchoice
{#1displaystyletextfont{#2}}%
{#1textstyletextfont{#2}}%
{#1scriptstylescriptfont{#2}}%
{#1scriptscriptstylescriptscriptfont{#2}}%
}
makeatletter
newcommand{twistedproduct}{%
mathbin{xmathpalettetwisted@productrelax}%
}
newcommand{twisted@product}[3]{%
vbox{%
ialign{hfil##hfilcr
scalebox{0.7}{$m@th#1sim$}cr
noalign{nointerlineskipkern-0.3fontdimen5 #2 2}
$m@th#1times$cr
}%
}%
}
makeatother
begin{document}
$S^2twistedproduct S^2$ $X_{twistedproduct_{twistedproduct}}$
end{document}
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.

answered 1 hour ago
egregegreg
728k8819233233
728k8819233233
add a comment |
add a comment |
For slightly improved spacing displayed and inline, you can use ooalign. The code is
newcommand{twprod}{mathbin{%
ooalign{raise1.15exhbox{$scriptstylesim$}crhidewidth$times$hidewidthcr}%
}}

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.
documentclass{article}
newcommand{twprod}{mathbin{mathchoice%
{ooalign{raise1.15exhbox{$scriptstylesim$}crhidewidth$times$hidewidthcr}}%
{ooalign{raise1.15exhbox{$scriptstylesim$}crhidewidth$times$hidewidthcr}}%
{ooalign{raise.85exhbox{$scriptscriptstylesim$}crhidewidth$scriptstyletimes$hidewidthcr}}%
{ooalign{raise.65exhbox{$scriptscriptstylesim$}crhidewidth$scriptscriptstyletimes$hidewidthcr}}%
}}
begin{document}
$S^2twprod S^2quad F_{S^2twprod S^2}$
end{document}
add a comment |
For slightly improved spacing displayed and inline, you can use ooalign. The code is
newcommand{twprod}{mathbin{%
ooalign{raise1.15exhbox{$scriptstylesim$}crhidewidth$times$hidewidthcr}%
}}

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.
documentclass{article}
newcommand{twprod}{mathbin{mathchoice%
{ooalign{raise1.15exhbox{$scriptstylesim$}crhidewidth$times$hidewidthcr}}%
{ooalign{raise1.15exhbox{$scriptstylesim$}crhidewidth$times$hidewidthcr}}%
{ooalign{raise.85exhbox{$scriptscriptstylesim$}crhidewidth$scriptstyletimes$hidewidthcr}}%
{ooalign{raise.65exhbox{$scriptscriptstylesim$}crhidewidth$scriptscriptstyletimes$hidewidthcr}}%
}}
begin{document}
$S^2twprod S^2quad F_{S^2twprod S^2}$
end{document}
add a comment |
For slightly improved spacing displayed and inline, you can use ooalign. The code is
newcommand{twprod}{mathbin{%
ooalign{raise1.15exhbox{$scriptstylesim$}crhidewidth$times$hidewidthcr}%
}}

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.
documentclass{article}
newcommand{twprod}{mathbin{mathchoice%
{ooalign{raise1.15exhbox{$scriptstylesim$}crhidewidth$times$hidewidthcr}}%
{ooalign{raise1.15exhbox{$scriptstylesim$}crhidewidth$times$hidewidthcr}}%
{ooalign{raise.85exhbox{$scriptscriptstylesim$}crhidewidth$scriptstyletimes$hidewidthcr}}%
{ooalign{raise.65exhbox{$scriptscriptstylesim$}crhidewidth$scriptscriptstyletimes$hidewidthcr}}%
}}
begin{document}
$S^2twprod S^2quad F_{S^2twprod S^2}$
end{document}
For slightly improved spacing displayed and inline, you can use ooalign. The code is
newcommand{twprod}{mathbin{%
ooalign{raise1.15exhbox{$scriptstylesim$}crhidewidth$times$hidewidthcr}%
}}

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.
documentclass{article}
newcommand{twprod}{mathbin{mathchoice%
{ooalign{raise1.15exhbox{$scriptstylesim$}crhidewidth$times$hidewidthcr}}%
{ooalign{raise1.15exhbox{$scriptstylesim$}crhidewidth$times$hidewidthcr}}%
{ooalign{raise.85exhbox{$scriptscriptstylesim$}crhidewidth$scriptstyletimes$hidewidthcr}}%
{ooalign{raise.65exhbox{$scriptscriptstylesim$}crhidewidth$scriptscriptstyletimes$hidewidthcr}}%
}}
begin{document}
$S^2twprod S^2quad F_{S^2twprod S^2}$
end{document}
answered Dec 28 '17 at 4:47
Sandy GSandy G
3,7671430
3,7671430
add a comment |
add a comment |
As shown, ttimes has the same spacing as times. It adjusts automatically to the math style.
documentclass{article}
usepackage{stackengine,scalerel}
newcommandttimes{mathbin{ThisStyle{ensurestackMath{%
stackengine{-1LMpt}{SavedStyletimes}
{SavedStyle_{hstretch{.9}{mkern1musim}}}{O}{c}{F}{T}{S}}}}}
begin{document}
$ Attimes C$par
$ Atimes C$par
$ scriptstyle Attimes C$par
$ scriptstyle Atimes C$par
$ scriptscriptstyle Attimes C$par
$ scriptscriptstyle Atimes C$par
end{document}

add a comment |
As shown, ttimes has the same spacing as times. It adjusts automatically to the math style.
documentclass{article}
usepackage{stackengine,scalerel}
newcommandttimes{mathbin{ThisStyle{ensurestackMath{%
stackengine{-1LMpt}{SavedStyletimes}
{SavedStyle_{hstretch{.9}{mkern1musim}}}{O}{c}{F}{T}{S}}}}}
begin{document}
$ Attimes C$par
$ Atimes C$par
$ scriptstyle Attimes C$par
$ scriptstyle Atimes C$par
$ scriptscriptstyle Attimes C$par
$ scriptscriptstyle Atimes C$par
end{document}

add a comment |
As shown, ttimes has the same spacing as times. It adjusts automatically to the math style.
documentclass{article}
usepackage{stackengine,scalerel}
newcommandttimes{mathbin{ThisStyle{ensurestackMath{%
stackengine{-1LMpt}{SavedStyletimes}
{SavedStyle_{hstretch{.9}{mkern1musim}}}{O}{c}{F}{T}{S}}}}}
begin{document}
$ Attimes C$par
$ Atimes C$par
$ scriptstyle Attimes C$par
$ scriptstyle Atimes C$par
$ scriptscriptstyle Attimes C$par
$ scriptscriptstyle Atimes C$par
end{document}

As shown, ttimes has the same spacing as times. It adjusts automatically to the math style.
documentclass{article}
usepackage{stackengine,scalerel}
newcommandttimes{mathbin{ThisStyle{ensurestackMath{%
stackengine{-1LMpt}{SavedStyletimes}
{SavedStyle_{hstretch{.9}{mkern1musim}}}{O}{c}{F}{T}{S}}}}}
begin{document}
$ Attimes C$par
$ Atimes C$par
$ scriptstyle Attimes C$par
$ scriptstyle Atimes C$par
$ scriptscriptstyle Attimes C$par
$ scriptscriptstyle Atimes C$par
end{document}

answered 1 hour ago
Steven B. SegletesSteven B. Segletes
159k9204411
159k9204411
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f12579%2fsymbol-for-a-twisted-product%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Have a look at “How to look up a math symbol?” for ideas how you can easily find a particular symbol.
– Matthew Leingang
Mar 3 '11 at 18:20
I tried detexify and looking at the CTAN list. No joy.
– Sam Nead
Mar 3 '11 at 18:57