 It also has a prominent role in the preparation and publication of books and articles that contain complex multilingual materials, such as Sanskrit and Greek.LaTeX uses the TeX typesetting program for formatting its output, and is itself written in the TeX macro language.LaTeX can be used as a standalone document preparation system, or as an intermediate format.