Hilfe:TeX

Aus WikiWaldhof
Wechseln zu: Navigation, Suche

Seit Januar 2003 gibt es in der WikiWaldhof TeX-Markup für mathematische Formeln. Entweder werden PNG-Bilder oder einfacher HTML-Code generiert, abhängig von Benutzereinstellungen und der Komplexität des Ausdrucks. In Zukunft – wenn die Browser es unterstützen – wird es möglich sein, enhanced HTML zu generieren oder sogar in vielen Fällen eine XML-Sprache für mathematische Ausdrücke: MathML.

Formeln werden in <math>-Befehlen eingeschlossen: <math></math>. Zeilenumbrüche innerhalb dieser Tags sind erlaubt, werden aber nicht in ein Bild umgesetzt, also „gerendert“. Sie sind nützlich, um den Code übersichtlich zu halten (z. B. eine Zeile für jeden Term oder Zeile einer Matrix).

Eine umfassendere Anleitung befindet sich auf der Meta-Version dieser Seite, allerdings ist diese auf Englisch.

Diskussionen, Fehlerberichte und Feature-Wünsche sollten an die Wikitech-l Mailingliste (engl.) oder an WikiWaldhof:TeX requests (engl.) gehen.

Bei Fragen zum Stil bezüglich des Setzens von mathematischem Code siehe WikiProjekt Mathematik und Portal Diskussion:Mathematik. Derzeit gibt es noch Darstellungsprobleme bei komplizierteren Formeln innerhalb von Fließtext: Die Schrift ist zu groß, und die Ausrichtung ist uneinheitlich. Eine Mehrheit der Autoren hält TeX trotzdem für die langfristig richtige Lösung. Jedenfalls sollten existierende TeX-Formeln nicht in HTML umgewandelt werden.

Innerhalb eines „math“-Abschnitts kann man keine Wikisyntax wie [[]] u. A. oder Sonderzeichen, die also nicht im ASCII-Zeichensatz enthalten sind (wie die Umlaute ä, ö, ü), verwenden.

Und nicht zuletzt ist anzumerken, dass eine Formel niemals allein da stehen sollte, stattdessen sollten die verwendeten Formelzeichen so erläutert werden, dass es einem fachnahen Leser möglich ist die Formel zu verstehen und anzuwenden. Die Erläuterung ist auch deshalb notwendig, weil in der Fachliteratur z. T. für gleiche Sachverhältnisse unterschiedliche Formelzeichen und Schreibweisen verwendet werden, sie kann entweder im Fließtext oder in einzelnen Zeilen erfolgen.

Text und Schriften

TeX erlaubt nur den ASCII-Satz an Buchstaben. Zu Umlauten siehe Mathematische Akzente

Darzustellen Syntax So sieht’s gerendert aus
Standard abcdefg <math>abcdefg</math>
erzwungenes Rendern; nur in Ausnahmefällen zu verwenden abcdefg\,
a+b=c\,
<math>abcdefg\,</math>
<math> a+b=c\,</math>
Fett (bold) \mathbf{abcdefg} <math>\mathbf{abcdefg}</math>
Kursiv (italic) \mathit{abcdefg}
veraltet: {\it abcdefg}
<math>\mathit{abcdefg}</math>
<math>{\it abcdefg}</math>
Serif (roman) \mathrm{abcdefg}
veraltet: {\rm abcdefg}
<math>\mathrm{abcdefg}</math>
<math>{\rm abcdefg}</math>
Sans Serif \mathsf{abcdefg} <math>\mathsf{abcdefg}</math>
Fraktur \mathfrak{abcdefg}
\mathfrak{ABCDEFG}
<math>\mathfrak{abcdefg}</math>
<math>\mathfrak{ABCDEFG}</math>
Übersicht: <math>\mathfrak{a\,b\,c\,d\,e\,f\,g\,h\,i\,j\,k\,l\,m \,n\,o\,p\,q\,r\,s\,t\,u\,v\,w\,x\,y\,z}</math>

<math>\mathfrak{A\,B\,C\,D\,E\,F\,G\,H\,I\,J\,K\,L\,M\,N\,O\,P\,Q\,R}</math>
<math>\mathfrak{S\,T\,U\,V\,W\,X\,Y\,Z\,0\,1\,2\,3\,4\,5\,6\,7\,8\,9}</math>

