Add some code for converting pmf to a latex array.