

If you’re a nerd, also check out Typst and LaTeX. Being able to format your documents with pure code is awesome, and you can also define functions for different things, import libraries to generate graphs, and write comments that don’t show up in the document.
Personally I use a Guix template I made (Typst, LaTeX) which downloads necessary software/libraries and the LSP and pins the software versions, and I use the Helix text editor for editing. Not sure what the more common methods are. Also Typst’s package management is weird.