<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
  <title>the all-thing</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" href="/static/style.css" type="text/css" />
  <link rel="alternate" type="application/rss+xml" title="the all-thing RSS feed" href="/index.rss" />
  <link rel="alternate" type="text/plain" title="the all-thing in plain text" href="/index.txt" />
  <script type="text/javascript" src="/static/mootools.js"></script>
  <script type="text/javascript" src="http://music.masanjin.net:9292/waxiest.js"></script>
</head>
<body>

<div id="main">
  <div id="header">
    <h1><a  href="/">the all-thing</a></h1>
    
      <p>Showing only posts labeled "ritex" (<a  href="/label/ritex.rss">rss</a>). <a  href="/index/">See all posts</a>.</p>
    
  </div>
  <div id="sidebar">
    <h3>Recent comments</h3>

    <ul class="sidebar-list">
    
    <li><b><a  href="/whisper-0.5#58174069c046a78e55f02ef81da81e74">Dominique Julia</a></b>
        <i><a  href="/whisper-0.5">Whisper 0.5 released</a></i>
           one week ago
    </li>
    
    <li><b><a  href="/ruby-ncurses-and-thread-blocking#8fa2a0f392d7c0562d630e4936407c11">William Morgan</a></b>
        <i><a  href="/ruby-ncurses-and-thread-blocking">Ruby, Ncurses and blocked threads</a></i>
           three months ago
    </li>
    
    <li><b><a  href="/git-wtf-bf06ab7-released#533654a7a229569e27a6d0afd716c444">William Morgan</a></b>
        <i><a  href="/git-wtf-bf06ab7-released">git wtf bf06ab7 released</a></i>
           three months ago
    </li>
    
    <li><b><a  href="/git-wtf-bf06ab7-released#b7b7a905477674eb6985b34a964a0dca">Joao Nelas</a></b>
        <i><a  href="/git-wtf-bf06ab7-released">git wtf bf06ab7 released</a></i>
           three months ago
    </li>
    
    <li><b><a  href="/ruby-ncurses-and-thread-blocking#b00001114360ac152f87d4ac2a6e0c5b">Ollivier Robert</a></b>
        <i><a  href="/ruby-ncurses-and-thread-blocking">Ruby, Ncurses and blocked threads</a></i>
           three months ago
    </li>
    
    </ul>

    <h3>Authors</h3>
    <ul class="sidebar-list">
    
      <li><a class="author" href="/by/William+Morgan/">William&nbsp;Morgan</a>&nbsp;(65) </li>
    
    </ul>

    <h3>Tags</h3>
    <ul class="sidebar-list">
    
      <li><a class="label" href="/label/releases/">releases</a>&nbsp;(15) </li>
    
      <li><a class="label" href="/label/whisper/">whisper</a>&nbsp;(13) </li>
    
      <li><a class="label" href="/label/git/">git</a>&nbsp;(9) </li>
    
      <li><a class="label" href="/label/stats/">stats</a>&nbsp;(8) </li>
    
      <li><a class="label" href="/label/trollop/">trollop</a>&nbsp;(6) </li>
    
      <li><a class="label" href="/label/ruby/">ruby</a>&nbsp;(6) </li>
    
      <li><a class="label" href="/label/sup/">sup</a>&nbsp;(6) </li>
    
      <li><a class="label" href="/label/git-wtf/">git-wtf</a>&nbsp;(4) </li>
    
      <li><a class="label" href="/label/vm/">vm</a>&nbsp;(4) </li>
    
      <li><a class="label" href="/label/mathml/">mathml</a>&nbsp;(3) </li>
    
      <li><a class="label" href="/label/continuations/">continuations</a>&nbsp;(3) </li>
    
      <li><a class="label" href="/label/ditz/">ditz</a>&nbsp;(3) </li>
    
      <li><a class="label" href="/label/proglang/">proglang</a>&nbsp;(2) </li>
    
      <li><a class="label" href="/label/optimization/">optimization</a>&nbsp;(2) </li>
    
      <li><a class="label" href="/label/benchmarks/">benchmarks</a>&nbsp;(2) </li>
    
      <li><a class="label" href="/label/rubinius/">rubinius</a>&nbsp;(2) </li>
    
      <li><a class="label" href="/label/inlining/">inlining</a>&nbsp;(2) </li>
    
      <li><a class="label" href="/label/ubuntu/">ubuntu</a>&nbsp;(2) </li>
    
      <li><a class="label" href="/label/fibers/">fibers</a>&nbsp;(2) </li>
    
      <li><a class="label" href="/label/ritex/">ritex</a>&nbsp;(2) </li>
    
      <li><a class="label" href="/label/ruby1.9/">ruby1.9</a>&nbsp;(2) </li>
    
      <li><a class="label" href="/label/ncurses/">ncurses</a>&nbsp;(1) </li>
    
      <li><a class="label" href="/label/javascript/">javascript</a>&nbsp;(1) </li>
    
      <li><a class="label" href="/label/media/">media</a>&nbsp;(1) </li>
    
      <li><a class="label" href="/label/vim/">vim</a>&nbsp;(1) </li>
    
      <li><a class="label" href="/label/classification/">classification</a>&nbsp;(1) </li>
    
      <li><a class="label" href="/label/massachusetts/">massachusetts</a>&nbsp;(1) </li>
    
      <li><a class="label" href="/label/greasemonkey/">greasemonkey</a>&nbsp;(1) </li>
    
      <li><a class="label" href="/label/wine/">wine</a>&nbsp;(1) </li>
    
      <li><a class="label" href="/label/readme/">readme</a>&nbsp;(1) </li>
    
      <li><a class="label" href="/label/ancient-greek/">ancient-greek</a>&nbsp;(1) </li>
    
      <li><a class="label" href="/label/web/">web</a>&nbsp;(1) </li>
    
      <li><a class="label" href="/label/current+events/">current&nbsp;events</a>&nbsp;(1) </li>
    
    </ul>

    <h3>Other formats</h3>
    <ul class="sidebar-list">
    <li><a href="/index.rss"><img src="/static/rss-badge.png"/></a></li>
    <li><a href="/index.txt">plain text version</a></li>
    </ul>

    <h3 class="waxiest.author.original">Who is this man?</h3>
    <h3 class="waxiest.author.beautiful" style="display:none">I must find out more about this beautiful creature</h3>
    <h3 class="waxiest.author.beautifulbig" style="display:none">I MUST FIND OUT MORE ABOUT THIS BEAUTIFUL CREATURE</h3>
    <h3 class="waxiest.author.originalbig" style="display:none">WHO IS THIS MAN?</h3>

    <script type="text/javascript">
      var w = waxiest();
      w.optimizeHTMLSection("author", ["original", "beautiful", "beautifulbig", "originalbig"]);
    </script>

    <a href="http://masanjin.net" onClick="w.goalReached('greeting')">William Morgan</a>
  </div>
  <div id="content">
    
  <h2><a  href="/ritex-0.3">Ritex 0.3 released</a></h2>
  <div class="byline">
    <a  href="/by/William+Morgan/">William Morgan</a>,
    <span title="8 months ago">June 18, 2009  2:41am</span>
  </div>
  
    <div class="labels"><span class='label'><a  href="/label/ritex/">ritex</a></span> <span class='label'><a  href="/label/releases/">releases</a></span> </div>
  
  <p>I&#8217;ve released Ritex 0.3. No <span class="caps">API</span> or functionality changes; this is just
