PDA

View Full Version : [latex][/latex] bbcode


Dream
07-02-2005, 10:00 PM
Description
Rip-off of http://www.vbulletin-germany.com/forum/showthread.php?t=17052

This bbcode creates images using LaTeX math expressions.

Installation
- Go to http://www.forkosh.com/mimetex.html
- Download mimetex, compile it and throw it into your cgi-bin folder, or try one of the pre-compiled versions. The Linux one didn't work for me, good luck.
- Test it out with www.yourforum.com/cgi-bin/mimetex.cgi?x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}
- Add the bbcode

Title: Latex
Tag: latex
Replacement: <img src="http://www.yourforum.com/cgi-bin/mimetex.cgi?{param}" />
Example: x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}
Description: Generates images with LaTeX math expressions.
Use {option}: no

I tried using the mimetex from his site and it banned me.

<img src="http://www.forkosh.dreamhost.com/cgi-bin/mimetex.cgi?{param}" />

http://www.forkosh.dreamhost.com/cgi-bin/mimetex.cgi?x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

CBE
07-03-2005, 12:46 PM
Dear friend,

i downloaded " mimetex.zip " but there is no file named " mimetex.cgi " ???????

what shall i do ??

thx

Dream
07-03-2005, 05:54 PM
you have to follow the installation steps on that page to create the "mimetex.cgi" file

mtha
09-21-2005, 04:31 AM
This is nice. :)

anyway, you need to have permission to compile cc, in order to create the .cgi file :)

i tried using his site:
http://www.forkosh.dreamhost.com/cgi-bin/mimetex.cgi?x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}
its working fine.

Dream
09-29-2005, 09:25 PM
his site has an anti-leech system though

dieselpowered
09-29-2005, 09:36 PM
I must not be as smart as all of you, because I have no clue what this is for??

Dream
09-29-2005, 09:43 PM
it for showing advanced math formulas with a bbcode

J_Chem
10-19-2005, 01:53 PM
newb here =)

I got the mimetex.cgi working, I'm just not sure where to add the bbcode.

thanks

Coldhands
11-07-2005, 10:19 PM
I was using this on my forum before I upgraded to 3.5. I created a folder called mimetex, then unzipped the file. I then compiled the file useing the command line cc -DAA mimetex.c gifsave.c -lm -o mimetex.cgi

that creates the mimetex.cgi file which I put in my cgi-bin folder.

I try to execute the file with http://www.actuary.ca/cgi-bin/mimetex.cgi?x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

and only get an internal server error.

Am I missing something???

Coldhands
11-07-2005, 10:24 PM
Whoops, ignorance strikes again!!!!!!!!!!!

I started to think about this one for a second, and then I realized . . . The quick directions would be a lot quicker if it had "change the chmod of mimetex.cgi to executable" which only makes sence cause people have to execute it in order for it to work . . . . duh.

Coldhands
11-07-2005, 10:48 PM
Okay, so now my problem is when I use the tag in a thread it just shows the text. How do I make this text so it shows the image that does now work and should be used?

Thanks in advance,

CH

Lea Verou
11-08-2005, 03:16 AM
If this could be made so that the functions are more close to the normal writion of functions in plain text (eg using only parentheses) it would be soooo great!
Even as is I consider installing! The users in my math subforum will loooove this!

* Lea Verou is clicking install to be able to find it easily and maybe actually install afterwards :)

InfidelMatt
11-08-2005, 03:25 AM
Whoops, ignorance strikes again!!!!!!!!!!!


I started to think about this one for a second, and then I realized . . . The quick directions would be a lot quicker if it had "change the chmod of mimetex.cgi to executable" which only makes sence cause people have to execute it in order for it to work . . . . duh.

I have mine set up and chmod'd properly and I still get internal server error. It works fine off the command line, however. :huh:

DaXecutioner
11-08-2005, 05:25 AM
holy shit. this is exactly what my forum needs as it is for math students at my university. thank you for bringing this to my attention.

