I'm too dense to figure this one out today: The
second (and probably third) assertions fail...

require 'test/unit'

class String
  def to_tex
   gsub( /(?!\w)'(.*?)'/, '`\1\'' )
  end
end

class StringTC < Test::Unit::TestCase
  def test_single_quotation
   assert_equal( "`single quotation'", "'single quotation'".to_tex )
   assert_equal( "isn't fool'd", "isn't fool'd".to_tex )
   assert_equal( "2' x 4'", "2' x 4'".to_tex )
  end
end

Any help would be appreciated and probably evoke "duh!"

Thanks,
--
Bil Kleb, Hampton, Vriginia
http://fun3d.larc.nasa.gov