# How do I math code Product symbol other than type $\prod_{i=1}^{n}$ [duplicate]

I can code symbols of the type $$\prod_{i=1}^{n}$$ but when it comes to:

I cannot get the less-than-equal sign placed as shown.Can this be done easily?

EDIT: below removed as reason explained in the comments **not sure why $\prod_{i=1}^{n}$ not displaying properly while in math.stackexchange its fine*

## marked as duplicate by Henri Menke, egreg, ChrisS, Mensch, Au101Jan 24 '18 at 23:37

• @Henri Menke thanks for the resources will look through them. Its just most people in math.stackexchange write it like I showed it thats why I could not find an example to work out how to do it! – onepound Jan 24 '18 at 22:32
• Try \prod_{p\le 7}\left(1-\frac{1}{p}\right) as a starting point. Note that this will come out different when it is displayed $..$ vs. inline $..$. – Sandy G Jan 24 '18 at 22:39

If it's for in-line mathematics, you can use

$\prod\limits_{i\le 7}$,


but be aware this may slightly increase the vertical spacing with the line below.

Have you even tried it?

\documentclass{article}
\begin{document}
$\prod_{p \leq 7} \biggl( 1 - \frac{1}{p} \biggr)$
\end{document}


• okay thanks that did the trick. $\prod_{p \leq 7} \biggl( 1 - \frac{1}{p} \biggr)$ particulary in math.stackexchange not that I need it elsewhere. – onepound Jan 24 '18 at 22:30