Extension talk:TeX Editor

From mediawiki.org
Latest comment: 9 years ago by 221.131.70.148 in topic Does it work on 1.24 ?

Broken in MediaWiki 1.19 ?[edit]

Am I the only one for who the extension totally breaks MediaWiki 1.19.1? With the extension enabled, every page return an empty reply (i.e. curl says "curl: (52) Empty reply from server", wget says "No data received."). Is there any alternative?

I'm seeing this behavior too on a fresh install of MW 1.20.2. apache2 runs at 100% CPU and the PHP script simply times out after the maximum execution time. My guess is that it probably has someting to do with the splitting of Math into an extension in MW 1.19, but I'm not a MediaWiki expert and I didn't really look at the code.

Sum-Symbol[edit]

as like "3.can not find button when editing a page", i cannot find it too. I just (17:27, 25 March 2010 (UTC)) install it on the latest Mediawiki version. Does anyone have a solution?

Yeah, I have also the same problem. I can not find the symbol in the edit tool bar.--Simonlsw 15:15, 8 April 2010 (UTC)Reply

I found some bugs in 1.11.2[edit]

1.preview doesn't work but it can preview automatically.

2.TEX/Favorites is not loaded.

3.can not find button when editing a page

The following discussion has been transferred from Meta-Wiki.
Any user names refer to users of that site, who are not necessarily users of MediaWiki.org (even if they share the same username).
Hmmm, I made a minor spelling correction in the content page and now the page is generating errors, presumably due to file permission problems. DavidJameson 14:58, 1 August 2006 (UTC)Reply
Hi David, where do you see errors? on which page? here on the wiki or on your server at home? Mafs 16:15, 1 August 2006 (UTC)Reply
The error was on THIS site - the content page - looked like it was trying to reference some files or folders that were not writable.
strange ...
PS I corrected a bug in Extension:TEX Editor/Code.
I just installed TeXEditor - it's very nice but I'm seeing a problem. Whenever I click on a math symbol in your popup window, I get a little dialog popup that says Error: wfSajaxMath not callable.
David, thank you for testing!
I can reproduce the error message by disabling the line "$wgAjaxExportList[] = 'wfSajaxMath';" in SpecialTexbox.php, eg
               // $wgAjaxExportList[] = 'wfSajaxMath';
Does your LocalSettings.php contain something like $wgAjaxExportList[] = array( ...); which would override the value set in SpecialTexbox.php?
Mafs 20:16, 1 August 2006 (UTC)Reply
Yes - I just installed the FCKeditor to try it out. The following lines were put in LocalSettings
$wgAjaxExportList = array( 'wfSajaxSearch' );
$wgAjaxExportList[] = 'wfSajaxSearchImageFCKeditor';

DavidJameson 21:09, 1 August 2006 (UTC)Reply

That's it, provided the FCK part was placed behind the Math part. So, remove
     $wgAjaxExportList = array( 'wfSajaxSearch' );
which was copied from DefaultSettings.php and it should work (hopefully). I will delete this line also in FCKeditor. Mafs 21:39, 1 August 2006 (UTC)Reply
Yep - that fixes the problem - however, it seems to me that the code needs to be generalised so that the array is not assigned if it already exists. Otherwise everyone who writes extensions that need Ajax is going to be bitten by this. Who should this be reported to? DavidJameson 14:18, 2 August 2006 (UTC)Reply
Hm, you might want to delete eg 'wfSajaxSearch' from the list in which case you must empty the array.
To claify the issue here I move $wgAjaxExportList[] = 'wfSajaxMath'; from the code part to the LocalSetting.php section.
Thanks again for testing. Mafs 21:40, 2 August 2006 (UTC)Reply


I become the Error:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /includes/SpecialTexbox.php on line 370
- Error was the false Editor :-/ - Problem is cleared

1.8.2[edit]

Any update on the 1.8.2-compatibility ?

Preview doesn't work[edit]

I've just installed the extension. Everything works smoothly despite preview feature. It simply shows nothing when I click on "preview" button. JavaScript console says "memory is not defined".

