Hacker News new | ask | show | jobs
by jedberg 2650 days ago
> 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.

3 comments

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.
It takes a while to get the "muscle memory" of adding a new line after each sentence but it does make things much easier!
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