implemented latex module