Kalligraphische Symbole \mathcal{?}
? = Buchstabe oder Ziffer
A B C D E F G H I J K L M
<math>\mathcal{A}</math> <math>\mathcal{B}</math> <math>\mathcal{C}</math> <math>\mathcal{D}</math> <math>\mathcal{E}</math> <math>\mathcal{F}</math> <math>\mathcal{G}</math> <math>\mathcal{H}</math> <math>\mathcal{I}</math> <math>\mathcal{J}</math> <math>\mathcal{K}</math> <math>\mathcal{L}</math> <math>\mathcal{M}</math>
N O P Q R S T U V W X Y Z
<math>\mathcal{N}</math> <math>\mathcal{O}</math> <math>\mathcal{P}</math> <math>\mathcal{Q}</math> <math>\mathcal{R}</math> <math>\mathcal{S}</math> <math>\mathcal{T}</math> <math>\mathcal{U}</math> <math>\mathcal{V}</math> <math>\mathcal{W}</math> <math>\mathcal{X}</math> <math>\mathcal{Y}</math> <math>\mathcal{Z}</math>
Zahlenbereiche
und diverse Sonderzeichen
\mathbb{?}
? = Buchstabe oder Ziffer
A B C D E F G H I J K L M
<math> \mathbb{A} </math> <math> \mathbb{B} </math> <math> \mathbb{C} </math> <math> \mathbb{D} </math> <math> \mathbb{E} </math> <math> \mathbb{F} </math> <math> \mathbb{G} </math> <math> \mathbb{H} </math> <math> \mathbb{I} </math> <math> \mathbb{J} </math> <math> \mathbb{K} </math> <math> \mathbb{L} </math> <math> \mathbb{M} </math>
N O P Q R S T U V W X Y Z
<math> \mathbb{N} </math> <math> \mathbb{O} </math> <math> \mathbb{P} </math> <math> \mathbb{Q} </math> <math> \mathbb{R} </math> <math> \mathbb{S} </math> <math> \mathbb{T} </math> <math> \mathbb{U} </math> <math> \mathbb{V} </math> <math> \mathbb{W} </math> <math> \mathbb{X} </math> <math> \mathbb{Y} </math> <math> \mathbb{Z} </math>
Griechische Kleinbuchstaben  
\alpha \beta \gamma \delta \epsilon \varepsilon \zeta
<math>\alpha</math> <math>\beta</math> <math>\gamma</math> <math>\delta</math> <math>\epsilon</math> <math>\varepsilon</math> <math>\zeta</math>
\eta \theta \vartheta \iota \kappa \lambda \mu
<math>\eta</math> <math>\theta</math> <math>\vartheta</math> <math>\iota</math> <math>\kappa</math> <math>\lambda</math> <math>\mu</math>
\nu \xi \pi \varpi \rho \varrho \varsigma
<math>\nu</math> <math>\xi</math> <math>\pi</math> <math>\varpi</math> <math>\rho</math> <math>\varrho</math> <math>\varsigma</math>
\sigma \tau \upsilon \phi \varphi \chi \psi \omega
<math>\sigma</math> <math>\tau</math> <math>\upsilon</math> <math>\phi</math> <math>\varphi</math> <math>\chi</math> <math>\psi</math> <math>\omega</math>
Griechische Großbuchstaben  
\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta
<math>\Alpha</math> <math>\Beta</math> <math>\Gamma</math> <math>\Delta</math> <math>\Epsilon</math> <math>\Zeta</math> <math>\Eta</math> <math>\Theta</math>
\Iota \Kappa \Lambda \Mu \Nu \Xi \Pi \Rho
<math>\Iota</math> <math>\Kappa</math> <math>\Lambda</math> <math>\Mu</math> <math>\Nu</math> <math>\Xi</math> <math>\Pi</math> <math>\Rho</math>
\Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega  
<math>\Sigma</math> <math>\Tau</math> <math>\Upsilon</math> <math>\Phi</math> <math>\Chi</math> <math>\Psi</math> <math>\Omega</math>  
Imaginärteil, Realteil \Im \Re
besser: \operatorname{Im} \operatorname{Re}
<math>\Im \Re</math>
<math>\operatorname{Im} \operatorname{Re}</math>
Hebräisch \daleth \gimel \beth \aleph <math>\daleth \gimel \beth \aleph</math>
Funktionsnamen \sin x
falls nicht vorhanden: \operatorname{arsinh}
<math>\sin x</math>
<math>\operatorname{arsinh}</math>
Text, Worte und Wortteile Schrift, die nicht für Variablen u. ä. steht, immer mit \mathrm{...} (veraltet: {\rm ...}) setzen, dann stimmt auch die Größe: U_\mathrm{Gesamt}

\text {...} funktioniert in Wikitech leider nicht.

<math>U_\mathrm{Gesamt},~x_\mathrm{max},~\cos x=1~\mathrm{wenn}~x=0 </math>

Sonderzeichen in TeX

Darzustellen Syntax So sieht’s gerendert aus
Ableitungen \nabla \partial \mathrm{d} x <math>\nabla \partial \mathrm{d} x</math>
Wurzeln \sqrt{2} \approx 1{,}4 <math>\sqrt{2} \approx 1{,}4</math>
\sqrt[n]{x} <math>\sqrt[n]{x}</math>
Winkelgrad 360^\circ <math>360^\circ</math>
Winkelgrad im Nenner (unschön) \frac{\pi}{180^\circ} = 1 <math>\frac{\pi}{180^\circ} = 1</math>
Winkelgrad im Nenner (schön) \frac{\pi}{\displaystyle 180^\circ} = 1 <math>\frac{\pi}{\displaystyle 180^\circ} = 1</math>
Grad Celsius 100\,^{\circ}\mathrm{C} <math>100\,^{\circ}\mathrm{C}</math>
Durchmesserzeichen oder leere Menge \varnothing <math>\varnothing</math>
Sonstige Zeichen (Auswahl) \angle \backslash \bot \Box \clubsuit \Diamond \diamondsuit \ell \empty \emptyset \infty \exists \flat

