Hello,
I'm working on having MATHML render within a fixed container width, however, long equations go past the box while others are a little short. Ideally, I'd like the mathml to 'scale' to the container's width.
From this example,
You can see I have a container div that is 500px that contains the equation in mathml. Sometimes the equation fits the container a little short and sometimes it extends past the container. Is there any way or config setting to tell mathjax to scale to fit whatever mathml equation will be inside the container to fit the width of the container so it uses as of the containers real estate and only scales that wide regardless of how long the equation will be?
From the documentation, I set scale at 100 and tried using linebreaks
{ linebreaks: { automatic: true, width: "100% .container" } },
I wasn't sure by the documentation if you just write 'container' or the id or classname associated with the container (I tried all 3).
Is there a way to make this possible or is my syntax off? I've included my config settings below:
MathJax.Hub.Config({
messageStyle: "none",
scale: 100,
"HTML-CSS": {
showMathMenu: false,
{ linebreaks: { automatic: true, width: "100% .container" } },
preferredFont: "STIX",
availableFonts: ["STIX","TeX"]
},
SVG: { linebreaks: { automatic: true, width: "100% .container" } }
});
MathJax.Hub.Configured();
Any help/tips/config settings would be welcome and appreciated.
Thanks in advance.