Log in

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


RVSmarter
04-26-2005, 04:32 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.

Any help would be greatly appreciated.

Thanks

Reeve of shinra
04-26-2005, 04:50 PM
Dont have my vb files handy but under your includes folder should be a file called functions_bbcode. I would probably enter it in there somewhere.

RVSmarter
04-26-2005, 04:59 PM
Dont have my vb files handy but under your includes folder should be a file called functions_bbcode. I would probably enter it in there somewhere.

Thanks for the reply.

I tried putting it under the // end smilies but that didn't work.

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...