[Tex/LaTex] Add line break after every line


When I enter this

C = B log(1+SNR)
270.88 = 200 log(1+SNR)

The two lines are printed on the same line. I can force a line break by using \\ but this is very annoying. Is there a way to automatically force a line break after every newline in the source?

Best Answer

Use \obeylines. In this way every line break in the source is a line break in the output. If you need this behavior locally, encase it in braces, like {\obeylines...}.


Some text
Some text in a new line

enter image description here

Related Question