Correct folding and inserting the \cite macro for LaTeX files.