Reducing vertical space in stackrel
I often use the stackrel command within an equation in the following way
documentclass{article}
begin{document}
%
begin{equation}
e^{ipi} + 1 stackrel{footnotemark}{=} 0
end{equation}
footnotetext{this is Euler's identity.}
%
end{document}
I'd like to reduce the vertical distance between the footnotemark and the equal sign by default. How can I do it?
vertical-alignment
add a comment |
I often use the stackrel command within an equation in the following way
documentclass{article}
begin{document}
%
begin{equation}
e^{ipi} + 1 stackrel{footnotemark}{=} 0
end{equation}
footnotetext{this is Euler's identity.}
%
end{document}
I'd like to reduce the vertical distance between the footnotemark and the equal sign by default. How can I do it?
vertical-alignment
add a comment |
I often use the stackrel command within an equation in the following way
documentclass{article}
begin{document}
%
begin{equation}
e^{ipi} + 1 stackrel{footnotemark}{=} 0
end{equation}
footnotetext{this is Euler's identity.}
%
end{document}
I'd like to reduce the vertical distance between the footnotemark and the equal sign by default. How can I do it?
vertical-alignment
I often use the stackrel command within an equation in the following way
documentclass{article}
begin{document}
%
begin{equation}
e^{ipi} + 1 stackrel{footnotemark}{=} 0
end{equation}
footnotetext{this is Euler's identity.}
%
end{document}
I'd like to reduce the vertical distance between the footnotemark and the equal sign by default. How can I do it?
vertical-alignment
vertical-alignment
asked 1 hour ago
noibenoibe
574113
574113
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
My answer is based from a bit change of the code by the excellent user @egreg at this link:
How can i shrink (or expand) the vertical spacing in stackrel?
See the result:

documentclass{article}
newcommand{nstackrel}{%
mathrel{vbox{offinterlineskipialign{%
hfil##hfilcr
$scriptscriptstylefootnotemark$cr
noalign{kern-.3ex}
$=$cr
}}}}
begin{document}
%
begin{equation}
e^{ipi} + 1 nstackrel 0
end{equation}
footnotetext{this is Euler's identity.}
%
end{document}
add a comment |
A stackengine approach. You can adjust the 1st argument of stackengine from -1pt to get the desired spacing.
You can use ftmk before other symbols, as well, e.g., + and -.
documentclass{article}
usepackage{stackengine}
newcommandftmk[1]{addtocounter{footnote}{-1}ensurestackMath{%
stackengine{-1pt}{{}#1{}}{footnotemark}{O}{c}{F}{F}{S}}}
begin{document}
begin{equation}
e^{ipi} + 1 ftmk= 0
end{equation}
footnotetext{this is Euler's identity.}
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%2f487963%2freducing-vertical-space-in-stackrel%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
My answer is based from a bit change of the code by the excellent user @egreg at this link:
How can i shrink (or expand) the vertical spacing in stackrel?
See the result:

documentclass{article}
newcommand{nstackrel}{%
mathrel{vbox{offinterlineskipialign{%
hfil##hfilcr
$scriptscriptstylefootnotemark$cr
noalign{kern-.3ex}
$=$cr
}}}}
begin{document}
%
begin{equation}
e^{ipi} + 1 nstackrel 0
end{equation}
footnotetext{this is Euler's identity.}
%
end{document}
add a comment |
My answer is based from a bit change of the code by the excellent user @egreg at this link:
How can i shrink (or expand) the vertical spacing in stackrel?
See the result:

documentclass{article}
newcommand{nstackrel}{%
mathrel{vbox{offinterlineskipialign{%
hfil##hfilcr
$scriptscriptstylefootnotemark$cr
noalign{kern-.3ex}
$=$cr
}}}}
begin{document}
%
begin{equation}
e^{ipi} + 1 nstackrel 0
end{equation}
footnotetext{this is Euler's identity.}
%
end{document}
add a comment |
My answer is based from a bit change of the code by the excellent user @egreg at this link:
How can i shrink (or expand) the vertical spacing in stackrel?
See the result:

documentclass{article}
newcommand{nstackrel}{%
mathrel{vbox{offinterlineskipialign{%
hfil##hfilcr
$scriptscriptstylefootnotemark$cr
noalign{kern-.3ex}
$=$cr
}}}}
begin{document}
%
begin{equation}
e^{ipi} + 1 nstackrel 0
end{equation}
footnotetext{this is Euler's identity.}
%
end{document}
My answer is based from a bit change of the code by the excellent user @egreg at this link:
How can i shrink (or expand) the vertical spacing in stackrel?
See the result:

documentclass{article}
newcommand{nstackrel}{%
mathrel{vbox{offinterlineskipialign{%
hfil##hfilcr
$scriptscriptstylefootnotemark$cr
noalign{kern-.3ex}
$=$cr
}}}}
begin{document}
%
begin{equation}
e^{ipi} + 1 nstackrel 0
end{equation}
footnotetext{this is Euler's identity.}
%
end{document}
answered 34 mins ago
SebastianoSebastiano
11.7k42366
11.7k42366
add a comment |
add a comment |
A stackengine approach. You can adjust the 1st argument of stackengine from -1pt to get the desired spacing.
You can use ftmk before other symbols, as well, e.g., + and -.
documentclass{article}
usepackage{stackengine}
newcommandftmk[1]{addtocounter{footnote}{-1}ensurestackMath{%
stackengine{-1pt}{{}#1{}}{footnotemark}{O}{c}{F}{F}{S}}}
begin{document}
begin{equation}
e^{ipi} + 1 ftmk= 0
end{equation}
footnotetext{this is Euler's identity.}
end{document}

add a comment |
A stackengine approach. You can adjust the 1st argument of stackengine from -1pt to get the desired spacing.
You can use ftmk before other symbols, as well, e.g., + and -.
documentclass{article}
usepackage{stackengine}
newcommandftmk[1]{addtocounter{footnote}{-1}ensurestackMath{%
stackengine{-1pt}{{}#1{}}{footnotemark}{O}{c}{F}{F}{S}}}
begin{document}
begin{equation}
e^{ipi} + 1 ftmk= 0
end{equation}
footnotetext{this is Euler's identity.}
end{document}

add a comment |
A stackengine approach. You can adjust the 1st argument of stackengine from -1pt to get the desired spacing.
You can use ftmk before other symbols, as well, e.g., + and -.
documentclass{article}
usepackage{stackengine}
newcommandftmk[1]{addtocounter{footnote}{-1}ensurestackMath{%
stackengine{-1pt}{{}#1{}}{footnotemark}{O}{c}{F}{F}{S}}}
begin{document}
begin{equation}
e^{ipi} + 1 ftmk= 0
end{equation}
footnotetext{this is Euler's identity.}
end{document}

A stackengine approach. You can adjust the 1st argument of stackengine from -1pt to get the desired spacing.
You can use ftmk before other symbols, as well, e.g., + and -.
documentclass{article}
usepackage{stackengine}
newcommandftmk[1]{addtocounter{footnote}{-1}ensurestackMath{%
stackengine{-1pt}{{}#1{}}{footnotemark}{O}{c}{F}{F}{S}}}
begin{document}
begin{equation}
e^{ipi} + 1 ftmk= 0
end{equation}
footnotetext{this is Euler's identity.}
end{document}

answered 18 mins ago
Steven B. SegletesSteven B. Segletes
163k9208421
163k9208421
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%2f487963%2freducing-vertical-space-in-stackrel%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