How to give the exponent terms in the denominator part of a frac expression more vertical space?












8















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? I mean, how to give the {2} term more vertical displacement, so that it looks like it's above the top n in the term {n^n}^{2} in the denominator?



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




















  • 2





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

    – CarLaTeX
    Feb 1 at 4:13











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

    – John Kormylo
    Feb 1 at 4:22
















8















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? I mean, how to give the {2} term more vertical displacement, so that it looks like it's above the top n in the term {n^n}^{2} in the denominator?



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




















  • 2





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

    – CarLaTeX
    Feb 1 at 4:13











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

    – John Kormylo
    Feb 1 at 4:22














8












8








8


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? I mean, how to give the {2} term more vertical displacement, so that it looks like it's above the top n in the term {n^n}^{2} in the denominator?



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? I mean, how to give the {2} term more vertical displacement, so that it looks like it's above the top n in the term {n^n}^{2} in the denominator?



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.)







fractions






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 3 mins ago









Mico

278k30380768




278k30380768










asked Feb 1 at 4:10









Pro QPro Q

1605




1605








  • 2





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

    – CarLaTeX
    Feb 1 at 4:13











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

    – John Kormylo
    Feb 1 at 4:22














  • 2





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

    – CarLaTeX
    Feb 1 at 4:13











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

    – John Kormylo
    Feb 1 at 4:22








2




2





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

– CarLaTeX
Feb 1 at 4:13





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

– CarLaTeX
Feb 1 at 4:13













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

– John Kormylo
Feb 1 at 4:22





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

– John Kormylo
Feb 1 at 4:22










2 Answers
2






active

oldest

votes


















8














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 (very nearly) 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, I suggest you switch from {n^n}^2 to n^{n^2}. (The two forms are the same, mathematically speaking, but they are quite differnt from a typographic point of view.) That, or use parentheses to visually "enclose" the n^n term.



    Alternatively, consider switching from "standard" frac notation to inline-fraction notation.




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: @egreg [who else?!], 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 specially like the 3rd option instead of the first one. We need more parentheses, but we guarantee not to destroy line spacing (and sometines it is visually better). Thanks for showing us the options!

    – manooooh
    Feb 1 at 7:10



















6














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























    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-the-exponent-terms-in-the-denominator-part-of-a-frac-expression-mor%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









    8














    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 (very nearly) 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, I suggest you switch from {n^n}^2 to n^{n^2}. (The two forms are the same, mathematically speaking, but they are quite differnt from a typographic point of view.) That, or use parentheses to visually "enclose" the n^n term.



      Alternatively, consider switching from "standard" frac notation to inline-fraction notation.




    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: @egreg [who else?!], 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 specially like the 3rd option instead of the first one. We need more parentheses, but we guarantee not to destroy line spacing (and sometines it is visually better). Thanks for showing us the options!

      – manooooh
      Feb 1 at 7:10
















    8














    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 (very nearly) 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, I suggest you switch from {n^n}^2 to n^{n^2}. (The two forms are the same, mathematically speaking, but they are quite differnt from a typographic point of view.) That, or use parentheses to visually "enclose" the n^n term.



      Alternatively, consider switching from "standard" frac notation to inline-fraction notation.




    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: @egreg [who else?!], 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 specially like the 3rd option instead of the first one. We need more parentheses, but we guarantee not to destroy line spacing (and sometines it is visually better). Thanks for showing us the options!

      – manooooh
      Feb 1 at 7:10














    8












    8








    8







    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 (very nearly) 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, I suggest you switch from {n^n}^2 to n^{n^2}. (The two forms are the same, mathematically speaking, but they are quite differnt from a typographic point of view.) That, or use parentheses to visually "enclose" the n^n term.



      Alternatively, consider switching from "standard" frac notation to inline-fraction notation.




    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: @egreg [who else?!], 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 (very nearly) 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, I suggest you switch from {n^n}^2 to n^{n^2}. (The two forms are the same, mathematically speaking, but they are quite differnt from a typographic point of view.) That, or use parentheses to visually "enclose" the n^n term.



      Alternatively, consider switching from "standard" frac notation to inline-fraction notation.




    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: @egreg [who else?!], 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








    edited Feb 1 at 6:44

























    answered Feb 1 at 5:34









    MicoMico

    278k30380768




    278k30380768








    • 1





      I specially like the 3rd option instead of the first one. We need more parentheses, but we guarantee not to destroy line spacing (and sometines it is visually better). Thanks for showing us the options!

      – manooooh
      Feb 1 at 7:10














    • 1





      I specially like the 3rd option instead of the first one. We need more parentheses, but we guarantee not to destroy line spacing (and sometines it is visually better). Thanks for showing us the options!

      – manooooh
      Feb 1 at 7:10








    1




    1





    I specially like the 3rd option instead of the first one. We need more parentheses, but we guarantee not to destroy line spacing (and sometines it is visually better). Thanks for showing us the options!

    – manooooh
    Feb 1 at 7:10





    I specially like the 3rd option instead of the first one. We need more parentheses, but we guarantee not to destroy line spacing (and sometines it is visually better). Thanks for showing us the options!

    – manooooh
    Feb 1 at 7:10











    6














    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




























      6














      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


























        6












        6








        6







        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 Feb 1 at 5:08









        marmotmarmot

        98.2k4113218




        98.2k4113218






























            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-the-exponent-terms-in-the-denominator-part-of-a-frac-expression-mor%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

            A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

            Calculate evaluation metrics using cross_val_predict sklearn

            Insert data from modal to MySQL (multiple modal on website)