\forall \hbar \heartsuit \imath \mho \natural \neg \prime \# \sharp \spadesuit \top \triangle \wp

<math>\angle \backslash \bot \Box \clubsuit \Diamond \diamondsuit \ell \empty \emptyset \infty \exists \flat</math>

<math>\forall \hbar \heartsuit \imath \mho \natural \neg \prime \# \sharp \spadesuit \top \triangle \wp </math>

Hinweis

Zahl mit Komma (richtig) 3{,}14 <math>3{,}14\,</math>
Zahl mit Komma (falsch) 3,14 <math>3,14\,</math>

Mathematische Symbole

Binäre Operatoren und Vergleiche

Hinweis: Bitte die unten angegebenen Möglichkeiten \mathcal{Kleinbuchstabe oder Ziffer} nicht benutzen.

Binäre Operatoren
Syntax Gerendert
\mathcal{q} (\amalg) <math>\mathcal{q}</math>
\setminus <math>\setminus</math>
\pm <math>\pm</math>
\mp <math>\mp</math>
\sqcap und \sqcup
(\mathcal{t} und \mathcal{u})
<math>\sqcap \; \sqcup</math>
\star <math>\star</math>
\bullet <math>\bullet</math>
\cap <math>\cap</math>
\cdot <math>\cdot</math>
\circ <math>\circ</math>
\cup <math>\cup</math>
\dagger <math>\dagger</math>
\ddagger (\mathcal{z}) <math>\ddagger</math>
\times \div <math>\times \div</math>
\triangle \mathcal 5 <math>\triangle \mathcal 5</math>
\oplus \otimes <math>\oplus\ \otimes</math>
\triangleright \triangleleft <math>\triangleright \triangleleft</math>
\bowtie <math>\bowtie</math>
\vee oder \lor <math>\vee</math>
\wedge oder \land <math>\wedge</math>
\wr <math>\wr</math>
Binäre Operatoren
Syntax Gerendert
\approx <math>\approx</math>
\propto <math>\propto</math>
\mid <math>\mid</math>
\cong <math>\cong</math>
\models <math>\models</math>
\equiv <math>\equiv</math>
\frown <math>\frown</math>
\| </math>
\in \ni <math>\in \ni</math>
\perp <math>\perp</math>
\le oder \leq <math>\le</math>
\ge oder \geq <math>\ge</math>
\sim <math>\sim</math>
\simeq <math>\simeq</math>
\smile <math>\smile</math>
\sqsubseteq und \sqsupseteq
(\mathcal{vw})
<math>\sqsubseteq \; \sqsupseteq</math>
\subset <math>\subset</math>
\subseteq <math>\subseteq</math>
\supset <math>\supset</math>
\supseteq <math>\supseteq</math>
\vdash <math>\vdash</math>
\mathcal{a} (\dashv) <math>\mathcal{a}</math>
Binäre Operatoren
Syntax Gerendert
\ll <math>\ll</math>
\gg <math>\gg</math>
< <math><</math>
> <math>></math>
\not< <math>\not<</math>
\not> <math>\not></math>
\not=, \neq, \ne <math>\not=</math>
\not\approx <math>\not\approx</math>
\not\cong <math>\not\cong</math>
\not\equiv <math>\not\equiv</math>
\not\ge <math>\not\ge</math>
\not\in, \notin <math>\not\in</math>
\not\le <math>\not\le</math>
\not\simeq <math>\not\simeq</math>
\not\sqsubseteq <math>\not\sqsubseteq</math>
\not\sqsupseteq <math>\not\sqsupseteq</math>
\not\subset <math>\not\subset</math>
\not\subseteq <math>\not\subseteq</math>
\not\supset <math>\not\supset</math>
\not\supseteq <math>\not\supseteq</math>
\neg <math>\neg</math>

Hoch- und Tiefstellungen

