some work on mathjax output for reconstruction