Namespaces
Variants
Actions

Difference between revisions of "Help:HowTo EoM"

From Encyclopedia of Mathematics
Jump to: navigation, search
m (→‎Editing including $\rm \TeX$ code: Beware of setting preferences)
Line 17: Line 17:
 
[[Help:Fancy_diagram | Here is an even more convincing Example]].
 
[[Help:Fancy_diagram | Here is an even more convincing Example]].
  
Certain $\rm \TeX$ macros are predefined by MathJax, [[User:Ulf Rehmann/Predefined TeX Macros | see this]].
+
 
 +
And [http://www.mediawiki.org/wiki/Extension:MathJax#Usage this is some example] demonstrating various things:
 +
* How to define $\rm \TeX$ macros, in order to save you keystrokes,
 +
* how to use standard $\rm \LaTeX$ constructs, and
 +
* how to encode automatic equation numbering and referencing them.
 +
 
 +
 
 +
Certain $\rm \TeX$ macros are predefined by MathJax, [[User:Ulf Rehmann/Predefined TeX Macros | see this page]].
  
 
For editing one can use the text area, which is opened in the browser
 
For editing one can use the text area, which is opened in the browser

Revision as of 18:22, 3 May 2012


Editing including $\rm \TeX$ code

EoM pages can be edited like any Wikipedia page.

Moreover, EoM is enhanced by MathJax. Therefore, one can encode mathematics using arbitrary $\rm \TeX$ or $\rm \LaTeX$ code.

That is, you type $e^{2\pi i} = 1$ in order to get $e^{2\pi i} = 1$. Here is an even more convincing Example.


And this is some example demonstrating various things:

  • How to define $\rm \TeX$ macros, in order to save you keystrokes,
  • how to use standard $\rm \LaTeX$ constructs, and
  • how to encode automatic equation numbering and referencing them.


Certain $\rm \TeX$ macros are predefined by MathJax, see this page.

For editing one can use the text area, which is opened in the browser after clicking on the "edit" button of an EoM page. However, since most texts are long, it is highly recommended to use an external editor.

EoM allows to use add-ons in order to use external editors (like "It's all text" for firefox and "Edit with emacs" for chrome and chromium). This software can be installed in several browsers. If installed, below the wiki edit area there appears a small blue button, and clicking on that button pops up your favored editor window with the whole content of the text area, ready for editing.

Beware: In your preferences, under "Editing", please don't mark "Show edit toolbar (requires JavaScript)", otherwise the blue button may not occur.

See here for further explanations.

Comments on various other editors can be found here.

Re-encoding of old pages

Important: Old EoM pages have their formulas not encoded in $\rm \TeX$ but in png images.

Example for both encodings of the same page: $\qquad$ $\rm\TeX$ encoded $\qquad$ png encoded

To see all the pages already converted into $\rm\TeX$ look into this Category:TeX done. You can look at their encoding via the "edit" button.


One of the initial tasks for those pages is it to transcribe them into $\rm \TeX$.

In the png-encoded pages there are two types of encodings:

  • <img align= ... file.png ... />
  • <table class= ... file.png ... </table>

These entries have to be removed and replaced by appropriate $\rm\TeX$ code, the first type represents inline code, i.e., $\rm\TeX$ representation within single $ signs, the second type represents "displayed" $\rm\TeX$ code within double $ signs.

Assisting tool for $\rm \TeX$ re-encoding using Emacs

For the GNU Emacs editor, here is a tool which helps with this task.

If the macro is installed and the wiki text file for an old EoM page with png images is displayed in some Emacs buffer, then one keystroke (Ctrl-. = control key and .-key) removes all the png encodings (as described above) and replaces them by $_$ (resp. $$_$$), prompting the user to fill in the appropriate $\rm\TeX$ code into the minibuffer of Emacs.

After ending the $\rm\TeX$ code input with the Enter-key Emacs will insert that code into the wiki text file, jumping to the next instance and prompting the user again, etc.

The macro has re-entry capabilities: If input is interrupted, it can be called again, and it will continue with the next string $_$ (resp. $$_$$).

So within an interruption, the formulas can be filled directly into the text file, if convenient.

However, it is better to edit via the minibuffer, since the history capabilities of the minibuffer can very often be used to recall some former input (with the up- and down-keys), modify that slightly if necessary and insert again.

Mathematical subject classification and categorization, MR and Zbl links

Here are the templates for MSC, MR, Zbl. Usage is easy: See the code (="Edit" button) of one of the pages in Category:TeX done. Most of them have the MSC encoding in their very first line.

MS Classification will automatically categorize the page. See here for the EoM categories as actually set up.

MR and Zbl links should be added to references.

How to Cite This Entry:
HowTo EoM. Encyclopedia of Mathematics. URL: http://encyclopediaofmath.org/index.php?title=HowTo_EoM&oldid=25900