class String
Public Instance Methods
latex!()
click to toggle source
Convert a string to latex without escaping. Despite the bang, this is NOT destructive, it returns a new object.
# File lib/to_latex.rb, line 66 def latex! ToLatex::LatexString.new self end
latex?()
click to toggle source
Tells if this is a string converted to latex
# File lib/to_latex.rb, line 71 def latex? false end
to_latex()
click to toggle source
Convert a string to latex with escaping special characters.
# File lib/to_latex.rb, line 60 def to_latex ToLatex::LatexString.new ToLatex.escape(self) end