LaTeX - dfrac with textstyle numerator

  • Context: LaTeX 
  • Thread starter Thread starter Whovian
  • Start date Start date
  • Tags Tags
    latex
Click For Summary
SUMMARY

The discussion revolves around formatting fractions in LaTeX, specifically within the align environment. The user encountered issues with the \dfrac command when attempting to apply \textstyle to the numerator, resulting in parsing errors. A proposed solution involves using the \frac command with \displaystyle for the denominator, which successfully addresses the size discrepancy. This method effectively maintains the alignment without disrupting the layout of the document.

PREREQUISITES
  • Familiarity with LaTeX syntax and commands
  • Understanding of the align environment in LaTeX
  • Knowledge of fraction formatting commands such as \dfrac and \frac
  • Basic understanding of text styles in LaTeX, including \textstyle and \displaystyle
NEXT STEPS
  • Research LaTeX environments and their specific formatting rules
  • Learn about the differences between \dfrac, \frac, and \tfrac in LaTeX
  • Explore advanced text styling options in LaTeX
  • Investigate alignment techniques in LaTeX for complex equations
USEFUL FOR

LaTeX users, document authors, and anyone involved in typesetting mathematical content who seeks to optimize the presentation of fractions in their documents.

Whovian
Messages
651
Reaction score
3
While typing up a LaTeX document (long story,) in an align environment, I ran into having to type up a fraction which, while it didn't force the align to go off the page, it went past the later \tag{1}, which, needless to say, is somewhat annoying. I came up with the clever idea of limiting the fraction's size by using \tfrac, though this looked pretty annoying. So I came up with the other clever idea of only making the numerator \textstyle, which my intuition says will look lovely. Unfortunately, any attempt at doing so fails. For instance,

Code:
\dfrac{\textstyle a}{a}

parses to ##\dfrac{\textstyle a}{a}##. Anyone have a solution to this, or, alternatively, another solution to my original problem?
 
Physics news on Phys.org
If I understand well, you want to make the counter smaller than the denominator. It can be done winthin an inline environment as eg.

Let us see the following equation: $\frac{a}{\displaystyle a}$
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 11 ·
Replies
11
Views
9K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K