Formula doesn't appear...

Formula doesn't appear...

by Federico Caccamo -
Number of replies: 6

Hello,

on my old server all worked well. I have transfered Moodle on a new server with Linux FreeBSD, I have activated the filter but the formula appears how to come writing. I don't have errors but simply the filter seems doesn't work.

Some idea?

Thanks
Federico

Average of ratings: -
In reply to Federico Caccamo

Re: Formula doesn't appear...

by Tom Schaeper -
I am new at this, but I noticed that you need a different mimetex for every installation. If your operating system is different from what is was originally, you may need to go to www.moodle.org/download/mimetex/freebsd and download that mimetex to work with your new installation.

Good luck,
Tom
In reply to Federico Caccamo

Re: Formula doesn't appear...

by Zbigniew Fiedorowicz -
The first thing you want to do is activate your tex debugger:
http://yourmoodlesite/filter/tex/texdebug.php
In reply to Zbigniew Fiedorowicz

Re: Formula doesn't appear...

by Federico Caccamo -

Hallo Zbigniew, (sorry for my english blush )

Much thankful for the answer, i have recalled the file texdebug.php and to appear this:

Your system is not configured to run mimeTeX. You need to download the appropriate
executable from http://moodle.org/download/mimetex/, or obtain the C source
from http://www.forkosh.com/mimetex.zip, compile it and put the executable into your
moodle/filter/tex/ directory. You also need to edit your moodle/filter/tex/pix.php file
by adding the line
       case "FreeBSD":
           $cmd = "\"$CFG->dirroot/$CFG->texfilterdir/mimetex.freebsd\" -e \"$pathname\" ". escapeshellarg($texexp);
You also need to add this to your texdebug.php file.

then I have uploaded the file for FreeBSD  http://moodle.org/download/mimetex ...but I have to compile? Because is not already compiled? Some it may do for me? I don't know to do...

thank you very much
Federico

In reply to Federico Caccamo

Re: Formula doesn't appear...

by Zbigniew Fiedorowicz -
You do not need to compile the executable file you get from http://moodle.org/download/mimetex/. Just put it in your filter/tex/ folder and set its file permissions to 755 or 777. You also do not need to edit your pix.php or texdebug.php
In reply to Zbigniew Fiedorowicz

Re: Formula doesn't appear...

by Federico Caccamo -

Wow Zbigniew! You are the king! It's very simple and..... work! I have solved endless thanks!

Federico

PS:... to see the formula has due change the @@ with $$ it's normal?

In reply to Federico Caccamo

Re: Formula doesn't appear...

by Zbigniew Fiedorowicz -
There are two different filters which use mimetex
  1. algebra filter which uses @: @@@x/2@@@ ==> @@x/2@@
  2. tex filter which uses $: $$$\frac{x}{2}$$$ ==> $$\frac{x}{2}$$