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

# Verkeerd geplaatste \noalign

Deze fout verschijnt wanneer u hebt gebruikt **`\hline`** op onjuiste wijze.

## Veelvoorkomende oorzaken

**Gebruik van \hline buiten een tabel:**

De **`\hline`** commando kan alleen worden gebruikt binnen een **`tabular`** omgeving. U kunt het niet gebruiken om elders in documenten horizontale lijnen op te nemen, zoals op titelpagina's of in paginakoppen. Een voorbeeld van deze fout is:

```latex
%In uw preambule
\title{Over de algemene moleculaire theorie van warmte}
\author{A. Einstein}

% In de hoofdtekst van uw document
\maketitle

\hline
```

Dit zal de onderstaande fout opleveren

main.tex, regel 5

Verkeerd geplaatste \noalign.

\hline ->\noalign {\ifnum 0=\`}\fi \hrule \\@height \arrayrulewidth \futurelet... l.10 \hline Ik verwacht \noalign alleen na de \cr van een uitlijning. Ga verder, en ik zal dit geval negeren.

Wanneer u horizontale lijnen buiten een tabular-omgeving wilt opnemen, moet u **`\hrule`**.

**Het onjuist gebruiken van \hline in een tabel:**

Bij gebruik van **`\hline`** in een tabel moet elk exemplaar behalve het eerste worden voorafgegaan door **`\\`**. Een voorbeeld van deze fout wordt hieronder getoond

```latex
\begin{tabular}{|l|l|} \hline
    Voornaam: & Albert \\ \hline
    Tweede naam: & Einstein \hline
\end{tabular}
```

De eerste **`\hline`** commando hier is in orde, omdat het eerste **`\hline`** in een tabel niet hoeft te worden voorafgegaan door **`\\`**. Het probleem is onze laatste **`\hline`** die wel moet worden voorafgegaan door **`\\`**. De juiste manier om deze tabel te schrijven is:

```latex
\begin{tabular}{|l|l|} \hline
    Voornaam: & Albert \\ \hline
    Tweede naam: & Einstein \\ \hline
\end{tabular}
```

![Table.PNG](/files/9ba88d44c640f1b9769de40aaedf240410de270b)


---

# 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/nl/latex-fouten/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.
