How to set letter above or below the symbol? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)How can I make an overset symbol at the same size and height as bar except with a different symbol?Write above the symbol math “subset”Superimpose letter on integral symbolDecrease vertical whitespace when stacking above and below arrowChange vertical space in oversetSymbol: “maps isomorphically”adjusting symbols above letter in mathmodedouble tilde symbol under letterLetter with circle above — not a dot — in math modeHow to print “~” in order to put text above it
Denied boarding although I have proper visa and documentation. To whom should I make a complaint?
How to write the following sign?
Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?
What is the difference between globalisation and imperialism?
Why is Nikon 1.4g better when Nikon 1.8g is sharper?
Is there any word for a place full of confusion?
If Windows 7 doesn't support WSL, then what does Linux subsystem option mean?
Do any jurisdictions seriously consider reclassifying social media websites as publishers?
What do you call the main part of a joke?
Can a new player join a group only when a new campaign starts?
Did Deadpool rescue all of the X-Force?
Do I really need to have a message in a novel to appeal to readers?
What does it mean that physics no longer uses mechanical models to describe phenomena?
Is grep documentation about ignoring case wrong, since it doesn't ignore case in filenames?
How do living politicians protect their readily obtainable signatures from misuse?
What is this clumpy 20-30cm high yellow-flowered plant?
Why wasn't DOSKEY integrated with COMMAND.COM?
Why weren't discrete x86 CPUs ever used in game hardware?
What was the first language to use conditional keywords?
Why aren't air breathing engines used as small first stages?
Why should I vote and accept answers?
How do I find out the mythology and history of my Fortress?
Why is my ESD wriststrap failing with nitrile gloves on?
Most bit efficient text communication method?
How to set letter above or below the symbol?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)How can I make an overset symbol at the same size and height as bar except with a different symbol?Write above the symbol math “subset”Superimpose letter on integral symbolDecrease vertical whitespace when stacking above and below arrowChange vertical space in oversetSymbol: “maps isomorphically”adjusting symbols above letter in mathmodedouble tilde symbol under letterLetter with circle above — not a dot — in math modeHow to print “~” in order to put text above it
I have known oversetK
to set above. However how to do like this:
stacking-symbols
New contributor
add a comment |
I have known oversetK
to set above. However how to do like this:
stacking-symbols
New contributor
add a comment |
I have known oversetK
to set above. However how to do like this:
stacking-symbols
New contributor
I have known oversetK
to set above. However how to do like this:
stacking-symbols
stacking-symbols
New contributor
New contributor
edited Apr 15 at 3:53
JouleV
14k22664
14k22664
New contributor
asked Apr 15 at 3:06
Z MarioZ Mario
262
262
New contributor
New contributor
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The same vertical size as sum
:
documentclassarticle
usepackageamsmath
makeatletter
newcommandnnnDOTSBnnn@slimits@
newcommandnnn@mathop
newcommandnnn@@[2]%
vphantomsum%
ifx#1displaystylebig#2else#2fi
makeatother
begindocument
[
nnn_k=1^Kquad sum_k=1^K
]
begincenter% just to show inline math below displaystyle
$nnn_k=1^K$quad$sum_k=1^K$
endcenter
enddocument
add a comment |
Currently, the width of the widest compnent (k=1
) determines the width of the stack. If it is needed so that the width of K
or the vertical bars determines the width of the stack, please let me know.
It was not clear (to me) from the context of the question whether the baseline is aligned with the K
or the vertical bars. Thus, I offer both possibilities. In the latter, the bars will be sized the same as sum
:
documentclassarticle
usepackagestackengine,scalerel,mathtools
DeclareMathOperator*vbarsscalerel*rule.6pt10ptmkern2murule.6pt10ptsum
stackMath
parskip1ex
begindocument
K baseline:
$stackunder[2pt]Kstackunder[2pt]%
rule.6pt15ptmkern2murule.6pt15ptscriptstyle k=1$
bigskip
Rule baseline:
$vbars^K_k=1$ (textstyle)
$displaystylevbars^K_k=1$ (displaystyle)
enddocument
In the latter case (vbars
math operator), if one wishes the rule thickness and gap to remain the same in both text and display styles, then, in the definition of vbars
, merely change scalerel
to stretchrel
.
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
);
);
Z Mario is a new contributor. Be nice, and check out our Code of Conduct.
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%2f484872%2fhow-to-set-letter-above-or-below-the-symbol%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The same vertical size as sum
:
documentclassarticle
usepackageamsmath
makeatletter
newcommandnnnDOTSBnnn@slimits@
newcommandnnn@mathop
newcommandnnn@@[2]%
vphantomsum%
ifx#1displaystylebig#2else#2fi
makeatother
begindocument
[
nnn_k=1^Kquad sum_k=1^K
]
begincenter% just to show inline math below displaystyle
$nnn_k=1^K$quad$sum_k=1^K$
endcenter
enddocument
add a comment |
The same vertical size as sum
:
documentclassarticle
usepackageamsmath
makeatletter
newcommandnnnDOTSBnnn@slimits@
newcommandnnn@mathop
newcommandnnn@@[2]%
vphantomsum%
ifx#1displaystylebig#2else#2fi
makeatother
begindocument
[
nnn_k=1^Kquad sum_k=1^K
]
begincenter% just to show inline math below displaystyle
$nnn_k=1^K$quad$sum_k=1^K$
endcenter
enddocument
add a comment |
The same vertical size as sum
:
documentclassarticle
usepackageamsmath
makeatletter
newcommandnnnDOTSBnnn@slimits@
newcommandnnn@mathop
newcommandnnn@@[2]%
vphantomsum%
ifx#1displaystylebig#2else#2fi
makeatother
begindocument
[
nnn_k=1^Kquad sum_k=1^K
]
begincenter% just to show inline math below displaystyle
$nnn_k=1^K$quad$sum_k=1^K$
endcenter
enddocument
The same vertical size as sum
:
documentclassarticle
usepackageamsmath
makeatletter
newcommandnnnDOTSBnnn@slimits@
newcommandnnn@mathop
newcommandnnn@@[2]%
vphantomsum%
ifx#1displaystylebig#2else#2fi
makeatother
begindocument
[
nnn_k=1^Kquad sum_k=1^K
]
begincenter% just to show inline math below displaystyle
$nnn_k=1^K$quad$sum_k=1^K$
endcenter
enddocument
answered Apr 15 at 6:31
egregegreg
735k8919343257
735k8919343257
add a comment |
add a comment |
Currently, the width of the widest compnent (k=1
) determines the width of the stack. If it is needed so that the width of K
or the vertical bars determines the width of the stack, please let me know.
It was not clear (to me) from the context of the question whether the baseline is aligned with the K
or the vertical bars. Thus, I offer both possibilities. In the latter, the bars will be sized the same as sum
:
documentclassarticle
usepackagestackengine,scalerel,mathtools
DeclareMathOperator*vbarsscalerel*rule.6pt10ptmkern2murule.6pt10ptsum
stackMath
parskip1ex
begindocument
K baseline:
$stackunder[2pt]Kstackunder[2pt]%
rule.6pt15ptmkern2murule.6pt15ptscriptstyle k=1$
bigskip
Rule baseline:
$vbars^K_k=1$ (textstyle)
$displaystylevbars^K_k=1$ (displaystyle)
enddocument
In the latter case (vbars
math operator), if one wishes the rule thickness and gap to remain the same in both text and display styles, then, in the definition of vbars
, merely change scalerel
to stretchrel
.
add a comment |
Currently, the width of the widest compnent (k=1
) determines the width of the stack. If it is needed so that the width of K
or the vertical bars determines the width of the stack, please let me know.
It was not clear (to me) from the context of the question whether the baseline is aligned with the K
or the vertical bars. Thus, I offer both possibilities. In the latter, the bars will be sized the same as sum
:
documentclassarticle
usepackagestackengine,scalerel,mathtools
DeclareMathOperator*vbarsscalerel*rule.6pt10ptmkern2murule.6pt10ptsum
stackMath
parskip1ex
begindocument
K baseline:
$stackunder[2pt]Kstackunder[2pt]%
rule.6pt15ptmkern2murule.6pt15ptscriptstyle k=1$
bigskip
Rule baseline:
$vbars^K_k=1$ (textstyle)
$displaystylevbars^K_k=1$ (displaystyle)
enddocument
In the latter case (vbars
math operator), if one wishes the rule thickness and gap to remain the same in both text and display styles, then, in the definition of vbars
, merely change scalerel
to stretchrel
.
add a comment |
Currently, the width of the widest compnent (k=1
) determines the width of the stack. If it is needed so that the width of K
or the vertical bars determines the width of the stack, please let me know.
It was not clear (to me) from the context of the question whether the baseline is aligned with the K
or the vertical bars. Thus, I offer both possibilities. In the latter, the bars will be sized the same as sum
:
documentclassarticle
usepackagestackengine,scalerel,mathtools
DeclareMathOperator*vbarsscalerel*rule.6pt10ptmkern2murule.6pt10ptsum
stackMath
parskip1ex
begindocument
K baseline:
$stackunder[2pt]Kstackunder[2pt]%
rule.6pt15ptmkern2murule.6pt15ptscriptstyle k=1$
bigskip
Rule baseline:
$vbars^K_k=1$ (textstyle)
$displaystylevbars^K_k=1$ (displaystyle)
enddocument
In the latter case (vbars
math operator), if one wishes the rule thickness and gap to remain the same in both text and display styles, then, in the definition of vbars
, merely change scalerel
to stretchrel
.
Currently, the width of the widest compnent (k=1
) determines the width of the stack. If it is needed so that the width of K
or the vertical bars determines the width of the stack, please let me know.
It was not clear (to me) from the context of the question whether the baseline is aligned with the K
or the vertical bars. Thus, I offer both possibilities. In the latter, the bars will be sized the same as sum
:
documentclassarticle
usepackagestackengine,scalerel,mathtools
DeclareMathOperator*vbarsscalerel*rule.6pt10ptmkern2murule.6pt10ptsum
stackMath
parskip1ex
begindocument
K baseline:
$stackunder[2pt]Kstackunder[2pt]%
rule.6pt15ptmkern2murule.6pt15ptscriptstyle k=1$
bigskip
Rule baseline:
$vbars^K_k=1$ (textstyle)
$displaystylevbars^K_k=1$ (displaystyle)
enddocument
In the latter case (vbars
math operator), if one wishes the rule thickness and gap to remain the same in both text and display styles, then, in the definition of vbars
, merely change scalerel
to stretchrel
.
edited Apr 15 at 10:22
answered Apr 15 at 3:09
Steven B. SegletesSteven B. Segletes
163k9206419
163k9206419
add a comment |
add a comment |
Z Mario is a new contributor. Be nice, and check out our Code of Conduct.
Z Mario is a new contributor. Be nice, and check out our Code of Conduct.
Z Mario is a new contributor. Be nice, and check out our Code of Conduct.
Z Mario is a new contributor. Be nice, and check out our Code of Conduct.
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%2f484872%2fhow-to-set-letter-above-or-below-the-symbol%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