> 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/de/latex-fehler/22-misplaced-noalign.md).

# Falsch platziertes \noalign

Dieser Fehler erscheint, wenn Sie verwendet haben **`\hline`** fälschlicherweise.

## Häufige Ursachen

**Verwendung von \hline außerhalb einer Tabelle:**

Das **`\hline`** Der Befehl kann nur innerhalb eines **`tabular`** Umgebung verwendet werden. Sie können es nicht zum Einfügen horizontaler Linien an anderen Stellen in Dokumenten verwenden, z. B. auf Titelseiten oder in Kopfzeilen. Ein Beispiel für diesen Fehler ist:

```latex
%In Ihrem Vorspann
\title{Zur allgemeinen molekularen Wärmetheorie}
\author{A. Einstein}

% Im Hauptteil Ihres Dokuments
\maketitle

\hline
```

Dies erzeugt den unten gezeigten Fehler

main.tex, Zeile 5

Falsch platziertes \noalign.

\hline ->\noalign {\ifnum 0=\`}\fi \hrule \\@height \arrayrulewidth \futurelet... l.10 \hline Ich erwarte, \noalign nur nach dem \cr einer Ausrichtung zu sehen. Fahren Sie fort, und ich werde diesen Fall ignorieren.

Wenn Sie horizontale Linien außerhalb einer tabular-Umgebung einfügen möchten, müssen Sie **`\hrule`**.

**\hline falsch in einer Tabelle verwendet:**

Beim Verwenden von **`\hline`** in einer Tabelle muss jede Instanz außer der ersten von **`\\`**. Ein Beispiel für diesen Fehler ist unten gezeigt

```latex
\begin{tabular}{|l|l|} \hline
    Vorname: & Albert \\ \hline
    Nachname: & Einstein \hline
\end{tabular}
```

Das erste **`\hline`** Der Befehl hier ist in Ordnung, da der erste **`\hline`** in einer Tabelle muss nicht von **`\\`**. Das Problem ist unser letztes **`\hline`** das von **`\\`**. Die richtige Art, diese Tabelle zu schreiben, ist:

```latex
\begin{tabular}{|l|l|} \hline
    Vorname: & Albert \\ \hline
    Zweiter Name: & Einstein \\ \hline
\end{tabular}
```

![Table.PNG](/files/e687ac9600c246a23d12900b669a6196ffba6e8d)


---

# 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/de/latex-fehler/22-misplaced-noalign.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.
