Using MimeTeX 2: Różnice pomiędzy wersjami

Z MoodleDocs
Skocz do:nawigacja, szukaj
Nie podano opisu zmian
Linia 400: Linia 400:


It appears that MimeTeX now allows \fs6, \fs7, \huge and \Huge to be properly rendered.
It appears that MimeTeX now allows \fs6, \fs7, \huge and \Huge to be properly rendered.
==Colour==
Unlike many scripting languages, we do not have to concern ourselves with the American spelling of the word "colour", we actually do not use it when creating coloured TeX. We only need to name the colour we want to use. Remember though, that until it is changed, the colour will appear in the entire statement. For example:
{| class="nicetable"
|-
| $$ \red x \ = \ \frac{\sqrt{144}}{2} \ \times \ (y \ + \ 12) $$
| [[Image: cfmimetex30a.gif|right]]
|-
| $$ \blue x \ = \ \frac{\sqrt{144}}{2} \ \times \ (y \ + \ 12) $$
| [[Image: cfmimetex30b.gif|right]]
|-
| $$ \green x \ = \ \frac{\sqrt{144}}{2} \ \times \ (y \ + \ 12) $$
| [[Image: cfmimetex30c.gif|right]]
|-
| $$ \red x \ = \ \frac{\sqrt{144}}{2}$$ $$ \times $$ $$\green (y \ + \ 12) $$ $$ \ = $$ $$ \ \blue 6^3 $$
| [[Image: cfmimetex30d.gif|right]]
|}


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

Wersja z 01:03, 11 lip 2010

As we have already covered the basics of MimeTeX, this page is devoted to the characters you can use.

WARNING: In this Wiki environment, the MimeTeX filter is not controlling the essential rendering of the control sequences. The effects are the same, but they are rendered by another Tex filter. It helps the syntax is almost the same though.

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 command sequences start and end with the $$ i.e. $$ \entire command sequence $$. All control sequences start with the backslash, \, i.e. \times, or \frac{1}{2}, and have no end character. 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. Unfortunately, MimeTeX is designed for use in Maths, not science, so it may struggle using non-Maths charsets.

Symbols

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

\amalg Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \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 Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \leq} \geq Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \geq} \equiv Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \equiv} \prec Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \prec}
\succ Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \succ} \sim Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \sim} \perp Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \perp} \preceq Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \preceq}
\succeq Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \succeq} \simeq Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \simeq} \mid Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \mid} \ll
\gg Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \gg} \asymp Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \asymp} \parallel Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \parallel} \subset Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \subset}
\supset Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \supset} \subseteq Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \subseteq} \supseteq Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \supseteq} \approx Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \approx}
\neq Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \neq} \ni Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \ni} \notin Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \notin} \in Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \ni}
\vdash Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \vdash} \dashv Parser nie mógł rozpoznać (SVG (MathML może zostać włączone przez wtyczkę w przeglądarce): Nieprawidłowa odpowiedź („Math extension cannot connect to Restbase.”) z serwera „https://en.wikipedia.org/api/rest_v1/”:): {\displaystyle \dashv} \bullet \cdot

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 \} \rangle \langle
\angle \= \sqrt{ab} \sqrt[n]{ab}
\frac{ab}{cd} \backslash \widehat{ab} \$
\overline{ab} \underline{ab} \therefore \ddots
\% \# \vdots \emptyset

WARNINGS: The & character in LaTeX usually requires a \. In TeX, apparently, it does not. Other packages, AsciiMath, 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. I have been, almost reliably, informed that a particular instruction will produce a different notice though .:)

There are also a number of characters that can be used in MimeTeX but do not render in this page:

Larger \left(x and \right) brackets
\widetilde{ab}
\textdegree or (50)^\circ

Greek Letters

\alpha \beta \gamma
\delta \epsilon \zeta
\eta \theta \iota
\kappa \lambda \mu
\xi \pi \rho
\sigma \tau \upsilon
\phi \chi \psi
\omega \Omega \Theta
\Delta \Pi \Phi

Notable Exceptions

Greek letter omicron. Simply put, omicron is an "o" or an "O".

Fonts

To use a particular font you need to access the font using the same syntax as demonstrated above.

A math calligraphic font:

or

$$ \mathcal{ABCDEFGHIJKLMNOPQRSTUVXYZ}$$

A Castellar type font:

or

$$ \mathbb{ABCDEFGHIJKLMNOPQRSTUVXYZ}$$

An Old English type font:

or

$$ \mathfrak{ABCDEFGHIJKLMNOPQRSTUVXYZ}$$

An italic font:

ABCDEFGHIJKLMNOPQRSTUVXYZ

or

$$ \mathi{ABCDEFGHIJKLMNOPQRSTUVXYZ} $$

A bold-face font:

or

$$ \mathbf{ABCDEFGHIJKLMNOPQRSTUVXYZ} $$

Size of displays

The default size is rendered slightly larger than normal font size. MimeTeX uses eight different sizes ranging from "tiny" to "huge". However,these values seem to mean different things and are, I suspect, dependent upon the User's screen resolution. The sizes can be noted in four different ways:

\fontsize{0} to \fontsize{7} $$\fontsize{2} x \ = \ \frac{\sqrt{144}}{2} \ \times \ (y \ + \ 12)$$
\fs{0} to \fs{7} $$\fs{4} x \ = \ \frac{\sqrt{144}}{2} \ \times \ (y \ + \ 12)$$
\fs0 to \fs7 $$\fs6 x \ = \ \frac{\sqrt{144}}{2} \ \times \ (y \ + \ 12)$$
As well, you can use \tiny \small

\normalsize \large \Large \LARGE \huge \Huge

$$\normalsize x \ = \ \frac{\sqrt{144}}{2} \ \times \ (y \ + \ 12)$$

It appears that MimeTeX now allows \fs6, \fs7, \huge and \Huge to be properly rendered.

Colour

Unlike many scripting languages, we do not have to concern ourselves with the American spelling of the word "colour", we actually do not use it when creating coloured TeX. We only need to name the colour we want to use. Remember though, that until it is changed, the colour will appear in the entire statement. For example:

$$ \red x \ = \ \frac{\sqrt{144}}{2} \ \times \ (y \ + \ 12) $$
$$ \blue x \ = \ \frac{\sqrt{144}}{2} \ \times \ (y \ + \ 12) $$
$$ \green x \ = \ \frac{\sqrt{144}}{2} \ \times \ (y \ + \ 12) $$
$$ \red x \ = \ \frac{\sqrt{144}}{2}$$ $$ \times $$ $$\green (y \ + \ 12) $$ $$ \ = $$ $$ \ \blue 6^3 $$

See Also