Note: You are currently viewing documentation for Moodle 2.1. Up-to-date documentation for the latest stable version is available here: Using MimeTeX 2.

Using MimeTeX 2: Difference between revisions

From MoodleDocs
Colin Fraser (talk | contribs)
No edit summary
Colin Fraser (talk | contribs)
Line 7: Line 7:
Keyboard characters are available as themselves but many characters have a significance in TeX. All control sequences start with the backslash, \, and have no end character. All command sequences start and end with the $$. There are a number of different types of charsets available, not just Maths but also scientific sets but these need be installed to your Moodle if you want additional charsets.   
Keyboard characters are available as themselves but many characters have a significance in TeX. All control sequences start with the backslash, \, and have no end character. All command sequences start and end with the $$. There are a number of different types of charsets available, not just Maths but also scientific sets but these need be installed to your Moodle if you want additional charsets.   


==Symbols==
These are not all the symbols that may be available in MimeTeX, just the ones that a) Work in Moodle and b) that I have found to work in Moodle.


{| class="nicetable"
{| class="nicetable"
Line 128: Line 131:
|}
|}


==Arrows==


Arrows
Arrows
 
{|
\leftarrow
|-
| \leftarrow
 
| <math> \leftarrow</math>
$$\leftarrow$$
| \longleftarrow
| <math> \longleftarrow</math>
 
| \Leftarrow
\longleftarrow
| <math> \Leftarrow</math>
| \Longleftarrow
 
| <math> \Longleftarrow</math>
$$\longleftarrow$$
|-
| \rightarrow
 
| <math> \rightarrow</math>
\Leftarrow
| \longrightarrow
| <math> \longrightarrow</math>
 
| \Rightarrow
$$\Leftarrow$$
| <math> \Rightarrow</math>
| \Longrightarrow
 
| <math> \Longrightarrow</math>
\Longleftarrow
|-
| \uparrow
 
| <math> \uparrow</math>
$$\Longleftarrow$$
| \Uparrow
 
| <math> \Uparrow</math>
\rightarrow
| \downarrow
| <math> \downarrow</math>
 
| \Downarrow
$$\rightarrow$$
| <math> \Downarrow</math>
|-
 
| \leftrightarrow
\longrightarrow
| <math> \leftrightarrow</math>
| \longleftrightarrow
 
| <math> \longleftrightarrow</math>
$$\longrightarrow$$
| \updownarrow
| <math> \updownarrow</math>
 
| \Updownarrow
\Rightarrow
| <math> \Updownarrow</math>
|-
 
| \Leftrightarrow
$$\Rightarrow$$
| <math> \Leftrightarrow</math>
| \Longleftrightarrow
 
| <math> \Longleftrightarrow</math>
\Longrightarrow
| \leftrightharpoon
| <math> \rightleftharpoons</math>
 
| \Im
$$\Longrightarrow$$
| <math> \Im</math>
 
|-
\uparrow
| \nearrow
| <math> \nearrow</math>
 
| \nwarrow
$$\uparrow$$
| <math> \nwarrow</math>
| \swarrow
 
| <math> \swarrow</math>
\Uparrow
|-
| \searrow
 
| <math> \searrow</math>
$$\Uparrow$$
|
|
 
|}
\downarrow
 
$$\downarrow$$
 
\Downarrow
 
$$\Downarrow$$
 
\leftrightarrow
 
$$\leftrightarrow$$
 
\longleftrightarrow
 
$$\longleftrightarrow$$
 
\updownarrow
 
$$\updownarrow$$
 
\Updownarrow
 
$$\Updownarrow$$
 
\Leftrightarrow
 
$$\Leftrightarrow$$
 
\Longleftrightarrow
 
$$\Longleftrightarrow$$
 
\leftrightharpoon
 
$$\rightleftharpoons$$
 
\Im
 
$$\Im$$
 
\nearrow
 
$$\nearrow$$
 
\nwarrow
 
$$\nwarrow$$
 
\swarrow
 
$$\swarrow$$
 
\searrow
 
$$\searrow$$
 
 
Delimiters and Maths Constructs
Delimiters and Maths Constructs


NOTE: Most delimiters and constructs need additional parameters for them to appear appropriately.
NOTE: Most delimiters and constructs need additional parameters for them to appear appropriately.
 
