write latex