equal size numerator and denominator Announcing the arrival of Valued Associate #679: Cesar...

Tips to organize LaTeX presentations for a semester

What is the "studentd" process?

How to ternary Plot3D a function

Omitting the following parentheses

Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?

Co-worker has annoying ringtone

Does the Mueller report show a conspiracy between Russia and the Trump Campaign?

How would a mousetrap for use in space work?

How many time has Arya actually used Needle?

How does the math work when buying airline miles?

Tannaka duality for semisimple groups

Solve equation for value of x:

Cut your dress down to your length/size

How does light 'choose' between wave and particle behaviour?

Monty Hall Problem-Probability Paradox

Understanding p-Values using an example

If Windows 7 doesn't support WSL, then what is "Subsystem for UNIX-based Applications"?

New Order #6: Easter Egg

What does Turing mean by this statement?

How to write capital alpha?

"klopfte jemand" or "jemand klopfte"?

Project Euler #1 in C++

Connecting Mac Book Pro 2017 to 2 Projectors via USB C

Why is std::move not [[nodiscard]] in C++20?



equal size numerator and denominator



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)How to control the font size in complex fractions?How do I make the characters have the same size?New command in TeX for fractionReformat frac depending on numerator/denominator size differenceHow to improve the looks of a fraction?How can you change the width of a fraction bar?Aligned numerator and denominator in frac or any other variantHelp on typesetting an equation with fraction in numerator and denominatorHow to change the size of fractionsMake numerator and denominator terms of frac biggerHow to create a Fraction equation with '[]' while numerator and denominator may have more than two linesHow to make all parts of fraction, except numerator, disappear while keeping original position of numerator (or how to align at numerator with `&`)?How can I align certain elements of the numerator and denominator in a fraction?












5















I am trying to size the numerator and denominator of the below equation so that they are equal in size. I have not had much luck suggestions are appreciated.



begin{equation}
sum_{i=1}^{n} frac{frac{cf_{n}}{(1+i)^n}} {displaystylesum_{i=1}^{n}frac{cf_n}{(1+i)^n}} , n_{i}
end{equation}









share|improve this question




















  • 2





    Either remove displaystyle or use dfrac instead of frac for the inner fractions.

    – Qrrbrbirlbel
    Sep 16 '13 at 1:17


















5















I am trying to size the numerator and denominator of the below equation so that they are equal in size. I have not had much luck suggestions are appreciated.



begin{equation}
sum_{i=1}^{n} frac{frac{cf_{n}}{(1+i)^n}} {displaystylesum_{i=1}^{n}frac{cf_n}{(1+i)^n}} , n_{i}
end{equation}









share|improve this question




















  • 2





    Either remove displaystyle or use dfrac instead of frac for the inner fractions.

    – Qrrbrbirlbel
    Sep 16 '13 at 1:17
















5












5








5


2






I am trying to size the numerator and denominator of the below equation so that they are equal in size. I have not had much luck suggestions are appreciated.



begin{equation}
sum_{i=1}^{n} frac{frac{cf_{n}}{(1+i)^n}} {displaystylesum_{i=1}^{n}frac{cf_n}{(1+i)^n}} , n_{i}
end{equation}









share|improve this question
















I am trying to size the numerator and denominator of the below equation so that they are equal in size. I have not had much luck suggestions are appreciated.



begin{equation}
sum_{i=1}^{n} frac{frac{cf_{n}}{(1+i)^n}} {displaystylesum_{i=1}^{n}frac{cf_n}{(1+i)^n}} , n_{i}
end{equation}






fractions






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 16 '13 at 1:10









Corentin

6,60733557




6,60733557










asked Sep 16 '13 at 1:07









someoneelsesomeoneelse

28114




28114








  • 2





    Either remove displaystyle or use dfrac instead of frac for the inner fractions.

    – Qrrbrbirlbel
    Sep 16 '13 at 1:17
















  • 2





    Either remove displaystyle or use dfrac instead of frac for the inner fractions.

    – Qrrbrbirlbel
    Sep 16 '13 at 1:17










2




2





Either remove displaystyle or use dfrac instead of frac for the inner fractions.

– Qrrbrbirlbel
Sep 16 '13 at 1:17







