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

# Błąd LaTeX: Coś jest nie tak — być może brakuje \item

Ten błąd pojawia się, gdy zapomniałeś(-aś) dołączyć **`\item`** polecenia. Może się też pojawić przy nieprawidłowej próbie użycia list wewnątrz tabeli.

## Najczęstsze przyczyny

**Zapomnienie o zapisaniu \item:**

Najbardziej podstawowym przykładem tego błędu jest sytuacja, gdy poinformowałeś(-aś) LaTeX-a, że zamierzasz pisać listę, ale nie oznaczyłeś(-aś) swoich pozycji listy za pomocą **`\item`** znaczników. Przykład tego pokazano poniżej

```latex
\begin{itemize}
To jest pierwszy wpis na naszej liście
\end{itemize}
```

Tutaj poinformowałeś(-aś) LaTeX-a, że piszesz listę, używając **`itemize`** środowiska. Popełniony błąd polega na tym, że nie oznaczyłeś(-aś) swojego wpisu listy za pomocą **`\item`**. Spowoduje to wygenerowanie błędu pokazanego poniżej:

main.tex, wiersz 6

Błąd LaTeX: Coś jest nie tak — być może brakuje \item.

Zobacz podręcznik LaTeX-a lub LaTeX Companion w celu wyjaśnienia. Wpisz H, aby uzyskać natychmiastową pomoc. ... l.6 \end{itemize} Spróbuj wpisać, aby kontynuować. Jeśli to nie zadziała, wpisz X, aby zakończyć.

Poprawny sposób zapisania tej listy to:

```latex
\begin{itemize}
\item To jest pierwszy wpis na naszej liście
\end{itemize}
```

Zobacz [tutaj](/latex/pl/podstawy-latex-a/04-lists.md) aby dowiedzieć się więcej o tym, jak tworzyć różne typy list w LaTeX-u.

**Nieprawidłowe zapisywanie list wewnątrz tabel:**

Ten błąd pojawi się również, jeśli spróbujesz numerować komórki w tabeli za pomocą list, jak pokazano poniżej.

```latex
\begin{tabular}{l}
  \begin{enumerate}
  \item To jest pozycja numer jeden\\ \hline
  \item To jest pozycja numer dwa
  \end{enumerate}
\end{tabular}
```

To jest błąd, ponieważ nie można w ten sposób używać list do numerowania komórek tabeli. Jednym ze sposobów rozwiązania powyższego problemu byłoby utworzenie licznika. Można to zrobić, dodając

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

w preambule dokumentu (zobacz [tutaj](http://tex.stackexchange.com/questions/21243/automatic-table-row-numbers)). Następnie możesz zapisać powyższy przykład jako

```latex
\begin{tabular}{l r}
  \rownumber & To jest pozycja numer jeden\\ \hline
  \rownumber & To jest pozycja numer dwa
\end{tabular}
```

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

Aby dowiedzieć się więcej o tworzeniu liczników, sprawdź nasze [dokumentację](/latex/pl/formatowanie/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/pl/bledy-latex/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.
