powerpak/jupyter-dark-theme

Add LaTeX left-aligment

nukadelic opened this issue ยท 0 comments

Not sure if it's the standard behavior across all Jupyter notebooks, but I'm going to post this here since I use your supreme theme ๐Ÿ‘
My goal was to prevent the automatic center alignment for multi-line latex formulas. The inline LaTeX rules ( surrounded by $ ) seems to be left-aligned but anything besides that did not work.
After an hour and a half battling with LaTeX alignments, I decided to check the page source. From there it was quite obvious that Jupyter-Notebook will automatically add an inline-css rule (center text alignment) for all .MathJax dom-elements.
To force the left-alignment to work, I have added the following css rule into custom.css :

.MathJax_Display {
  text-align: left !important;
}