Changing mathjax's font size

后端 未结 10 1487
孤城傲影
孤城傲影 2020-12-08 19:32

I am using mathjax on my page, and i have read that this:



        
10条回答
  •  我在风中等你
    2020-12-08 20:14

    Here are two options to change font size for a specific equation or portion of an equation.

    1. Use a .css class.

      \class{className}{}

    The className is div class name that can be specified in css.

    1. Use Latex

    \tiny{ }, \scriptsize{ }, \small{ }, \normal{ }, \large{ }, \Large{ }, \LARGE{ }, \huge{ }, \Huge{ }

    If you want to change all equations globally MathJax prints inside of a div. Use css to edit the class font size.

    .MathJax {
        font-size: 12pt;
    }
    

    Finally if you could also edit the MathJax config to change fonts globally, but I prefer the css version because it allows you change font sizes for different screen sizes.

提交回复
热议问题