Switching to latex generation