Darzustellen Syntax So sieht’s gerendert aus
hochgestellt a^2 <math>a^2</math>
tiefgestellt a_2 <math> a_2 </math>
Gruppierung a^{2+2} <math>a^{2+2}</math>
a_{i, j} <math>a_{i, j}</math>
Kombination hoch & tief sowohl x_2^3 als auch x^3_2 ergibt <math>x_2^3</math>
Folge von hoch & tief {x_2}^3
{x^3}_2
<math>{x_2}^3</math>
<math>{x^3}_2</math>
vorangestellte Hoch- und Tiefstellung {}^4_2\mathrm{He} <math>{}^4_2\mathrm{He}</math>
Ableitung x' oder x^\prime
falsch: x\prime
<math>x'</math>
falsch: <math>x\prime</math>
Summe \sum_{k=1}^N k^2 <math>\sum_{k=1}^N k^2</math>
mehrzeilige Summationsgrenzen \sum_{k\in M,\atop k>5} k <math>\sum_{k\in M,\atop k>5} k</math>
Produkt \prod_{i=1}^N x_i <math>\prod_{i=1}^N x_i</math>
Vereinigung \bigcup_{\lambda\in\Lambda} A_\lambda <math>\bigcup_{\lambda\in\Lambda} A_\lambda </math>
Durchschnitt \bigcap_{\lambda\in\Lambda} A_\lambda <math>\bigcap_{\lambda\in\Lambda} A_\lambda </math>
Limes \lim_{n \to \infty}x_n <math>\lim_{n \to \infty}x_n</math>
Exponentialfunktion \mathrm{e}^{- \alpha \cdot x^2} <math>\mathrm{e}^{- \alpha \cdot x^2}</math>
Integral (platzsparend) \int_{-N}^{N} \mathrm{e}^x\, \mathrm{d}x <math>\int_{-N}^{N} \mathrm{e}^x\, \mathrm{d}x</math>
Integral \int\limits_{-N}^{N} \mathrm{e}^x\, \mathrm{d}x <math>\int\limits_{-N}^{N} \mathrm{e}^x\, \mathrm{d}x</math>
Mehrfachintegral \iint_a^b \iiint_a^b <math>\iint_a^b \iiint_a^b</math>
Ringintegral \oint_c <math>\oint_c</math>
A adjungiert A^\dagger <math>A^\dagger</math>

Logische Quantoren

Hinweis: Die Verwendung von Quantoren schränkt die Verständlichkeit für Laien und die Lesbarkeit stark ein. Quantoren werden außerhalb der Grundlagen der Mathematik im Regelfall nur als Kurzschreibweise beispielsweise an der Tafel, nicht jedoch in Lehrbüchern oder Fachartikeln verwendet.

Darzustellen Syntax So sieht’s gerendert aus
für alle <math>x</math> \forall x \, A(x) <math>\forall x \, A(x)</math>
es gibt ein <math>x</math> \exists x \, A(x) <math>\exists x \, A(x)</math>
Alternativ:
für alle <math>x</math> \bigwedge_{x} A(x) <math>\bigwedge_{x} A(x)</math>
es gibt ein <math>x</math> \bigvee_{x} A(x) <math>\bigvee_{x} A(x)</math>

Mathematische Akzente

Darzustellen Syntax So sieht’s gerendert aus
Vektorpfeil \vec a <math>\vec a</math>
Zeitableitung \dot a <math>\dot a</math>
Umlaute \ddot a <math>\ddot a</math>
Vektor-Zeitableitung \dot{\vec a} <math>\dot{\vec a}</math>
a quer \bar a <math>\bar a</math>
a Tilde \tilde a <math>\tilde a</math>
a Dach \hat a <math>\hat a</math>
Akzent Grave \grave a <math>\grave a</math>
Akzent Acute \acute a <math>\acute a</math>
Hatschek \check a <math>\check a</math>
Breve \breve a <math>\breve a</math>
a slash a\!\!\!/ <math>a\!\!\!/</math>

Sonstige Markierungen

Darzustellendes Symbol Syntax So sieht’s gerendert aus
Überstreichen \overline { ... } <math>\overline { ABC }</math>
Unterstreichen \underline { ... } <math>\underline { ABC }</math>
Pfeil drüber (nach rechts) \overrightarrow { ... } <math>\overrightarrow { ABC }</math>
Pfeil drüber (nach links) \overleftarrow { ... } <math>\overleftarrow { ABC }</math>
Dach drüber \widehat { ... } <math>\widehat { ABC }</math>
Klammer drüber \overbrace { ... } <math>\overbrace { ABC }</math>
Klammer drunter \underbrace { ... } <math>\underbrace { ABC }</math>

Funktionsnamen

Trigonom.
\sin <math>\sin</math>
\cos <math>\cos</math>
\tan <math>\tan</math>
\cot <math>\cot</math>
\sec <math>\sec</math>
\csc <math>\csc</math>
\arcsin <math>\arcsin</math>
\arccos <math>\arccos</math>
\arctan <math>\arctan</math>
\arccot <math>\arccot</math>
\arcsec <math>\arcsec</math>
\arccsc <math>\arccsc</math>
Hyperb.
\sinh <math>\sinh</math>
\cosh <math>\cosh</math>
\tanh <math>\tanh</math>
\coth <math>\coth</math>
Sonstige
\arg <math>\arg</math>
\deg <math>\deg</math>
\det <math>\det</math>
\dim <math>\dim</math>
\exp <math>\exp</math>
\lg <math>\lg</math>
\ln <math>\ln</math>
\log <math>\log</math>
\max <math>\max</math>
\min <math>\min</math>
\mod <math>a \mod b</math>
\bmod <math>a \bmod b</math>
\pmod <math>a \pmod b</math>
\gcd <math>\gcd</math>
\hom <math>\hom</math>
\inf <math>\inf</math>
\ker <math>\ker</math>
\lim <math>\lim</math>
\liminf <math>\liminf</math>
\limsup <math>\limsup</math>
\Pr <math>\Pr</math>
\sup <math>\sup</math>

