> 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/17-latex-error-something-s-wrong-perhaps-a-missing-item.md).

# LaTeXエラー: 何かがおかしいです--おそらく\itemがありません

このエラーは、ある **`\item`** コマンドを含め忘れたときに表示されます。また、表の中でリストを誤って使おうとした場合にも表示されます。

## 一般的な原因

**\item を書き忘れる：**

このエラーの最も基本的な例は、LaTeX にリストを書くと指示したのに、リスト項目に次のようなラベルを付けていない場合です。 **`\item`** タグ。例を以下に示します

```latex
\begin{itemize}
これはリストの最初の項目です
\end{itemize}
```

ここでは、次のものを使ってリストを書くと LaTeX に指示しています。 **`itemize`** 環境。問題は、リスト項目に次のラベルを付けていないことです。 **`\item`**。すると、以下に示すエラーが発生します：

main.tex、6行目

LaTeX エラー: 何かがおかしいです--\item がないのかもしれません。

説明については LaTeX マニュアルまたは LaTeX Companion を参照してください。すぐにヘルプが必要なら H と入力してください。... l.6 \end{itemize} 続行するには入力してみてください。うまくいかなければ、終了するには X を入力してください。

このリストの正しい書き方は次のとおりです：

```latex
\begin{itemize}
\item これはリストの最初の項目です
\end{itemize}
```

参照 [こちら](/latex/ja/latexno/04-lists.md) LaTeX でさまざまな種類のリストを作成する方法についてさらに学ぶには。

**表の中でリストを誤って書く場合：**

以下に示すように、リストを使って表内のセルに番号を付けようとした場合にも、このエラーが表示されます。

```latex
\begin{tabular}{l}
  \begin{enumerate}
  \item これは1番目の項目です\\ \hline
  \item これは2番目の項目です
  \end{enumerate}
\end{tabular}
```

これは誤りです。リストを使ってこのように表のセルに番号を付けることはできません。上記の問題を解決する方法の一つは、カウンタを作成することです。これは次を含めることで可能です。

```latex
\newcounter{rownumbers}
\newcommand\rownumber{\stepcounter{rownumbers}\arabic{rownumbers}}
```

文書のプリアンブルに（参照： [こちら](http://tex.stackexchange.com/questions/21243/automatic-table-row-numbers)）。その後、上の例は次のように書けます。

```latex
\begin{tabular}{l r}
  \rownumber & これは1番目の項目です\\ \hline
  \rownumber & これは2番目の項目です
\end{tabular}
```

![Listexample.PNG](/files/c0ef2dd776c1adaea24f3f74da727bb015fe09d1)

カウンタの作成方法についてさらに学ぶには、ぜひ当社の [ドキュメント](/latex/ja/shu-shi-she-ding/10-counters.md).


---

# 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/17-latex-error-something-s-wrong-perhaps-a-missing-item.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.
