TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to write a formula in a tikzpicture but it gets changed. The indices for the cumulative product is moved from under the \prod to after. See MWE:




\node [font=\bf\tiny] {$1 - \widehat{S}(t) = \prod_{j:t_j \leq t} \frac{d_{kj}}{n_{j}}$};

1 - \widehat{S}(t) = \prod_{j:t_j \leq t} \frac{d_{kj}}{n_{j}}



Any idea why? Any way around?

share|improve this question
The formula in the tikzpicture environment is typeset in text style; so \prod\limits_{...} is the answer. Or $\displaystyle<formula>$ if you want a "big" product symbol. – egreg Oct 18 '11 at 19:49
Tx, I didn't realize the typeset mode. – jejuba Oct 18 '11 at 21:03

Has nothing to do with tikZ. You are using the inline mode with $...$ which is typeset in that way. Use

$ ... \prod\limits_{j:t_j \leq t} ... $
share|improve this answer
Tx, it works fine. – jejuba Oct 18 '11 at 21:03
@BiauDavid: You should mark this question as answered by clicking the tick mark next to Herbert's answered. That will show others that the problem has been solved, and will give Herbert and you some reputation. – Jake Oct 18 '11 at 22:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.