For faster navigation, this Iframe is preloading the Wikiwand page for Ajuda:Guia de edição/Fórmulas TeX.

Ajuda:Guia de edição/Fórmulas TeX

O MediaWiki usa um subconjunto da linguagem de marcação AMS-LaTeX, que é um superconjunto da linguagem de marcação de documentos LaTeX (que por sua vez é um superconjunto da do sistema de tipografia TeX), para representar fórmulas matemáticas. As fórmulas são geradas sob a forma de imagens PNG ou MathJax, dependendo das opções do utilizador.

As marcas TeX devem ser colocadas entre as marcas: <math> ... </math>.

Caracteres especiais

Grupo Sintaxe Como é exibido
funções padrão (correto) \cos x + \ln y +\operatorname{sgn}\, z
funções padrão (errado) cos x + ln y + sgn z
Aritmética modular s_k \equiv 0 \pmod{m}
Função piso \lfloor x \rfloor
Função teto \lceil x \rceil
Derivação \nabla \partial dx \dot x \ddot y
Conjuntos \forall x\not\in\varnothing\subseteq A\cap B\cup \exists \{x,y\} \setminus

\times C \nsubseteq \sqsubseteq \nsupseteq \preceq \succeq

Lógica p \land \bar{q} \to p\lor \lnot q
Raízes \sqrt{2}\approx 1{,}4
\sqrt[n]{x}
Separador decimal (correto) 1/8 = 0{,}125
Separador decimal (errado) 1/8 = 0,125
Operadores relacionais \sim \simeq \cong \le \ge \equiv \not\equiv \approx \ne \propto
Geometria \Diamond \; \Box \; \triangle \; \angle \; \perp \; \mid \; \nmid \; \ \; 45^\circ
Setas

\leftarrow \rightarrow \leftrightarrow
\longleftarrow \longrightarrow
\mapsto \longmapsto
\nearrow \searrow \swarrow \nwarrow
\uparrow \downarrow \updownarrow
\rightleftharpoons \leftrightharpoons

 
 
 
 
 
 

\Leftarrow \Rightarrow \Leftrightarrow
\Longleftarrow \Longrightarrow \Longleftrightarrow
\Uparrow \Downarrow \Updownarrow

 
 
 

Especial \oplus \otimes \pm \mp \hbar \dagger \ddagger \star \circ \cdot \times \div

\bullet \infty

Subscritos, superescritos

Grupo Sintaxe Como é exibido
Superscrito a^2
Superscrito a^2\quad
Subescrito a_2
Agrupando a^{2+2}
a_{i,j}
Combinando super e subescrito x_2^3
Derivadas (certo) x'
Derivadas (errado, em HTML) x^\prime
Derivadas (errado, em PNG) x\prime
Sublinhados, sobrelinhas, vetores \hat a \ \bar b \ \vec c \ \overrightarrow{a b} \ \overleftarrow{c d} \ \widehat{d e f} \ \overline{g h i} \ \underline{j k l}
Overbraces \begin{matrix} 5050 \\ \overbrace{ 1+2+\cdots+100 } \end{matrix}
Underbraces \begin{matrix} \underbrace{ a+b+\cdots+z } \\ 26 \end{matrix}
Somatório \sum_{k=1}^{N} k^2
Somatório com duas variáveis \sum_{\overset{0<i<m}{0<j<n))P(i,j)
Productório \prod_{i=1}^{N} x_{i}
Limites \lim_{n \to \infty}x_n
Escrita embaixo de outra em geral \underset{b\in B}{\cup} A_b
Escrita em cima de outra em geral \overset{b\to B}{\cup} A_b
Integrais \int_{-N}^{N} e^x\, dx
Integrais lineares \oint_{C} x^3\, dx + 4y^2\, dy
Integrais múltiplas \iiint_V \mu(u,v,w) \,du\,dv\,dw

Frações, matrizes, chavetas

Grupo Sintaxe Como é exibido
Frações \frac{2}{4} or {2 \over 4}
Coeficientes binomiais {n \choose k}
Matrizes
  \begin{pmatrix} 
  x & y \\ 
  z & v \\
  \end{pmatrix}
  
  \begin{bmatrix} 
  0 & \cdots & 0 \\ 
  \vdots & \ddots & \vdots \\ 
  0 & \cdots & 0 \\
  \end{bmatrix}
  
  \begin{Bmatrix} 
  x & y \\ 
  z & v \\
  \end{Bmatrix}
  \begin{vmatrix} 
  x & y \\ 
  z & v \\
  \end{vmatrix}
  \begin{Vmatrix}
  x & y \\ 
  z & v \\
  \end{Vmatrix}
  \begin{matrix} 
  x & y \\ 
  z & v \\
  \end{matrix}
   \begin{matrix}
   1 & 3 & 225^3 \\
   \sqrt{1} & 0 & 5 \\
   a & b & \frac{x}{x^2-1} \\
   \end{matrix}