a set of miscellaneous tweaks that make Ritex work on Ruby 1.9.</p>
  <div class="comment-link">
    
    <a  href="/ritex-0.3#comments">No comments</a>.
  </div>

  <h2><a  href="/ritex-0.2">Ritex 0.2 released</a></h2>
  <div class="byline">
    <a  href="/by/William+Morgan/">William Morgan</a>,
    <span title="11 months ago">April  2, 2009  1:02pm</span>
  </div>
  
    <div class="labels"><span class='label'><a  href="/label/ritex/">ritex</a></span> <span class='label'><a  href="/label/releases/">releases</a></span> </div>
  
  <p class='first'>It&#8217;s been almost four years since the previous release, so I&#8217;m happy to
announce that <a href="http://masanjin.net/ritex/">Ritex</a> 0.2 has been released today.
This version features many bugfixes an improvements, most notably:</p>
<ul>
	<li>Array options are now supported. (Necessary to get
  the <code>eqnarray</code>-style equation alignment in <a href="http://localhost:9292/smoothing">this
  post</a>.)</li>
	<li>Unary minus heuristics are much improved.</li>
</ul>
<p>Here&#8217;s a quick demo of the unary minus:</p>
<table style="margin-left: auto; margin-right: auto;">
	<tr>
		<td> <code>-x</code>                </td>
		<td> <span title='-x' style='white-space: nowrap'><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mo lspace="verythinmathspace" rspace="0em">&minus;</mo><mi>x</mi></math></span>                </td>
	</tr>
	<tr>
		<td> <code>x-x</code>               </td>
		<td> <span title='x-x' style='white-space: nowrap'><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mi>x</mi><mo>&minus;</mo><mi>x</mi></math></span>               </td>
	</tr>
	<tr>
		<td> <code>x--x</code>              </td>
		<td> <span title='x--x' style='white-space: nowrap'><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mi>x</mi><mo>&minus;</mo><mo lspace="verythinmathspace" rspace="0em">&minus;</mo><mi>x</mi></math></span>              </td>
	</tr>
	<tr>
		<td> <code>\alpha-x</code>          </td>
		<td> <span title='\alpha - x' style='white-space: nowrap'><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mi>&alpha;</mi><mo>&minus;</mo><mi>x</mi></math></span>        </td>
	</tr>
	<tr>
		<td> <code>\alpha\,-x</code>        </td>
		<td> <span title='\alpha\, - x' style='white-space: nowrap'><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mi>&alpha;</mi><mspace width="thinmathspace"/><mo lspace="verythinmathspace" rspace="0em">&minus;</mo><mi>x</mi></math></span>      </td>
	</tr>
