Version: 1.00, by the_sisko
Developer Last Online: Oct 2023
Version: 3.0.3
Rating:
Released: 08-07-2004
Last Update: Never
Installs: 15
Is in Beta Stage
No support by the author.
As I promised in this thread some time ago, I will post a short install note on how to get mimetex to work on vB.
1.
You need to download the mimeTex source files to compile and install mimeTeX. I don't know if it is allowed to attached the compied mimetex.cgi file, nor do I know if there is something server specific in my file. So you have to do this on your own. Compile and installation instruction can be found in the mimetex source files. http://moodle.org/download/mimetex/source/mimetex.html EDIT (2005-06-14):Added the mimetex.cgi file as attachment
2.
Upload the mimetex.cgi file to a folder on your server where it could be used. As we don't wanted our users or anybody else to access this file, we put it outside the webserver root.
3. Create a folder on your webserver where the mimeTex images should be stored.
4.
Open the atteched functions_mimetex.php and alter the three variables at the beginning to your needs. Upload the attached functions_mimetex.php file to your /includes/ folder.
5.
Open /includes/functions_bbcodeparse.php
Find:
PHP Code:
} // end smilies
below add:
PHP Code:
// Latex Hack by CDK
require_once('functions_mimetex.php');
$bbcode = mimetex($bbcode);
It was a hack made for our forum, I have no further interest in developing this into a real stabel hack. Its working for us. I posted this, just to give other users who needed this a start into the right direction.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
As I said in my first post, I don't know if I can do this nor do I know if there is anything server specific in my CGI file.
Here a quote from the install README:
Quote:
QUICK START
------------------------------------------------------------------------
To compile and install mimeTeX
* unzip mimetex.zip in any convenient working directory
* to produce an executable that emits anti-aliased
gif images (recommended)
cc -DAA mimetex.c gifsave.c -lm -o mimetex.cgi
-or- for gif images without anti-aliasing
cc -DGIF mimetex.c gifsave.c -lm -o mimetex.cgi
-or- to produce an executable that emits mime xbitmaps
cc -DXBITMAP mimetex.c -lm -o mimetex.cgi
(For Windows, see "Compile Notes" in Section III below.)
* mv mimetex.cgi to your server's cgi-bin/ directory
* mv mimetex.html to your server's htdocs/ directory
* if the relative path from htdocs to cgi-bin isn't
../cgi-bin then edit mimetex.html and change the
few dozen occurrences as necessary.
Then, to quickly learn more about mimeTeX
* point your browser to www.yourdomain.com/mimetex.html
Any problems with the above?
* read the more detailed instructions below,
or see http://www.forkosh.com/mimetex.html
* to produce an executable that emits anti-aliased
gif images (recommended)
cc -DAA mimetex.c gifsave.c -lm -o mimetex.cgi
-or- for gif images without anti-aliasing
cc -DGIF mimetex.c gifsave.c -lm -o mimetex.cgi
-or- to produce an executable that emits mime xbitmaps
cc -DXBITMAP mimetex.c -lm -o mimetex.cgi
(For Windows, see "Compile Notes" in Section III below.)
This is very complex way .... :cry: :cry: :cry: :cry: :cry:
Can you give me another way to compile the cgi file ? please ?
I've just installed this and have followed the directions thoroughly. Note that there's a missing close quote and ; from line 11 of the functions_mimetex.php in the zip file.
When I try to put an equation in a thread, I now get an error message:
Warning: system() has been disabled for security reasons in /includes/functions_mimetex.php on line 49
How do I address this error message? I see the system() call is what's actually referencing the cgi file, so it's clearly critical to this functionality.