Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #6484

Re: Reading & Displaying Latex Rendered images

From Fastian <abdulbasit.fast@gmail.com>
Newsgroups comp.lang.php
Subject Re: Reading & Displaying Latex Rendered images
Date 2012-07-02 00:28 -0700
Organization http://groups.google.com
Message-ID <32400a37-6aa0-4429-bb2d-e6306dce1f12@googlegroups.com> (permalink)
References <96a37fe0-2b28-431a-903e-edd416e44169@googlegroups.com>

Show all headers | View raw


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!

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Reading & Displaying Latex Rendered images Fastian <abdulbasit.fast@gmail.com> - 2012-06-29 03:24 -0700
  Re: Reading & Displaying Latex Rendered images The Natural Philosopher <tnp@invalid.invalid> - 2012-06-29 12:02 +0100
    Re: Reading & Displaying Latex Rendered images Fastian <abdulbasit.fast@gmail.com> - 2012-06-29 04:34 -0700
      Re: Reading & Displaying Latex Rendered images The Natural Philosopher <tnp@invalid.invalid> - 2012-06-29 13:09 +0100
  Re: Reading & Displaying Latex Rendered images Jerry Stuckle <jstucklex@attglobal.net> - 2012-06-29 09:20 -0400
    Re: Reading & Displaying Latex Rendered images Fastian <abdulbasit.fast@gmail.com> - 2012-07-01 23:42 -0700
      Re: Reading & Displaying Latex Rendered images "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-07-02 09:34 +0200
        Re: Reading & Displaying Latex Rendered images Fastian <abdulbasit.fast@gmail.com> - 2012-07-02 01:10 -0700
      Re: Reading & Displaying Latex Rendered images Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-02 06:53 -0400
        Re: Reading & Displaying Latex Rendered images Fastian <abdulbasit.fast@gmail.com> - 2012-07-02 04:24 -0700
          Re: Reading & Displaying Latex Rendered images Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-02 09:35 -0400
            Re: Reading & Displaying Latex Rendered images Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-02 09:41 -0400
              Re: Reading & Displaying Latex Rendered images Fastian <abdulbasit.fast@gmail.com> - 2012-07-02 10:00 -0700
                Re: Reading & Displaying Latex Rendered images Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-02 16:54 -0400
  Re: Reading & Displaying Latex Rendered images Fastian <abdulbasit.fast@gmail.com> - 2012-07-02 00:28 -0700
    Re: Reading & Displaying Latex Rendered images "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-07-02 10:44 +0200
      Re: Reading & Displaying Latex Rendered images Fastian <abdulbasit.fast@gmail.com> - 2012-07-02 02:54 -0700
        Re: Reading & Displaying Latex Rendered images Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-02 06:46 -0400

csiph-web