Fixing latex issues