Changes

909 bytes added ,  14:32, 14 December 2019
m
Line 4: Line 4:  
==Math code Display==
 
==Math code Display==
 
The Math library installed in this wiki provides support for Mathematics Notation.
 
The Math library installed in this wiki provides support for Mathematics Notation.
 +
Attribute display with the two options "inline" and "block".
 +
=== Inline ===
 +
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.
 +
 +
==== Example ====
 +
The sum <math display="inline">\sum_{i=0}^\infty 2^{-i}</math> converges to 2.
 +
 +
The next line-width is not disturbed by large operators.
 +
 +
The code for the math example reads:
 +
:<code><nowiki><math display="inline">\sum_{i=0}^\infty 2^{-i}</math></nowiki></code>
 +
 +
 +
=== 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\sum_{i=0}^\infty 2^{-i}=2</math>
 +
is used in a joke about mathematicians entering a bar and ordering beer.
    
== Functions, symbols, special characters ==
 
== Functions, symbols, special characters ==
4,000

edits