Inside the TeX.Parse.Augment function, there's a this.string that has the string we're parsing, and this.i that has the location in that of the current command. (Started to use in 73e8ed70dd2bc66a896625a5435960622eae94ea.)
But this.string isn't the original source; some macros are substituted already, in a way that I don't understand. Can we recover original line numbers from that somehow? (Or elsewhere as a Mathjax extension?)
Inside the
TeX.Parse.Augment
function, there's athis.string
that has the string we're parsing, andthis.i
that has the location in that of the current command. (Started to use in 73e8ed70dd2bc66a896625a5435960622eae94ea.)But
this.string
isn't the original source; some macros are substituted already, in a way that I don't understand. Can we recover original line numbers from that somehow? (Or elsewhere as a Mathjax extension?)