Useful tools for writeups?

I want to make a few writeups, what is a good screenshot program to use? And any tips on how to get whats on the terminal to look nice in a pdf? I’ve seen some really good writeups with line numbers and stuff, but not sure how they do it. Any other general tips would be really nice, I’ve never created a pdf before, are people just writing these in word or simple text editor?

sorry for such a basic question

Cherrytree or Mindforger.

Hi all, if anyone wants, just created CherryTree template for all HTB machines here: https://drive.google.com/file/d/1lzRyjbowyVKDB5bAYfO-HIcH0LPF66Ae/view?usp=sharing