Hinweis zu den Funktionsnamen

Standardfunktionen (richtig) \sin x + \ln y +\operatorname{sgn}\, z <math>\sin x + \ln y +\operatorname{sgn}\, z</math>
Standardfunktionen (falsch) sin x + ln y + sgn z <math>sin x + ln y + sgn z\,</math>

Brüche, Matrizen, mehrzeilige Gleichungen

Darzustellen Syntax So sieht’s gerendert aus
Brüche \frac{2}{4} oder {2 \over 4} <math>\frac{2}{4}</math>
Einfache Brüche (z. B. im Fließtext): \textstyle \frac{2}{3} <math>\textstyle\frac{2}{3}</math>
Binomialkoeffizienten {n \choose k} <math>{n \choose k}</math>
Matrizen \begin{pmatrix} x & y \\ z & v \end{pmatrix} <math>\begin{pmatrix} x & y \\ z & v \end{pmatrix}</math>
\begin{bmatrix} 0 & \cdots & 1 \\ \vdots & \ddots & \vdots \\ 2 & \cdots & 3\end{bmatrix} <math>\begin{bmatrix} 0 & \cdots & 1 \\ \vdots & \ddots & \vdots \\ 2 & \cdots & 3\end{bmatrix} </math>
\begin{Bmatrix} x & y \\ z & v \end{Bmatrix} <math>\begin{Bmatrix} x & y \\ z & v \end{Bmatrix}</math>
\begin{vmatrix} x & y \\ z & v \end{vmatrix} <math>\begin{vmatrix} x & y \\ z & v \end{vmatrix}</math>
\begin{Vmatrix} x & y \\ z & v \end{Vmatrix} <math>\begin{Vmatrix} x & y \\ z & v \end{Vmatrix}</math>
\begin{matrix} x & y \\ z & v \end{matrix} <math>\begin{matrix} x & y \\ z & v \end{matrix}</math>
Fallunterscheidungen f(n)=\begin{cases} n/2, & \mbox{wenn }n\mbox{ gerade} \\ 3n+1, & \mbox{wenn }n\mbox{ ungerade} \end{cases} <math>f(n)=\begin{cases} n/2, & \mbox{wenn }n\mbox{ gerade} \\ 3n+1, & \mbox{wenn }n\mbox{ ungerade} \end{cases} </math>
mehrzeilige Gleichungen \begin{matrix}f(n+1)&=& (n+1)^2 \\ &=& n^2 + 2n + 1\end{matrix} <math>\begin{matrix}f(n+1)&=& (n+1)^2 \\ &=& n^2 + 2n + 1\end{matrix}</math>

Klammern und Begrenzungssymbole

Runde oder eckige Klammern können im Regelfall einfach wie gewohnt eingegeben werden (f(x),a[y]: <math>f(x),a[y]\,</math>). Geschweifte Klammern erhält man mit \{ und \}, spitze Klammern mit \langle und \rangle (nicht < und >):

richtig: 1=\langle x,y\rangle richtig: <math>1=\langle x,y\rangle\,</math>
falsch: 1=<x,y> falsch: <math>1=<x,y>\,</math>

Sollen die Klammern größere Objekte wie z. B. Brüche umschließen, sollte man das durch \left Ausdruck \right oder ähnliche im Folgenden genannte Konstrukte ankündigen:

\left( \frac{x+2}{x^3+7} \right\rangle
<math>\left( \frac{x+2}{x^3+7} \right\rangle</math>

\left und \right müssen paarweise mit den jeweiligen Klammern angegeben werden: z. B. \left( Ausdruck \right), oder \left{ Ausdruck \right}. Wenn auf einer Seite keine Klammer oder Begrenzungssymbol stehen soll, muss auch dort ein (nicht sichtbarer) Begrenzer eingegeben werden, indem dem \left bzw \right ein Punkt folgt: \left. bzw. \right.

\left. \frac{\partial V}{\partial x} \right\rbrace
<math>\left. \frac{\partial V}{\partial x} \right\rbrace </math>

(Für den Spezialfall einer Fallunterscheidung gibt es die Umgebung cases, s. o.)

In manchen Fällen führt der Gebrauch von \left bzw. \right zu zu großen oder kleinen Klammern. Für diesen Fall, wenn die Automatik versagt, gibt es darüber hinaus noch die Möglichkeit via \big, \Big, \bigg oder \Bigg explizite Abstufungen der Klammergrößen vorzunehmen. Die Benutzung erfolgt analog zu \left bzw. \right.

Liste der Begrenzungssymbole

Darzustellen Syntax So sieht’s gerendert aus
Runde Klammern (A) <math>(A)</math>
Eckige Klammern [A]
\lbrack \rbrack
<math>[A]</math>
<math>\lbrack \rbrack</math>
Geschweifte Klammern \{ A\}
\lbrace \rbrace
<math>\{ A\}</math>
<math>\lbrace \rbrace</math>
Abrundungsklammer \lfloor A \rfloor <math>\lfloor A \rfloor</math>
Aufrundungsklammer \lceil A \rceil <math>\lceil A \rceil</math>
Gewinkelte Klammern \langle A \rangle <math>\langle A \rangle</math>
Betragsstriche \left| A \right|
\vert
A \right|</math>
<math>\vert</math>
Matrix \| A \|
\Vert
A \|</math>
<math>\Vert</math>
Verwendung von \left. und \right.,
wenn man keinen Abgrenzer anzeigen will:
\left. {A \over B} \right\} \to X <math>\left. {A \over B} \right\} \to X</math>

