Math mode: Difference between revisions

From Knot Atlas
Jump to navigationJump to search
No edit summary
No edit summary
 
(6 intermediate revisions by 4 users not shown)
Line 4: Line 4:
<nowiki><math>\int_0^x t^2 \; \textrm{d} t = \frac{x^3}{3}</math></nowiki>
<nowiki><math>\int_0^x t^2 \; \textrm{d} t = \frac{x^3}{3}</math></nowiki>
produces
produces
<math>\int_0^x t^2 \; \textrm{d} t = \frac{x^3}{3}</math>
<math>\int_0^x t^2 \; \textrm{d} t = \frac{x^3}{3} </math>


You should also be able to use commands defined in the package amssymb (although there are problems with some symbols, most of which are fixable if you tell [[User:Scott|Scott]] about them). You can also use [[User:Drorbn|Dror]]'s dbnsymb package, like this:
You should also be able to use commands defined in the package amssymb (although there are problems with some symbols, most of which are fixable if you tell [[User:Scott|Scott]] about them). You can also use [[User:Drorbn|Dror]]'s dbnsymb package, like this:

Latest revision as of 16:01, 27 May 2009

While editing the wiki, you have access to much of LaTeX's typesetting functionality. Simply enclosing LaTeX code in <math> and </math> tags should give the desired result.

For example

<math>\int_0^x t^2 \; \textrm{d} t = \frac{x^3}{3}</math>

produces


You should also be able to use commands defined in the package amssymb (although there are problems with some symbols, most of which are fixable if you tell Scott about them). You can also use Dror's dbnsymb package, like this:

 <math>
 \langle\slashoverback\rangle =
     A\langle\hsmoothing\rangle + B\langle\smoothing\rangle
 </math>
 

which renders as

Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle   \langle\slashoverback\rangle =      A\langle\hsmoothing\rangle + B\langle\smoothing\rangle  }