LaTeX is a document preparation system and document markup language for high-quality typesetting. The system was originally developed by Leslie Lamport in the early 1980s. LaTeX is based on Donald E. Knuth’s TeX typesetting language. Lamport says that LaTeX “represents a balance between functionality and ease of use”.