Testwiki:Formulas TeX

De testwiki
Saltar al navigation Saltar al recerca

Le software usate per Wikipedia, MediaWiki, usa un linguage de marcation de typo TeX pro designar formulas mathematic. Le systema genera imagines de formato PNG o marcation HTML simplice, dependente super le preferentias del usator e super le complexitate del expression. In le futuro, quando navigatores del web deveni plus intelligente, il essera possibile generar HTML avantiate o mesmo MathML in multe casos.

Le marcation de mathematica va inter le etiquettas <math> ... </math>. Le separationes inter le lineas inter iste etiquettas non se monstrara in le resultato final; de facto il es un bon idea render le codice plus legibile per introducer un nove linea p.ex. post cata termino o rango de un matrice.

Non usa iste function como parte de un linea de texto regular, pro evitar que le formulas non se alinea ben e que le typo de litteras sia troppo grande.

Concernente le color de fundo, nota que iste pagina es un pagina special e pro isto ha un fundo jalne. Paginas normal in Wikipedia es blanc, dunque le quadros blanc non essera visibile in uso normal.

Characteres special

Function Syntaxe Como se monstra
functiones commun (bon) \sin x + \ln y +\operatorname{sgn} z sinx+lny+sgnz
functiones commun (mal) sin x + ln y + sgn z sinx+lny+sgnz
Derivativos \nabla \partial dx dx
Collectiones \forall x\not\in\empty\subseteq A\cap B\cup \exists \{x,y\} \times C x∉AB{x,y}×C
Logica p\wedge \bar{q} \rightarrow p\vee \bar{q} \Rightarrow \Leftrightarrow pq¯pq¯
Radical \sqrt{2}\approx 1.4 21.4
\sqrt[n]{x} xn
Relationes \sim \simeq \cong \le \ge \equiv \approx \ne        
Geometria \angle \perp \|
Special \oplus \otimes \pm \mp \hbar \dagger \ddagger \star \circ \cdot \bullet \infty ± 

Subscriptos, superscriptos

Function Syntaxe Como se monstra
Superscripto a^2 a2
Subscripto a_2 a2
Gruppamento a^{2+2} a2+2
a_{i,j} ai,j
Combination sub & super x_2^3 x23
Derivativo (bon) x' x
Derivativo (mal in HTML) x^\prime x
Derivativo (mal in PNG) x\prime x
Summa \sum_{k=1}^N k^2 k=1Nk2
Producto \prod_{i=1}^N x_i i=1Nxi
Limite \lim_{n \to \infty}x_n limnxn
Integral \int_{-N}^{N} e^x\, dx NNexdx
Integral de linea \oint_{C} x^3\, dx + 4y^2\, dy Cx3dx+4y2dy

Fractiones, matrices, multilineas

Function Syntaxe Como se monstra
Fractiones \frac{2}{4} or {2 \over 4} 24
Coefficientes binomial {n \choose k} (nk)
Matrices \begin{pmatrix} x & y \\ z & v \end{pmatrix} (xyzv)
\begin{bmatrix} 0 & \cdots & 0 \\ \vdots &

\ddots & \vdots \\ 0 & \cdots &

0\end{bmatrix}
[0000]
\begin{Bmatrix} x & y \\ z & v \end{Bmatrix} {xyzv}
\begin{vmatrix} x & y \\ z & v \end{vmatrix} |xyzv|
\begin{Vmatrix} x & y \\ z & v \end{Vmatrix} xyzv
\begin{matrix} x & y \\ z & v \end{matrix} xyzv
Distinctiones de caso f(n)=\left\{\begin{matrix} n/2, & \mbox{if }n\mbox{ is

even} \\ 3n+1, & \mbox{if }n\mbox{ is odd}

\end{matrix}\right.
f(n)={n/2,if n is even3n+1,if n is odd
Equations multilinear \begin{matrix}f(n+1)&=& (n+1)^2 \\ \ & =& n^2 + 2n + 1\end{matrix} f(n+1)=(n+1)2 =n2+2n+1

Typos de littera

Function Syntaxe Como se monstra
Litteras grec \alpha \beta \gamma \Gamma \phi \Phi \Psi\ \tau \Omega α β γ Γ ϕ Φ Ψ τ Ω
Blackboard bold x\in\mathbb{R}\sub\mathbb{C} x
grasse (vectores) \mathbf{x}\cdot\mathbf{y} = 0 𝐱𝐲=0
grasse (grec) \boldsymbol{\alpha}+\boldsymbol{\beta}+\boldsymbol{\gamma} α+β+γ
Typo de litteras Fraktur \mathfrak{a} \mathfrak{B} 𝔞𝔅
Scripto \mathcal{ABC} 𝒜𝒞
Hebree \aleph \beth \gimel \daleth    
characteres non cursive \mbox{abc} abc

Parenthesisation de grande expressiones

Function Syntaxe Como se monstra
Non bon ( \frac{1}{2} ) (12)
Melior \left( \frac{1}{2} \right) (12)

Tu pote usar varie delimitatores con \left e \right:

Function Syntaxe Como se monstra
Parentheses \left( A \right) (A)
Parentheses recte \left[ A \right] [A]
Braciales \left\{ A \right\} {A}
Parentheses angular \left\langle A \right\rangle A
Barras \left| A \right| |A|
Usa \left. e \right. si tu non vole que un delimitator appare: \left. {A \over B} \right\} \to X AB}X

Spatiamento

Nota que TeX face le major parte del spatiamento automaticamente, ma es possibile que tu vole a vices controlo manual.

Function Syntaxe Como se monstra
spatio quadruple duple a \qquad b ab
spatio quadruple a \quad b ab
spatio de texto a\ b a b
spatio grande a\;b ab
spatio medie a\>b [non appoiate]
spatio parve a\,b ab
nulle spatio ab ab
spatio negative a\!b ab

Ligamines externe

Vide etiam