Either remove displaystyle or use dfrac instead of frac for the inner fractions.

– Qrrbrbirlbel
Sep 16 '13 at 1:17












2 Answers
2






active

oldest

votes


















17














Probably you had added displaystyle to get the superscript and subscript of the inner sum operator on top and below the symbol. This also increases the size of the fraction. Instead limits can be used to move the superscript and subscript of the operator at the same place as in displaystyle:



documentclass{article}
begin{document}
[
sum_{i=1}^{n}
frac{frac{cf_{n}}{(1+i)^n}}
{sumlimits_{i=1}^{n}frac{cf_n}{(1+i)^n}}
, n_{i}
]
end{document}



Result




The following example makes the four math style visible:



  ① displaystyle

  ② textstyle

  ③ scriptstyle

  ④ scriptscriptstyle



documentclass{article}

usepackage{pifont}
usepackage{amstext}
usepackage{color}
newcommand*{showms}{%
mathchoice
{{scriptscriptstyletext{color{red}ding{172}}}}%
{{scriptscriptstyletext{color{red}ding{173}}}}%
{{scriptscriptstyletext{color{red}ding{174}}}}%
{{scriptscriptstyletext{color{red}ding{175}}}}%
}

begin{document}
[
showmssum_{showms i=1}^{showms n}
showmsfrac{
showmsfrac{showms cf_{showms n}}{showms (1+i)^{showms n}}
}{
displaystyle
showmssum_{showms i=1}^{showms n}
showmsfrac{showms cf_{showms n}}{showms(1+i)^{showms n}}
}showms,
n_{showms i}
]
[
showmssum_{showms i=1}^{showms n}
showmsfrac{
showmsfrac{showms cf_{showms n}}{showms (1+i)^{showms n}}
}{
showmssumlimits_{showms i=1}^{showms n}
showmsfrac{showms cf_{showms n}}{showms(1+i)^{showms n}}
}showms,
n_{showms i}
]
end{document}



Result with math styles




Legend:



  ① displaystyle

  ② textstyle

  ③ scriptstyle

  ④ scriptscriptstyle






share|improve this answer


























  • This is great! I thought that all equations had to start with begin and end equation. What is the underlying structure of the command? This is very useful, thank you for your input

    – someoneelse
    Sep 19 '13 at 1:26











  • begin{equation}...end{equation} is used for numbered equations. [...] or the environment form begin{displaymath}...end{displaymath} are used for unnumbered equations. $...$ or (...) are used for inline math.

    – Heiko Oberdiek
    Sep 19 '13 at 2:18











  • How to print legend in document?..It ok..did it :)

    – Levan Shoshiashvili
    Jul 26 '15 at 20:26













  • @someoneelse With amsmath we also have begin{equation*} ... end{equation*} and begin{align*} ... end{align*}.

    – L. F.
    Mar 31 at 5:55



















0














Alternatively from New command in TeX for fraction and Mathfixs package:



