{
  "id": "enwiki-001347537315",
  "slug": "gnu-texmacs",
  "title": "GNU TeXmacs",
  "qid": "",
  "lead": "GNU TeXmacs, sometimes typeset as , is a scientific word processor and typesetting component of the GNU Project. It originated as a variant of GNU Emacs with TeX functionalities, though it shares no code with those programs, while using TeX fonts. It is written and maintained by Joris van der Hoeven and a group of developers. The program produces structured documents with a WYSIWYG user interface. New document styles can be created by the user. The editor provides high-quality typesetting algorithms and TeX and other fonts for publishing professional looking documents.",
  "body": "GNU TeXmacs, sometimes typeset as , is a scientific word processor and typesetting component of the GNU Project. It originated as a variant of GNU Emacs with TeX functionalities, though it shares no code with those programs, while using TeX fonts. It is written and maintained by Joris van der Hoeven and a group of developers. The program produces structured documents with a WYSIWYG user interface. New document styles can be created by the user. The editor provides high-quality typesetting algorithms and TeX and other fonts for publishing professional looking documents. ==Features== Like in many WYSIWYG editors (such as Microsoft Word), authors manipulate a document on screen which should print to a similar-looking paper copy. The goal of TeXmacs is to provide a WYSIWYG editor that nevertheless makes it possible to write correctly structured documents with aesthetically pleasing typesetting results. Despite its name, TeXmacs is not a front-end to TeX or LaTeX. However, TeXmacs documents can be converted to either TeX or LaTeX. LaTeX also can be imported (to some extent), and both import from and export to HTML, Scheme, Verbatim, and XML is provided; the HTML export is stylable with CSS (since version 1.99.14). There is a converter for MathML as well, and TeXmacs can output PDF and PostScript for printing. TeXmacs can handle mathematical formulas, tables, images, cross-references and citations. It can be used as a front-end to a number of computer algebra systems such as Maxima, FriCAS and SageMath, and can in turn integrate some of their output into its typesetting. TeXmacs also supports a Scheme extension language called Guile for customizing the program and writing extensions. It also features a presentation mode and a small technical drawing editor and there are plans to evolve towards a complete scientific office suite with spreadsheet capabilities. An implementation of spreadsheets is present starting from version 1.99.12; spreadsheets in TeXmacs can take advantage of plugins (for example Python or Maxima) to compute cell values. TeXmacs currently runs on most Unix-based architectures including Linux, FreeBSD, Cygwin, Haiku and macOS. Along with the Cygwin version, a native port is available for Microsoft Windows. ==The TeXmacs format== All TeXmacs documents or document fragments can be thought of as trees (the concept of tree exists as well in the SGML markup language, to which the Texmacs format is similar). For instance, the tree represents the formula x+y+\\frac{1}{2}+\\sqrt{y+z} (written here with the TeX markup used by Wikipedia) and is turned by TeXmacs' own typesetting engine into a typeset formula, here inserted as an image: TeXmacs trees are represented in TeXmacs files as strings, and in the TeXmacs editor as the typeset representation of the document together with its interactive behaviour. In the on-screen representation of the TeXmacs tree, the cursor movement represents the movement inside the tree. On disk, three representations of the TeXmacs format exist: a native representation, an XML representation and a representation with Scheme S-expressions; the Scheme representation is useful for the interfacing with Scheme programs. Graphics objects are also part of the TeXmacs format and can be manipulated programmatically from Scheme. An example of TeXmacs graphics generated in a TeXmacs Scheme session is shown below together with the session which generated the image. Images generated programmatically in a Scheme session can also be edited using the internal drawing editor, as they are inserted in the document as a tree; Scheme scripts can also be executed through the extern TeXmacs macro—in this case only the typeset material is available in the document and no direct editing is possible (the modifications must be made within the Scheme code). Scheme] (define pi (acos -1)) A function to define a point in the TeXmacs graphics format using two coordinates Scheme] (define (pt x y) ‘(point ,(number->string x) ,(number->string y))) Set points Scheme] (define xC (- (* 2 (cos (/ pi 3))))) Scheme] (define yC (* 2 (sin (/ pi 3)))) Scheme] (define pA (pt -2 0)) Scheme] (define pB (pt 2 0)) Scheme] (define pC (pt xC yC)) Scheme] (define tA (pt -2.3 -0.5)) Scheme] (define tB (pt 2.1 -0.5)) Scheme] (define tC (pt (- xC 0.2) (+ yC 0.2))) Generate graphics Scheme] (stree->tree ‘(with \"gr-geometry\" (tuple \"geometry\" \"400px\" \"300px\" \"center\") (graphics (with \"color\" \"blue\" (text-at (TeXmacs) ,(pt -0.55 -0.75))) (with \"color\" \"black\" (arc ,pA ,pC ,pB)) (with \"color\" \"black\" (line ,pA ,pB)) (with \"color\" \"red\" (cline ,pA ,pB ,pC)) (with \"color\" \"black\" (text-at \"A\" ,tA)) (with \"color\" \"black\" (text-at \"B\" ,tB)) (with \"color\" \"black\" (text-at \"C\" ,tC))))) ==Supported back ends== |420x420px TeXmacs has back-ends supporting many technologies. Programming languages: CLISP, CMUCL, Python, QCL, R, Shell Computer algebra systems: Axiom, Giac, Macaulay 2, Mathematica, Maxima, MuPAD, PARI/GP, Reduce, SageMath, Yacas Numeric matrix systems: GNU Octave, Matlab, Scilab Plotting packages: gnuplot, Graphviz, XYpic, Mathemagix Other: DraTeX, Eukleides, GTybalt, Lush, Juris-M, and Zotero ==See also== Comparison of TeX editors Comparison of office suites List of office suites Comparison of word processors Comparison of document-markup languages List of word processors LyX Visual editor ==References== ==External links== texmacs-users mailing list archives Forum tm-forge, a repository of user-contributed content for TeXmacs TeXmacs blog",
  "categories": [
    "109369975",
    "20186176",
    "21493616",
    "22913330",
    "23118434",
    "23385514",
    "23528940",
    "23603337",
    "26898194",
    "27320558",
    "31503874",
    "37645845",
    "43491998",
    "48128016",
    "53158200",
    "82546581"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1347537315",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1775543758.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001347537315",
    "type": "webpage",
    "title": "GNU TeXmacs",
    "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/gnu-texmacs",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          21
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          21
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001347537315",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1347537315",
    "note": "Immutable snapshot enwiki-001347537315"
  }
}