Große Ausdrücke in Klammern

unschön: ( \frac{1}{2} ) besser: \left( \frac{1}{2} \right) oder \bigg(\frac 12\bigg)
unschön: <math>( \frac{1}{2} )</math> besser: <math>\left( \frac{1}{2} \right)</math> oder <math>\bigg(\frac 12\bigg)</math>

Abstufungsübersicht

\big( \Big( \bigg( \Bigg( ... \Bigg) \bigg) \Big) \big) <math>\big( \Big( \bigg( \Bigg( ... \Bigg) \bigg) \Big) \big)</math>

Hinweis: Die Skalierung mittels der aus den AMS-Paketen bekannten \bigl, \bigr, \Bigl, \Bigr, \biggl, \biggr, \Biggl und \Biggr funktioniert nicht.

Pfeile

Syntax Gerendert
\downarrow <math>\downarrow</math>
\Downarrow <math>\Downarrow</math>
\hookleftarrow <math>\hookleftarrow</math>
\hookrightarrow <math>\hookrightarrow</math>
\leftarrow <math>\leftarrow</math>
\Leftarrow <math>\Leftarrow</math>
\leftharpoondown <math>\leftharpoondown</math>
\leftharpoonup <math>\leftharpoonup</math>
\leftrightarrow <math>\leftrightarrow</math>
\Leftrightarrow <math>\Leftrightarrow</math>
Syntax Gerendert
\longleftarrow <math>\longleftarrow</math>
\Longleftarrow <math>\Longleftarrow</math>
\Longleftrightarrow <math>\Longleftrightarrow</math>
\longmapsto <math>\longmapsto</math>
\longrightarrow <math>\longrightarrow</math>
\Longrightarrow <math>\Longrightarrow</math>
\mapsto <math>\mapsto</math>
\nearrow <math>\nearrow</math>
\nwarrow <math>\nwarrow</math>
Syntax Gerendert
\rightarrow <math>\rightarrow</math>
\Rightarrow <math>\Rightarrow</math>
\rightharpoondown <math>\rightharpoondown</math>
\rightharpoonup <math>\rightharpoonup</math>
\searrow <math>\searrow</math>
\swarrow <math>\swarrow</math>
\uparrow <math>\uparrow</math>
\Uparrow <math>\Uparrow</math>
\updownarrow <math>\updownarrow</math>
\Updownarrow <math>\Updownarrow</math>

Auslassungspunkte

Auslassungspunkte (Ellipsen) deuten eine Auslassung zwischen zwei Ausdrücken an.

Darzustellende Ellipsen Syntax So sieht’s gerendert aus
diagonal \ddots <math>\ddots</math>
vertikal \vdots <math>\vdots</math>
(semantisch orientiert)
bei binären Operationen/Beziehungen
a+\dotsb+b <math>a+\dotsb+b</math>
horizontal, mittig \int_{A_1}\cdots\int_{A_n} <math>\int_{A_1}\cdots\int_{A_n}</math>
horizontal, unten a,\ldots,b <math>a,\ldots,b</math>

Platz zwischen Zeichen

Für die manuelle Einstellung der Abstände zwischen Zeichen stellt TeX folgende Befehle zur Verfügung:

Darzustellender Zwischenraum Syntax Länge So sieht’s gerendert aus
2 quad a \qquad b 2 quad <math>a \qquad b</math>
1 quad a \quad b 1 quad <math>a \quad b</math>
normaler Textabstand a\ b ? <math>a\ b</math>
großer Zwischenraum a\;b 5/18 quad <math>a\;b</math>
kleiner Zwischenraum a\,b 3/18 quad <math>a\,b</math>
kein Zwischenraum ab 0 quad <math>ab\,</math>
kleiner negativer Zwischenraum a\!b -3/18 quad <math>a\!b</math>

Die Länge 1 quad (auch em genannt) wird im Deutschen mit Geviert bezeichnet.

Vertikale Ausrichtung

Durch den CSS-Default

