I have the generated LaTeX code with mathematical expressions. My problem is these generated expressions can contain some blank lines which pdflatex can't compile. Code is generated by custom application and I can't change its output. I have to handle it by some post-processing application which removed these lines or directly in LaTeX.
Code example:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
x^{2} + \sqrt{7} - \frac{3}{7}
\]
\(x^{2}
\)
\end{document}
So my question is: Is there a way to ignore or replace this blank lines in LaTeX? Thanks.
%) symbol in these blank lines. – Augustin Nov 01 '15 at 20:22