title: Real LaTeX in iPython notebook
body: <p>In iPython one can write equations using latex syntax which is interpreted by MathJax.</p>
  <p>But now I want to do also other fancy latex stuff in iPython like writing pseudocode with some latex packages. Is there a possibility to write something like this in iPython?</p>
  <p>Example:</p>
  <pre><code>%%latex
  \usepackage[]{algorithmicx}
  \begin{algorithmic}
     \If {$i\geq maxval$}
        \State $i\gets 0$
     \Else
        \If {$i+k\leq maxval$}
           \State $i\gets i+k$
        \EndIf
     \EndIf
  \end{algorithmic}
  </code></pre>