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.
sry my english is not the best and i didnt understand what mimetext does?!
can you explain it in simple words for meplease?
[german]
Wie w?re es auf deutsch?
Mimetex erlaubt es einem Latex/Tex Formeln im Forum einzubinden. So kann man z.B. mathematische, chemische, physikalische Formeln sehr sch?n darstellen. Schau Dir einfach mal die Beispiele im ZIP an oder auf der Webseite die ich gelinkt habe.
[/german]
After The_Sisko wrote this new cool hack for our site, i make an addition for users, who don't know much about Mimetex. They can now insert mimtex code with one mouse click, just like the smilies.
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'tex'); // change this depending on your filename
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(
);
// get special data templates from the datastore
$specialtemplates = array(
);
// pre-cache templates used by all actions
$globaltemplates = array(
'mimetex',
);
// pre-cache templates used by specific actions
$actiontemplates = array(
Go into your AdminCp and make a new template called "mimetex" (Some parts are german, but you can easily make your own text). Insert the content of the attached file and check the path to your mimetex.cgi
Then open template "editor_toolbar_standard" and find
PHP Code:
<!-- end control bar --></div><!-- / end control bar -->
Above it add (just an example, your can put it where you want in this template):