Math mode: Difference between revisions

From Knot Atlas
Jump to navigationJump to search
No edit summary
 
No edit summary
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
While editing the wiki, you have access to much of LaTeX's typesetting functionality. Simply enclosing LaTeX code in <nowiki><math></nowiki> and <nowiki></math></nowiki> tags should give the desired result.
While editing the wiki, you have access to much of LaTeX's typesetting functionality. Simply enclosing LaTeX code in <nowiki><math></nowiki> and <nowiki></math></nowiki> tags should give the desired result.


For example
For example
<nowiki><math>\int_0^x t^2 \; \textrm{d} t = \frac{x^3}{3}</math></nowiki>
<pre>
<math>\int_0^x t^2 \; \textrm{d} t = \frac{x^3}{3}</math>
</pre>
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:


<pre>
<nowiki>
<math>
<math>
\langle\slashoverback\rangle =
\langle\slashoverback\rangle =
A\langle\hsmoothing\rangle + B\langle\smoothing\rangle
A\langle\hsmoothing\rangle + B\langle\smoothing\rangle
</math>
</math>
</pre>
</nowiki>
which renders as
which renders as
<math>
<math>
\langle\slashoverback\rangle =
\langle\slashoverback\rangle =
A\langle\hsmoothing\rangle + B\langle\smoothing\rangle
A\langle\hsmoothing\rangle + B\langle\smoothing\rangle
</math>
</math>

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 (unknown function "\slashoverback"): {\displaystyle   \langle\slashoverback\rangle =      A\langle\hsmoothing\rangle + B\langle\smoothing\rangle  }