[IPython-dev] defining latex commands in notebook

Zoltán Vörös zvoros at gmail.com
Fri Nov 29 12:51:59 EST 2013

On 29/11/13 16:16, Damon Allen wrote:
> I haven't used functions like this but I have found if you have a 
> LaTex command defined in a raw cell at the beginning of a notebook it 
> does note get hashed out.  I just put the following two lines in a raw 
> cell and converted it to check:
>     $\newcommand{\Mt}[1]{\mathbf{#1}}$
>     \pagestyle{plain}
> followed by a simple code cell, 2+2, and it survived the conversion.
> Damon
This doesn't work in my case. The lines in the raw cell are still hashed:

# $\newcommand{\Mt}[1]{\mathbf{#1}}$
# \pagestyle{plain}

Is there something in the templates that produces this? I am using the 
latest ipython from master.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20131129/ab34f62c/attachment.html>

More information about the IPython-dev mailing list