LaTeX is a free (as in free food) “document preparation system”, or more precisely, a system devised to professionally typeset scientific papers, which can be (more or less) easily adapted to a multitude of uses involving creating various documents (printed or electronic).