Page 1 of 1

Using LaTeX

Posted: Thu Jun 29, 2006 7:46 pm
by cap_gemo
I don't know, whether this topic belongs here, so excuse me, please, if it really doesn't.

I already searched this Board and the German version with keyword "latex" and found a lot of stuff. Most of this stuff was useless. Some topics were interesting, but I found only the instructions of installing things like mimetex and Latexrender on own servers. I also did not understand those instructions completely - I'm novice to all those things.

My situation is: I have created a phpbb board on a free public hosting http://drition.net . The Board itself works perfectly.
Since there are gonna be a lot of scientific discussions, I need to have some stuff, that will allow to use LaTeX-code to post mathematical equations.
Could anyone please give detailed instructions (for newbies), what should I do? Thank you

Posted: Thu Jun 29, 2006 8:50 pm
by mama_soap
As far as where the topic belongs, I think it should go into phpBB Support, since you're not really asking for a new mod, merely looking for instructions for implementing an existing one :)

You see, the fact that your forum is hosted with a 'free forum provider', I am sorry to say, more or less ends your quest for latex extensions. You could mail the providers and ask them to install the relevant mods, but I personally find their responding to that request with action rather unlikely. This is not just because latex is usually not a popularly demanded mod, it also has got to do with the fact that actually installing the whole latex thing can be a considerable challenge - I have had trouble setting up a latex server at home, so... :)

Having said that, though, you might find phpmathPublisher interesting. I think - if I remember correctly - it generates HTML code after an image conversion, so it is something you should be able to use quite easily. But if you don't have your own lamp/wamp system somewhere, I think even this can be tricky...

PS: Mm... that link is quite harmless... but if it should be classified as spam, I guess it can go; and I'll PM the OP.

Posted: Fri Jun 30, 2006 5:06 am
by cap_gemo
mama_soap wrote: You see, the fact that your forum is hosted with a 'free forum provider', I am sorry to say, more or less ends your quest for latex extensions.


A little correction - it's not a forum provider. It is a simple free hosting, where you can use PHP, MYSQL and a lot of other stuff, that I don't understand :).

I registered myself there and then I downloaded phpbb and uploaded it myself to my Webspace and installed it myself. Fortunately, the installation of phpbb is quite easy, which is good for a novice guy like me.

I'm, pretty sure, that the LaTeX extensions should run them also, if one installs it correctly. But the problem is, I don't know how to do this.

For example in the instructions of installing Latexrender there is something like that:

you should change your file blablabla.php and add line: latexpath=c:/miktex/...

So this instruction is useful only in the case, I have my board on my own computer, which is also a server. But this is not my case.

Is there some phpbb mod, or some other program, that could convert LaTeX code to images, without having to be connected to some LaTeX distribution installed on some computer, and that could work with phpbb-board?

Posted: Fri Jun 30, 2006 6:35 am
by mama_soap
cap_gemo wrote: A little correction - it's not a forum provider. It is a simple free hosting, where you can use PHP, MYSQL and a lot of other stuff, that I don't understand :).

I registered myself there and then I downloaded phpbb and uploaded it myself to my Webspace and installed it myself. Fortunately, the installation of phpbb is quite easy, which is good for a novice guy like me.


My bad - and my apologies. I stand corrected - unfortunately, the link you had provided leads to a site that is not in english, so I just jumped to a conclusion. :oops:

cap_gemo wrote: I'm, pretty sure, that the LaTeX extensions should run them also, if one installs it correctly. But the problem is, I don't know how to do this.

For example in the instructions of installing Latexrender there is something like that:

you should change your file blablabla.php and add line: latexpath=c:/miktex/...

So this instruction is useful only in the case, I have my board on my own computer, which is also a server. But this is not my case.

Is there some phpbb mod, or some other program, that could convert LaTeX code to images, without having to be connected to some LaTeX distribution installed on some computer, and that could work with phpbb-board?


There is a phpBB mod for latex, I remember using one at an earlier point of time. Unfortunately this was really long ago, so I am not sure I remember how I did it. It is not terribly complex, but it is not the simplest of mods out there. I'll see if I can look up the info for you again. All I remember in a rather vague sort of way is that high quality latex images can only be produced if your server has a copy of latex installed, and the GD library for PHP. If you don't or can't have latex, there is a suitably simple alternative that produces relatively low resolution images, but they're still better than groping with a mod-less phpBB install.

Posted: Fri Jun 30, 2006 4:14 pm
by cap_gemo
mama_soap wrote: My bad - and my apologies. I stand corrected - unfortunately, the link you had provided leads to a site that is not in english, so I just jumped to a conclusion. :oops:


