AsciiMath-Übersicht
AsciiMath schreibt Formeln so, wie du sie in einer Nachricht tippen würdest:
sqrt(x^2+1), a/b, sum_(n=1)^oo. Hier
findest du jedes Symbol, sein Aussehen und das LaTeX, das daraus wird, mit
einem Feld zum Ausprobieren.
Von AsciiMath zu LaTeX
Beispiele:
\sum_{n = 1}^{\infty} \frac{1}{n^{2}} = \frac{\pi^{2}}{6}
Die Umwandlung läuft in deinem Browser, mit demselben Code, der die
Blätter von live-math setzt. Dezimalzahlen bekommen hier einen Punkt:
3.14.
Was AsciiMath ist
AsciiMath ist eine Auszeichnungssprache für Mathematik, gemacht, um schnell
zu tippen und schon vor dem Setzen leicht zu lesen. Brüche, Potenzen und
Wurzeln schreibst du wie auf einem Taschenrechner, (a+1)/(b+1),
x^(n+1), sqrt(x); Symbole sind kurze Wörter,
oo für , -> für ,
in für . Klammern wachsen von selbst, und eine
Matrix ist eine Liste von Zeilen.
Erfunden hat es Peter Jipsen, um Mathematik auf Webseiten zu schreiben; auch MathJax und AsciiDoc lesen es. Die Symbole auf dieser Seite sind die von live-math, das die Funktionsnamen italienischer Schulbücher und die Operatoren der linearen Algebra ergänzt.
AsciiMath oder LaTeX?
LaTeX ist der Standard für gedruckte Mathematik und das richtige Werkzeug für
eine Arbeit oder eine Abschlussarbeit. Zum Schreiben, während du erklärst, ist
es langsam: Klammern, Backslashes und \frac{}{} bei jedem
Schritt. AsciiMath sagt dasselbe mit etwa zwei Dritteln der Zeichen, und seine
Ausgabe ist LaTeX: Jede Formel lässt sich umwandeln, und ein ganzes Blatt als
LaTeX-Datei exportieren.
live-math baut darauf auf: Du tippst AsciiMath während einer Stunde, und die Schülerinnen und Schüler sehen es gesetzt, während du tippst, mit Diagrammen aus einer Zeile. Sieh es auf der Startseite, oder öffne den Editor.
Jedes Symbol
In jeder Zeile: was du tippen kannst (jede der Formen), wie es aussieht
und sein LaTeX. Leerzeichen trennen nur: sinx und
sin x sind dasselbe.
Brüche, Hoch- und Tiefstellungen, Wurzeln
/ macht einen Bruch aus dem, was direkt davor und danach steht: ein
Symbol, eine Zahl oder eine Gruppe in Klammern. ^ und
_ tun dasselbe für Exponenten und Indizes. Die Klammern um einen
Zähler, einen Nenner, einen Exponenten oder einen Index werden nicht gezeigt:
(a+1)/(b+1) ist , x^(n+1)
ist . Damit sie bleiben, verdopple sie:
((a+b))/2 ist . Anderswo bleiben Klammern:
(a+b)^2 ist .
x^2x^{2}x_1x_{1}x_1^2x_{1}^{2}x^(n+1)x^{n + 1}a/b\frac{a}{b}(a+1)/(b+1)\frac{a + 1}{b + 1}frac(a)(b)\frac{a}{b}sqrt x Sqrt x\sqrt{x}sqrt(x+1)\sqrt{x + 1}root(3)(x)\sqrt[3]{x}stackrel(def)(=)\stackrel{d e f}{=}overset(*)(=)\overset{\cdot}{=}underset(x->0)(=)\underset{x \to 0}{=}cancel(x)\cancel{x}color(red)(x^2)\textcolor{red}{x^{2}}color färbt nur sein Argument; es nimmt die Namen der Farben (red, blue, green, orange, purple…).
Griechische Buchstaben
alpha\alphabeta\betagamma\gammaGamma\Gammadelta\deltaDelta\Deltaepsilon epsi\epsilonvarepsilon\varepsilonzeta\zetaeta\etatheta\thetaTheta\Thetavartheta\varthetaiota\iotakappa\kappalambda lamda\lambdaLambda Lamda\Lambdamu\munu\nuxi\xiXi\Xipi\piPi\Pirho\rhosigma\sigmaSigma\Sigmatau\tauupsilon\upsilonphi\phiPhi\Phivarphi\varphichi\chipsi\psiPsi\Psiomega\omegaOmega\OmegaOperationen
a + ba + ba - ba - ba * b a cdot ba \cdot ba ** b a ast ba \ast ba *** b a star ba \star ba xx b a times ba \times ba -: b a div b a divide ba \div ba // ba / bA \\ B A backslash BA \backslash BA setminus BA \setminus Ba +- b a pm ba \pm bf @ g f circ gf \circ ga o+ b a oplus ba \oplus ba ox b a otimes ba \otimes ba o. b a odot ba \odot bp ^^ q p wedge qp \wedge qp vv q p vee qp \vee qA nn B A cap BA \cap BA uu B A cup BA \cup BA |>< B A ltimes BA \ltimes BA ><| B A rtimes BA \rtimes BA |><| B A bowtie BA \bowtie Ba mod na \operatorname{mod} nGroße Operatoren, Grenzwerte, Integrale
Die Grenzen kommen nach _ und ^; mit Klammern, wenn sie
mehr als ein Symbol sind. In einer eigenen Zeile stehen sie unter und über dem
Operator.
sum_(n=1)^oo a_n\sum_{n = 1}^{\infty} a_{n}prod_(i=1)^n x_i\prod_{i = 1}^{n} x_{i}int_a^b f(x) dx\int_{a}^{b} f{{\left ( x \right )}} \mathop{}\!dxoint_gamma f(z) dz\oint_{\gamma} f{{\left ( z \right )}} \mathop{}\!dzlim_(x->0) f(x)\lim_{x \to 0} f{{\left ( x \right )}}Lim_(n->oo) a_n\operatorname{Lim}_{n \to \infty} a_{n}limsup_(n->oo) a_n\limsup_{n \to \infty} a_{n}liminf_(n->oo) a_n\liminf_{n \to \infty} a_{n}max_(x in A) f(x)\max_{x \in A} f{{\left ( x \right )}}min_(x in A) f(x)\min_{x \in A} f{{\left ( x \right )}}sup A\sup Ainf A\inf Alub A\operatorname{lub} Aglb A\operatorname{glb} Adim V\dim V^^^_(i in I) p_i bigwedge_(i in I) p_i\bigwedge_{i \in I} p_{i}vvv_(i in I) p_i bigvee_(i in I) p_i\bigvee_{i \in I} p_{i}nnn_(i in I) A_i bigcap_(i in I) A_i\bigcap_{i \in I} A_{i}uuu_(i in I) A_i bigcup_(i in I) A_i\bigcup_{i \in I} A_{i}Relationen
a = ba = ba != b a ne ba \ne ba < b a lt ba < ba > b a gt ba > ba <= b a le ba \le ba lt= b a leq ba \leq ba >= b a ge ba \ge ba gt= b a geq ba \geq ba -< b a -lt b a prec ba \prec ba -<= b a preceq ba \preceq ba >- b a succ ba \succ ba >-= b a succeq ba \succeq bx in Ax \in Ax !in A x notin Ax \notin AA sub B A subset BA \subset BA sube B A subseteq BA \subseteq BA supset BA \supset BA supe B A supseteq BA \supseteq Ba -= b a equiv ba \equiv ba ~= b a cong ba \cong ba ~~ b a approx ba \approx ba prop b a propto ba \propto ba := ba := ba :|: ba \rvert : bLogik
p and qp \quad\text{and}\quad qp or qp \quad\text{or}\quad qnot p neg p\neg pp => qp \Rightarrow qp implies qp \implies qp <=> qp \Leftrightarrow qp iff qp \iff qy = 1 if x > 0y = 1 \quad\text{if}\quad x > 0AA x forall x\forall xEE x exists x\exists x_|_ bot\botTT top\topp |-- q p vdash qp \vdash qp |== q p models qp \models q:. therefore\therefore:' because\becauseKlammern
Klammern wachsen mit ihrem Inhalt. {: x :} ist ein unsichtbares
Paar, praktisch zum Gruppieren; (: :) sind spitze Klammern.
|x| ist der Betrag: Die Striche paaren sich innerhalb von
Klammern, also funktioniert |x - a| < delta so, wie es gelesen
wird.
(x){\left ( x \right )}[x]{\left [ x \right ]}{x}{\left \lbrace x \right \rbrace}|x|{\left \lvert x \right \rvert}(: x :) << x >> langle x rangle{\left \langle x \right \rangle}|: x :|{\left \lvert x \right \rvert}{: x :}{\left . x \right .}lbrace x rbrace{\left \lbrace x \right \rbrace}abs(x) Abs(x){\left | x \right |} norm(x){\left \| x \right \|} floor(x) |__ x __| lfloor x rfloor{\left \lfloor x \right \rfloor} ceil(x) |~ x ~| lceil x rceil lceiling x rceiling{\left \lceil x \right \rceil} Pfeile
uarr uparrow\uparrowdarr downarrow\downarrowrarr rightarrow\rightarrow-> to\to>-> rightarrowtail\rightarrowtail->> twoheadrightarrow\twoheadrightarrow>->> twoheadrightarrowtail\twoheadrightarrowx |-> y x mapsto yx \mapsto ylarr leftarrow\leftarrowharr leftrightarrow\leftrightarrowrArr Rightarrow\RightarrowlArr Leftarrow\LeftarrowhArr Leftrightarrow\LeftrightarrowFunktionen
Der Name einer Funktion wird aufrecht gesetzt, und ihr Argument folgt, mit oder
ohne Klammern: sin x, sin(x), sin^2 x.
f und g sind nur vor einer Klammer Funktionen:
f(x), aber f g bleibt ein Produkt.
sin x\sin{x}cos x\cos{x}tan x\tan{x}cot x\cot{x}sec x\sec{x}csc x\csc{x}arcsin x\arcsin{x}arccos x\arccos{x}arctan x\arctan{x}sinh x\sinh{x}cosh x\cosh{x}tanh x\tanh{x}coth x\coth{x}sech x\operatorname{sech}{x}csch x\operatorname{csch}{x}exp x\exp{x}log x\log{x}ln x\ln{x}det A\det{A}gcd(a, b)\gcd{{\left ( a , b \right )}}lcm(a, b)\operatorname{lcm}{{\left ( a , b \right )}}f(x)f{{\left ( x \right )}}g(x)g{{\left ( x \right )}}Namen mit großem Anfangsbuchstaben
Sin x\operatorname{Sin}{x}Cos x\operatorname{Cos}{x}Tan x\operatorname{Tan}{x}Cot x\operatorname{Cot}{x}Sec x\operatorname{Sec}{x}Csc x\operatorname{Csc}{x}Arcsin x\operatorname{Arcsin}{x}Arccos x\operatorname{Arccos}{x}Arctan x\operatorname{Arctan}{x}Sinh x\operatorname{Sinh}{x}Cosh x\operatorname{Cosh}{x}Tanh x\operatorname{Tanh}{x}Log x\operatorname{Log}{x}Ln x\operatorname{Ln}{x}Italienische Namen und lineare Algebra
Die Namen italienischer Schulbücher und die Operatoren der linearen Algebra.
„sen“, „tg“ und „arcsen“ sind die italienischen Schreibweisen von sin, tan
und arcsin. Im ist nur vor einer Klammer das Bild:
Im(f), während Im z ein Produkt bleibt.
sen x\operatorname{sen}{x}arcsen x\operatorname{arcsen}{x}tg x\operatorname{tg}{x}arctg x\operatorname{arctg}{x}cotg x\operatorname{cotg}{x}arccotg x\operatorname{arccotg}{x}sh x\operatorname{sh}{x}ch x\operatorname{ch}{x}th x\operatorname{th}{x}settsh x\operatorname{settsh}{x}settch x\operatorname{settch}{x}rg A\operatorname{rg}{A}rank A\operatorname{rank}{A}Ker f\operatorname{Ker}{f}Im(f)\operatorname{Im}{{\left ( f \right )}}tr A\operatorname{tr}{A}span(v, w)\operatorname{span}{{\left ( v , w \right )}}Akzente
hat x\hat{x}bar x overline(x)\overline{x}vec v\vec{v}tilde x\tilde{x}dot x\dot{x}ddot x\ddot{x}ul(x) underline(x)\underline{x}ubrace(1+2)_3 underbrace(1+2)_3\underbrace{1 + 2}_{3}obrace(1+2)^3 overbrace(1+2)^3\overbrace{1 + 2}^{3}Schriften
bb(A) mathbf(A)\mathbf{A}bbb(R) mathbb(R)\mathbb{R}cc(F) mathcal(F)\mathcal{F}tt(x) mathtt(x)\mathtt{x}fr(g) mathfrak(g)\mathfrak{g}sf(x) mathsf(x)\mathsf{x}Text in einer Formel
Zwischen doppelten Anführungszeichen bleiben Wörter Wörter: x = 1 " wenn " y > 0.
Ein schmales Leerzeichen kommt dort hinzu, wo der Text ein Symbol berührt,
damit "für alle"x nicht klebt. and, or,
if als Wörter haben schon Abstand.
x = 1 "and" y = 2x = 1 \,\text{and}\, y = 2text(text) mbox(text)\text{text}Matrizen, Vektoren, Systeme
Eine Matrix ist eine Liste von Zeilen, jede in Klammern, durch Kommas getrennt:
[[1,2],[3,4]] mit eckigen Klammern, ((1,2),(3,4))
mit runden, |(a,b),(c,d)| für eine Determinante. Ein
Spaltenvektor ist eine Matrix mit einer Spalte. Ein System ist eine Matrix mit
{ links und nichts rechts, :}:
A = [[1,2],[3,4]]
det A = |(1,2),(3,4)| = -2
vec v = ((x),(y),(z))
{(x + y = 1),(x - y = 2):}
|x| = {(x, " wenn " x >= 0),(-x, " wenn " x < 0):}Weitere Symbole
del partial\partialgrad nabla\nablaoo infty\inftyO/ emptyset\emptysetaleph\aleph/_ angle\angle/_\ triangle\trianglediamond\diamondsquare boxempty\squarefrown\frown... ldots\ldotscdots\cdotsvdots\vdotsddots\ddotsa quad ba \quad ba qquad ba \qquad ba \ ba \, b50%50 \%NN\mathbb{N}ZZ\mathbb{Z}QQ\mathbb{Q}RR\mathbb{R}CC\mathbb{C}f'(x) f prime(x)f ' {\left ( x \right )}f''(x)f '' {\left ( x \right )}f'''(x)f ''' {\left ( x \right )}x^2 dxx^{2} \mathop{}\!dxdy\mathop{}\!dydz\mathop{}\!dzdt\mathop{}\!dt