LaTeX is a document preparation system that runs on top of TeX, the typesetting program created by Donald Knuth. It was first released in the mid-1980s by the American computer scientist Leslie Lamport and is now maintained as free software by the LaTeX Project. The version in general use is LaTeX2e, released in 1994.
Authors write plain text files in which commands mark up the structure of the document and its formulas, then compile them into typeset output such as PDF. Unlike a what-you-see-is-what-you-get word processor, LaTeX separates content from formatting. Because it handles mathematical notation, bibliographies, and cross-references well, it is the de facto standard for papers and theses in mathematics, physics, and computer science.
Most AI research papers are written in LaTeX, and language models commonly use LaTeX syntax when they output mathematical expressions.