MathJax: How to change the default color for svg output

流过昼夜 提交于 2019-12-09 18:21:29

问题


I've changed the HTML/CSS color output using

  MathJax.Hub.Config({
    styles: { ".MathJax": { color: "#fff" } }
  });

I've also inverted the png-based output (by inverting every image) with:

find ./fonts/HTML-CSS/TeX/png -name "*.png" -exec convert {} -negate {} \;

Now I'm stuck figuring out the way to fill the SVG glyphs with white instead of the default black. Any suggestions?

Thanks.


回答1:


Try

MathJax.Hub.Config({
  styles: {
    ".MathJax_SVG svg > g, .MathJax_SVG_Display svg > g": {
      fill: "#FFF",
      stroke: "#FFF"
    }
  }
});

to get the SVG output to be white.



来源:https://stackoverflow.com/questions/10363187/mathjax-how-to-change-the-default-color-for-svg-output

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!