News for hackers. Stuff that matters.
Re:Tips and tricks to write LaTeX papers in with figures gen... by jedberg on Monday March 18, 2019 @07:46PM (#19426529)
> When writing LaTeX documents, put one sentence per line in your source file.

An interesting tip, never thought of that! It changes the way you write a bit, but it does make finding changes easier, finding errors easier, and forces you to think more about each sentence since you have to hit "enter" at the end of each one.

Re:Tips and tricks to write LaTeX papers in with figures gen... by bo1024 on Monday March 18, 2019 @08:51PM (#19427010)
It also works much better with version control software (git). Not only does it help with diffs, as the article mention, but it makes merging way easier in case you and your coauthor change two adjacent sentences at the same time.
Re:Tips and tricks to write LaTeX papers in with figures gen... by Wookai on Monday March 18, 2019 @08:20PM (#19426769)
It takes a while to get the "muscle memory" of adding a new line after each sentence but it does make things much easier!
Re:Tips and tricks to write LaTeX papers in with figures gen... by u801e on Monday March 18, 2019 @08:01PM (#19426636)
Interestingly enough, I made a very similar comment[1] about code line length and only using one statement per line in another HN thread several days ago.

[1] https://news.ycombinator.com/item?id=19349464