Fix issue with LaTeX generation.