Fixed cursor coordinates

Bug: cursor coordinates do not recognize LaTeX