How to give a line more vertical space / height












4















How can I give one line in LaTeX more vertical height so that something like



frac{n^n}{{2}^{2n} * {n^n}^{2}}


displays correctly with the {2} getting enough space to look like it's above the top n in the denominator {n^n}^{2}.



Note that increasing line spacing doesn't work because LaTeX does not fill the space with the characters. (When I searched for this ability, this was all that came up.)










share|improve this question




















  • 1





    Could you please add a minimal example which reproduces your problem?

    – CarLaTeX
    1 hour ago











  • You can add additional space using {fboxrule=0pt fbox{...}}

    – John Kormylo
    1 hour ago











  • Please advise if the frac expression occurs in displayed or inline math.

    – Mico
    1 hour ago
















4















How can I give one line in LaTeX more vertical height so that something like



frac{n^n}{{2}^{2n} * {n^n}^{2}}


displays correctly with the {2} getting enough space to look like it's above the top n in the denominator {n^n}^{2}.



Note that increasing line spacing doesn't work because LaTeX does not fill the space with the characters. (When I searched for this ability, this was all that came up.)










share|improve this question




















  • 1





    Could you please add a minimal example which reproduces your problem?

    – CarLaTeX
    1 hour ago











  • You can add additional space using {fboxrule=0pt fbox{...}}

    – John Kormylo
    1 hour ago











  • Please advise if the frac expression occurs in displayed or inline math.

    – Mico
    1 hour ago














4












4








4


0






How can I give one line in LaTeX more vertical height so that something like



frac{n^n}{{2}^{2n} * {n^n}^{2}}


displays correctly with the {2} getting enough space to look like it's above the top n in the denominator {n^n}^{2}.



Note that increasing line spacing doesn't work because LaTeX does not fill the space with the characters. (When I searched for this ability, this was all that came up.)










share|improve this question
















How can I give one line in LaTeX more vertical height so that something like



frac{n^n}{{2}^{2n} * {n^n}^{2}}


displays correctly with the {2} getting enough space to look like it's above the top n in the denominator {n^n}^{2}.



Note that increasing line spacing doesn't work because LaTeX does not fill the space with the characters. (When I searched for this ability, this was all that came up.)







line-spacing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago









Mico

277k30380768




277k30380768










asked 1 hour ago









Pro QPro Q

1385




1385








  • 1





    Could you please add a minimal example which reproduces your problem?

    – CarLaTeX
    1 hour ago











  • You can add additional space using {fboxrule=0pt fbox{...}}

    – John Kormylo
    1 hour ago











  • Please advise if the frac expression occurs in displayed or inline math.

    – Mico
    1 hour ago














  • 1





    Could you please add a minimal example which reproduces your problem?

    – CarLaTeX
    1 hour ago











  • You can add additional space using {fboxrule=0pt fbox{...}}

    – John Kormylo
    1 hour ago











  • Please advise if the frac expression occurs in displayed or inline math.

    – Mico
    1 hour ago








1




1





Could you please add a minimal example which reproduces your problem?

– CarLaTeX
1 hour ago





Could you please add a minimal example which reproduces your problem?

– CarLaTeX
1 hour ago













You can add additional space using {fboxrule=0pt fbox{...}}

– John Kormylo
1 hour ago





You can add additional space using {fboxrule=0pt fbox{...}}

– John Kormylo
1 hour ago













Please advise if the frac expression occurs in displayed or inline math.

– Mico
1 hour ago





Please advise if the frac expression occurs in displayed or inline math.

– Mico
1 hour ago










2 Answers
2






active

oldest

votes


















2














Does this go in the right direction?



documentclass[fleqn]{article}

begin{document}
paragraph{Original:}
$frac{n^n}{{2}^{2n} * {n^n}^{2}}$
[frac{n^n}{{2}^{2n} * {n^n}^{2}}]

paragraph{Proposal:}
$frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}$
[frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}]


paragraph{With brackets:}
$frac{n^n}{{2}^{2n} * ( n^n)^{2}}$

[frac{n^n}{{2}^{2n} * (n^n)^{2}}]

end{document}


enter image description here






