Algebra not working

Algebra not working

napisao/la Peter Jeans -
Broj odgovora: 5

We have moodle 1.4.3+ running on Windows server 2003 with IIS.

The algebra filter wouldn't work at all. Any page with the @@ sybols would stall the system.

I unzipped the latest alegbra filter and pages with algebra will load but we get the following message (below)

Is there a quick fix or do we need to install the latest build of moodle?

:  
Warning: shell_exec() [function.shell-exec]: Unable to execute 'cd C:\moodle\filter\algebra & algebra2tex.pl "b^2"' in C:\moodle\filter\algebra\filter.php on line 171
>

a. -6aUndetermined error: - 8a^2b

b. -6ab + 8ab

c. -5ab + 6aab

Warning: shell_exec() [function.shell-exec]: Unable to execute 'cd C:\moodle\filter\algebra & algebra2tex.pl "b^2"' in C:\moodle\filter\algebra\filter.php on line 171
>

d. -6aUndetermined error: + 8a^2b

U odgovoru na Peter Jeans

Re: Algebra not working

napisao/la Zbigniew Fiedorowicz -
First of all did you install Perl on your server?  The algebra filter relies on it.

Also you need to enable the shell_exec and system php commands in IIS.  I don't have access to IIS, so I can't help you with that, but you might take a look at the following discussions:
http://moodle.org/mod/forum/discuss.php?d=6446#30915
http://moodle.org/mod/forum/discuss.php?d=21804
and perhaps try to contact some people who have gotten the filter running under IIS.



U odgovoru na Zbigniew Fiedorowicz

Re: Algebra not working

napisao/la vidyamanohara sharma -

I too had this problem on our moodle site...

My service provider had to recreate a separate site for maths

I am presently using TeXaide which is working well for me and top of all ... you need not worry abt the syntax

try follow these steps

1) download TeXaide from the link

http://www.dessci.com/en/products/texaide/

2) type the expressions as in math type:

suppose you  type some thing like this

$$\left( {\frac{{\left( {a + b} \right)\left( {b + c} \right)\left( {c + a} \right)}}{{\left( {a + b + c} \right)^3 }}} \right) \le \frac{8}{{27}}$$

3) copy the expression and paste in a note pad

4) it gives many extra text symbols,

like this

% MathType!MTEF!2!1!+-
% feqaeaartrvr0aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbbjxAHX
% garmWu51MyVXgarqqtubsr4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8
% F4rqqrFfpeea0xe9Lq-Jc9vqaqpepm0xbba9pwe9Q8fs0-yqaqpepa
% e9pg0FirpepeKkFr0xfr-xfr-xb9adbaqaaeaacaGaaiaabeqaaaaa
% daaakeaadaqadaqaamaalaaabaGaaiikaiaadggacqGHRaWkcaWGIb
% GaaiykaiaacIcacaWGIbGaey4kaSIaam4yaiaacMcacaGGOaGaam4y
% aiabgUcaRiaadggacaGGPaaabaGaaiikaiaadggacqGHRaWkcaWGIb
% Gaey4kaSIaam4yaiaacMcadaahaaWcbeqaaiaaiodaaaaaaaGccaGL
% OaGaayzkaaGaeyizIm6aaSaaaeaacaaI4aaabaGaaGOmaiaaiEdaaa
% aaaa!469E!
\[
\left( {\frac{{(a + b)(b + c)(c + a)}}{{(a + b + c)^3 }}} \right) \le \frac{8}{{27}}
\]


copy the math text symbols at the end and paste them in the
message box

i.e., you take

\left( {\frac{{\left( {a + b} \right)\left( {b + c} \right)\left( {c + a} \right)}}{{\left( {a + b + c} \right)^3 }}} \right) \le \frac{8}{{27}}

with the symbols $$ at both ends
5) save the changes

6) some part of the object may not look as desired with several
[?] like symbols. With few corrections in the spaces between
characters you can clear those [?] like symbols and can get
the object pasted as desired.

hope I have communicated well

vidyamanohara sharma

U odgovoru na vidyamanohara sharma

Re: Algebra not working

napisao/la Dmitry Pupinin -
Slika Core developers Slika Plugin developers
This possible do more simply!
1. Download attachment, unpack file to "Translators" folder in your TeXaide and overwrite exist one.
2. Run TeXaide, open menu Edit->Translators and uncheck two checkbox at bottom of dialog window.
3. Check menu item Format->InlineEquation
4. Copy the expression and paste in a note pad
5. Have fun! namiguje

PS: Do similarly if you using MathType.
U odgovoru na Peter Jeans

Re: Algebra not working

napisao/la Dmitry Pupinin -
Slika Core developers Slika Plugin developers
I have problem too.

When I enable Algebra filter in my local Moodle system (on Windows) then algebra2tex.pl it is openned in Notepad iznenađen širom raširenih očiju
Other perl scripts works fine...