MediaWiki 1.9.2, Gentoo Linux, Firefox 1.5.

Any ideas?

I too have the same issue. Based on the discussion above, I checked to see where $wgAjaxExportList is set. Here's what I've got:
prompt> grep -R wgAjaxExportList *
includes/AjaxDispatcher.php:            global $wgAjaxExportList, $wgOut;
includes/AjaxDispatcher.php:            if (! in_array( $this->func_name, $wgAjaxExportList ) ) {
includes/Setup.php:if ( $wgAjaxSearch ) $wgAjaxExportList[] = 'wfSajaxSearch';
includes/Setup.php:if ( $wgAjaxWatch ) $wgAjaxExportList[] = 'wfAjaxWatch';
includes/DefaultSettings.php: * Causes wfSajaxSearch to be added to $wgAjaxExportList
includes/DefaultSettings.php:$wgAjaxExportList = array( );
includes/DefaultSettings.php: * Causes wfAjaxWatch to be added to $wgAjaxExportList
LocalSettings.php:$wgAjaxExportList[] = 'wfSajaxMath';

I don't see any problems with this. Does anyone else? --Gri6507 12:49, 30 August 2007 (UTC)Reply

Also Preview Problems[edit]

Hi,

I have also the problem, that the preview doesnt work. There is no error message. But when I click "preview" nothing happens.

I use mediawiki 1.9.2

Mediawiki 1.9.3[edit]

The Tex editor works without any problems except that there is no Icon for the Popupwindow what might be the Problem anybody who can help me?! thanks

Has anybody a hint what it might can be?! I have the same Problem. :( -- 12:15, 20 April 2007 (UTC)

Preview doesn't work either[edit]

JavaScript returns: memory not defined in both Firefox 2 and Internet Explorer 6. Any clue?

I had the following problems when using this extension:

  • The preview absolutely did not work.
  • The pop-up window was tiny and practically unusable

--ChristopherFair 16:28, 25 April 2007 (UTC)Reply

brackets don't work[edit]

Hi!

First of all: nice extension!

I do have a problem with (, ), [, ], { and }. Whenever I press for instance "(", "\left(" appears in the texbox, but the preview window warns that "parsing has failed (unknown error): \left(" [free translation from Dutch].

I wonder why. I have tried setting \left( || \left(, or tried escaping with a double backslash, but that didn't work.

I hope you can help me out here.


Best regards


Danai SAE-HAN

.@.

213.219.157.240 06:03, 6 May 2007 (UTC)Reply

Bugfix[edit]

I added a fix for the "memory is not defined" problem. Just copy the newest source from Extension:TEX_Editor/Code --Ilintar 20:21, 13 September 2007 (UTC)Reply

Also find brackets don't work[edit]

I found the same problem when opening a left bracket - I would get the error " Failed to parse (syntax error): \left( ", BUT continue with the equation and when one CLOSES the relevant bracket the error message goes away and the equation will appear correctly ...

Nice extension - thank you ... It works on MW 1.12 ...

--Dick 22:24, 13 October 2007 (UTC)Reply

Offset error[edit]

Tex editor works well. But I got the following warning "Notice: Undefined offset: 1 in /usr/share/mediawiki/includes/SpecialTexbox.php on line 115"

In line 115, there is $item[1].

Anyline that has $item create warning. How can I fix it?


I have the same problem :-(
-- Mathias 19. April 2010

TEX/Favorites[edit]

Hi, I got TeX Editor to work, but I don't get all the favorites you have listed. I only get Can I somehow get all those other favorites? I followed your instructions completely and am using 1.11

repleace the TEX/Favorites page:


<math>(12.)\,</math>
{|
|<math>(12.)\,</math> || <math>(12.)\,</math>
|-
|\textstyle \frac{x}{y}  ||  frac{x}{y}
|-
|\textstyle \sum_x^n    ||  \sum_{x=1}^{n} 
|-
|\textstyle \prod_x^n    ||  \prod^{x=1}_{n} 
|-
|\textstyle \int_a^b    ||  \int_{a}^{b} f (x)\,dx 
|-
|\textstyle  \frac{\partial x}{\partial y}  ||  \frac{\partial x}{\partial y}  
|-
|\textstyle \sqrt x   ||  \sqrt{x} 
|-
|\textstyle \sqrt[3]{x}  ||  \sqrt[3]{x} 
|-
|\textstyle f(x)  ||  f(x) 
|-
|\lim   ||  \lim_{x\to\infty} 
|-
| ***
|-
|\sin   ||  \sin (x) 
|-
|\cos   ||  \cos (x) 
|-
|\tan   ||  \tan (x) 
|-
|\log   ||  \log (x) 
|-
|\ln   ||  \ln (x) 
|-
| ***
|-
|\le   ||  \le 
|-
|\ge   ||  \ge 
|-
|\neq   ||  \neq 
|-
|\approx   ||  \approx 
|-
|\equiv   ||  \equiv 
|-
|\propto   ||  \propto 
|-
|\infty   ||  \infty 
|-
| ***
|-
|\alpha   ||  \alpha 
|-
|\beta   ||  \beta 
|-
|\gamma   ||  \gamma 
|-
|\delta   ||  \delta 
|-
|\epsilon   ||  \epsilon 
|-
|\zeta   ||  \zeta 
|-
|\eta   ||  \eta 
|-
|\theta  ||  \theta 
|-
|\vartheta  ||  \vartheta 
|-
|\kappa   ||  \kappa 
|-
|\lambda   ||  \lambda 
|-
|\mu   ||  \mu 
|-
|\xi   ||  \xi 
|-
|\pi   ||  \pi 
|-
|\rho   ||  \rho 
|-
|\sigma   ||  \sigma 
|-
|\tau   ||  \tau 
|-
|\phi   ||  \phi
|-
|\varphi   ||  \varphi
|-
|\chi   ||  \chi
|-
|\psi   ||  \psi
|-
|\omega   ||  \omega 
|-
| ***
|-
|\Rightarrow   ||  \Rightarrow 
|-
|\rightarrow  ||  \rightarrow 
|-
|\Leftarrow ||  \Leftarrow 
|-
|\leftarrow   ||  \leftarrow 
|-
|\Leftrightarrow ||  \Leftrightarrow 
|-
|\vec{x}  ||  \vec{x} 
|-
| ***
|-
|(   ||  \left( 
|-
|)   ||  \right) 
|-
|[   ||  \left[ 
|-
|]   ||  \right] 
|-
|\{   ||  \left{ 
|-
|\}   ||  \right} 
|-
|\textstyle {n \choose k}  || {n \choose k} 
|-
| ***
|-
|\Box || \Box
|-
|\forall || \forall
|-
|\exists || \exists
|-
|\in || \in
|-
|\not\in || \not\in
|-
| ***
|-
|\mbox{Taylor} || f(x) = \sum_{k=0}^{\infty } \frac{ f^{k} (a) }{ k! } (x - a)^k
|-
|\mbox{Euler}^1 || e^{i \varphi } := \cos \varphi   + i \sin \varphi 
|}


Does it work in Solaris?[edit]

I have set up a corporate wiki in a mainframe that uses Solaris, and am using TeX Editor. I have at least these two problems:

  • Preview works only for a very limited number of elements from the favorites list. I just made it work with
  • When I press "Save page", the final page displays an error about the "convert to PNG has been erroneous" --I get the message in local Spanish language--

I am beginning to fear about TeX Editor using some language that exists for Linux but not for Solaris.

Thanks in advance.

SpecialPage::addPage() not found[edit]

Fatal error: Call to undefined method SpecialPage::addPage() in /srv/www/htdocs/wiki/includes/SpecialTexbox.php on line 380

Is it removed since MW 1.21.1? Thanks for help!

Does it work on 1.24 ?[edit]

I have found that it does not work in MW 1.24, I do not know why.--221.131.70.148 12:38, 15 April 2015 (UTC)Reply