[Tex/LaTex] Remove newline function/interaction

spacing

Is it possible to make it so that LaTeX will ignore newlines in the source? e.g. it shouldn't do anything to the output if I use an empty line.

I like to keep my source fairly spaced out for easier reading, but that becomes fairly difficult since an empty line forces a new paragraph.

Best Answer

if you use comment sign between lines latex will interpret it as a single paragraph.

example:

\documentclass{article}

\begin{document}

dakhfsdlkfjdhsflgkjhfglksjdhfglkjdfshgldfkjghdflkgjhdflghk
%
dfkhdlskfjghldsfkjghdlsfkjghdklsfghldfksjg

\end{document}
Related Question