Fix LaTeX escaping
Merge pull request #33 from ai14/master

Pull request from master