{
  "id": "enwiki-001376089138",
  "slug": "latex",
  "title": "LaTeX",
  "qid": "",
  "lead": "of latex from Hevea brasiliensis, for use in rubber production Latex ( latices) is an emulsion (stable dispersion) of polymer microparticles in water. Latices are found in nature, but synthetic latices are common as well. In nature, latex is found as a milky fluid, which is present in 10% of all flowering plants (angiosperms) and in some mushrooms (especially species of Lactarius). It is a complex emulsion that coagulates on exposure to air, consisting of proteins, alkaloids, starches, sugars, oils, tannins, resins, and gums. It is usually exuded after tissue injury. In most plants, latex is white, but some have yellow, orange, or scarlet latex. The fungus Lactarius indigo has a vivid blue latex. Since the 17th century, latex has been used as a term for the fluid substance in plants, deriving from the Latin word for 'liquid'. It serves mainly as defense against herbivores and fungivores. Latex is not to be confused with plant sap; it is a distinct substance, separately produced, and with different functions. The word latex is also used to refer to natural latex rubber, particularly non-vulcanized rubber. Such is the case in products like latex gloves, latex condoms, latex clothing, and balloons. The IUPAC definition of latex is \"colloidal dispersion of polymer particles in a liquid\". The polymer in the particles may be organic or inorganic.…",
  "body": "LaTeX ( or , to rhyme with \"blech\" or \"Bertolt Brecht\" ), often stylized as , is a software system for typesetting documents, based on the TeX typesetting system. LaTeX provides a high-level, descriptive markup language to use TeX more easily: TeX handles the document layout, while LaTeX handles the content side for document processing. Because the plain TeX formatting commands are elementary, it provides authors with ready-made commands for formatting and layout requirements such as chapter headings, footnotes, cross-references and bibliographies. LaTeX was originally written in the early 1980s by Leslie Lamport at SRI International. The current version is LaTeX2e, first released in 1994 and incrementally updated since 2015. This update policy replaced earlier plans for a separate release of LaTeX3, which had been in development since 1989. LaTeX is free software and is distributed under the LaTeX Project Public License (LPPL). Like TeX, LaTeX started as a writing tool for mathematicians and computer scientists, but from early in its development, it has also been taken up by scholars who needed to write documents that include complex math expressions. For non-Latin scripts such as Arabic, Devanagari, and Chinese, special packages and compilers are needed to support UTF-8 encoding. ==Typesetting system== LaTeX attempts to follow the design philosophy of separating presentation from content, so that authors can focus on the content of what they are writing without attending simultaneously to its visual appearance. In preparing a LaTeX document, the author specifies the logical structure using commands such as chapter, section, table, figure, etc., and lets the LaTeX system handle the formatting and layout of these structures. As a result, it encourages the separation of the layout from the content – while still allowing manual typesetting adjustments whenever needed. This concept is similar to the mechanism by which many word processors allow styles to be defined globally for an entire document, or the use of Cascading Style Sheets in styling HyperText Markup Language (HTML) documents. The LaTeX system is a markup language that handles typesetting and rendering, and can be arbitrarily extended by using the underlying macro language to develop custom macros such as new environments and commands. Such macros are often collected into packages, which could then be made available to address some specific typesetting needs such as the formatting of complex mathematical expressions or graphics (e.g., the use of the align environment provided by the amsmath package to produce aligned equations). To create a document in LaTeX, a user first creates a file, such as document.tex , typically using a text editor. The user then gives their document.tex file as input to the TeX program (with the LaTeX macros loaded), which prompts TeX to write out a file suitable for onscreen viewing or printing. This write-format-preview cycle is one of the chief ways in which working with LaTeX differs from the What-You-See-Is-What-You-Get (WYSIWYG) style of document editing. It is similar to the code-compile-execute cycle known to computer programmers. Today, many LaTeX-aware editing programs make this cycle a simple matter through the pressing of a single key while showing the output preview on the screen beside the input window. Some online LaTeX editors even automatically refresh the preview, while other online tools provide incremental editing in-place, mixed in with the preview in a single window. ==Example== The example below shows the input to LaTeX and the corresponding output from the system: ==Related software== and tikz diagrams created with CoCalc As a macro package, LaTeX provides a set of macros for TeX to interpret. There are many other macro packages for TeX, including Plain TeX, AMSTeX, Chemfig, chemmacros, PSTricks, PSfrag, and ConTeXt. When TeX \"compiles\" a document, it follows (from the user's point of view) the following processing sequence: Macros → TeX → Driver → Output. Different implementations of each of these steps are typically available in TeX distributions. Traditional TeX will output a DVI file, which is usually converted to a PostScript file. In 2000, Hàn Thế Thành and others wrote an implementation of TeX called pdfTeX, which also outputs to PDF and takes advantage of features available in that format. The XeTeX engine developed by Jonathan Kew, on the other hand, merges modern font technologies and Unicode with TeX. LuaTeX is an extended version of pdfTeX using Lua as an embedded scripting language. ==Compatibility and converters== LaTeX documents ( *.tex ) can be opened with any text editor. They consist of plain text and contain no hidden formatting codes or binary information. TeX documents can also be shared by rendering the LaTeX file to other formats such as OpenDocument, XML, or class ( ) files. LaTeX can also (and commonly is) rendered to PDF files using the LaTeX extension pdfLaTeX. LaTeX files containing Unicode text can be processed into PDFs with the inputenc package, or by the TeX extensions XeLaTeX and LuaLaTeX. TeX4ht is a converter that can translate TeX and LaTeX documents to HTML and certain XML formats. It is now included preconfigured with all TeX distributions. HeVeA is a converter written in OCaml that converts LaTeX documents to HTML5. This way, documents such as scientific papers, primarily typeset for printing, can be placed on the World Wide Web for online viewing. It is licensed under the Q Public License. LaTeX2HTML is a converter written in Perl that converts LaTeX documents to HTML. It is licensed under GPL v2. The latest updates are available from Comprehensive TeX Archive Network (CTAN). LaTeX2RTF is a converter written in C that converts LaTeX documents to RTF. It is licensed under GPL v2 or later. LaTeXML is a converter written in Perl that converts LaTeX documents into a variety of XML-based formats, including HTML5 (with MathML), ePub ebooks, JATS, and TEI. It was developed at the National Institute of Standards and Technology by US Federal Government employees and is therefore in the public domain. It is available for free. Pandoc is a \"universal document converter\" able to transform LaTeX (as well as other formats) into many different file formats, including HTML5, ePub, OpenDocument ( *.odt ), Microsoft Office Open XML ( *.docx ), and even text with MediaWiki markup as used in Wikipedia. It is licensed under GPL v2. LaTeX has become the de facto standard to typeset mathematical expression in scientific documents. Hence, there are several conversion tools focusing on mathematical LaTeX expressions, such as converters to MathML or Computer Algebra System. MathJax is a JavaScript library for converting LaTeX to MathML, picture formats including SVG and PNG, or HTML for embedding within a webpage. The Wikimedia Foundation uses MathJax to build Mathoid, a web service that uses Node.js to render math that is used in Wikipedia. KaTeX is a JavaScript library for converting LaTeX to HTML and MathML. It is developed by Khan Academy, and is among the fastest LaTeX to HTML converters.",
  "categories": [
    "104778973",
    "108567145",
    "1876699",
    "22899857",
    "22985424",
    "23118434",
    "23528940",
    "23529566",
    "23603337",
    "24623845",
    "29815558",
    "31503856",
    "34933827",
    "48590179",
    "50349201",
    "83043576",
    "87800745"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1375702389",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1789817651.0,
  "claims": [
    {
      "id": 29390223,
      "subject_qid": "",
      "subject_slug": "latex",
      "predicate": "release date",
      "object_text": "1994",
      "object_num": 19940000.0,
      "object_unit": null,
      "polarity": 1,
      "qualifier": "",
      "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1376089138",
      "source_name": "Wikipedia",
      "source_tier": 3,
      "retrieved_at": 1792482425.443119,
      "confidence": 0.95,
      "article_slug": "latex",
      "span_start": 38,
      "span_end": 86
    }
  ],
  "contradictions": [],
  "confidence": 0.95,
  "csl": {
    "id": "enwiki-001376089138",
    "type": "webpage",
    "title": "LaTeX",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/latex",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          21
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          21
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001376089138",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1375702389",
    "note": "Immutable snapshot enwiki-001376089138"
  }
}