Math

Math 3.1.0

No permission to download
Good work. Thank you very much.
@Wanji
Curious

\sum= \frac{x+y}2

and

\begin{matrix}
1 & 0\\
0 & 1
\end{matrix}


and

f(x) = x^2\\
g(x) = \frac{1}{x}\\
F(x) = \int^a_b \frac{1}{3}x^3


works.
 
Last edited:
I tried this but it doesn't work.
Code:
\begin{align}
f(x) &= x^2\\
f'(x) &= 2x\\
F(x) &= \int f(x)dx\\
F(x) &= \frac{1}{3}x^3
\end{align}
This is work for me
Code:
f(u)  =\sum_{j=1}^{n} x_jf(u_j)\\
      =\sum_{j=1}^{n} x_j \sum_{i=1}^{m} a_{ij}v_i\\
      =\sum_{j=1}^{n} \sum_{i=1}^{m} a_{ij}x_jv_i
But only rendered in Chrome and Opera, not Firefox, Edge.
 
Last edited:
This is work for me
Code:
f(u)  =\sum_{j=1}^{n} x_jf(u_j)\\
      =\sum_{j=1}^{n} x_j \sum_{i=1}^{m} a_{ij}v_i\\
      =\sum_{j=1}^{n} \sum_{i=1}^{m} a_{ij}x_jv_i
But only rendered in Chrome and Opera, not Firefox, Edge.
Oh no, apparently the formula is visible only to logged in members, those who are not logged in only see the raw text.
 
Did you guy see the error when using the Insert Math button on editor that the requested page can not be found?
I think the path to the JS needs to be fixed.
 
It works not?
It works if you enter the math formula directly into the editor but when you try to click the Insert Math button from the editor, it will error. It seems it couldn't find the location for the JS script. I think it's a simple edit.
 
Oh no, apparently the formula is visible only to logged in members, those who are not logged in only see the raw text.
Same here.

Another difference from the previous version is that, when you insert the formula, it is displayed as BBCode in the editor instead of the actual output.
 
Hi, anyone having display issues on mobile?

For me it works on desktop but doesn't work on smartphone, this displays the BBcode instead of rendering math formulas

I had the same problem : it doesn't work for non-admins users or anonymous (guest)

I fixed the issue by including the following javascript code in the HTML :
JavaScript:
document.addEventListener('DOMContentLoaded', function () {
    if (typeof renderMathInElement === 'function' && typeof CMTV_MATH_RENDER_OPTIONS !== 'undefined') {
        renderMathInElement(document.body, CMTV_MATH_RENDER_OPTIONS);
    } else {
        console.error('renderMathInElement or CMTV_MATH_RENDER_OPTIONS is not defined');
    }
});

it's almost the same code as in upload/src/addons/CMTV/Math/_data/templates.xml but without the event handler for xf:reinit

The event xf:init don't seem to be triggered for non-admin users

I'm aware it's a bit dirty but I haven't had time to look at the documentation on how to build an addon yet, if I had the time I will investigate and try to write a better fix or hope someone can come up with cleaner code (with the expected way/ coding conventions for Xenforo 😁)
 
Last edited:
Back
Top Bottom