3

I have a problem with the appearance of a fraction which has in its numerator another fraction. It is not very beautiful as the second fraction is small, even though I use \displaystyle. How can I have both fraction as big as they should be? And why this is happening even though I use \displaystyle?

Thanks!

The code I use is like this:

$\displaystyle \frac{\frac{a}{b}-c}{d}$
  • use \cfrac—it's meant for continued fractions and will keep the size sane. (for this though (only two levels deep), i'd recommend-ish against it. there are generally reasons these decisions were made.) – Sean Allred Mar 16 '14 at 19:47
  • I guess \frac sets \textstyle for its contents. – Torbjørn T. Mar 16 '14 at 19:50
  • Thanks but if I want for example to have 3 or 4 fractions the one in the other's numenator what should I do? – Adam Mar 16 '14 at 19:50
  • where is \fraction defined? (it isn't defined in any packages I know) Please always provide a complete document that shows the problem, that way it is obvious what packages are being used. – David Carlisle Mar 16 '14 at 20:16
  • Sorry I meant \frac{}{}! – Adam Mar 16 '14 at 20:17
4

Using

$\displaystyle \cfrac{\cfrac{a}{b}-c}{d}$

should sort you out. The cfrac macro (from the amsmath package) is for continued fractions.

enter image description here

  • Use \dfrac, not \cfrac. – egreg Mar 16 '14 at 20:44
  • 1
    @egreg Considered that, but wouldn't that tend to look strange with 3–4–5-level deep fractions? Does \cfrac do things that are specific to continued fractions and aren't applicable to other things? (thumbs through amsmath docs…) – Sean Allred Mar 16 '14 at 20:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.