documentclass{article}
usepackage{mathfixs,amsmath,anyfontsize}
makeatletter
newcommand*{fr}[1]{%
fr@aux#1,,@nil
}
deffr@aux#1,#2,#3@nil{%
ensuremath{frac{#1}{#2}}%
}
makeatother

begin{document}
[ fr{mbox{fontsize{2mm}{2mm}selectfont 5 - 2} ,textstyle{mbox{fontsize{2mm}{2mm}selectfont 6 - 1}}} = fr{20,30} ]
[frac{textstyle{mbox{fontsize{2mm}{2mm}selectfont 5 - 2 }}}{textstyle{mbox{fontsize{2mm}{2mm}selectfont 6 - 1}} } = frac{20}{30}]
end{document}


Notice the difference in vertical alignment between numerator and denominator when using each of the methods.



Solution but with internal alignment difference






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%2f133527%2fequal-size-numerator-and-denominator%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









    17














    Probably you had added displaystyle to get the superscript and subscript of the inner sum operator on top and below the symbol. This also increases the size of the fraction. Instead limits can be used to move the superscript and subscript of the operator at the same place as in displaystyle:



    documentclass{article}
    begin{document}
    [
    sum_{i=1}^{n}
    frac{frac{cf_{n}}{(1+i)^n}}
    {sumlimits_{i=1}^{n}frac{cf_n}{(1+i)^n}}
    , n_{i}
    ]
    end{document}



    Result




    The following example makes the four math style visible:



      ① displaystyle

      ② textstyle

      ③ scriptstyle

      ④ scriptscriptstyle



    documentclass{article}

    usepackage{pifont}
    usepackage{amstext}
    usepackage{color}
    newcommand*{showms}{%
    mathchoice
    {{scriptscriptstyletext{color{red}ding{172}}}}%
    {{scriptscriptstyletext{color{red}ding{173}}}}%
    {{scriptscriptstyletext{color{red}ding{174}}}}%
    {{scriptscriptstyletext{color{red}ding{175}}}}%
    }

    begin{document}
    [
    showmssum_{showms i=1}^{showms n}
    showmsfrac{
    showmsfrac{showms cf_{showms n}}{showms (1+i)^{showms n}}
    }{
    displaystyle
    showmssum_{showms i=1}^{showms n}
    showmsfrac{showms cf_{showms n}}{showms(1+i)^{showms n}}
    }showms,
    n_{showms i}
    ]
    [
    showmssum_{showms i=1}^{showms n}
    showmsfrac{
    showmsfrac{showms cf_{showms n}}{showms (1+i)^{showms n}}
    }{
    showmssumlimits_{showms i=1}^{showms n}
    showmsfrac{showms cf_{showms n}}{showms(1+i)^{showms n}}
    }showms,
    n_{showms i}
    ]
    end{document}



    Result with math styles




    Legend:



      ① displaystyle

      ② textstyle

      ③ scriptstyle

      ④ scriptscriptstyle






    share|improve this answer


























    • This is great! I thought that all equations had to start with begin and end equation. What is the underlying structure of the command? This is very useful, thank you for your input

      – someoneelse
      Sep 19 '13 at 1:26











    • begin{equation}...end{equation} is used for numbered equations. [...] or the environment form begin{displaymath}...end{displaymath} are used for unnumbered equations. $...$ or (...) are used for inline math.

      – Heiko Oberdiek
      Sep 19 '13 at 2:18











    • How to print legend in document?..It ok..did it :)

      – Levan Shoshiashvili
      Jul 26 '15 at 20:26













    • @someoneelse With amsmath we also have begin{equation*} ... end{equation*} and begin{align*} ... end{align*}.

      – L. F.
      Mar 31 at 5:55
















    17














    Probably you had added displaystyle to get the superscript and subscript of the inner sum operator on top and below the symbol. This also increases the size of the fraction. Instead limits can be used to move the superscript and subscript of the operator at the same place as in displaystyle:



    documentclass{article}
    begin{document}
    [
    sum_{i=1}^{n}
    frac{frac{cf_{n}}{(1+i)^n}}
    {sumlimits_{i=1}^{n}frac{cf_n}{(1+i)^n}}
    , n_{i}
    ]
    end{document}



    Result




    The following example makes the four math style visible:



      ① displaystyle

      ② textstyle

      ③ scriptstyle

      ④ scriptscriptstyle



    documentclass{article}

    usepackage{pifont}
    usepackage{amstext}
    usepackage{color}
    newcommand*{showms}{%
    mathchoice
    {{scriptscriptstyletext{color{red}ding{172}}}}%
    {{scriptscriptstyletext{color{red}ding{173}}}}%
    {{scriptscriptstyletext{color{red}ding{174}}}}%
    {{scriptscriptstyletext{color{red}ding{175}}}}%
    }

    begin{document}
    [
    showmssum_{showms i=1}^{showms n}
    showmsfrac{
    showmsfrac{showms cf_{showms n}}{showms (1+i)^{showms n}}
    }{
    displaystyle
    showmssum_{showms i=1}^{showms n}
    showmsfrac{showms cf_{showms n}}{showms(1+i)^{showms n}}
    }showms,
    n_{showms i}
    ]
    [
    showmssum_{showms i=1}^{showms n}
    showmsfrac{
    showmsfrac{showms cf_{showms n}}{showms (1+i)^{showms n}}
    }{
    showmssumlimits_{showms i=1}^{showms n}
    showmsfrac{showms cf_{showms n}}{showms(1+i)^{showms n}}
    }showms,
    n_{showms i}
    ]
    end{document}



    Result with math styles




    Legend:



      ① displaystyle

      ② textstyle

      ③ scriptstyle

      ④ scriptscriptstyle






    share|improve this answer


























    • This is great! I thought that all equations had to start with begin and end equation. What is the underlying structure of the command? This is very useful, thank you for your input

      – someoneelse
      Sep 19 '13 at 1:26











    • begin{equation}...end{equation} is used for numbered equations. [...] or the environment form begin{displaymath}...end{displaymath} are used for unnumbered equations. $...$ or (...) are used for inline math.

      – Heiko Oberdiek
      Sep 19 '13 at 2:18











    • How to print legend in document?..It ok..did it :)

      – Levan Shoshiashvili
      Jul 26 '15 at 20:26













    • @someoneelse With amsmath we also have begin{equation*} ... end{equation*} and begin{align*} ... end{align*}.

      – L. F.
      Mar 31 at 5:55














    17












    17








    17







    Probably you had added displaystyle to get the superscript and subscript of the inner sum operator on top and below the symbol. This also increases the size of the fraction. Instead limits can be used to move the superscript and subscript of the operator at the same place as in displaystyle:



    documentclass{article}
    begin{document}
    [
    sum_{i=1}^{n}
    frac{frac{cf_{n}}{(1+i)^n}}
    {sumlimits_{i=1}^{n}frac{cf_n}{(1+i)^n}}
    , n_{i}
    ]
    end{document}



    Result




    The following example makes the four math style visible:



      ① displaystyle

      ② textstyle

      ③ scriptstyle

      ④ scriptscriptstyle



    documentclass{article}

    usepackage{pifont}
    usepackage{amstext}
    usepackage{color}
    newcommand*{showms}{%
    mathchoice
    {{scriptscriptstyletext{color{red}ding{172}}}}%
    {{scriptscriptstyletext{color{red}ding{173}}}}%
    {{scriptscriptstyletext{color{red}ding{174}}}}%
    {{scriptscriptstyletext{color{red}ding{175}}}}%
    }

    begin{document}
    [
    showmssum_{showms i=1}^{showms n}
    showmsfrac{
    showmsfrac{showms cf_{showms n}}{showms (1+i)^{showms n}}
    }{
    displaystyle
    showmssum_{showms i=1}^{showms n}
    showmsfrac{showms cf_{showms n}}{showms(1+i)^{showms n}}
    }showms,
    n_{showms i}
    ]
    [
    showmssum_{showms i=1}^{showms n}
    showmsfrac{
    showmsfrac{showms cf_{showms n}}{showms (1+i)^{showms n}}
    }{
    showmssumlimits_{showms i=1}^{showms n}
    showmsfrac{showms cf_{showms n}}{showms(1+i)^{showms n}}
    }showms,
    n_{showms i}
    ]
    end{document}



    Result with math styles




    Legend:



      ① displaystyle

      ② textstyle

      ③ scriptstyle

      ④ scriptscriptstyle






    share|improve this answer















    Probably you had added displaystyle to get the superscript and subscript of the inner sum operator on top and below the symbol. This also increases the size of the fraction. Instead limits can be used to move the superscript and subscript of the operator at the same place as in displaystyle:



    documentclass{article}
    begin{document}
    [
    sum_{i=1}^{n}
    frac{frac{cf_{n}}{(1+i)^n}}
    {sumlimits_{i=1}^{n}frac{cf_n}{(1+i)^n}}
    , n_{i}
    ]
    end{document}



    Result




    The following example makes the four math style visible:



      ① displaystyle

      ② textstyle

      ③ scriptstyle

      ④ scriptscriptstyle



    documentclass{article}

    usepackage{pifont}
    usepackage{amstext}
    usepackage{color}
    newcommand*{showms}{%
    mathchoice
    {{scriptscriptstyletext{color{red}ding{172}}}}%
    {{scriptscriptstyletext{color{red}ding{173}}}}%
    {{scriptscriptstyletext{color{red}ding{174}}}}%
    {{scriptscriptstyletext{color{red}ding{175}}}}%
    }

    begin{document}
    [
    showmssum_{showms i=1}^{showms n}
    showmsfrac{
    showmsfrac{showms cf_{showms n}}{showms (1+i)^{showms n}}
    }{
    displaystyle
    showmssum_{showms i=1}^{showms n}
    showmsfrac{showms cf_{showms n}}{showms(1+i)^{showms n}}
    }showms,
    n_{showms i}
    ]
    [
    showmssum_{showms i=1}^{showms n}
    showmsfrac{
    showmsfrac{showms cf_{showms n}}{showms (1+i)^{showms n}}
    }{
    showmssumlimits_{showms i=1}^{showms n}
    showmsfrac{showms cf_{showms n}}{showms(1+i)^{showms n}}
    }showms,
    n_{showms i}
    ]
    end{document}



    Result with math styles




    Legend:



      ① displaystyle

      ② textstyle

      ③ scriptstyle

      ④ scriptscriptstyle







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Sep 16 '13 at 1:53

























    answered Sep 16 '13 at 1:29









    Heiko OberdiekHeiko Oberdiek

    232k19563914




    232k19563914













    • This is great! I thought that all equations had to start with begin and end equation. What is the underlying structure of the command? This is very useful, thank you for your input

      – someoneelse
      Sep 19 '13 at 1:26











    • begin{equation}...end{equation} is used for numbered equations. [...] or the environment form begin{displaymath}...end{displaymath} are used for unnumbered equations. $...$ or (...) are used for inline math.

      – Heiko Oberdiek
      Sep 19 '13 at 2:18











    • How to print legend in document?..It ok..did it :)

      – Levan Shoshiashvili
      Jul 26 '15 at 20:26













    • @someoneelse With amsmath we also have begin{equation*} ... end{equation*} and begin{align*} ... end{align*}.

      – L. F.
      Mar 31 at 5:55



















    • This is great! I thought that all equations had to start with begin and end equation. What is the underlying structure of the command? This is very useful, thank you for your input

      – someoneelse
      Sep 19 '13 at 1:26











    • begin{equation}...end{equation} is used for numbered equations. [...] or the environment form begin{displaymath}...end{displaymath} are used for unnumbered equations. $...$ or (...) are used for inline math.

      – Heiko Oberdiek
      Sep 19 '13 at 2:18











    • How to print legend in document?..It ok..did it :)

      – Levan Shoshiashvili
      Jul 26 '15 at 20:26













    • @someoneelse With amsmath we also have begin{equation*} ... end{equation*} and begin{align*} ... end{align*}.

      – L. F.
      Mar 31 at 5:55

















    This is great! I thought that all equations had to start with begin and end equation. What is the underlying structure of the command? This is very useful, thank you for your input

    – someoneelse
    Sep 19 '13 at 1:26





    This is great! I thought that all equations had to start with begin and end equation. What is the underlying structure of the command? This is very useful, thank you for your input

    – someoneelse
    Sep 19 '13 at 1:26













    begin{equation}...end{equation} is used for numbered equations. [...] or the environment form begin{displaymath}...end{displaymath} are used for unnumbered equations. $...$ or (...) are used for inline math.

    – Heiko Oberdiek
    Sep 19 '13 at 2:18





    begin{equation}...end{equation} is used for numbered equations. [...] or the environment form begin{displaymath}...end{displaymath} are used for unnumbered equations. $...$ or (...) are used for inline math.

    – Heiko Oberdiek
    Sep 19 '13 at 2:18













    How to print legend in document?..It ok..did it :)

    – Levan Shoshiashvili
    Jul 26 '15 at 20:26







    How to print legend in document?..It ok..did it :)

    – Levan Shoshiashvili
    Jul 26 '15 at 20:26















    @someoneelse With amsmath we also have begin{equation*} ... end{equation*} and begin{align*} ... end{align*}.

    – L. F.
    Mar 31 at 5:55





    @someoneelse With amsmath we also have begin{equation*} ... end{equation*} and begin{align*} ... end{align*}.

    – L. F.
    Mar 31 at 5:55











    0














    Alternatively from New command in TeX for fraction and Mathfixs package:



    documentclass{article}
    usepackage{mathfixs,amsmath,anyfontsize}
    makeatletter
    newcommand*{fr}[1]{%
    fr@aux#1,,@nil
    }
    deffr@aux#1,#2,#3@nil{%
    ensuremath{frac{#1}{#2}}%
    }
    makeatother

    begin{document}
    [ fr{mbox{fontsize{2mm}{2mm}selectfont 5 - 2} ,textstyle{mbox{fontsize{2mm}{2mm}selectfont 6 - 1}}} = fr{20,30} ]
    [frac{textstyle{mbox{fontsize{2mm}{2mm}selectfont 5 - 2 }}}{textstyle{mbox{fontsize{2mm}{2mm}selectfont 6 - 1}} } = frac{20}{30}]
    end{document}


    Notice the difference in vertical alignment between numerator and denominator when using each of the methods.



    Solution but with internal alignment difference






    share|improve this answer




























      0














      Alternatively from New command in TeX for fraction and Mathfixs package:



      documentclass{article}
      usepackage{mathfixs,amsmath,anyfontsize}
      makeatletter
      newcommand*{fr}[1]{%
      fr@aux#1,,@nil
      }
      deffr@aux#1,#2,#3@nil{%
      ensuremath{frac{#1}{#2}}%
      }
      makeatother

      begin{document}
      [ fr{mbox{fontsize{2mm}{2mm}selectfont 5 - 2} ,textstyle{mbox{fontsize{2mm}{2mm}selectfont 6 - 1}}} = fr{20,30} ]
      [frac{textstyle{mbox{fontsize{2mm}{2mm}selectfont 5 - 2 }}}{textstyle{mbox{fontsize{2mm}{2mm}selectfont 6 - 1}} } = frac{20}{30}]
      end{document}


      Notice the difference in vertical alignment between numerator and denominator when using each of the methods.



      Solution but with internal alignment difference






      share|improve this answer


























        0












        0








        0







        Alternatively from New command in TeX for fraction and Mathfixs package:



        documentclass{article}
        usepackage{mathfixs,amsmath,anyfontsize}
        makeatletter
        newcommand*{fr}[1]{%
        fr@aux#1,,@nil
        }
        deffr@aux#1,#2,#3@nil{%
        ensuremath{frac{#1}{#2}}%
        }
        makeatother

        begin{document}
        [ fr{mbox{fontsize{2mm}{2mm}selectfont 5 - 2} ,textstyle{mbox{fontsize{2mm}{2mm}selectfont 6 - 1}}} = fr{20,30} ]
        [frac{textstyle{mbox{fontsize{2mm}{2mm}selectfont 5 - 2 }}}{textstyle{mbox{fontsize{2mm}{2mm}selectfont 6 - 1}} } = frac{20}{30}]
        end{document}


        Notice the difference in vertical alignment between numerator and denominator when using each of the methods.



        Solution but with internal alignment difference






        share|improve this answer













        Alternatively from New command in TeX for fraction and Mathfixs package:



        documentclass{article}
        usepackage{mathfixs,amsmath,anyfontsize}
        makeatletter
        newcommand*{fr}[1]{%
        fr@aux#1,,@nil
        }
        deffr@aux#1,#2,#3@nil{%
        ensuremath{frac{#1}{#2}}%
        }
        makeatother

        begin{document}
        [ fr{mbox{fontsize{2mm}{2mm}selectfont 5 - 2} ,textstyle{mbox{fontsize{2mm}{2mm}selectfont 6 - 1}}} = fr{20,30} ]
        [frac{textstyle{mbox{fontsize{2mm}{2mm}selectfont 5 - 2 }}}{textstyle{mbox{fontsize{2mm}{2mm}selectfont 6 - 1}} } = frac{20}{30}]
        end{document}


        Notice the difference in vertical alignment between numerator and denominator when using each of the methods.



        Solution but with internal alignment difference







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 13 mins ago









        Diego Bnei NoahDiego Bnei Noah

        1549




        1549






























            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%2f133527%2fequal-size-numerator-and-denominator%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

            IEEEtran - How to include ORCID in TeX/PDF with PdfLatexIs there a standard way to include ORCID in TeX /...

            Cicindela nigrior Przypisy | Menu nawigacyjneCicindela varians unicolorManual for the Identification of the...

            Glossaries-extra: Adding glossaries package to “Clas­sicTh­e­sis” template by Dr. André Miede v. 4.6 ...