Re: Reading & Displaying Latex Rendered images [message #178559 is a reply to message #178540] |
Mon, 02 July 2012 07:28 |
Fastian
Messages: 20 Registered: June 2012
Karma:
|
Junior Member |
|
|
On Friday, June 29, 2012 3:24:13 PM UTC+5, Fastian wrote:
> 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!
___________________________________________________________________________ _____I am writing this post to explain my project so that you may give me more relevant suggestions:
I have to develop an application that will help us develop a database of questions. These questions will be used for developing tests/ exams. Latex is required to enter scientific and mathematical text. As Latex is not WYSIWYG therefore the data entry person will like to see the output for the latex text. For that my latex code will be rendered and then I will be able to get the
desired output. As my application is web based therefore I think I can use MathTeX. (suggest me anyother better option if you know especially if available in Windows platform) So first thing to deal with is to get the rendered images and display them in desired format. The required format is a question with multiple options (MCQ). In short I need a preview of my question and answer options.
The second issue is that I need to get ONE image which should have question with its options and both should be transformed/ merged in such a way that ultimately one image is obtained from the input(question and options). The requirement of my application is that this complete question should then be saved in the database.
I can get the input for question and options in textarea. Now I need to show the preview as well as transform them into one image so as to store in the database.
Guide me which PHP functions will help me in reading and displaying the images as well as merging the images etc. Any suggestion that can help me in this project will highly be appreciated. Thanks!
|
|
|