Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
362 views
in Technique[技术] by (71.8m points)

formula - Typesetting LaTeX fraction terms to be larger in an equation

I have the following formula in LaTeX, based on Fisher's Exact Test. (NOTE: requires the use of the amsmath package for inom.)

egin{equation}
    P(i,j) = sum_{x=|N(V_i) cap V_j|}^{min{|V_j|, |N(V_i)|}
    frac{ inom{|V_j|}{x} inom{|V - V_j|}{|N(V_i)| - x}}
    {inom{|V|}{|N(V_i)|}}
end{equation}

This renders the fraction portion with very small, difficult to read text:

equation with small text in fraction

I would like my text more readable, as in the following example:

equation with readable text in fraction
(source: plosone.org)

What trickery can I use to get LaTeX to render my equation similarly?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This may be what you're looking for:

egin{equation}
    P(i,j) = sum_{x=|N(V_i) cap V_j|}^{min{|V_j|, |N(V_i)|} 
    frac{displaystyle inom{|V_j|}{x} inom{|V - V_j|}{|N(V_i)| - x}}
    {displaystyle inom{|V|}{|N(V_i)|}}   
end{equation}

Formatted equation


Thought it might be good to add a reference:

A Guide to LaTeX2e, Kopka & Daly, 1995
Section 5.5 Fine-Tuning Mathematics
5.5.2 Selecting font size in formulas

In my edition, it's on pp 141-142, but this is out of stock on Amazon. The nearest Internet pointer I can find just now is here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...