Learning to latex