Doesn&#x27;t org-mode already a kind of do that? I think it will handle most of the requirements just fine, handle LaTeX when necessary and what&#x27;s better is that it comes within emacs allowing all kinds of easy customizations and extensions.