> 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/kennisbank/029-code-check.md).

# Codecontrole

De Overleaf-editor bevat een syntaxiscontrole (bekend als "Code Check") die veelvoorkomende fouten markeert terwijl je typt.

De fouten die Code Check kan vinden zijn:

* Niet-overeenkomende `\begin` en `\end` commando's
* Niet-overeenkomende LaTeX-groepsscheidingstekens `{ }`
* Niet-overeenkomende `\left` en `\right` scheidingstekens
* Niet-overeenkomende math-modus-scheidingstekens `$..$` en `$$..$$`
* Wiskundige commando's gebruikt buiten math-modus
* Tekstcommando's gebruikt binnen math-modus

Code Check gebruikt heuristieken en gaat ervan uit dat het document typische LaTeX is, met alleen standaardcommando's, bijv. elke `\begin{}` heeft een overeenkomende `\end{}`.

## Beperkingen van Code Check

Als je project je eigen LaTeX- of TeX-macro's gebruikt, of pakketten die standaard LaTeX-gedrag wijzigen, kan het zijn dat Code Check moet worden uitgeschakeld -- je kunt dit globaal doen, voor één bestand of voor een deel van een bestand.

In het bijzonder, als je macro's als snelkoppelingen gebruikt voor standaard LaTeX-omgevingen (bijv. `\newcommand{\beq}{\begin{equation}}`) worden deze niet uitgewerkt en moet je Code Check uitschakelen.

## Code Check globaal uitschakelen

Als je Code Check helemaal niet wilt gebruiken, kun je het uitschakelen in het linkermenu: klik op het Overleaf-menupictogram boven het paneel met de bestandslijst en zoek vervolgens naar "Settings - Code Check".

## Code Check uitschakelen voor één bestand

Om Code Check voor één bestand uit te schakelen, plaats je de opmerking `%%novalidate` bovenaan het bestand. (N.B. om conflicten te vermijden gebruiken we een dubbel commentaarteken).

```latex
%%novalidate

% complexe macrodefinities of TikZ-figuren
% ...
```

## Code Check uitschakelen voor een deel van een bestand

Je kunt Code Check ook uitschakelen voor een deel van een bestand

```latex
Dit deel van het bestand wordt gecontroleerd met Code Check

%%begin novalidate
Dit deel wordt niet gecontroleerd
%%end novalidate

Dit deel wordt ook gecontroleerd met Code Check
```

## Bekende problemen

* URL, verbatim- en andere commando's waarbij `%` een letterlijk teken is, kunnen onterechte fouten geven als er vervolg-LaTeX-code op dezelfde regel staat als het commando. Een oplossing is om een nieuwe regel te beginnen na elk `\url{}` of andere commando's die letterlijke `%` tekens bevatten.
* Commando's die LaTeX3-syntaxis gebruiken met underscores in macronamen.
* Aangepaste commando-definities die `\begin{...}` van `\end{...}` instructies scheiden


---

# 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/kennisbank/029-code-check.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.
