[IPython-User] global markup preamble?

Matthias BUSSONNIER bussonniermatthias@gmail....
Tue Jan 22 01:58:24 CST 2013

Le 22 janv. 2013 à 00:30, MinRK a écrit :

>> On Mon, Jan 21, 2013 at 2:10 PM, David Warde-Farley <d.warde.farley@gmail.com> wrote:
>> I'd kind of like to somehow have a few $\newcommand{}$ things included
>> at the top of every Markdown cell before rendering. I can imagine that
>> it'd be useful to have a list of [foo] markdown links that is globally
>> accessible, as well. Is there a way to do this sort of thing
>> currently?

Do you mean across notebooks ?
Maybe a custom.js that inject an invisible div, fill with your commands.

> I don't think you need to do that more than once per page.
> I just used the MathJax example of:
> $\newcommand{\water}{H_{2}O}$
> in my first markdown cell, and the `\water` command is available in every cell thereafter

More information about the IPython-User mailing list