How does on capture TeX code for your lecture. Pandoc doesn't do a good job.