LaTeX transformation