tweak to output latex table as well as pdf