I have forgotten

• https://me.yahoo.com

25 May 11, 6:41AM
(9 replies)

However, I can see in the editor's example page (http://www.codecogs.com/latex/eqneditor.php) that the latest version seems to be 3.02 and it's translated to spanish. Also, my installed editor shows 3.02 in the bottom, but it doesn't seem to be translated to spanish.

Also, we're having issues when editing the saved images with FCKEditor (in Sakai LMS). The edition launches the Equation window but the latex code isn't loaded inside it. A second double-click on the image loads the code in the Editor textarea, but in several functions (for example, frac) the backslashes of the latex code dissapear and only the text is shown, so it's quite annoying to add all the backslashes again.

Have you found these issues before? Thanks in advance.
25 May 11, 7:30AM
Hi.

The FCKEditor plugin automatically uses the latest version of the editor, so you shouldn't have to worry about that.

The translation to Spanish is an option you have to specify in the file equation_html/fckplugin.js:
• Look for line 7
var language=FCKConfig.DefaultLanguage;
• Replace with your desired language, i.e.
var language='es-es';

We don't currently allow end users of the embedded equation editor the ability to customise the language and design - though if there is sufficient interest we might enable this feature in the future.

Let me know if that works.
26 May 11, 5:19AM
Hi again.

I have been debugging the errors as far as I have been able.

First at all, the language variable is working as you said, so thanks a lot for that trick!

In fckplugin.js (the "equation" one) when it comes into this line:

latex value is "\sum \bigcup", that is the equation I have done double-click on.

However, in the editor's text area is shown the text

sum igcup

It seems that the load method is not parsing well the backslashes, but I can't debug that method, can I?

If you want to try it yourself, I can give access in our Sakai test server, just tell me an email.

26 May 11, 5:34AM
Hi, again.

I have managed to solve the issue adding this line:

latex = latex.replace(/\\/g,'\\\\');

before this one:

Now it works OK. What do you think? Could it break other thing?

Regards.
26 May 11, 1:21PM
Sounds like your fix it exactly right. But I'll investigate this tomorrow and revert.

Thanks
26 May 11, 1:34PM
I have to confess I am bemused by the error you have, since I can't replicate it. Everything works perfectly on our servers, with FireFox and Safari. I'll test again IE later.

Whats odd. Is that in our code we already have
latex = latex.replace(/\\/g,'\\\\');

as in:
if(latex!==undefined)
{
latex=unescape(latex);
latex = latex.replace(/\\/g,'\\\\');
latex = latex.replace(/'/g,'\\'');
latex = latex.replace(/"/g,'\\"');
latex = latex.replace(/0/g,'\\0');

if (old != null) {
old.parentNode.removeChild(old);
delete old;
}

var script = document.createElement("script");
script.type = "text/javascript";
}

So why isn't this working for you. Why do you have to do it twice?

Do you know if this is specific to a particular browser?
27 May 11, 2:21AM
I have taken a look and your code is OK in fckplugin.js inside the folder equation_html, but is different in the same file inside the folder equation:

else if (window.focus)
{
//popupEqnwin.focus();
if(latex!==undefined)
{
eq = eq.replace(/\\/g,'\\\\');
eq = eq.replace(/'/g,'\\'');
eq = eq.replace(/"/g,'\\"');
eq = eq.replace(/0/g,'\\0');

if (old != null) {
old.parentNode.removeChild(old);
delete old;
}
(...)

Configuring the editor with equation_html works fine. Thanks a lot.

27 May 11, 4:43AM
Thanks for noticing that. However although the code in equation is slightly different to equation_html, it still fundamentally does the same thing.

I'll run some more test later. Though this does beg the question. Do we need to retain the original, verion 1, of this code (i.e. the 'equation' code). How many people genuinely need or use it. Even for advanced uses you can back out all the latex from output of equation_html.

As such I wonder if it might be simple to remove version 1 all together?

As a recent user - what is your own perspective? Have others a view?
27 May 11, 6:32AM
I can't figure out what advantages or disadvantages could each version have respect to the other. It seems that, in terms of performance, version 2 (equation_html) is better, so I'm going to put only that one into production.

However, I'm waiting the feedback of a LaTeX expert, so maybe I could change my opinion. I'll tell you if that happens.

Thanks and best regards.

PD: I don't know how difficult can it be, but I think that including into the Equation Editor the Google plugin which changes from SVG to flash ( http://code.google.com/p/svgweb/ ) would be a huge improvement, at least while Internet Explorer 9 is not still widely being used.
27 May 11, 7:56AM
$\frac{1-\sin(x^2)}{x}$
<img src="http://latex.codecogs.com/gif.latex?\frac{1-\sin(x^2)}{x}" alt="\frac{1-\sin(x^2)}{x}" />
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.5448923707008362, "perplexity": 2649.0900521768626}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-05/segments/1516084886952.14/warc/CC-MAIN-20180117173312-20180117193312-00529.warc.gz"}