Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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:

\documentclass{beamer}
\usepackage{tikz}


%%%%%%%%%%%%%%%%%
\begin{document}

\begin{frame}

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

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

\end{frame}

\end{document}

Any idea why? Any way around?

share|improve this question
4  
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

1 Answer 1

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

 
discard

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.