Re: [Doc-SIG] Tex OO Rumbaugh classes drawer.
At 10:07 17/11/98 +0000, Manuel Gutierrez Algaba wrote:
Hmm. How to draw in HTML??
As far as I know, you can't draw lines in HTML, maybe I'm wrong.
you can refer to images such as a gif or jpg file.
Anyway you can easily translate from tex code to postcript or to a kind of ASCII- text draw . You just create an array and you follow the tex commands to write ASCII chars in that matrix. You can incorporate this program. But anyway tex-dvi are a very common way of documentation, why not incorporate as is?
interscript is 'typesetter independent': the documents must be renderable in plain text, html, and latex2e, and any other typesetter language such as postscript. So, if a client document contains information I pass to your package to draw a diagram, I have to be able to 'paste' it into both Latex and HTML ... although plain text is probably pushing it. I need to do this automatically: I can always run Xdvi and a screen grabber to make a jpg file for HTML, but I don't know how to do it automatically without user intervention. Another way to do it in HTML .. is to use a Java applet. ------------------------------------------------------- John Skaller email: skaller@maxtal.com.au http://www.maxtal.com.au/~skaller phone: 61-2-96600850 snail: 10/1 Toxteth Rd, Glebe NSW 2037, Australia
John Skaller wrote:
I need to do this automatically: I can always run Xdvi and a screen grabber to make a jpg file for HTML, but I don't know how to do it automatically without user intervention.
If you're assuming UNIX (questionable assumption), you can just run Xdvi with a specific window name (or if that app doesn't allow you to change the window name, you can find out what the fixed window name is). Then you call xwd with the name of the window, and it dumps it without any user input. Kill of Xdvi and you're done.
Another way to do it in HTML .. is to use a Java applet.
That would be more portable. Doug
participants (2)
-
Doug Hellmann -
John Skaller