> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/overleaf-learn-latex-pt/erros-do-latex/06-extra-right.md).

# \right extra

Este erro acontece ao compor matemática se o comando \right é usado, mas o \left correspondente está em falta. Este artigo aborda as causas comuns deste erro e como corrigi-las.

## Breve introdução aos comandos \left e \right

O `\left` e `\right` comandos compõem delimitadores de tamanho dinâmico e devem ser usados juntos, dentro de material matemático, na forma

$$\verb'\left'\thinspace\textit{delim}*{\thinspace\text{L}}\quad\textit{math expression}\quad \verb'\right'\thinspace\textit{delim}*{\thinspace\text{R}}$$

onde $$\textit{delim}*{\thinspace\text{L}}$$ e $$\textit{delim}*{\thinspace\text{R}}$$ são delimitadores usados para envolver sua $$\textit{math expression}$$. Normalmente, $$\textit{delim}*{\thinspace\text{L}}$$ e $$\textit{delim}*{\thinspace\text{R}}$$ são um dos caracteres `() [] | \| \{ \}` ou o ponto ‘`.`’, que é usado como um “[delimitador em branco](#using-a-blank-delimiter)”.

### Exemplo

Aqui está um exemplo usando `\left` e `\right` para compor parênteses que envolvem totalmente uma fração:

```latex
\[
  \left(\frac{x}{y} \right)
\]
```

Este código produz $$\left(\frac{x}{y}\right)$$

Se você não usar os `\left` e `\right` comandos ao colocar delimitadores, incluindo parênteses, esses delimitadores não envolverão totalmente a expressão matemática; por exemplo, escrever

```latex
\[
  (\frac{x}{y})
\]
```

produz este

$$(\frac{x}{y})$$

## Causas desse erro e algumas soluções

### Esquecer de incluir um comando \left

Este erro normalmente surge ao escrever um `\right` comando, mas esquecer de incluir o correspondente `\left`, como mostrado no exemplo abaixo:

```latex
\[
\pi =
( \int_{-\infty}^{+\infty} e^{-x^2} dx \right)
\]
```

[Abra este **gerador de erros** exemplo no Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Example+demonstrating+a+missing+delimiter\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0A%5C%5B+%0A%5Cpi+%3D+%0A%28+%5Cint_%7B-%5Cinfty%7D%5E%7B%2B%5Cinfty%7D+e%5E%7B-x%5E2%7D+dx+%5Cright%29%0A%5C%5D%0A%5Cend%7Bdocument%7D)

Este exemplo gera o seguinte erro:

![Uma imagem para demonstrar um delimitador em falta no LaTeX](/files/94f6894dfb749a1676008dd370c6a4e9ceef8ed5)

Adicione o delimitador em falta `\left` para corrigir este erro, escrevendo

```latex
\[
\pi =
\left( \int_{-\infty}^{+\infty} e^{-x^2} dx \right)
\]
```

o que produz a seguinte saída

$$\pi = \left( \int\_{-\infty}^{+\infty} e^{-x^2} dx \right)$$

### Utilizar um delimitador em branco

Se quiser compor um `\right` apenas delimitador, use um carácter ‘`.`’ como o `\left` delimitador escrevendo `\left.`, que não compõe um carácter de delimitador. O exemplo seguinte usa um `.` delimitador dentro de um `ambientes aligned` ambiente fornecido pelo `amsmath` pacote:

```latex
\documentclass{article}
\usepackage{amsmath} % Necessário para usar o ambiente aligned

\begin{document}
\[
 \left.\begin{aligned}
        dF &= 0,\\
        d^{\dagger} F &= 0,
       \end{aligned}
\ \right\}
 \qquad \text{Equações de Maxwell}
\]
\end{document}
```

[Abra este exemplo no Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Using+the+dot+delimiter\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D+%25+Required+to+use+the+aligned+environment%0A%0A%5Cbegin%7Bdocument%7D%0A%5C%5B%0A+%5Cleft.%5Cbegin%7Baligned%7D%0A++++++++dF+%26%3D+0%2C%5C%5C%0A++++++++d%5E%7B%5Cdagger%7D+F+%26%3D+0%2C%0A+++++++%5Cend%7Baligned%7D%0A%5C+%5Cright%5C%7D%0A+%5Cqquad+%5Ctext%7BMaxwell%27s+equations%7D%0A%5C%5D%0A%5Cend%7Bdocument%7D)

Este exemplo compõe a seguinte expressão:

$$\left.\begin{aligned} dF &= 0,\d^{\dagger} F &= 0,\end{aligned}\ \right}\qquad \text{Maxwell's equations}$$


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/overleaf-learn-latex-pt/erros-do-latex/06-extra-right.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
