Place a given symbol inside cup like uplus
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
does any know how I can create a command that places a symbol given as an argument inside cup?
For instance, the command uplus has the symbol '+' inside cup.
I would like to be able to place any given symbol inside cup (in special, the letter 'k').
An important issue is that the size of the symbol must respect the superscript math mode. Actually, the size of this symbol has to be a bit smaller, so as is '+' inside cup in uplus.
The figure below explains better what I am talking about.
I would like to obtain something similar to the second (from left to right) case.
Thanks in advance!
math-mode macros superscripts
add a comment |Â
up vote
2
down vote
favorite
does any know how I can create a command that places a symbol given as an argument inside cup?
For instance, the command uplus has the symbol '+' inside cup.
I would like to be able to place any given symbol inside cup (in special, the letter 'k').
An important issue is that the size of the symbol must respect the superscript math mode. Actually, the size of this symbol has to be a bit smaller, so as is '+' inside cup in uplus.
The figure below explains better what I am talking about.
I would like to obtain something similar to the second (from left to right) case.
Thanks in advance!
math-mode macros superscripts
Duplicate? tex.stackexchange.com/questions/243478/â¦
â Steven B. Segletes
3 hours ago
I don't think so. My question is a little different.
â Alexsander Melo
45 mins ago
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
does any know how I can create a command that places a symbol given as an argument inside cup?
For instance, the command uplus has the symbol '+' inside cup.
I would like to be able to place any given symbol inside cup (in special, the letter 'k').
An important issue is that the size of the symbol must respect the superscript math mode. Actually, the size of this symbol has to be a bit smaller, so as is '+' inside cup in uplus.
The figure below explains better what I am talking about.
I would like to obtain something similar to the second (from left to right) case.
Thanks in advance!
math-mode macros superscripts
does any know how I can create a command that places a symbol given as an argument inside cup?
For instance, the command uplus has the symbol '+' inside cup.
I would like to be able to place any given symbol inside cup (in special, the letter 'k').
An important issue is that the size of the symbol must respect the superscript math mode. Actually, the size of this symbol has to be a bit smaller, so as is '+' inside cup in uplus.
The figure below explains better what I am talking about.
I would like to obtain something similar to the second (from left to right) case.
Thanks in advance!
math-mode macros superscripts
math-mode macros superscripts
asked 4 hours ago
Alexsander Melo
234
234
Duplicate? tex.stackexchange.com/questions/243478/â¦
â Steven B. Segletes
3 hours ago
I don't think so. My question is a little different.
â Alexsander Melo
45 mins ago
add a comment |Â
Duplicate? tex.stackexchange.com/questions/243478/â¦
â Steven B. Segletes
3 hours ago
I don't think so. My question is a little different.
â Alexsander Melo
45 mins ago
Duplicate? tex.stackexchange.com/questions/243478/â¦
â Steven B. Segletes
3 hours ago
Duplicate? tex.stackexchange.com/questions/243478/â¦
â Steven B. Segletes
3 hours ago
I don't think so. My question is a little different.
â Alexsander Melo
45 mins ago
I don't think so. My question is a little different.
â Alexsander Melo
45 mins ago
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
4
down vote
The stackinset
command froom stackengine
can do that:
documentclass[border = 2pt]standalone
usepackagestackengine %
newcommandcupkstackMathstackinsetc0exc0.2exscriptscriptstyle kscriptstylecup
begindocument
$B^cupk $
enddocument
add a comment |Â
up vote
3
down vote
We need fully scalable fonts for this, so fix-cm
if the document is in the standard Computer Modern font. It is not necessary if other fonts are chosen.
RequirePackagefix-cm
documentclassarticle
usepackageamsmath
makeatletter
DeclareRobustCommandvcup[1]%
mathbinvphantomcupmathpalettevcup@#1%
newcommandvcup@[2]%
ooalign%
$m@th#1cup$cr
hidewidth
raisebox%
dimexprdepth+demote@#1dimexpr1.5ptrelaxrelax
fontsizedemote@#1dimexprf@size ptz@selectfontcheck@mathfonts
$m@th#2$%
hidewidthcr
%
newcommanddemote@[1]%
ifx#1displaystyle 0.7
elseifx#1textstyle 0.7
elseifx#1scriptstyle 0.5
else 0.4fififi
makeatother
begindocument
$AvcupkB^vcupk$
$uplusscriptstyleuplusscriptscriptstyleuplus$
$vcupkscriptstylevcupkscriptscriptstylevcupk$
$vcupyscriptstylevcupyscriptscriptstylevcupy$
$vcupgscriptstylevcupgscriptscriptstylevcupg$
enddocument
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
The stackinset
command froom stackengine
can do that:
documentclass[border = 2pt]standalone
usepackagestackengine %
newcommandcupkstackMathstackinsetc0exc0.2exscriptscriptstyle kscriptstylecup
begindocument
$B^cupk $
enddocument
add a comment |Â
up vote
4
down vote
The stackinset
command froom stackengine
can do that:
documentclass[border = 2pt]standalone
usepackagestackengine %
newcommandcupkstackMathstackinsetc0exc0.2exscriptscriptstyle kscriptstylecup
begindocument
$B^cupk $
enddocument
add a comment |Â
up vote
4
down vote
up vote
4
down vote
The stackinset
command froom stackengine
can do that:
documentclass[border = 2pt]standalone
usepackagestackengine %
newcommandcupkstackMathstackinsetc0exc0.2exscriptscriptstyle kscriptstylecup
begindocument
$B^cupk $
enddocument
The stackinset
command froom stackengine
can do that:
documentclass[border = 2pt]standalone
usepackagestackengine %
newcommandcupkstackMathstackinsetc0exc0.2exscriptscriptstyle kscriptstylecup
begindocument
$B^cupk $
enddocument
answered 3 hours ago
Bernard
160k766192
160k766192
add a comment |Â
add a comment |Â
up vote
3
down vote
We need fully scalable fonts for this, so fix-cm
if the document is in the standard Computer Modern font. It is not necessary if other fonts are chosen.
RequirePackagefix-cm
documentclassarticle
usepackageamsmath
makeatletter
DeclareRobustCommandvcup[1]%
mathbinvphantomcupmathpalettevcup@#1%
newcommandvcup@[2]%
ooalign%
$m@th#1cup$cr
hidewidth
raisebox%
dimexprdepth+demote@#1dimexpr1.5ptrelaxrelax
fontsizedemote@#1dimexprf@size ptz@selectfontcheck@mathfonts
$m@th#2$%
hidewidthcr
%
newcommanddemote@[1]%
ifx#1displaystyle 0.7
elseifx#1textstyle 0.7
elseifx#1scriptstyle 0.5
else 0.4fififi
makeatother
begindocument
$AvcupkB^vcupk$
$uplusscriptstyleuplusscriptscriptstyleuplus$
$vcupkscriptstylevcupkscriptscriptstylevcupk$
$vcupyscriptstylevcupyscriptscriptstylevcupy$
$vcupgscriptstylevcupgscriptscriptstylevcupg$
enddocument
add a comment |Â
up vote
3
down vote
We need fully scalable fonts for this, so fix-cm
if the document is in the standard Computer Modern font. It is not necessary if other fonts are chosen.
RequirePackagefix-cm
documentclassarticle
usepackageamsmath
makeatletter
DeclareRobustCommandvcup[1]%
mathbinvphantomcupmathpalettevcup@#1%
newcommandvcup@[2]%
ooalign%
$m@th#1cup$cr
hidewidth
raisebox%
dimexprdepth+demote@#1dimexpr1.5ptrelaxrelax
fontsizedemote@#1dimexprf@size ptz@selectfontcheck@mathfonts
$m@th#2$%
hidewidthcr
%
newcommanddemote@[1]%
ifx#1displaystyle 0.7
elseifx#1textstyle 0.7
elseifx#1scriptstyle 0.5
else 0.4fififi
makeatother
begindocument
$AvcupkB^vcupk$
$uplusscriptstyleuplusscriptscriptstyleuplus$
$vcupkscriptstylevcupkscriptscriptstylevcupk$
$vcupyscriptstylevcupyscriptscriptstylevcupy$
$vcupgscriptstylevcupgscriptscriptstylevcupg$
enddocument
add a comment |Â
up vote
3
down vote
up vote
3
down vote
We need fully scalable fonts for this, so fix-cm
if the document is in the standard Computer Modern font. It is not necessary if other fonts are chosen.
RequirePackagefix-cm
documentclassarticle
usepackageamsmath
makeatletter
DeclareRobustCommandvcup[1]%
mathbinvphantomcupmathpalettevcup@#1%
newcommandvcup@[2]%
ooalign%
$m@th#1cup$cr
hidewidth
raisebox%
dimexprdepth+demote@#1dimexpr1.5ptrelaxrelax
fontsizedemote@#1dimexprf@size ptz@selectfontcheck@mathfonts
$m@th#2$%
hidewidthcr
%
newcommanddemote@[1]%
ifx#1displaystyle 0.7
elseifx#1textstyle 0.7
elseifx#1scriptstyle 0.5
else 0.4fififi
makeatother
begindocument
$AvcupkB^vcupk$
$uplusscriptstyleuplusscriptscriptstyleuplus$
$vcupkscriptstylevcupkscriptscriptstylevcupk$
$vcupyscriptstylevcupyscriptscriptstylevcupy$
$vcupgscriptstylevcupgscriptscriptstylevcupg$
enddocument
We need fully scalable fonts for this, so fix-cm
if the document is in the standard Computer Modern font. It is not necessary if other fonts are chosen.
RequirePackagefix-cm
documentclassarticle
usepackageamsmath
makeatletter
DeclareRobustCommandvcup[1]%
mathbinvphantomcupmathpalettevcup@#1%
newcommandvcup@[2]%
ooalign%
$m@th#1cup$cr
hidewidth
raisebox%
dimexprdepth+demote@#1dimexpr1.5ptrelaxrelax
fontsizedemote@#1dimexprf@size ptz@selectfontcheck@mathfonts
$m@th#2$%
hidewidthcr
%
newcommanddemote@[1]%
ifx#1displaystyle 0.7
elseifx#1textstyle 0.7
elseifx#1scriptstyle 0.5
else 0.4fififi
makeatother
begindocument
$AvcupkB^vcupk$
$uplusscriptstyleuplusscriptscriptstyleuplus$
$vcupkscriptstylevcupkscriptscriptstylevcupk$
$vcupyscriptstylevcupyscriptscriptstylevcupy$
$vcupgscriptstylevcupgscriptscriptstylevcupg$
enddocument
answered 3 hours ago
egreg
694k8518443099
694k8518443099
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f458063%2fplace-a-given-symbol-inside-cup-like-uplus%23new-answer', 'question_page');
);
Post as a guest
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
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
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
Duplicate? tex.stackexchange.com/questions/243478/â¦
â Steven B. Segletes
3 hours ago
I don't think so. My question is a little different.
â Alexsander Melo
45 mins ago