MathJax:如何更改svg输出的默认颜色 [英] MathJax: How to change the default color for svg output

查看:273
本文介绍了MathJax:如何更改svg输出的默认颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用更改了HTML/CSS颜色输出

I've changed the HTML/CSS color output using

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

我还通过以下方式反转了基于png的输出(通过反转每个图像):

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

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

现在,我一直在努力寻找用白色(而不是默认的黑色)填充SVG字形的方法.有什么建议吗?

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

谢谢.

推荐答案

尝试

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

使SVG输出为白色.

这篇关于MathJax:如何更改svg输出的默认颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