> 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/ja/latexer/06-extra-right.md).

# 余分な\right

このエラーは、数式を組版する際に \\\right コマンドが使われているのに、対応する \\\left が欠けているときに発生します。この記事では、このエラーの一般的な原因とその修正方法について説明します。

## \left と \right コマンドの簡単な紹介

その `\left` と `\right` コマンドは動的にサイズが変わる区切り記号を組版するもので、数式中で、次の形式で一緒に使用しなければなりません。

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

ここで $$\textit{delim}*{\thinspace\text{L}}$$ と $$\textit{delim}*{\thinspace\text{R}}$$ は、あなたの…を囲むために使う区切り記号です $$\textit{math expression}$$。通常、 $$\textit{delim}*{\thinspace\text{L}}$$ と $$\textit{delim}*{\thinspace\text{R}}$$ は、次の文字のいずれかです `() [] | \| \{ \}` または、点の「`.`」で、これは「[空の区切り記号](#using-a-blank-delimiter)」として使われます。

### 例

以下は、 `\left` と `\right` を使って、分数を完全に囲む丸かっこを組版する例です:

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

このコードは次のようになります $$\left(\frac{x}{y}\right)$$

次の `\left` と `\right` コマンドを、丸かっこを含む区切り記号を配置するときに使わないと、それらの区切り記号は数式を完全には囲みません。たとえば、

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

と書くと、次のようになります

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

## このエラーの原因といくつかの解決策

### \\\left コマンドを含め忘れること

このエラーは通常、ある `\right` コマンドですが、対応する `\left`、以下の例に示すように：

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

[これを開く **エラーを発生させる** 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)

この例では次のエラーが発生します：

![LaTeX で区切り記号の欠落を示す画像](/files/ddb7ffca567c2b1663c489b90c0f937e6873cfbd)

不足している `\left` を書いてこのエラーを修正する

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

すると次の出力が得られます

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

### 空の区切り記号を使う

もし〜を組版したい場合は `\right` 区切り記号だけを組版したい場合は、‘`.`’ 文字をその `\left` 区切り記号として使い、次のように書きます `\left.`、これは区切り記号文字を組版しません。以下の例では、 `.` 区切り記号が含まれる `aligned` 環境で組版する方法を示します。これは `amsmath` パッケージを示します：

```latex
\documentclass{article}
\\usepackage{amsmath} % aligned 環境を使用するために必要です

\begin{document}
\[
 \\left.\\begin{aligned}
        dF &= 0,\\\\
        d^{\\dagger} F &= 0,
       \\end{aligned}
\\ \\right\\}
 \\qquad \\text{マクスウェル方程式}
\]
\end{document}
```

[この例を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)

この例では次の式が組版されます：

$$\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/ja/latexer/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.
