DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:mathjax

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:mathjax [2023-12-26 13:29] – [Display Math] 103.175.172.31plugin:mathjax [2024-02-13 04:53] (current) – Mark compatible with Kaos release liffiton
Line 7: Line 7:
 type       : action, syntax type       : action, syntax
 lastupdate : 2021-11-20 lastupdate : 2021-11-20
-compatible :  Ponder Stibbons, Rincewind, Angua, Adora Belle, Weatherwax, Binky, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, Greebo, Hogfather, Igor, Jack Jackrum+compatible :  Ponder Stibbons, Rincewind, Angua, Adora Belle, Weatherwax, Binky, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, Greebo, Hogfather, Igor, Jack Jackrum, Kaos
 depends    :  depends    : 
 conflicts  : creole, indexmenu2, revealjs, s5 conflicts  : creole, indexmenu2, revealjs, s5
Line 46: Line 46:
  
  
-<html> +====Display Math====
-<head> +
- <title></title> +
-</head> +
-<body data-new-gr-c-s-loaded="8.868.0"> +
-<p>(<math xmlns="http://www.w3.org/1998/Math/MathML"><mstyle mathsize="16px"><mi mathvariant="normal">&#949;</mi></mstyle></math>M<sup>&ndash;1</sup> L<sup>&ndash;3</sup> T<sup>4</sup> A<sup>2</sup></p>+
  
-<p><sup><math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced close="|" open="|"><mrow><mi mathvariant="normal">E</mi><mo>=</mo><mfrac><mn>1</mn><mn>2</mn></mfrac><mi>KT</mi></mrow></mfenced></math></sup><br /> +To display math on its own line, use double dollar signs:
-[<math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi mathvariant="normal">K</mi><mi mathvariant="normal">B</mi></msub></math>T] = [E] = [M<sup>1</sup>L<sup>2</sup>T<sup>&ndash;2</sup>]<br /> +
-n = [L<sup>&ndash;3</sup>]<br /> +
-q = [A<sup>1</sup> T<sup>1</sup>]</p>+
  
-<p>Thereforethe correct answer is (B,D)</p> +  $$ \frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x) $$ 
-</body> + 
-</html>+or escaped square brackets: 
 + 
 +  \[ \sin A \cos B = \frac{1}{2}\left[ \sin(A-B)+\sin(A+B) \right] \] 
 + 
 +A wide range of math environments((Accepted math environments (specified [[https://github.com/liffiton/dokuwiki-plugin-mathjax/blob/master/syntax/protecttex.php#L27|here]] in the code): align, align*, alignat, alignat*, displaymath, eqnarray, eqnarray*, equation, equation*, flalign, flalign*, gather, gather*, math, multline, multline*)) will work as well: 
 + 
 +  \begin{align*} 
 +  e^x & = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \cdots \\ 
 +      & = \sum_{n\geq 0} \frac{x^n}{n!} 
 +  \end{align*} 
 + 
 +Note that the math environments //should not// be inside the dollar sign delimiters; the environments should stand on their own with just the ''\begin'' and ''\end'' statements in order to be parsed correctly.
  
 ===== Configuration and Settings ===== ===== Configuration and Settings =====
plugin/mathjax.1703593792.txt.gz · Last modified: 2023-12-26 13:29 by 103.175.172.31

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki