djsutherland / html-talk

Base for my talks using reveal.js, with bonus nice features (including browser/editor sync!)
9 stars 3 forks source link

sync: mathjax line numbers #10

Open djsutherland opened 6 years ago

djsutherland commented 6 years ago

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?)