PDA

View Full Version : Parsing LaTeX, where to put the code??


RVSmarter
04-26-2005, 10:42 PM
Hello,

I am trying to add Latex to my math forum. I need to call the code below so that when people post with it will render mathmatical equations.

include_once('/full_path_here_to/latexrender/latex.php');
$latextext=latex_content($latextext);

I just don't know in what php file or where to place the code. I tried putting it under the // end smilies in functions_bbcode but that didn't work.

Any help would be greatly appreciated.

Thanks

Marco van Herwaarden
04-27-2005, 03:47 AM
Have a look at the includes/functions_showthread.php and the postbit template.

And probably the includes/functions_bbcodeparse.php

RVSmarter
04-29-2005, 03:10 AM
somebody gave me this tip:

"it's fairly easy just to mod the functions_bbcode.php file using something like the [php] code as a template (you'll need to call a function from preg_replace)."

but I don't know where to go from there...