Reducing vertical space in stackrel












3















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?










share|improve this question



























    3















    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?










    share|improve this question

























      3












      3








      3








      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?










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      noibenoibe

      574113




      574113






















          2 Answers
          2






          active

          oldest

          votes


















          2














          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:



          enter image description here



          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}





          share|improve this answer































            1














            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}


            enter image description here






            share|improve this answer
























              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
              });


              }
              });














              draft saved

              draft discarded


















              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









              2














              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:



              enter image description here



              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}





              share|improve this answer




























                2














                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:



                enter image description here



                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}





                share|improve this answer


























                  2












                  2








                  2







                  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:



                  enter image description here



                  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}





                  share|improve this answer













                  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:



                  enter image description here



                  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}






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 34 mins ago









                  SebastianoSebastiano

                  11.7k42366




                  11.7k42366























                      1














                      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}


                      enter image description here






                      share|improve this answer




























                        1














                        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}


                        enter image description here






                        share|improve this answer


























                          1












                          1








                          1







                          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}


                          enter image description here






                          share|improve this answer













                          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}


                          enter image description here







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 18 mins ago









                          Steven B. SegletesSteven B. Segletes

                          163k9208421




                          163k9208421






























                              draft saved

                              draft discarded




















































                              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.




                              draft saved


                              draft discarded














                              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





















































                              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







                              Popular posts from this blog

                              Callistus I

                              Tabula Rosettana

                              How to label and detect the document text images