img.tex { vertical-align: middle; }

wird eine Formel wie <math>\int_{-N}^{N} \mathrm{e}^x\, \mathrm dx</math> vertikal zentriert ausgerichtet.

Farben

Gleichungen können auch Farben enthalten:

  • {\color{Blue}x^2}+{\color{Brown}2x}-{\color{OliveGreen}1}
    <math>{\color{Blue}x^2}+{\color{Brown}2x}-{\color{OliveGreen}1}</math>
  • x_{1,2}=\frac{-b\pm\sqrt{\color{Red}b^2-4ac}}{2a}
    <math>x_{1,2}=\frac{-b\pm\sqrt{\color{Red}b^2-4ac}}{2a}</math>

Beachte, dass Farben nicht der einzige Weg sind, um auf etwas hinzuweisen. Menschen mit einer Farbfehlsichtigkeit können Probleme haben, verschiedene Farben voneinander zu unterscheiden.

Was nicht geht

Hinweis: Vermutlich wird in absehbarer Zeit das System Blahtex eingeführt. Damit sollten sich auch die meisten der unten genannten Probleme erübrigen.

Binäre Operatoren

\ominus, \odot, \oslash, \ast, \bigcirc, \bigtriangledown, \bigtriangleup, \diamond, \lhd, \rhd, \unlhd, \uplus, \unrhd

Binäre Vergleiche

\asymp, \dashv, \doteq, \Join, \prec, \preceq, \succ, \succeq.

Negation

\not\asymp, \not\prec, \not\preqeq, \not\sym, \not\succ, \not\succec.

Hebräisch

Es gehen nur die ersten Buchstaben \chet, \zayin, \waw, ... geht nicht

Pfeile

\leadsto, \rightleftharpoons, \longleftrightarrow.

Semantisch orientierte Auslassungspunkte

Funktion Kann ersetzt werden durch Nachteil
\dotsc \ldots Fehlende Semantik
\dotsm \cdots
\dotsi \cdots
\dotso \cdots

Klammern und Begrenzungssymbole

Funktion Kann ersetzt werden durch Nachteil
\bigl( \bigr) \big( \big) Fehlende Semantik
\Bigl( \Bigr) \Big( \Big)
\biggl( \biggr) \big( \big)
\Biggl( \Biggr) \Bigg( \Bigg)
\lvert A\rvert \vert A \vert
\lVert A\rVert \Vert A \Vert

weitere:
\lgroup, \rgroup, \lmoustache, \rmoustache.

Sonstige

Funktion Kann ersetzt werden durch Nachteil
\begin{array}{ll} \begin{matrix} Wird zentriert ausgerichtet
\overset{x}{y} \begin{matrix} {}_{x} \\ {y} \\ \, \end{matrix} Fehlende Semantik
\unit{nF} {\rm nF}, \mbox{Text}, \mathrm{Text}
\text{Text} {\rm Text}, \mbox{Text}, \mathrm{Text}
{f\"ur} {f{\ddot u}r}
\sum_{\substack{0<i<m\\0<j<n}}P(i,j) oder
\sum_{\begin{subarray}{l}0<i<m\\ 0<j<n\end{subarray}}P(i,j)
\sum_{0\le i\le m\atop 0<j<n}P(i,j)

nicht so flexibel

\permil {}^{0\!}\!/\!_{00} nicht hübsch, deswegen besser einfach das Symbol ‰ verwenden
\sideset{_1^2}{_3^4}X {}_1^2\!X_3^4 nicht so hübsch

Fehler im Formelsubsystem von WikiWaldhof

Ein Fehler ist die Ausrichtung der Beschriftung bei Unterklammerung. Die Beschriftung erfolgt seitlich neben der Klammer statt zentriert unterhalb der Klammer.

<math>\varphi(\vec r)\approx \underbrace{\frac{Q_{\rm ges}}{4\cdot\pi\cdot\varepsilon\cdot\Vert\vec r\Vert}}_{\rm Monopol-}+\underbrace{\frac{\vec r\cdot P_1}{4\cdot\pi\cdot\varepsilon\cdot\Vert\vec r\Vert^3}}_{\rm Dipolannaeherung}</math>

Abhilfe schafft das Kommando \limits_{text}, das hier leider nicht korrekt dargestellt wird.

Vermeiden kann man dieses Verhalten außerdem, in dem man die Umgebung \begin{matrix}...\end{matrix} anwendet, innerhalb derer einzelne Zeilen durch den Zeilenwechsel \\ abgetrennt und übereinander angeordnet werden:

<math>\varphi(\vec r)\approx \begin{matrix}\ \\

 \underbrace{\frac{Q_{\rm ges}}{4\cdot\pi\cdot\varepsilon\cdot\Vert\vec r\Vert}} \\
 \textrm{Monopolannaeherung}

\end{matrix}+ \begin{matrix}

 \underbrace{\frac{\vec r\cdot P_1}{4\cdot\pi\cdot\varepsilon\cdot\Vert\vec r\Vert^3}} \\
 {}^{\rm Dipolannaeherung}\\[-4.5ex]

\end{matrix} </math>

Nachteile (vgl. 1. Summand):

a) Die Beschriftung ist größer als gewünscht und
b) die Grundlinie der Formel wird verfälscht: Nicht mehr die eigentliche Formel bildet die Grundlinie, sondern die Mitte der Matrixumgebung.

