Move title/date rendering into template, improve TeX macro HTML conversion by hiding in a div