Firefox PHP

Module: LatexRender Phorum Mod

Posted by jswright 
All files from this thread

File Name File Size   Posted by Date  
latexrender_example.png 50.1 KB open | download jswright 12/21/2008 Read message
latexrender.tar.gz 54.3 KB open | download jswright 12/21/2008 Read message
Module: LatexRender Phorum Mod
December 21, 2008 03:09PM
This module allows users to include Latex code in Phorum posts. It converts fragments of Latex code into images that are displayed inline by hooking into the LatexRender php script (originally written by Benjamin Zeiss and maintained by Steve Mayer). Example screenshot below.

The user types the Latex code in between [tex] and [/tex] bbcode tags. This code fragment is then converted into dvi, then postscript, then either png or gif. LatexRender requires Latex, Ghostscript, and ImageMagick. I have had better luck converting to png than gif, which sometimes comes out barely legible. If you want to convert to gif instead just alter line 47 of class.latexrender.php accordingly. You can enable additional fonts and symbols by adding the appropriate package at line 180 of class.latexrender.php.

I have only used this with Phorum 5.1.23, but I was directed to post it here so maybe Joe Curia checked it on 5.2 as well?

LatexRender is available at [www.mayer.dial.pipex.com]

This version has been modified from the original as follows:

05.08.2008
+ added Phorum hook (latexrender.php)
+ added Phorum module file (info.txt)
-/+ replaced l.73 in latex.php (BBCode [img] instead of HTML <img> tags)
12.21.2008 
standardization (credit to Joe Curia):
+ added l.4-7 to info.txt
-/+ generalized l.30 in latexrender.php

To use it, unpack and put it in your /'phorum_path'/mods/ directory, go to 
the Modules page in Phorum Admin, and turn the module on. Make sure both 
the latexrender/pictures and latexrender/tmp directories are publicly 
writable. Place any LaTeX symbols or formulas within the [tex] and [/tex] 
tags, and you should be good to go. 


Attachments:
open | download - latexrender.tar.gz (54.3 KB)
Re: Module: LatexRender Phorum Mod
December 25, 2008 06:42AM
Thanks for bringing back my nightmares (me and Tex have given up being friends long ago ;-)
Also thanks for this contribution to the Phorum community.
I know a few people that still like Tex, who will certainly enjoy this mod.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: LatexRender Phorum Mod
October 26, 2009 07:46AM
Belive me or not ... I wrote a module last week did the same job ( works with LaTeX equation editor for the internet ) :( ... WHY I DIDN'T CAME HERE LAST WEEK ??? NOTE THAT MY MODULE WORKS BETTER :D

anyway good job ... thanks.
Re: Module: LatexRender Phorum Mod
October 26, 2009 07:50AM
Quote
michelkogan
NOTE THAT MY MODULE WORKS BETTER :D

Noted! So, where is it? ;-)


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.

Click here to login