Hello all,
I run a math forum and I am using MathJax as the software to allow the users to post math equations.
The problem I am facing is with the vertical space between two consecutive lines when there is an equation in both lines.
You can see an example in the image below:
The code that generated this post, is this:
[tex3]\frac{2^{y+1}\cdot 2^{y-1}-7+2^{y-2}\cdot 2^{y-1}}{2^{y-1}}=\frac{1}{2^{y-2}}[/tex3]
[tex3]\frac{2^{2Y}-7+2^{2y-3}}{2^{y-1}}=\frac{1}{2^{y-2}}[/tex3]
[tex3]\frac{2^{2y}+2^{2y-3}-7}{2^{y-1}}=\frac{1}{2^{-1}(2^{y-1})}[/tex3]
[tex3]2^{2y}+2^{2y-3}-7=2[/tex3]
[tex3]2^{2y}(1+2^{-3})=9[/tex3]
[tex3]2^{2y}=8 \rightarrow 2^{2y}=2^3[/tex3]
tex3 is the tag I use for inline math.
As you can see, two consecutive line are two near one from another.
I'd like to have a code to insert in my MathJax.Hub.Config that always put a vertical space between this lines.
I've tried the following without success:
MathJax.Hub.Config({
"HTML-CSS": {
styles: {
".MathJax": {
padding: "0.2em 0"
},
}
},
});
I know that the example I gave could be fixed using only one tag surrounding all equations and putting something like \\[20px] in the end of each line to achieve the vertical space, or other coding practices in the code directly, but this is not what I am asking for. I need a MathJax.Hub.Config that will do this in all messages my forum has (there are tons of messages just like this one I've shown).
Kind regards