Changed the way a line number is shown for a function/operation in the generated LateX document. Closes #314