LaTeX LaTeX - dfrac with textstyle numerator

  • Thread starter Thread starter Whovian
  • Start date Start date
  • Tags Tags
    latex
AI Thread Summary
In a LaTeX document, a user encountered an issue with fractions in an align environment, where the fraction extended beyond the \tag{1} marker. To address this, they initially tried using \tfrac to limit the fraction size but found it unsatisfactory. They then attempted to apply \textstyle to the numerator to achieve a more visually appealing result, but this approach failed, as the command did not parse correctly. A suggested solution involves using an inline environment, allowing for the numerator to be displayed in a smaller style with the command $\frac{a}{\displaystyle a}$. This method effectively resolves the issue of size within the fraction while maintaining proper formatting in the document.
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
Views
3K
Replies
5
Views
3K
Replies
3
Views
2K
Replies
16
Views
4K
Replies
1
Views
4K
Replies
3
Views
2K
Back
Top