diff --git a/lib/to_latex.rb b/lib/to_latex.rb index 839708e..1a9c33c 100644 --- a/lib/to_latex.rb +++ b/lib/to_latex.rb @@ -12,7 +12,7 @@ module ToLatex def self.escape s s.gsub(LATEX_SPECIAL_CHAR) do |c| case c - when "\\" then '\backslash{}' + when "\\" then '\textbackslash{}' when "^" then '\^{}' when '~' then '\~{}' else "\\#{c}"