Math typesetting using KaTex