> 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/31-undefined-control-sequence.md).

# 未定義の制御綴り

このエラーは、使用したコマンドのいずれかを LaTeX が理解できないときに表示されます。

## よくある例

**コマンドの টাইポミス:**

この種のエラーの最も一般的な原因は、単純な টাইポミスです。以下にその例を示します。ここでは、誤って **`Z`** の代わりに **`a`** を書くときに **`\alpha`**

```latex
$\alpha$ を書くときの টাইポミスは $\Zlpha$ になることがあります
```

すると、次のエラーメッセージが表示されます

main.tex、10行目

未定義の制御綴り。

< \Zlpha l.10 書き間違い $$\alpha$$ は $\Zlpha $ かもしれません。エラーメッセージの最上行の末尾にある制御綴りは、\def されていません。もしスペルミスしている場合（例: \`\hobx'）は、\`I' と正しい綴り（例: \`I\hbox'）を入力してください。そうでなければそのまま続ければ、未定義のものは忘れます。\[1

これらのエラーは人間なら簡単に見つけられますが、LaTeX は何が要求されているのか混乱することがあります。

**パッケージの読み込み忘れ:**

この種のエラーの別の原因は、特定のコマンドを使うために特定のパッケージが必要なのに、プリアンブルでうっかり読み込みを忘れてしまうことです。たとえば、次のような場合です

```latex
私は \LaTeX\xspace の後に空白を入れたいのですが、xspace パッケージの読み込みを忘れています。
```

この例では、LaTeX が次のものを認識しないため、文書のコンパイルに失敗します **`\xspace`** コマンドです。これは টাইポミスではありません。なぜなら **`\xspace`** はまったく問題のないコマンドだからです。問題は、次を含めるのを忘れていることです **`\usepackage{xspace}`** をプリアンブルに。これを追加すると、LaTeX が次の解釈方法を理解できるようになるため、エラーメッセージは消えます **`\xspace`** コマンド。

**誤った場所でバックスラッシュを使用した場合:**

もう1つの *未定義の制御綴り* の原因は、バックスラッシュの不適切な使用です。これは、以下に示すようにファイルリンクを書いているときに特に起こりえます。

```latex
ファイルパスを次のように書くと、エラーが発生します

C:\Users\Files
```

問題は、LaTeX がバックスラッシュ **`\`**&#x3068;、それに続くものをコマンドとして解釈します。ここには \Users というコマンドはないため、次の *未定義の制御綴り* エラーが発生します。これを避けるには、通常の文章ではバックスラッシュを次のように書きます **`\backslash`**。長いファイルパスや URL を書く場合は、次を使う方が便利なことがあります **`url`** パッケージを使う方が、次のように書くよりも便利な場合があります **`\backslash`** その都度書くよりも。


---

# 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/31-undefined-control-sequence.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.
