MHB Products in Fraction: Bigger with Sub/Super Scripts

  • Thread starter Thread starter rapid1
  • Start date Start date
  • Tags Tags
    Fraction
AI Thread Summary
The discussion centers on formatting mathematical expressions in LaTeX, specifically for displaying large products with subscripts and superscripts positioned above and below the product symbol. The user seeks to modify their existing code to achieve this effect. Key solutions include using \displaystyle in front of the product symbol or replacing \frac with \dfrac in the numerator and denominator to ensure they are also in display style. Additionally, the use of \prod\limits allows for placing limits above and below the operator while maintaining text style. The conversation references The TeXbook for further guidance on these formatting options.
rapid1
Messages
13
Reaction score
0
Basically i have this code, obviously the fraction is in display maths, but i want BIG products too, with sub/super scripts above and below rather than next to it. Thanks

$$
pr(X=k)=\mu\frac{\prod^{k-1}_{i=1}\{1-\mu+(i-1)\theta\}}{\prod^{k}_{i=1}\{1+(i-1)\theta\}}, \quad \mbox{for k$\geq$ 1,}
$$
 
Physics news on Phys.org
rapid said:
Basically i have this code, obviously the fraction is in display maths, but i want BIG products too, with sub/super scripts above and below rather than next to it. Thanks

$$
pr(X=k)=\mu\frac{\prod^{k-1}_{i=1}\{1-\mu+(i-1)\theta\}}{\prod^{k}_{i=1}\{1+(i-1)\theta\}}, \quad \mbox{for k$\geq$ 1,}
$$

type \displaystyle in front of \prod$$
pr(X=k)=\mu\frac{\displaystyle\prod^{k-1}_{i=1}\{1-\mu+(i-1)\theta\}}{\displaystyle\prod^{k}_{i=1}\{1+(i-1)\theta\}}, \quad \mbox{for k$\geq$ 1,}$$
 
There are two ways to place limits above and below an operator. First, this is the default for big operators in display style. Here, the fraction is in display style, but the nominator and denominator are in text style. You can activate display style using \displaystyle in the nominator and denominator or by using \dfrac instead of \frac. Second, without changing the style, you can put the limits above/below the operator by saying \prod\limits. Conversely, in display style limits can be put next to the operator by saying \prod\nolimits.

See also p. 144 of The TeXbook.
 
And it's as simple as that :p Thanks very much!
 

Similar threads

Replies
6
Views
7K
Replies
3
Views
2K
Replies
2
Views
3K
Replies
5
Views
3K
Replies
11
Views
2K
Replies
12
Views
2K
Replies
3
Views
2K
Replies
2
Views
3K
Back
Top