Funções por ramos f(n) = \left \{ \begin{matrix} n/2, & \mbox{se }n\mbox{ é par} \\ 3n+1, & \mbox{se }n\mbox{ é ímpar} \end{matrix} \right.
Equações em mais de uma linha \begin{matrix}f(n+1)&=& (n+1)^2 \\ \ &

=& n^2 + 2n + 1\end{matrix}

Derivadas, Diferenciais e integrais

Grupo Sintaxe Como é exibido
Derivadas \prime, \backprime, f^\prime, f', f", f^{(3)}, \dot y, \ddot y

Fontes

Grupo Sintaxe Como é exibido
Alfabeto grego minúsculo \alpha \beta \gamma \delta \epsilon \varepsilon \zeta \eta \theta \vartheta \iota \kappa \lambda \mu \nu \xi \omicron \pi \varpi \rho \varrho \sigma \varsigma \tau \upsilon \phi \varphi \chi \psi \omega

Alfabeto grego maiúsculo \Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta \Iota \Kappa \Lambda \Mu \Nu \Xi \Omicron \Pi \Rho \Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega

Negrito forte x\in\mathbb{N}\subset\mathbb{Z}\subset\mathbb{R}\sub\mathbb{C}
Negrito (vectores) \mathbf{x} \cdot \mathbf{y} = 0
Negrito (grego) \boldsymbol{\alpha}+\boldsymbol{\beta}+\boldsymbol{\gamma}
Fonte Fraktur \mathfrak{a} \mathfrak{B}
Script \mathcal{ABC}
Hebraico \aleph \beth \gimel \daleth
letras não-inclinadas \mbox{abc}

Parênteses

Grupo Sintaxe Como fica parecendo
Erros ( \frac{1}{2} )
Melhor assim \left ( \frac{1}{2} \right )
Assim também \left ( \dfrac{1}{2} \right )
Ou assim, com vários tamanhos à sua escolha \big( \Big( \bigg( \Bigg(
Também vale para os colchetes e chaves \big\{ \Big\{ \bigg\{ \Bigg\{ \big] \Big] \bigg] \Bigg]

Você pode usar diversos delimitadores em conjunto com \left e \right:

Grupo Sintaxe Como é exibido
Parênteses \left ( A \right )
Colchetes \left [ A \right ]
Chaves \left \{ A \right \}
boca de jacaré \left \langle A \right \rangle
Barras e barras duplas A \right | \text{e}[nota 1] \left \| B \right \|
Os delimitadores podem ser misturados, contanto que \left e \right estejam equilibrados.

\left [ 0,1 \right )
\left \langle \psi \right |


Use \left. e \right. se você deseja esconder um delimitador: \left . \frac{A}{B} \right \} \to X
  1. A sintaxe TeX considera a letra "e" como o número de Euler, portanto para se usar a quinta letra do alfabeto "e" é necessário usar o comando \text{e}

Espaços

Perceba que o TeX lida com a maioria dos espaços de forma automática, mas algumas vezes você pode querer controlar manualmente os espaços.

Grupo Sintaxe Como é exibido
espaço duplo de um quadrado a \qquad b
espaço simples de um quadrado a \quad b
espaço de texto a\ b
espaço largo a\;b
espaço médio a\>b [não suportado]
espaço pequeno a\,b
evitar espaço ab
espaço "negativo" a\!b

Alinhamento

Se você precisar desesperadamente inserir uma equação como

  no fluxo normal de texto, você pode usar um alinhamento vertical com a marcação HTML <div>:

  • <div style="vertical-align:-100%;display:inline;"><math>...</math></div>

Alterando as cores do texto matemático

As cores de uma fórmula matemática podem ser alteradas usando o comando color, exemplos:

  • {\color{Blue}x^2}+{\color{YellowOrange}2x}-{\color{OliveGreen}1}
  • x_{1,2}=\frac{-b\pm\sqrt{\color{Red}b^2-4ac)){2a}
Cores pré-definidas

Ver também

Ligações externas

{{bottomLinkPreText}} {{bottomLinkText}}
Ajuda:Guia de edição/Fórmulas TeX
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?