</table>
<p>Sadly, just as with LaTeX itself, there are still times where you have
to hint to get the right behavior:</p>
<table style="margin-left: auto; margin-right: auto;">
	<tr>
		<td> <code>\sin-x</code>            </td>
		<td> <span title='\sin-x' style='white-space: nowrap'><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mi>sin</mi><mo>&minus;</mo><mi>x</mi></math></span>            </td>
	</tr>
	<tr>
		<td> <code>\sin{-x}</code>          </td>
		<td> <span title='\sin{-x}' style='white-space: nowrap'><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mi>sin</mi><mrow><mo lspace="verythinmathspace" rspace="0em">&minus;</mo><mi>x</mi></mrow></math></span>          </td>
	</tr>
</table>
<p>Over the years since the last release it looks like there are two new options
for generating MathML in Ruby.
<a href="http://golem.ph.utexas.edu/~distler/blog/itex2MML.html">Itex2MML</a> has developed
Ruby bindings, and there&#8217;s some other project just called
<a href="http://mathml.rubyforge.org/">MathML</a>. The big win for Ritex over these
packages, of course, is macro support:</p>
<table style="margin-left: auto; margin-right: auto;">
	<tr>
		<td> <code>\define{\onion}{\hat{\theta}}</code>     </td>
		<td> <span title='\define{\onion}{\hat{\theta}}' style='white-space: nowrap'><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"></math></span> <em>-</em>     </td>
	</tr>
	<tr>
		<td> <code>\define{\potato}[1]{E_\theta[#1]}</code> </td>
		<td> <span title='\define{\potato}[1]{E_\theta[#1]}' style='white-space: nowrap'><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"></math></span> <em>-</em> </td>
	</tr>
	<tr>
		<td> <code>\potato{\onion}</code>                   </td>
		<td> <span title='\potato{\onion}' style='white-space: nowrap'><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mrow><msub><mi>E</mi><mi>&theta;</mi></msub><mo stretchy='false'>[</mo><mrow><mover><mrow><mi>&theta;</mi></mrow><mo>&Hat;</mo></mover></mrow><mo stretchy='false'>]</mo></mrow></math></span>                               </td>
	</tr>
</table>
<p>A quick <code>gem install ritex</code> should get it for you, and you can see
some more example input/output pairs <a href="http://masanjin.net/ritex/report.xml">here</a>.</p>
  <div class="comment-link">
    
    <a  href="/ritex-0.2#comments">No comments</a>.
  </div>




  </div>

  <div id="footer" style="margin: 0px;">
    Served up by <a href="http://masanjin.net/whisper/">Whisper</a>. Yes!
  </div>
</div>
</body>
</html>
