I'm working on a school book that requires spacing between numerator and denominator to be of equal size. Is it possible to achieve this in LaTeX.

  • 1
    Could you please add a minimal example which shows the problem?
    – CarLaTeX
    Feb 9, 2019 at 15:27
  • 1
    I took the liberty to correct an error in the title of your question and to delete the final greetings, since it is not customary, on this site, to include them in questions. Why do you think that (La)TeX yields uneven spacing in fractions? What’s wrong with $\frac{a}{b}$, for example?
    – GuM
    Feb 9, 2019 at 16:56

1 Answer 1


Actually, they are already the same height, except for the unused space below and above.


\newcommand{\myfrac}[2]% #1=numerator, #2=denominator

\fbox{$\displaystyle \frac{A^2_0}{x}$} \fbox{$\displaystyle \myfrac{A^2_0}{x}$}


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .