Extension:TeX Editor

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
The TEX Box

Release status: unmaintained

Implementation Page action
Description a tex editor for mathematical formulae
Latest version tex editor (0.4) 2007 (19-01-2007)
MediaWiki 1.9.0
License LGPL 2.1
Download No link

Translate the TeX Editor extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

The TeX Editor allows an editor to display mathematical figures and formulae in mediwiki by using TeX expressions.

Features[edit | edit source]

  • You can edit TeX expressions representing mathematical formulae
    • in a textarea input field and directly see the result in an AJAX preview box.
  • There are configurable, clickable icons for inserting predefined TeX expressions
    • defined on your user page "User:yourname/TEX/Favorites" (if available); or
    • defined on the page "TEX/Favorites" (if available); or
    • defined by the code.
  • There is a special page: "The TEX Box"; as well as
  • a new toolbar icon \textstyle \sum for opening the TeX editor when editing a normal wiki page (provided you allowed popup windows to be opened), formulae including the math-tags can be directly insterted into the editor area.

Installation[edit | edit source]

  • enable math support on your wiki (see the README file in the math directory)
  • create a new file "SpecialTexbox.php" in the directory "includes" of your mediawiki installation
  • copy the code from Extension:TEX Editor/Code into the file "SpecialTexbox.php"
  • add these three lines to "LocalSettings.php"
 require_once("SpecialTexbox.php");
 $wgAjaxExportList[] = 'wfSajaxMath';
 $wgUseAjax = true;
  • create a new page "TEX/Favorites" on your wiki and copy the content of Extension:TEX Editor/TEX/Favorites
  • open the page "MediaWiki:Texbox" on your wiki and insert the text "The TEX Box"
  • go to the special page "The TEX Box" and give it a try (The first load of the page may take some time.)
  • open any wiki page for editing and click on the new toolbar icon \textstyle \sum

Tested on

  • Firefox, IE
  • MediaWiki 1.9.0

Screen shots[edit | edit source]

The special page mode.
The popup window mode.