Abhilfe (vgl. 2. Summand):

a) Den Text als Superskript und mit \rm schreiben, also {}^{\rm ...}.
b) Vertikale Ausrichtung durch \\[neg. Abstand] nach der letzten Matrixzeile korrigieren.

Beispiele

Quadratisches Polynom

<math>ax^2 + bx + c = 0</math>

<math>ax^2 + bx + c = 0</math>

Quadratisches Polynom (mit erzwungener PNG-Renderung)

<math>ax^2 + bx + c = 0\,</math>

<math>ax^2 + bx + c = 0\,</math>

Quadratische Gleichung

<math>x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a}</math>

<math>x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a}</math>

Große Klammern und Brüche

<math>2 = \left(\frac{\left(3-x\right) \cdot 2}{3-x} \right)</math>

<math>2 = \left(\frac{\left(3-x\right) \cdot 2}{3-x} \right)</math>
<math>S_{new} = S_{old} + \frac{\left( 5-T \right)^2} 2</math>

<math>S_{new} = S_{old} + \frac{\left( 5-T \right)^2} 2</math>

Integrale

<math>\int_a^x \int_a^s f(y)\,dy\,ds = \int_a^x f(y)(x-y)\,dy</math>

<math>\int_a^x \int_a^s f(y)\,dy\,ds = \int_a^x f(y)(x-y)\,dy</math>

Summen

<math>\sum_{m=1}^\infty\sum_{n=1}^\infty\frac{m^2\,n}{3^m\left(m\,3^n+n\,3^m\right)}</math>

<math>\sum_{m=1}^\infty\sum_{n=1}^\infty\frac{m^2\,n}
{3^m\left(m\,3^n+n\,3^m\right)}</math>

Ableitungen

<math>u + p(x)u' + q(x)u=f(x),\quad x>a</math>

<math>u'' + p(x)u' + q(x)u=f(x),\quad x>a</math>

Komplexe Zahlen

<math>|\bar{z}| = |z|, |\bar{z}^n| = |z|^n, \arg(z^n) = n \arg(z)\,</math>

<math>|\bar{z}| = |z|, |\bar{z}^n| = |z|^n, \arg(z^n) = n \arg(z)\,</math>

Limes

<math>\lim_{z\rightarrow z_0} f(z)=f(z_0)\,</math>

<math>\lim_{z\rightarrow z_0} f(z)=f(z_0)\,</math>

Integralgleichung

<math>\phi_n(\kappa) = \frac{1}{4\pi^2\kappa^2} \int_0^\infty \frac{\sin(\kappa R)}{\kappa R} \frac{\partial}{\partial R}\left[R^2\frac{\partial D_n(R)}{\partial R}\right]\,dR</math>

<math>\phi_n(\kappa) = \frac{1}{4\pi^2\kappa^2} \int_0^\infty
\frac{\sin(\kappa R)}{\kappa R} \frac{\partial}{\partial R}\left[R^2\frac{\partial
D_n(R)}{\partial R}\right]\,dR</math>

Beispiel

<math>\phi_n(\kappa) = 0.033C_n^2\kappa^{-11/3},\quad \frac{1}{L_0}\ll\kappa\ll\frac{1}{l_0}\,</math>

<math>\phi_n(\kappa) = 
0.033C_n^2\kappa^{-11/3},\quad \frac{1}{L_0}\ll\kappa\ll\frac{1}{l_0}\,</math>

Fallunterscheidungen

<math>f(x) = \begin{cases}1, & -1 \le x < 0 \\
\frac{1}{2}, & x = 0 \\ 1 - x^2, & 0 < x \le 1\end{cases}</math>

<math>f(x) = \begin{cases}1, & -1 \le x < 0 \\
\frac{1}{2}, & x = 0 \\ 1 - x^2, & 0 < x\le 1\end{cases}</math>

Vorangestellte Tiefstellung

<math>{}_pF_q(a_1,\ldots,a_p;c_1,\ldots,c_q;z) = \sum_{n=0}^\infty \frac{(a_1)_n\cdots(a_p)_n}{(c_1)_n\cdots(c_q)_n}\frac{z^n}{n!}\,</math>

 <math>{}_pF_q(a_1,\ldots,a_p;c_1,\ldots,c_q;z) = \sum_{n=0}^\infty
\frac{(a_1)_n\cdots(a_p)_n}{(c_1)_n\cdots(c_q)_n}\frac{z^n}{n!}\,</math>

Weblinks



Sie wollen hier in mehr als 20.000 Artikeln Ihre Werbung sehen? Schreiben Sie uns einfach an.