JPQuiceno
02-08-2006, 07:06 PM
wtf, i compiled it myself, put it in my cgi bin, and chmod it to 777, and it still gives out internal server error:

http://www.internationaldiscussionforums.net/cgi-bin/mimetex.cgi?x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

niksoft
05-04-2006, 02:31 AM
i compiled it and installed it fine, this is a really great plugin, but i have the following problem, and i am pretty sure that it is within vbulletin:
ok, it seems like every time i use a parenthesees before an equal sign, the img tag gets truncated and the image that renders fine, upon reload does not appear to be present...

example:

\int_{a}^bf(x)dt=\sum_{i=1}^n f(\overline{x_i})\Delta x
this renders when i hit submit, but if i reload the page, the picture does not show up

\sum_{i=1}^n f(\overline{x_i})\Delta x=\int_{a}^bf(x)dt
this however works fine

infact after playing with it
x=f\left(x\right)=\int_{-\infty}^xe^{-t^2}dt
this will display nicely all the time, while if you take that x out or the first equals sign it bombs and outputs nothing...

nailed it down to this in the html code, and its really weird...

when the image errors out, the image tag reads:
<img src="http://ourdomain/cgi-bin/mimetex.cgi)dt=\sum_{i=1}^n f(\overline{x_i})\Delta x" />
and that obviously is not valid as .cgi is supposed to be followed by a question mark and instead a bunch of code is missing and it all starts after the close bracket sign...

the same code, but where the 2 sides of the equality are swapped, and hence it runs, like i said, like its supposed to (the equations are those of the above code samples) reads:
<img src="http://ourdomain/cgi-bin/mimetex.cgi?\sum_{i=1}^n f(\overline{x_i})\Delta x=\int_{a}^bf(x)dt" />

does anyone else experience similar trouble? anyone have any idea where to start looking for a fix? anyone has any suggestions? i cant be the only one with such weird problems...

P.S. site is running vbulletin 3.5.3

MDK-Indy
08-13-2007, 04:50 PM
Works fine with vBulletin 3.6.7 PL1

greeting Indy

yzeeed.com
10-20-2007, 02:59 PM
If Hak for latex
Anything link loading
thanks

etuitions
02-25-2008, 04:07 PM
Hi We recently bought the license for vbulletin and we wanted to integrate LATEX following the steps as per this link:

http://pi.bloo.us:800/academic/latex/plugin/#Installation

but after doing all the steps the Editor Menu showed up with the Maths Icons with Sigma ..

But after selecting the Symbol even if we press the Preview or submit the symbols are not visible...

Any other thing we need to do? Please help

You can see our Forum in the following Link:

http://www.etuitions.org/forums/forumdisplay.php?s=&daysprune=&f=5

etuitions
02-25-2008, 05:55 PM
We got our License... and we have installed vbulletin in the server...


To integrate the Maths tool set as per below ... We followed the steps in the following link

http://pi.bloo.us:800/academic/latex/plugin/#Installation

After this.. We got the Sigma Icon in the Post / Thread Editor Menu and we could able to select the symbols... but it comes in as a kind of Code... something like this:

\stackrel{}{\rightarrow}

\sqrt[]{}

but even if we preview it or post it ... above continues to be shown as it is ... but not the Symbols as expected...

Please clarify ... should we install the LATEX software in the server? which is around 600 MBs??

Is there anything else we should do? .

Please help

Thanks and Regards,

Mazoo
02-27-2008, 06:53 AM
it works with me ,
but I need to know how to add an icon in the toolbox , in order to enable the members to input the data rather than doing the tags manully .

Thanks

mark|3
02-27-2008, 08:23 AM
i am facing the same problem as eTuition.

Simply got no idea on how to go about rendering the latex codes

maumau33
03-14-2008, 11:00 PM
Where is this mod?

:confused:

mark|3
06-11-2008, 07:38 AM
any solution on how to go about rendering latex images?

thanks

emath
09-06-2008, 08:27 AM
someone?