Ajuda:Marcação TeX: diferenças entre revisões

[edição não verificada][edição não verificada]
Conteúdo apagado Conteúdo adicionado
atualizações conforme meta:Help:Displaying a formula; mudando formatação da tabela: 1ª col. --> cabeçalho; remov. modo incorreto das "funções padrões"
Linha 109:
== Funções, símbolos, caracteres especiais ==
 
{| class="wikitable"
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse;"
! colspan="2" |<h3>Acentos/sinais fonéticos</h3>
|-
|<code>\acute{a} \grave{a} \hat{a} \tilde{a} \breve{a}</code>
! Recurso
|<math>\acute{a} \grave{a} \hat{a} \tilde{a} \breve{a}\,\!</math>
! Sintaxe
! Como fica renderizado
|-
|<code>\check{a} \bar{a} \ddot{a} \dot{a}</code>
| Acentos/sinais fonéticos
| <premath>\acutecheck{a} \quadbar{a} \graveddot{a} \quad \brevedot{a}\,\!</math>
\check{a} \quad \tilde{a} \quad \hat{a}</pre>
| <math>\acute{a} \quad \grave{a} \quad \breve{a}</math><br/>
<math>\check{a} \quad \tilde{a} \quad \hat{a}</math>
|-
! colspan="2" |
| Funções padrões (modo correto)
 
| <pre>\sin x + \ln y +\operatorname{sgn} z
<h3>Funções padrões</h3>
\sin a \ \cos b \ \tan c
\cot d \ \sec e \ \csc f
\sinh g \ \cosh h \ \tanh i \ \coth j
\arcsin k \ \arccos l \ \arctan m
\lim n \ \limsup o \ \liminf p
\min q \ \max r \ \inf s \ \sup t
\exp u \ \lg v \ \log w
\ker x \ \deg x \gcd x \Pr x
\det x \hom x \ \arg x \dim x</pre>
| <math>\sin x + \ln y +\operatorname{sgn} z</math><br/>
<math>\sin a \ \cos b \ \tan c</math><br/>
<math>\cot d \ \sec e \ \csc f</math><br/>
<math>\sinh g \ \cosh h \ \tanh i \ \coth j</math><br/>
<math>\arcsin k \ \arccos l \ \arctan m</math><br/>
<math>\lim n \ \limsup o \ \liminf p</math><br/>
<math>\min q \ \max r \ \inf s \ \sup t</math><br/>
<math>\exp u \ \lg v \ \log w</math><br/>
<math>\ker x \ \deg x \gcd x \Pr x</math><br/>
<math>\det x \hom x \ \arg x \dim x</math>
|-
|<code>\sin a \cos b \tan c</code>
| Funções padrões (modo incorreto)
| <premath>\sin x + lna y\cos +b sgn\tan zc\,\!</premath>
| <math>sin x + ln y + sgn z\,\!</math>
|-
|<code>\sec d \csc e \cot f</code>
| Aritmética modular
|<math>\sec d \csc e \cot f\,\!</math>
| <pre>s_k \equiv 0 \pmod{m}
a \bmod b</pre>
| <math>s_k \equiv 0 \pmod{m}</math><br/>
<math>a \bmod b\,\!</math>
|-
|<code>\arcsin h \arccos i \arctan j</code>
| Derivadas
| <premath>\nablaarcsin \;h \partialarccos xi \; dxarctan j\; ,\dot x \; \ddot y!</premath>
| <math>\nabla \; \partial x \; dx \; \dot x \; \ddot y</math>
|-
|<code>\sinh k \cosh l \tanh m \coth n</code>
| rowspan="2" | Conjuntos<br/>
|<math>\sinh k \cosh l \tanh m \coth n\,\!</math>
( Símbolos quadrados podem não funcionar em alguns wikis)
| <pre>\forall \; \exists \; \empty \; \emptyset \; \varnothing
\in \ni \not\in \notin \subset \subseteq
\supset \supseteq \cap \bigcap \cup \bigcup \biguplus</pre>
| <math>\forall \; \exists \; \empty \; \emptyset \; \varnothing</math><br/>
<math>\in \ni \not\in \notin \subset \subseteq</math><br/>
<math>\supset \supseteq \cap \bigcap \cup \bigcup \biguplus</math>
|-
|<code>\operatorname{sh}o \operatorname{ch}p \operatorname{th}q</code>
| <pre>\sqsubset \sqsubseteq \sqsupset \sqsupseteq
|<math>\operatorname{sh}o \operatorname{ch}p \operatorname{th}q\,\!</math>
\sqcap \sqcup \bigsqcup</pre>
| <math>\sqsubset \sqsubseteq \sqsupset \sqsupseteq</math><br/>
<math>\sqcap \sqcup \bigsqcup</math>
|-
|<code>\operatorname{argsh}r \operatorname{argch}s \operatorname{argth}t</code>
| Lógica
|<math>\operatorname{argsh}r \operatorname{argch}s \operatorname{argth}t\,\!</math>
| <pre>p \land \wedge \; \bigwedge \; \bar{q} \to p
\lor \; \vee \; \bigvee \; \lnot \; \neg q
\setminus \; \smallsetminus</pre>
| <math>p \land \wedge \; \bigwedge \; \bar{q} \to p</math><br/>
<math>\lor \; \vee \; \bigvee \; \lnot \; \neg q</math><br/>
<math>\setminus \; \smallsetminus</math>
|-
|<code>\lim u \limsup v \liminf w \min x \max y</code>
| rowspan="2" | Raizes
|<math>\lim u \limsup v \liminf w \min x \max y\,\!</math>
| <pre>\sqrt{2}\approx 1.4</pre>
| <math>\sqrt{2}\approx 1.4</math>
|-
|<code>\inf z \sup a \exp b \ln c \lg d \log e \log_{10} f \ker g</code>
| <pre>\sqrt[n]{x}</pre>
| <math>\sqrt[n]inf z \sup a \exp b \ln c \lg d \log e \log_{x10} f \ker g\,\!</math>
|-
|<code>\deg h \gcd i \Pr j \det k \hom l \arg m \dim n</code>
| Relações
| <premath>\simdeg h \;gcd i \approxPr j \;det k \simeqhom l \;arg m \congdim n\,\!</math>
\le \; < \; \ll \; \gg \; \ge >
\equiv \; \not\equiv \; \ne \; \propto
\pm \; \mp</pre>
| <math>\sim \; \approx \; \simeq \; \cong</math><br/>
<math>\le \; < \; \ll \; \gg \; \ge \; ></math><br/>
<math>\equiv \; \not\equiv \; \ne \; \propto</math><br/>
<math>\pm \; \mp</math>
|-
! colspan="2" |
| Geométricos
 
| <pre>\Diamond \; \Box \; \triangle \; \angle \; \perp
<h3>Aritmética modular</h3>
\; \mid \; \nmid \; <nowiki>\|</nowiki> \; 45^\circ</pre>
| <math>\Diamond \; \Box \; \triangle \; \angle \; \perp
\; \mid \; \nmid \; \| \; 45^\circ</math>
|-
|<code>s_k \equiv 0 \pmod{m} \; a \bmod b</code>
| rowspan="3" | Setas<br/>
|<math>s_k \equiv 0 \pmod{m} \; a \bmod b\,\!</math>
(Setas longas podem não funcionar em alguns wikis)
| <pre>\leftarrow \; \gets \; \rightarrow \; \to
\leftrightarrow \; \longleftarrow \; \longrightarrow
\mapsto \; \longmapsto
\hookrightarrow \; \hookleftarrow
\nearrow \; \searrow \; \swarrow \; \nwarrow
\uparrow \; \downarrow \; \updownarrow</pre>
| <math>\leftarrow \; \gets \; \rightarrow \; \to </math><br/>
<math>\leftrightarrow \; \longleftarrow \; \longrightarrow</math><br/>
<math>\mapsto \; \longmapsto</math><br/>
<math>\hookrightarrow \; \hookleftarrow</math><br/>
<math>\nearrow \; \searrow \; \swarrow \; \nwarrow</math><br/>
<math>\uparrow \; \downarrow \; \updownarrow</math>
|-
! colspan="2" | <h3>Derivadas</h3>
| <pre>\rightharpoonup \; \rightharpoondown
\; \leftharpoonup \; \leftharpoondown
\; \upharpoonleft \; \upharpoonright
\; \downharpoonleft \; \downharpoonright</pre>
| <math>\rightharpoonup \; \rightharpoondown
\; \leftharpoonup \; \leftharpoondown
\; \upharpoonleft \; \upharpoonright
\; \downharpoonleft \; \downharpoonright</math>
|-
|<code>\nabla \, \partial x \, dx \, \dot x \, \ddot y\, dy/dx\, \frac{dy}{dx}\, \frac{\partial^2 y}{\partial x_1\,\partial x_2}</code>
| <pre>\Leftarrow \; \Rightarrow \; \Leftrightarrow
|<math>\nabla \, \partial x \, dx \, \dot x \, \ddot y\, dy/dx\, \frac{dy}{dx}\, \frac{\partial^2 y}{\partial x_1\,\partial x_2}</math>
\Longleftarrow \; \Longrightarrow
\Longleftrightarrow (or \iff)
\Uparrow \; \Downarrow \; \Updownarrow</pre>
| <math>\Leftarrow \; \Rightarrow \; \Leftrightarrow</math><br/>
<math>\Longleftarrow \; \Longrightarrow</math><br/>
<math>\Longleftrightarrow (or \iff)</math><br/>
<math>\Uparrow \; \Downarrow \; \Updownarrow</math>
|-
! colspan="2" |
|rowspan="5"| Especiais
 
| <pre>\eth \; \S \; \P \; \% \; \dagger \; \ddagger
<h3>Conjuntos</h3>
\star \; * \; \ldots \smile \frown \wr</pre>
| <math>\eth \; \S \; \P \; \% \; \dagger \; \ddagger</math><br/>
<math>\star \; * \; \ldots \; \smile \frown \wr</math>
|-
|<code>\forall \exists \empty \emptyset \varnothing</code>
| <pre>\oplus \bigoplus \otimes \bigotimes
|<math>\forall \exists \empty \emptyset \varnothing\,\!</math>
\times \cdot \circ \bullet \bigodot</pre>
| <math>\oplus \bigoplus \otimes \bigotimes</math><br/>
<math>\times \cdot \circ \bullet \bigodot</math>
|-
|<code>\in \ni \not \in \notin \subset \subseteq \supset \supseteq</code>
| <pre>\triangleleft \triangleright \infty \bot \top
|<math>\in \ni \not \in \notin \subset \subseteq \supset \supseteq\,\!</math>
\vdash \vDash \Vdash \models \lVert \rVert</pre>
| <math>\triangleleft \triangleright \infty \bot \top</math><br/>
<math>\vdash \vDash \Vdash \models \lVert \rVert</math>
|-
| <precode>\imathcap \;bigcap \hbarcup \;bigcup \ellbiguplus \;setminus \mho \; \Finvsmallsetminus</code>
|<math>\Recap \;bigcap \Imcup \;bigcup \wpbiguplus \;setminus \complementsmallsetminus\,\!</premath>
| <math>\imath \; \hbar \; \ell \; \mho \; \Finv</math><br/>
<math>\Re \; \Im \; \wp \; \complement</math>
|-
|<code>\sqsubset \sqsubseteq \sqsupset \sqsupseteq \sqcap \sqcup \bigsqcup</code>
| <pre>\diamondsuit \; \heartsuit \; \clubsuit \; \spadesuit
|<math>\sqsubset \sqsubseteq \sqsupset \sqsupseteq \sqcap \sqcup \bigsqcup\,\!</math>
\Game \; \flat \; \natural \; \sharp</pre>
| <math>\diamondsuit \; \heartsuit \; \clubsuit \; \spadesuit</math><br/>
<math>\Game \; \flat \; \natural \; \sharp</math>
|-
! colspan="2" |
| \mathcal minúscula tem alguns extras
 
| <pre>\mathcal {45abcdenpqs}</pre>
<h3>Operadores</h3>
|-
|<code>+ \oplus \bigoplus \pm \mp - </code>
|<math>+ \oplus \bigoplus \pm \mp - \,\!</math>
|-
|<code>\times \otimes \bigotimes \cdot \circ \bullet \bigodot</code>
|<math>\times \otimes \bigotimes \cdot \circ \bullet \bigodot\,\!</math>
|-
|<code>\star * / \div \frac{1}{2}</code>
|<math>\star * / \div \frac{1}{2}\,\!</math>
|-
! colspan="2" |
 
<h3>Lógica</h3>
|-
|<code>\land (or \and) \wedge \bigwedge \bar{q} \to p</code>
|<math>\land \wedge \bigwedge \bar{q} \to p\,\!</math>
|-
|<code>\lor \vee \bigvee \lnot \neg q \And</code>
|<math>\lor \vee \bigvee \lnot \neg q \And\,\!</math>
|-
! colspan="2" |
 
<h3>Raízes</h3>
|-
|<code>\sqrt{2} \sqrt[n]{x}</code>
|<math>\sqrt{2} \sqrt[n]{x}\,\!</math>
|-
! colspan="2" | <h3>Relações</h3>
|-
|<code>\sim \approx \simeq \cong \dot= \overset{\underset{\mathrm{def}}{}}{=}</code>
|<math>\sim \approx \simeq \cong \dot= \overset{\underset{\mathrm{def}}{}}{=}\,\!</math>
|-
|<code>\le < \ll \gg \ge > \equiv \not\equiv \ne \mbox{or} \neq \propto</code>
|<math>\le < \ll \gg \ge > \equiv \not\equiv \ne \mbox{or} \neq \propto\,\!</math>
|-
! colspan="2" |
 
<h3>Geométricos</h3>
|-
|<code><nowiki>\Diamond \Box \triangle \angle \perp \mid \nmid \| 45^\circ</nowiki></code>
|<math>\Diamond \, \Box \, \triangle \, \angle \perp \, \mid \; \nmid \, \| 45^\circ\,\!</math>
|-
! colspan="2" |
 
<h3>Setas</h3>
|-
|<code>\leftarrow (or \gets) \rightarrow (or \to) \nleftarrow \not\to \leftrightarrow \nleftrightarrow \longleftarrow \longrightarrow \longleftrightarrow</code>
|<math>\leftarrow \rightarrow \nleftarrow \not\to \leftrightarrow \nleftrightarrow \longleftarrow \longrightarrow \longleftrightarrow \,\!</math>
|-
|<code>\Leftarrow \Rightarrow \nLeftarrow \nRightarrow \Leftrightarrow \nLeftrightarrow \Longleftarrow \Longrightarrow \Longleftrightarrow (or \iff)</code>
|<math>\Leftarrow \Rightarrow \nLeftarrow \nRightarrow \Leftrightarrow \nLeftrightarrow \Longleftarrow \Longrightarrow \Longleftrightarrow \,\!</math>
|-
|<code>\uparrow \downarrow \updownarrow \Uparrow \Downarrow \Updownarrow \nearrow \searrow \swarrow \nwarrow</code>
|<math>\uparrow \downarrow \updownarrow \Uparrow \Downarrow \Updownarrow \nearrow \searrow \swarrow \nwarrow \,\!</math>
|-
|<code>\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons</code>
|<math>\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons \,\!</math>
|-
|<code>\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \Rrightarrow \rightarrowtail \looparrowright</code>
|<math>\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \Rrightarrow \rightarrowtail \looparrowright \,\!</math>
|-
|<code>\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \Lleftarrow \leftarrowtail \looparrowleft</code>
|<math>\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \Lleftarrow \leftarrowtail \looparrowleft \,\!</math>
|-
|<code>\mapsto \longmapsto \hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow </code>
|<math>\mapsto \longmapsto \hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow \,\!</math>
|-
! colspan="2" |
 
<h3>Especiais</h3>
|-
|<code>\eth \S \P \% \dagger \ddagger \ldots \cdots</code>
|<math>\eth \S \P \% \dagger \ddagger \ldots \cdots\,\!</math>
|-
|<code>\smile \frown \wr \triangleleft \triangleright \infty \bot \top</code>
|<math>\smile \frown \wr \triangleleft \triangleright \infty \bot \top\,\!</math>
|-
|<code>\vdash \vDash \Vdash \models \lVert \rVert \imath \hbar</code>
|<math>\vdash \vDash \Vdash \models \lVert \rVert \imath \hbar\,\!</math>
|-
|<code>\ell \mho \Finv \Re \Im \wp \complement</code>
|<math>\ell \mho \Finv \Re \Im \wp \complement\,\!</math>
|-
|<code>\diamondsuit \heartsuit \clubsuit \spadesuit \Game \flat \natural \sharp</code>
|<math>\diamondsuit \heartsuit \clubsuit \spadesuit \Game \flat \natural \sharp\,\!</math>
|-
| <code>\mathcal {45abcdenpqs}</code>
| <math>\mathcal {45abcdenpqs}</math>
|-
! colspan="2" |
 
<h3>Diversos</h3>
|-
|<code> \vartriangle \triangledown \lozenge \circledS \measuredangle \nexists \Bbbk \backprime \blacktriangle \blacktriangledown</code>
|<math> \vartriangle \triangledown \lozenge \circledS \measuredangle \nexists \Bbbk \backprime \blacktriangle \blacktriangledown</math>
|-
|<code> \blacksquare \blacklozenge \bigstar \sphericalangle \diagup \diagdown \dotplus \Cap \Cup \barwedge</code>
|<math> \blacksquare \blacklozenge \bigstar \sphericalangle \diagup \diagdown \dotplus \Cap \Cup \barwedge</math>
|-
|<code> \veebar \doublebarwedge \boxminus \boxtimes \boxdot \boxplus \divideontimes \ltimes \rtimes \leftthreetimes</code>
|<math> \veebar \doublebarwedge \boxminus \boxtimes \boxdot \boxplus \divideontimes \ltimes \rtimes \leftthreetimes</math>
|-
|<code> \rightthreetimes \curlywedge \curlyvee \circleddash \circledast \circledcirc \centerdot \intercal \leqq \leqslant</code>
|<math> \rightthreetimes \curlywedge \curlyvee \circleddash \circledast \circledcirc \centerdot \intercal \leqq \leqslant</math>
|-
|<code> \eqslantless \lessapprox \approxeq \lessdot \lll \lessgtr \lesseqgtr \lesseqqgtr \doteqdot \risingdotseq</code>
|<math> \eqslantless \lessapprox \approxeq \lessdot \lll \lessgtr \lesseqgtr \lesseqqgtr \doteqdot \risingdotseq</math>
|-
|<code> \fallingdotseq \backsim \backsimeq \subseteqq \Subset \preccurlyeq \curlyeqprec \precsim \precapprox \vartriangleleft</code>
|<math> \fallingdotseq \backsim \backsimeq \subseteqq \Subset \preccurlyeq \curlyeqprec \precsim \precapprox \vartriangleleft</math>
|-
|<code> \Vvdash \bumpeq \Bumpeq \geqq \geqslant \eqslantgtr \gtrsim \gtrapprox \eqsim \gtrdot</code>
|<math> \Vvdash \bumpeq \Bumpeq \geqq \geqslant \eqslantgtr \gtrsim \gtrapprox \eqsim \gtrdot</math>
|-
|<code> \ggg \gtrless \gtreqless \gtreqqless \eqcirc \circeq \triangleq \thicksim \thickapprox \supseteqq</code>
|<math> \ggg \gtrless \gtreqless \gtreqqless \eqcirc \circeq \triangleq \thicksim \thickapprox \supseteqq</math>
|-
|<code> \Supset \succcurlyeq \curlyeqsucc \succsim \succapprox \vartriangleright \shortmid \shortparallel \between \pitchfork</code>
|<math> \Supset \succcurlyeq \curlyeqsucc \succsim \succapprox \vartriangleright \shortmid \shortparallel \between \pitchfork</math>
|-
|<code> \varpropto \blacktriangleleft \therefore \backepsilon \blacktriangleright \because \nleqslant \nleqq \lneq \lneqq</code>
|<math> \varpropto \blacktriangleleft \therefore \backepsilon \blacktriangleright \because \nleqslant \nleqq \lneq \lneqq</math>
|-
|<code> \lvertneqq \lnsim \lnapprox \nprec \npreceq \precneqq \precnsim \precnapprox \nsim \nshortmid</code>
|<math> \lvertneqq \lnsim \lnapprox \nprec \npreceq \precneqq \precnsim \precnapprox \nsim \nshortmid</math>
|-
|<code> \nvdash \nVdash \ntriangleleft \ntrianglelefteq \nsubseteq \nsubseteqq \varsubsetneq \subsetneqq \varsubsetneqq \ngtr</code>
|<math> \nvdash \nVdash \ntriangleleft \ntrianglelefteq \nsubseteq \nsubseteqq \varsubsetneq \subsetneqq \varsubsetneqq \ngtr</math>
|-
|<code> \ngeqslant \ngeqq \gneq \gneqq \gvertneqq \gnsim \gnapprox \nsucc \nsucceq \succneqq</code>
|<math> \ngeqslant \ngeqq \gneq \gneqq \gvertneqq \gnsim \gnapprox \nsucc \nsucceq \succneqq</math>
|-
|<code> \succnsim \succnapprox \ncong \nshortparallel \nparallel \nvDash \nVDash \ntriangleright \ntrianglerighteq \nsupseteq</code>
|<math> \succnsim \succnapprox \ncong \nshortparallel \nparallel \nvDash \nVDash \ntriangleright \ntrianglerighteq \nsupseteq</math>
|-
|<code> \nsupseteqq \varsupsetneq \supsetneqq \varsupsetneqq</code>
|<math> \nsupseteqq \varsupsetneq \supsetneqq \varsupsetneqq</math>
|-
|<code>\jmath \surd \ast \uplus \diamond \bigtriangleup \bigtriangledown \ominus</code>
|<math>\jmath \surd \ast \uplus \diamond \bigtriangleup \bigtriangledown \ominus\,\!</math>
|-
|<code>\oslash \odot \bigcirc \amalg \prec \succ \preceq \succeq</code>
|<math>\oslash \odot \bigcirc \amalg \prec \succ \preceq \succeq\,\!</math>
|-
|<code>\dashv \asymp \doteq \parallel</code>
|<math>\dashv \asymp \doteq \parallel\,\!</math>
|-
|<code>\ulcorner \urcorner \llcorner \lrcorner</code>
|<math>\ulcorner \urcorner \llcorner \lrcorner</math>
|}