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 23:30 UTC (7:30pm 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
Is openssl rand command cryptographically secure?
GDP with Intermediate Production
Would color changing eyes affect vision?
How were pictures turned from film to a big picture in a picture frame before digital scanning?
Caught masturbating at work
Why not send Voyager 3 and 4 following up the paths taken by Voyager 1 and 2 to re-transmit signals of later as they fly away from Earth?
How to align enumerate environment inside description environment
Mounting TV on a weird wall that has some material between the drywall and stud
How can I save and copy a screenhot at the same time?
A term for a woman complaining about things/begging in a cute/childish way
Delete free apps from library
Special flights
After Sam didn't return home in the end, were he and Al still friends?
Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?
"klopfte jemand" or "jemand klopfte"?
New Order #6: Easter Egg
Was Kant an Intuitionist about mathematical objects?
Asymptotics question
Resize vertical bars (absolute-value symbols)
Why is the change of basis formula counter-intuitive? [See details]
Why is a lens darker than other ones when applying the same settings?
Nose gear failure in single prop aircraft: belly landing or nose-gear up landing?
How does light 'choose' between wave and particle behaviour?
Getting out of while loop on console
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 23:30 UTC (7:30pm 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
14.6k22665
14.6k22665
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@mathopmathpalettennn@@
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@mathopmathpalettennn@@
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@mathopmathpalettennn@@
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@mathopmathpalettennn@@
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@mathopmathpalettennn@@
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
735k8919343260
735k8919343260
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
163k9207419
163k9207419
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