-
Latex in C
Hello world!!!
Well, I have here a problem while building my project. Here's a snapshot of what the program should be in the end:
http://img710.imageshack.us/img710/3127/mashroo3.png
So I'm trying now to make the latex form for the input entered by the user in the text box...
Any hints?
Thanks in advance...
-
I'm not sure if I understand your problem. But i think you get end program look like that, you can either use any latex form API if avaliable or use Opengl to build your own!
ssharish
-
If you mean you are supposed to write a program that looks like that, then you've got some steps -- one is to turn what the user types in into something your program understands (like an expression tree or similar), and then two is to turn that tree into LaTeX format, and then three is to call LaTeX to get the image. We have no idea where you are along this path.
-
Thanks guys for your responses ...
@ssharish2005:
I'm now searching for OpenGL
@tabstop:
I've built a console program that is capable of dealing with string entered by the user and recognizes the expression i.e. if the user entered "1+2=" the program prints out 3. If the user enter "(1+2)*3" the program prints out 9 and so on.
So ... What do you think?
Thanks in advance....
-
The question is more, "Did you save the user input so that you can recreate it later?" If you consume it as you go, then you're in trouble.
-
@tabstop:
first of all, sorry for my late response. I had to study some electrical circuits.
and about saving/consuming the user input.. well, it's kinda complicated to explain the algorithm my team came up with. but for the instance we can say that the user input is somehow saved i.e. I can get what I want any time.
So, would you please tell me what's in your mind?
and what do you think about OpenGL?
Thanks in advance...
-
Assuming you have it saved, then just walk through your output and spit it out as LaTeX -- that would be not too much of a change from your current output mechanism I would guess. Then you need to find some way to turn that LaTeX output into an image -- a web search can give you some ideas; I've seen some cgi scripts that emit an image right away so you may be able to adapt, adopt, and improve.