LaTeX is the way to go for me also. Its composition is similar to HTML and other *MLs and can easily be automated by a program through templates. Its internal engine is a beast. It's open source and always will be. It has thousands of packages/modules for a novice to do anything, even writing ukelele sheet music. It keeps your source clear-texted, no binary, encrypted, proprietary file formats. And above all it renders the most aesthetically pleasing documents you love to not just read but stare at. Donald Knuth douz points!