User talk:Admin: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
No edit summary
Undo revision 30374 by Admin (talk)
Line 1: Line 1:
This is demopage.
This page is a preview for the new Math rendering that will get live at Wikipedia soon:
 
* In a first step MathML and SVG will be available to registered users only.
It is related to the Math extension of Mediawiki.
** If you want to test please register an account here [http://math-preview.wmflabs.org/w/index.php?title=Special:UserLogin&type=signup&returnto=Help:Formula Register]
==Attribute:display==
*** You don't have to enter a email address nor any private information do not use a password that you use elsewhere
We introduce the new attribute display with the two options "inline" and "block".
** Change your Math rendering settings to MathML [http://math-preview.wmflabs.org/wiki/Special:Preferences#mw-prefsection-rendering here]
=== Inline ===
* Go to a [http://math-preview.wmflabs.org/wiki/Special:Random random page] or
If the the value of the display attribute is inline the render will render math in inline mode, i.e. there will be no new paragraph for the equation and the operators will be rendered consuming only little vertical space.
* one of the test pages listed below.
 
==I found a bug==
==== Example ====
If you find any bugs please report a bug at [https://bugzilla.wikimedia.org/enter_bug.cgi?product=MediaWiki%20extensions&component=Math&version=master&short_desc=Math-preview%20rendering%20problem Bugzilla] or write a mail to math_bugs (at) ckurs (dot) de
The sum <math display="inline">\sum_{i=0}^\infty 2^{-i}</math> converges to 2.
==Test pages ==
 
[[Displaystyle]]
The next line-width is not disturbed by large operators.
[[Help:Formula]]
 
The code for the math example reads:
:<code><nowiki><math display="inline">\sum_{i=0}^\infty 2^{-i}</math></nowiki></code>
 
==== Technical implementation ====
Technically it will add the command ''\textstyle'' will be added to the user input before the tex command is passed to the renderer. The result will be displayed without further by outputting the image or MathMLelement to the page.
 
==== Remark ====
The convention https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style_(mathematics)#Using_HTML is really annoying. I'd prefer to use inline math for that, since it helps to differentiate between math and other elements.
 
=== Block ===
In block-style the equation is rendered in its own paragraph and the operator are rendered consuming less horizontal space.
 
==== Example ====
The equation
<math display="block">\text{geometric series:}\quad \begin{align} \sum_{i=0}^\infty 2^{-i}=2 \end{align}</math>
is used in a joke about mathematicians entering a bar and ordering beer.
 
It was entered as
:<code><nowiki><math display="block">\text{geometric series:}\quad \sum_{i=0}^\infty 2^{-i}=2 </math></nowiki></code>
 
==== Technical implementation ====
Technically it will add the command ''\displaystyle'' will be added to the user input, if the user input does not contain the string ''\displaystyle' or ''\align'' before the tex command is passed to the renderer. The result will be displayed in a new paragraph.
Therefore the style of the MathImage is altered i.e. the style attribute "display:block;margin:auto" is added.
For MathML it is ensured that display=inline is replaced by display block which produces a new paragraph
==== Discussion ====
Fréderic Wang would prefer that displaystyle is always added in depended of the fact if \displaystlye is already in the equation. He remarks that it has to be checked if that works if the equation starts with \begin.
 
=== Not specified ===
 
If nothing is specified the current behavior is preserved. That means all equation are rendered in display style but not using a new paragraph.
==== Example ====
 
The sum <math>\sum_{i=0}^\infty 2^{-i}</math> converges to 2.
 
The next line-width is disturbed by large operators.
 
The code for the math example reads:
:<code><nowiki><math>\sum_{i=0}^\infty 2^{-i}</math></nowiki></code>
 
 
The equation
:<math>\text{geometric series:}\quad \sum_{i=0}^\infty 2^{-i}=2 </math>
is used in a joke about mathematicians entering a bar and ordering beer.
 
It was entered as
:<code><nowiki><math>\text{geometric series:}\quad \sum_{i=0}^\infty 2^{-i}=2 </math></nowiki></code>

Revision as of 07:37, 21 April 2014

This page is a preview for the new Math rendering that will get live at Wikipedia soon:

  • In a first step MathML and SVG will be available to registered users only.
    • If you want to test please register an account here Register
      • You don't have to enter a email address nor any private information do not use a password that you use elsewhere
    • Change your Math rendering settings to MathML here
  • Go to a random page or
  • one of the test pages listed below.

I found a bug

If you find any bugs please report a bug at Bugzilla or write a mail to math_bugs (at) ckurs (dot) de

Test pages

Displaystyle Help:Formula