Linux has a handy text formatting command. GNU groff is quite old, but it's still very useful to generate documents. Most people use groff to write papers, but you can also use groff as a lightweight intermediate report generator for an automated system.
Like other text formatting systems, groff is built around macros. This flexibility means you can use the macro set best meets your needs to write your documents. A groff input file is a plain text file, and groff uses the macros in your source file to generate a final document. This cheat sheet lists how to use macros from three popular macro sets (me, ms and mm) to write papers and generate reports.