william's blog | 2012-02-04 12:10:07 +0000 =========================================== Ritex 0.2 released ------------------ Date: April 2, 2009 1:02pm Author: William Morgan Labels: ritex, releases URL: http://masanjin.net/blog/ritex-0.2.txt It's been almost four years since the previous release, so I'm happy to announce that Ritex [1] 0.2 has been released today. This version features many bugfixes an improvements, most notably: * Array options are now supported. (Necessary to get the @eqnarray@-style equation alignment in this post [2] * Unary minus heuristics are much improved. Here's a quick demo of the unary minus: table{margin-left: auto; margin-right: auto;}. | @-x@ | $$-x$$ | | @x-x@ | $$x-x$$ | | @x--x@ | $$x--x$$ | | @\alpha-x@ | $$\alpha - x$$ | | @\alpha\,-x@ | $$\alpha\, - x$$ | Sadly, just as with LaTeX itself, there are still times where you have to hint to get the right behavior: table{margin-left: auto; margin-right: auto;}. | @\sin-x@ | $$\sin-x$$ | | @\sin{-x}@ | $$\sin{-x}$$ | Over the years since the last release it looks like there are two new options for generating MathML in Ruby. Itex2MML [3] has developed Ruby bindings, and there's some other project just called MathML [4]. The big win for Ritex over these packages, of course, is macro support: table{margin-left: auto; margin-right: auto;}. | @\define{\onion}{\hat{\theta}}@ | $$\define{\onion}{\hat{\theta}}$$ _-_ | | @\define{\potato}[1]{E_\theta[#1]}@ | $$\define{\potato}[1]{E_\theta[#1]}$$ _-_ | | @\potato{\onion}@ | $$\potato{\onion}$$ | A quick @gem install ritex@ should get it for you, and you can see some more example input/output pairs here [5]. [1] http://masanjin.net/ritex/ [2] http://localhost:9292/smoothing.) [3] http://golem.ph.utexas.edu/~distler/blog/itex2MML.html [4] http://mathml.rubyforge.org/ [5] http://masanjin.net/ritex/report.xml This delicious text version served up by Whisper .