TeX Editor

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Mindspillage (talk | contribs) at 15:23, 11 January 2007 (Reverted edits by 82.211.136.15 to last version by HappyDog). It may differ significantly from the current version.
 
This page should be moved to MediaWiki.org.
Please do not move the page by hand. It will be imported by a MediaWiki.org administrator with the full edit history. In the meantime, you may continue to edit the page as normal.

Template:Extension

Features

  • 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 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

  • 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 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 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

Tested on

  • Firefox, IE
  • Mediawiki 1.7.1, does not work on 1.6 and 1.8.2 (due to broken ajax support)

Screen shots

File:Texbox1.png
The special page mode.
File:Texbox2.png
The popup window mode.