Reading & Displaying Latex Rendered images [message #178540] |
Fri, 29 June 2012 10:24 |
Fastian
Messages: 20 Registered: June 2012
Karma:
|
Junior Member |
|
|
I am developing an application for the university. One basic module/ section of this application is Data Entry. The data is entered using Latex (Latex is a type setting language and is not a WYSIWYG language). The tex software converts the latex code into the required image. For better understanding visit the following link:
http://www.forkosh.com/mathtexpreview.html
You can see that on entering Latex code, the desired output is obtained which is actually an image. This image is produced by the Tex software and is being fetched and displayed on this page. Another way to get that image is as follows:
<img src="http://www.forkosh.com/mathtex.cgi?$c=a+b$" alt="" border=0 align=middle>
My issue is that I want to get the image generated due to the rendering of the Latex code and then display it after re-sizing and then want store it in the MYSQL database.
As I dont know the name of the image produced due to rendering that's why I can not pick the image with its name. Therefore I tried using function "file_get_contents". Though it returns some garbage values on echo but what next?
I need to know that how can I proceed further or suggest some better way to deal with these issues especially while dealing with LateX rendering. Thanks!
|
|
|