Hacker News new | ask | show | jobs
by ThinBold 1530 days ago
The sagemath[1] suggests

> Whitespace before and after assignment and binary operator of the lowest priority in the expression:

The AMS style guide[2, p. 117] suggests

> Align multiline equations on operators: verbs are aligned with each other and conjunctions are aligned with each other

I find these improves readability of my TeX files.

[1]: https://doc.sagemath.org/html/en/developer/coding_basics.htm... [2]: https://www.ams.org/publications/authors/AMS-StyleGuide-onli...

2 comments

Very interesting, I have to admit, I wasn't aware of the AMS Style Guide! The guide says it is partially based on an older AMS publication "Mathematics into Type", which is also freely available: https://www.ams.org/arc/styleguide/mit-2.pdf
I'd also like to recommend Knuth's lecture notes on mathematical writing [0].

[0]: https://jmlr.csail.mit.edu/reviewing-papers/knuth_mathematic...