[IPython-dev] CSS styles / DOM elements for MathJax displayed equations in markdown cells
Matthias Bussonnier
bussonniermatthias at gmail.com
Mon Sep 29 02:36:27 EDT 2014
Hi,
First a warning, playing with mathjax can a can of worm, it is adjusted by mathjax people carefully to display correctly
in many cases, and I don't think custom css is supported.
That being said, the display equation are in a div with the following class : MathJax_Display
I suggest you learn to play around with CSS/JS web inspector of your browser to experiment.
For example:
.MathJax_Display {
padding: 30px;
}
Should work, cf screenshot,
I don't think there is an easy way to target only markdown cell though.
Cheers,
--
M
Le 29 sept. 2014 à 05:15, Philip B. Stark <stark at stat.berkeley.edu> a écrit :
> First post: please forgive newbie ignorance, faux pas, etc..
>
> Can someone tell me how MathJax displayed equations $$ ... $$ are classed when rendered as html in IPython Markdown cells, so I can override the relevant CSS? I'm trying to get more vertical padding above and below displayed equations. If somebody has a hack I can copy, that would be great.
>
> Thanks and best wishes,
> Philip
>
> --
> Philip B. Stark | Professor and Chair | Department of Statistics | University of California
> Berkeley, CA 94720-3860 | 510-394-5077 | statistics.berkeley.edu/~stark | @philipbstark
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140929/9a49ada2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d??cran 2014-09-29 ? 08.33.56.png
Type: image/png
Size: 13316 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140929/9a49ada2/attachment.png>
More information about the IPython-dev
mailing list