Oh no, I'm sorry, I should tell it in my first post. Yeah, the website is German.
mama_soap wrote: There is a phpBB mod for latex, I remember using one at an earlier point of time. Unfortunately this was really long ago, so I am not sure I remember how I did it. It is not terribly complex, but it is not the simplest of mods out there. I'll see if I can look up the info for you again. All I remember in a rather vague sort of way is that high quality latex images can only be produced if your server has a copy of latex installed, and the GD library for PHP. If you don't or can't have latex, there is a suitably simple alternative that produces relatively low resolution images, but they're still better than groping with a mod-less phpBB install.


It would be very great, if you could find information about all that stuff.

Posted: Sat Jul 01, 2006 5:40 pm
by cap_gemo
By the way, I already tried it with mimetex. It doesn't work, becaus this hosting doesn't accept .cgi (although it works wonderful with PHP and MYSQL). So I need some possibility without .cgi-programs.

Posted: Thu Jul 13, 2006 5:22 pm
by cap_gemo
OK, thanks for your help, mama-soap, I habe changed the hosting now - found one with php, mysql AND cgi, and have no problem now.

This thread could be closed

Posted: Fri Jul 14, 2006 1:06 am
by mama_soap
cap_gemo,

I am glad it worked out for you. I'm sorry I couldn't make myself very useful; been caught up with school lately :) Congratulations on the new hosting!!

Good luck and cheers :D

da same

Posted: Fri Jul 14, 2006 5:17 am
by Alvar0
cap_gemo:, could you tellme which hosting is that?

i have exactly the same problem with my hosting, it doesn't allow me to run a binary cgi, and others don't allow files larger than 1meg (mimetex is larger).

There is a hosting ([url]htttp://theorem.ca[/url]) which offer all that i need, latex included, but is not free (or sponsored)

Re: Using LaTeX

Posted: Fri Jul 14, 2006 11:42 am
by carlton
cap_gemo wrote: My situation is: I have created a phpbb board on a free public hosting http://drition.net . The Board itself works perfectly.
Since there are gonna be a lot of scientific discussions, I need to have some stuff, that will allow to use LaTeX-code to post mathematical equations.
Could anyone please give detailed instructions (for newbies), what should I do? Thank you

There is an interesting phpBB MOD still in development,
LaTeXRender

Re: da same

Posted: Tue Jul 18, 2006 4:42 am
by cap_gemo
Alvar0 wrote: cap_gemo:, could you tellme which hosting is that?


A german hosting http://hz-group.de - there's everything in German. But it supports php, mysql, cgi and everything and is completely free! And there is a very cool Web-interface, that allows you to do a lot of things, for example to view, edit, backup and restore your mysql-database.

2 carlton: Yeah, that's true. It doesn't work without LaTeXrender. Here's what you have to do, if you want to install LaTeXrender in your phpbb-board (found it out myself after a lot of experiments ;) ):

1. Find a hosting, that supports php, mysql AND cgi, like http://hz-group.de
2. Install your board there.
3. Download mimetex from here.
4. Compile mimetex to file mimetex.cgi (detailed instructions for Unix and Windows can be found in readme-file).
5. Upload your mimetex.cgi file to your /cgi-bin folder.

6. Download LaTeXrender from here.
7. Decompress the archive. You need only the subfolder mimetex, the rest can be deleted at once. In the subfolder mimetex read the file README_phpBB.txt. It describes, what do you have to do, to make mimetex work with your phpbb-board.

Warning for newbies like me: this readme-file sais, you have to change some paths. And some of them look like:

/home/domain_name/public_html/cgi-bin/mimetex.cgi

But this can change from server to server. In my case for example the correct path was

/usr/virtualweb/davygora.hz-group.de/html/cgi-bin/mimetex.cgi

I found it out very simply. First of all I wrote the path, that was in readme. Then I tried it out and I got some error-page. There were a lot of error messages, and there stood the path to some files on the server. Using those paths, you can find out yourself, how do you correct hte wrong paths.

8. Now everything should work. If it doesn't, check file permissions, paths, and things like that.

Enjoy!

P.S. I wish, I had such detailed instruction, before I started my experiments! :)

Posted: Tue Jul 18, 2006 5:00 am
by cap_gemo
2 Alvar0

Maybe this links will interest you:

http://www.afmu.com/free-web-hosting.php

Loaded with features
No ads or Banners
25 POP Email accounts
Unlimited Email forwarders.
1 GB Monthly Data Transfer
(100,000 page views)
100 MB Disk Storage
PHP, CGI, MySQL
FrontPage Extensions
Easy to use Control Panel. See Demo below.
Upgradable at anytime.

P.S. There's only one problem. The hosting is free, yes! But you have to purchase a domain :(

thanks

Posted: Tue Jul 18, 2006 2:20 pm
by Alvar0
thanks a lot, i've found an experimental site: www.polarhome.com
it gives you a virtual linux server for a small fee with the only condition it will be used for educational proposes (wich is my case:^)