Fixed bug with escaped % in LaTeX reader.

Also added tests.  Closes #710.