{|
\{x
|-
| \{x
 
| <math> \{x </math>
$$\{x $$
| x | \}
| <math>x | \} </math>
 
| \(
x \}
| <math> \left(x </math>
| \)
 
|-
$$x \} $$
| <math> x| \right) </math>
| \rangle
 
| <math> \rangle </math>
\(
| \langle
| <math> \langle </math>
 
|-
$$\left(x $$
| \angle
| <math> \angle </math>
 
| \|
\)
| <math> \| </math>
| \sqrt{ab}
 
| <math> \sqrt{ab}</math>
$$ x\right) $$
|-
 
| \sqrt[n]{ab}
\rangle
| <math> \sqrt[n]{ab}</math>
| \frac{ab}{cd}
 
| <math> \frac{ab}{cd}</math>
$$\rangle $$
| \backslash
| <math> \backslash</math>
 
|-
\langle
| \widetilde{ab}
| <math> \widetilde{ab}</math>
 
| \widehat{ab}
$$ \langle $$
| <math> \widehat{ab}</math>
| \overline{ab}
 
| <math> \overline{ab}</math>
\angle
|-
| \underline{ab}
 
| <math> \underline{ab}</math>
$$ \angle $$
| \$
| <math> \$ </math>
 
| \therefore
|
| <math> \therefore</math>
|-
 
| \%
$$ | $$
| <math> \%</math>
 
| \#
\sqrt{ab}
| <math> \# </math>
| \angle
 
| <math> \angle</math>
$$\sqrt{ab}$$
|-
| \vdots
 
| <math> \vdots</math>
\sqrt[n]{ab}
| \ddots
| <math> \ddots</math>
 
| \emptyset
$$\sqrt[n]{ab}$$
| <math> \emptyset</math>
|}
 
WARNINGS: The & character in </math>LaTeX</math> usually requires a | \. In </math>TeX</math>, apparently, it does not. Other packages, AsciiMath, when it becomes available, may use it differently again so be careful using it. The copyright character may use the default MimeTeX charset, and produces a copyright notice for John Forkosh Associates.
\frac{ab}{cd}
 
$$\frac{ab}{cd}$$
 
\backslash
 
$$\backslash$$
 
\widetilde{ab}
 
$$\widetilde{ab}$$
 
\widehat{ab}
 
$$\widehat{ab}$$
 
\overline{ab}
 
$$\overline{ab}$$
 
\underline{ab}
 
$$\underline{ab}$$
 
\$
 
$$ \$ $$
 
\therefore
 
$$\therefore$$
 
\%
 
$$\%$$
 
\#
 
$$\# $$
 
\angle
 
$$\angle$$
 
\vdots
 
$$\vdots$$
 
\ddots
 
$$\ddots$$
 
\emptyset
 
$$\emptyset$$
 
WARNINGS: The & character in $$LaTeX$$ usually requires a \. In $$TeX$$, apparently, it does not. Other packages, AsciiMath, when it becomes available, may use it differently again so be careful using it. The copyright character may use the default MimeTeX charset, and produces a copyright notice for John Forkosh Associates.
 
 


==See Also==
==See Also==

Revision as of 06:20, 9 July 2010

As we have already covered the basics of MimeTeX, this page is devoted to more advanced issues.

Maths symbols available in Moodle

A number of the characters and symbols below have already been covered in previous pages, but this is a more exhaustive list. There are a number more, but their relevance to K-12 maths is questionable.

Keyboard characters are available as themselves but many characters have a significance in TeX. All control sequences start with the backslash, \, and have no end character. All command sequences start and end with the $$. There are a number of different types of charsets available, not just Maths but also scientific sets but these need be installed to your Moodle if you want additional charsets.

Symbols

These are not all the symbols that may be available in MimeTeX, just the ones that a) Work in Moodle and b) that I have found to work in Moodle.

\amalg \cup \oplus \times
\ast \dagger \oslash \triangleleft
\bigcirc \ddagger \otimes \triangleright
\bigtriangledown \diamond \pm \odot
\bigtriangleup \div \ominus \wr
\circ \wedge \vee \sqcup
\leq \geq \equiv \prec
\succ \sim \perp \preceq
\succeq \simeq \mid \ll
\gg \asymp \parallel \subset
\supset \subseteq \supseteq \approx
\neq \ni \notin \in
\vdash \dashv \bullet \cdot

Arrows

Arrows

\leftarrow \longleftarrow \Leftarrow \Longleftarrow
\rightarrow \longrightarrow \Rightarrow \Longrightarrow
\uparrow \Uparrow \downarrow \Downarrow
\leftrightarrow \longleftrightarrow \updownarrow \Updownarrow
\Leftrightarrow \Longleftrightarrow \leftrightharpoon \Im
\nearrow \nwarrow \swarrow
\searrow

Delimiters and Maths Constructs

NOTE: Most delimiters and constructs need additional parameters for them to appear appropriately.

\{x \} \( Failed to parse (syntax error): {\displaystyle \left(x } \)
Failed to parse (syntax error): {\displaystyle x| \right) } \rangle \langle
\angle \sqrt{ab}
\sqrt[n]{ab} \frac{ab}{cd} \backslash
\widetilde{ab} \widehat{ab} \overline{ab}
\underline{ab} \$ \therefore
\% \# \angle
\vdots \ddots \emptyset

WARNINGS: The & character in </math>LaTeX</math> usually requires a | \. In </math>TeX</math>, apparently, it does not. Other packages, AsciiMath, when it becomes available, may use it differently again so be careful using it. The copyright character may use the default MimeTeX charset, and produces a copyright notice for John Forkosh Associates.

See Also