share|improve this answer































    1














    I think the denominator of your frac expression suffers from two issues:




    • a "cramped" look, i.e., the exponents are not raised much above the baseline

    • first- and second-order exponents are raised to the same height


    How to remedy these issues?




    • To address the first issue, switch to "uncramped" mode -- see the ufrac macro below.



    • To remedy the second issue, you need to either switch to display-math mode or, if that's not possible, switch to inline-fraction notation -- see the second and third rows in the following screenshot.



      Either way, using parentheses to visually "enclose" the n^n term may be a very good idea.




    Whatever else you do, please don't use the unnecessary * multiplication symbol. If you can't do without an explicit multiplication symbol, do use cdot, not *.



    enter image description here



    documentclass{article}

    %% "uncramped" frac macro:
    %% (Source: https://tex.stackexchange.com/a/337334/5001)
    makeatletter
    newcommand{ufrac}[2]{%
    frac{#1}{mathpaletteufrac@den{#2}}}
    newcommand{ufrac@den}[2]{#1#2}
    makeatother

    begin{document}
    inline math mode, verb+frac+ notation

    $frac{n^n}{{2}^{2n} * {n^n}^{2}} % OP's expression
    quad
    ufrac{n^n}{2^{2n} {n^n}^2}
    quad
    ufrac{n^n}{2^{2n} (n^n)^2}$

    bigskip
    display math mode, verb+frac+ notation

    smallskip
    $displaystyle
    frac{n^n}{2^{2n} {n^n}^2}
    quad
    ufrac{n^n}{2^{2n} {n^n}^2}
    quad
    ufrac{n^n}{2^{2n} (n^n)^2}$

    bigskip
    inline-frac notation

    smallskip
    $n^n/(2^{2n} {n^n}^2)
    quad
    n^n/(2^{2n} (n^n)^2)$
    end{document}





    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%2f472826%2fhow-to-give-a-line-more-vertical-space-height%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














      Does this go in the right direction?



      documentclass[fleqn]{article}

      begin{document}
      paragraph{Original:}
      $frac{n^n}{{2}^{2n} * {n^n}^{2}}$
      [frac{n^n}{{2}^{2n} * {n^n}^{2}}]

      paragraph{Proposal:}
      $frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}$
      [frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}]


      paragraph{With brackets:}
      $frac{n^n}{{2}^{2n} * ( n^n)^{2}}$

      [frac{n^n}{{2}^{2n} * (n^n)^{2}}]

      end{document}


      enter image description here






      share|improve this answer




























        2














        Does this go in the right direction?



        documentclass[fleqn]{article}

        begin{document}
        paragraph{Original:}
        $frac{n^n}{{2}^{2n} * {n^n}^{2}}$
        [frac{n^n}{{2}^{2n} * {n^n}^{2}}]

        paragraph{Proposal:}
        $frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}$
        [frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}]


        paragraph{With brackets:}
        $frac{n^n}{{2}^{2n} * ( n^n)^{2}}$

        [frac{n^n}{{2}^{2n} * (n^n)^{2}}]

        end{document}


        enter image description here






        share|improve this answer


























          2












          2








          2







          Does this go in the right direction?



          documentclass[fleqn]{article}

          begin{document}
          paragraph{Original:}
          $frac{n^n}{{2}^{2n} * {n^n}^{2}}$
          [frac{n^n}{{2}^{2n} * {n^n}^{2}}]

          paragraph{Proposal:}
          $frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}$
          [frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}]


          paragraph{With brackets:}
          $frac{n^n}{{2}^{2n} * ( n^n)^{2}}$

          [frac{n^n}{{2}^{2n} * (n^n)^{2}}]

          end{document}


          enter image description here






          share|improve this answer













          Does this go in the right direction?



          documentclass[fleqn]{article}

          begin{document}
          paragraph{Original:}
          $frac{n^n}{{2}^{2n} * {n^n}^{2}}$
          [frac{n^n}{{2}^{2n} * {n^n}^{2}}]

          paragraph{Proposal:}
          $frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}$
          [frac{n^n}{{2}^{2n} * {mathstrut n^n}^{2}}]


          paragraph{With brackets:}
          $frac{n^n}{{2}^{2n} * ( n^n)^{2}}$

          [frac{n^n}{{2}^{2n} * (n^n)^{2}}]

          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 55 mins ago









          marmotmarmot

          96.1k4111212




          96.1k4111212























              1














              I think the denominator of your frac expression suffers from two issues:




              • a "cramped" look, i.e., the exponents are not raised much above the baseline

              • first- and second-order exponents are raised to the same height


              How to remedy these issues?




              • To address the first issue, switch to "uncramped" mode -- see the ufrac macro below.



              • To remedy the second issue, you need to either switch to display-math mode or, if that's not possible, switch to inline-fraction notation -- see the second and third rows in the following screenshot.



                Either way, using parentheses to visually "enclose" the n^n term may be a very good idea.




              Whatever else you do, please don't use the unnecessary * multiplication symbol. If you can't do without an explicit multiplication symbol, do use cdot, not *.



              enter image description here



              documentclass{article}

              %% "uncramped" frac macro:
              %% (Source: https://tex.stackexchange.com/a/337334/5001)
              makeatletter
              newcommand{ufrac}[2]{%
              frac{#1}{mathpaletteufrac@den{#2}}}
              newcommand{ufrac@den}[2]{#1#2}
              makeatother

              begin{document}
              inline math mode, verb+frac+ notation

              $frac{n^n}{{2}^{2n} * {n^n}^{2}} % OP's expression
              quad
              ufrac{n^n}{2^{2n} {n^n}^2}
              quad
              ufrac{n^n}{2^{2n} (n^n)^2}$

              bigskip
              display math mode, verb+frac+ notation

              smallskip
              $displaystyle
              frac{n^n}{2^{2n} {n^n}^2}
              quad
              ufrac{n^n}{2^{2n} {n^n}^2}
              quad
              ufrac{n^n}{2^{2n} (n^n)^2}$

              bigskip
              inline-frac notation

              smallskip
              $n^n/(2^{2n} {n^n}^2)
              quad
              n^n/(2^{2n} (n^n)^2)$
              end{document}





              share|improve this answer




























                1














                I think the denominator of your frac expression suffers from two issues:




                • a "cramped" look, i.e., the exponents are not raised much above the baseline

                • first- and second-order exponents are raised to the same height


                How to remedy these issues?




                • To address the first issue, switch to "uncramped" mode -- see the ufrac macro below.



                • To remedy the second issue, you need to either switch to display-math mode or, if that's not possible, switch to inline-fraction notation -- see the second and third rows in the following screenshot.



                  Either way, using parentheses to visually "enclose" the n^n term may be a very good idea.




                Whatever else you do, please don't use the unnecessary * multiplication symbol. If you can't do without an explicit multiplication symbol, do use cdot, not *.



                enter image description here



                documentclass{article}

                %% "uncramped" frac macro:
                %% (Source: https://tex.stackexchange.com/a/337334/5001)
                makeatletter
                newcommand{ufrac}[2]{%
                frac{#1}{mathpaletteufrac@den{#2}}}
                newcommand{ufrac@den}[2]{#1#2}
                makeatother

                begin{document}
                inline math mode, verb+frac+ notation

                $frac{n^n}{{2}^{2n} * {n^n}^{2}} % OP's expression
                quad
                ufrac{n^n}{2^{2n} {n^n}^2}
                quad
                ufrac{n^n}{2^{2n} (n^n)^2}$

                bigskip
                display math mode, verb+frac+ notation

                smallskip
                $displaystyle
                frac{n^n}{2^{2n} {n^n}^2}
                quad
                ufrac{n^n}{2^{2n} {n^n}^2}
                quad
                ufrac{n^n}{2^{2n} (n^n)^2}$

                bigskip
                inline-frac notation

                smallskip
                $n^n/(2^{2n} {n^n}^2)
                quad
                n^n/(2^{2n} (n^n)^2)$
                end{document}





                share|improve this answer


























                  1












                  1








                  1







                  I think the denominator of your frac expression suffers from two issues:




                  • a "cramped" look, i.e., the exponents are not raised much above the baseline

                  • first- and second-order exponents are raised to the same height


                  How to remedy these issues?




                  • To address the first issue, switch to "uncramped" mode -- see the ufrac macro below.



                  • To remedy the second issue, you need to either switch to display-math mode or, if that's not possible, switch to inline-fraction notation -- see the second and third rows in the following screenshot.



                    Either way, using parentheses to visually "enclose" the n^n term may be a very good idea.




                  Whatever else you do, please don't use the unnecessary * multiplication symbol. If you can't do without an explicit multiplication symbol, do use cdot, not *.



                  enter image description here



                  documentclass{article}

                  %% "uncramped" frac macro:
                  %% (Source: https://tex.stackexchange.com/a/337334/5001)
                  makeatletter
                  newcommand{ufrac}[2]{%
                  frac{#1}{mathpaletteufrac@den{#2}}}
                  newcommand{ufrac@den}[2]{#1#2}
                  makeatother

                  begin{document}
                  inline math mode, verb+frac+ notation

                  $frac{n^n}{{2}^{2n} * {n^n}^{2}} % OP's expression
                  quad
                  ufrac{n^n}{2^{2n} {n^n}^2}
                  quad
                  ufrac{n^n}{2^{2n} (n^n)^2}$

                  bigskip
                  display math mode, verb+frac+ notation

                  smallskip
                  $displaystyle
                  frac{n^n}{2^{2n} {n^n}^2}
                  quad
                  ufrac{n^n}{2^{2n} {n^n}^2}
                  quad
                  ufrac{n^n}{2^{2n} (n^n)^2}$

                  bigskip
                  inline-frac notation

                  smallskip
                  $n^n/(2^{2n} {n^n}^2)
                  quad
                  n^n/(2^{2n} (n^n)^2)$
                  end{document}





                  share|improve this answer













                  I think the denominator of your frac expression suffers from two issues:




                  • a "cramped" look, i.e., the exponents are not raised much above the baseline

                  • first- and second-order exponents are raised to the same height


                  How to remedy these issues?




                  • To address the first issue, switch to "uncramped" mode -- see the ufrac macro below.



                  • To remedy the second issue, you need to either switch to display-math mode or, if that's not possible, switch to inline-fraction notation -- see the second and third rows in the following screenshot.



                    Either way, using parentheses to visually "enclose" the n^n term may be a very good idea.




                  Whatever else you do, please don't use the unnecessary * multiplication symbol. If you can't do without an explicit multiplication symbol, do use cdot, not *.



                  enter image description here



                  documentclass{article}

                  %% "uncramped" frac macro:
                  %% (Source: https://tex.stackexchange.com/a/337334/5001)
                  makeatletter
                  newcommand{ufrac}[2]{%
                  frac{#1}{mathpaletteufrac@den{#2}}}
                  newcommand{ufrac@den}[2]{#1#2}
                  makeatother

                  begin{document}
                  inline math mode, verb+frac+ notation

                  $frac{n^n}{{2}^{2n} * {n^n}^{2}} % OP's expression
                  quad
                  ufrac{n^n}{2^{2n} {n^n}^2}
                  quad
                  ufrac{n^n}{2^{2n} (n^n)^2}$

                  bigskip
                  display math mode, verb+frac+ notation

                  smallskip
                  $displaystyle
                  frac{n^n}{2^{2n} {n^n}^2}
                  quad
                  ufrac{n^n}{2^{2n} {n^n}^2}
                  quad
                  ufrac{n^n}{2^{2n} (n^n)^2}$

                  bigskip
                  inline-frac notation

                  smallskip
                  $n^n/(2^{2n} {n^n}^2)
                  quad
                  n^n/(2^{2n} (n^n)^2)$
                  end{document}






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 29 mins ago









                  MicoMico

                  277k30380768




                  277k30380768






























                      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%2f472826%2fhow-to-give-a-line-more-vertical-space-height%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

                      Loup dans la culture

                      How to solve the problem of ntp “Unable to contact time server” from KDE?

                      ASUS Zenbook UX433/UX333 — Configure Touchpad-embedded numpad on Linux