split/Tioga/lib/Utils.rb in tioga-1.8 vs split/Tioga/lib/Utils.rb in tioga-1.9
- old
+ new
@@ -41,9 +41,16 @@
a.gsub!(/([{}$%#_^~])/) do
"\\#{$1}"
end
return a
end
+ module_function :tex_quote_text
+
+ class ::String
+ def quotex
+ Tioga::Utils.tex_quote_text(self)
+ end
+ end
# Dimension conversion constants taken straight from the TeXbook
DIMENSION_CONVERSION = {
"pt" => (72.0/72.27),
"bp" => 1.0,