Different distributions of (La)TeX can use different syntax...
If you need in mathtran
try somethings like
http://www.mathtran.org/cgi-bin/mathtran?D=2;tex=\lim\limits_{x\to+\infty}f\left(x\right)
There are differences: Mathtran :\mathop {\lim }\limits_{x \to + \infty } f\left( x \right)
and Tex: \lim\limits_{x\to+\infty}f\left(x\right)
\[a > b > c < d\]
Re: Trả lời: Re: Using the wrong formula shown mathtran
Editor can strip or change tags but there are always workarounds.
You can for example use directly img tags with editor image plugin address bar like this:
I copied that example from http://www.mathtran.org/formulas/ - just use mouse right click (Properties) to show the address of each image as an example...
Trả lời: Re: Trả lời: Re: Using the wrong formula shown mathtran
But as the article on moodle as compiled by the filter will contain errors mathtran
For example, when you type the formula $ $ a> b <c $ $ will get:
So when composing posts very inconvenient. How do you fix or not?
Re: Trả lời: Re: Trả lời: Re: Using the wrong formula shown mathtran
I suppose that if you use htmlarea editor replaces < and > with < and > because lib/editor/htmlarea/htmlarea.php has code
HTMLArea.htmlEncode = function(str) {
// we don't need regexp for that, but.. so be it for now.
str = str.replace(/&/ig, "&");
str = str.replace(/</ig, "<");
str = str.replace(/>/ig, ">");
str = str.replace(/\x22/ig, """);
// \x22 means '"' -- we use hex reprezentation so that we don't disturb
// JS compressors (well, at least mine fails.. ;)
return str;
};
It's not reasonable to change code of HTMLArea so you should probably edit mathtran filter (filter.php) and add there (near line 40) something like
$texexp = str_replace('<','<',$texexp);
$texexp = str_replace('>','>',$texexp);
to replace those characters back in mathtran expression.
I haven't tested this yet, but that's how things are done in those plugins where you need to change characters to some other characters and back for various reasons... EDIT: it works fine this way - tested...
Trả lời: Re: Trả lời: Re: Trả lời: Re: Using the wrong formula shown mathtran
by $texexp = str_replace('\mathop {','',$texexp);