From: mdiam Date: 2010-12-30T21:05:20+09:00 Subject: Re: From python to ruby Hello Alain, Some month ago, To help somebody (N.K.) to switch from its Tool Command Language, I translated a tcl script (from N.K.) to Ruby. The script was aimed to add some LaTeX glue around a Tikz image, then compile it to produce a pdf file. The principle is to provide a LaTeX proto with some erb encapsuled Ruby code, then generate a LaTeX file from the script options, then compile it to produice (e)pdf, the (if OK) remove temporary files. I write several versions from the same tcl model (with the same API): from the most basic one (for somebody who doesn't like the magic Ruby style) to a more generic (i.e. standard) one which could be use for other similar applications. http://www.ensta.fr/~diam/ruby/online/tikz2pdf/ The scripts are provide "as is", just as stuff to start you one tool! -- Maurice P.S.1 For those who doesn't know, Alain is a great contributer for the Tikz graphic scripting system for TeX: http://www.texample.net/tikz/examples/author/alain-matthes P.S.2 (for Alain) Do you know that Hans Hagen (ConTeXt author) has switch from Perl to Ruby for it full TeX (ConTeXt) build system some year ago? P.S.2 (for all) Sorry for my bad english!