added mosaic code
fixed newer mosaic code to use newer latex styling