This help page aims to provide a comprehensive reference guide of [math]\mathrm{L\!\!^{{}_{\scriptstyle A}} \!\!\!\!\!\;\; T\!_{\displaystyle E} \! X} \,[/math] markup available in WikiEducator platform. These codes are necessary for developing nice and well-formed Wiki-Resources in the field of Mathematics, Science and Technology Do you recognise this one?

[math]\color{Blue}x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}[/math]

well, all you need to do for rendering the quadratic formula in WikiEducator is enclosing some LaTeX markup into <math>...</math> wiki markup tags.

How do I get the <math>...</math> Wiki markup tags?

1. Switch to edit mode: 2. Make your choice:

Simply write the math wiki tags directly in the text you are editing, then add inside tags the LaTeX markup, or

[math]\mathrm{T\!_{\displaystyle E} \! X} \,[/math] is a typesetting markup/macro language oriented to creation of scientific documents. TeX was designed with two main goals in mind:

to allow anybody to produce high-quality books using a reasonable amount of effort, and

to provide a system that would give the exact same results on all computers, now and in the future.

TeX is considered by many to be the best way to typeset complex mathematical formulae. TeX is popular in academia, especially in the mathematics, natural, computational and physical science communities; also used in the commercial world, and also for some work in linguistics.

[math]\mathrm{L\!\!^{{}_{\scriptstyle A}} \!\!\!\!\!\;\; T\!_{\displaystyle E} \! X} \,[/math] is a document preparation system. LaTeX essentially comprises a collection of TeX macros and a program to process LaTeX documents. Because the TeX formatting commands are very low-level, it is usually much simpler for end-users to use LaTeX.

In other words, LaTeX is a layer that translates structural markup into basic TeX commands.

TeX and LaTeX have many variants, for this help page purposes we will use the term [math]\mathrm{L\!\!^{{}_{\scriptstyle A}} \!\!\!\!\!\;\; T\!_{\displaystyle E} \! X} \,[/math] to refer not only to TeX and LaTeX proper, but also to all of these many variants applicable to WikiEducator (Mediawiki platform).

Rendering a LaTeX symbol is the process of generating a PNG image of a math/special symbol, by means of WikiEducator involved software. The PNG images are black (by default) on white background (not transparent).

Wiki markup, HTML markup and LaTeX markup

WikiEducator's platform (like all Mediawiki platforms) uses a blended set of markup software. For mathematical formuale and special symbols uses a subset of TeX markup, including some extensions from LaTeX and AMS-LaTeX. It generates either PNG images or simple HTML markup, depending on user preferences (Fig. 2) and the complexity of the expression. More precisely, the Mediawiki platform filters the markup through Texvc, which in turn passes the commands to TeX for the actual rendering. Thus, only a limited part of the full TeX language is supported.

HTML vs TeX

There are several forms for displaying special characters or mathematical expressions:

Code

Displayed

a³+a²b

a³+a²b

<math>a^3+a^2b</math>

a3 + a2b

<math>a^3+a^2b\,</math>

[math]a^3+a^2b\,[/math]

Before trying [math]\mathrm{T\!_{\displaystyle E} \! X} \,[/math] markup for producing special characters, it should be noted that, as this comparison table shows, sometimes similar results can be achieved in HTML.

The display of a formula entered using mathematical templates can be conveniently altered by modifying the templates involved; this modification will affect all relevant formulae without any manual intervention.

The HTML code, if entered diligently, will contain all semantic information to transform the equation back to TeX or any other code as needed. It can even contain differences TeX does not normally catch, e.g. {{mathem|''i''}} for the imaginary unit and {{mathem|<VAR>i</VAR>}} for an arbitrary index variable.

Pros of TeX

On the other hand, if you encode the same formula as "{{mathem|<VAR>x</VAR>}}", you get the same visual result x and no information is lost. This requires diligence and more typing that could make the formula harder to understand as you type it. However, since there are far more readers than editors, this effort is worth considering.

TeX has been specifically designed for typesetting formulae, so input is easier and more natural if you are accustomed to it, and output is more aesthetically pleasing if you focus on a single formula rather than on the whole containing page.

One consequence of point 1 is that TeX code can be transformed into HTML, but not vice-versa. This means that on the server side we can always transform a formula, based on its complexity and location within the text, user preferences, type of browser, etc. Therefore, where possible, all the benefits of HTML can be retained, together with the benefits of TeX. It is true that the current situation is not ideal, but that is not a good reason to drop information/contents. It is more a reason to help improve the situation.

Another consequence of point 1 is that TeX can be converted to MathML for browsers which support it, thus keeping its semantics and allowing the rendering to be better suited for the reader’s graphic device.

When writing in TeX, editors need not worry about whether this or that version of this or that browser supports this or that HTML entity. The burden of these decisions is put on the software. This does not hold for HTML formulae, which can easily end up being rendered wrongly or differently from the editor’s intentions on a different browser.

More importantly, the serif font used for rendering formulae is browser-dependent and it may be missing some important glyphs. While the browser generally capable to substitute a matching glyph from a different font family, it need not be the case for combined glyphs (compare ‘ IPA: /a̅/ ’ and ‘ a̅ ’).

TeX is the preferred text formatting language of most professional mathematicians, scientists, and engineers. It is easier to persuade them to contribute if they can write in TeX.