I have the following formula in LaTeX, based on Fisher's Exact Test. (NOTE: requires the use of the amsmath
package for \binom
.)
\begin{equation}
P(i,j) = \sum_{x=|N(V_i) \cap V_j|}^{\min\{|V_j|, |N(V_i)|}
\frac{ \binom{|V_j|}{x} \binom{|V - V_j|}{|N(V_i)| - x}}
{\binom{|V|}{|N(V_i)|}}
\end{equation}
This renders the fraction portion with very small, difficult to read text:
I would like my text more readable, as in the following example:
(source: plosone.org)
What trickery can I use to get LaTeX to render my equation similarly?
As long as the denominators are the same, the fraction with the greater numerator is the greater fraction, as it contains more parts of the whole. The fraction with the lesser numerator is the lesser fraction as it contains fewer parts of the whole.
Just put \small before the equation and \normalsize after it if you want to shrink the font, but it's usually better to use an ams multi-line equation environment than to change font size.
Displaying long equations For equations longer than a line use the multline environment. Insert a double backslash to set a point for the equation to be broken. The first part will be aligned to the left and the second part will be displayed in the next line and aligned to the right.
This may be what you're looking for:
\begin{equation}
P(i,j) = \sum_{x=|N(V_i) \cap V_j|}^{\min\{|V_j|, |N(V_i)|}
\frac{\displaystyle \binom{|V_j|}{x} \binom{|V - V_j|}{|N(V_i)| - x}}
{\displaystyle \binom{|V|}{|N(V_i)|}}
\end{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
For fraction you can also use continued fraction \cfrac
in combination with \left
and \right
.
Take a look here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With