Latex support & UI tweaks.