> 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/tr/latex-hatalari/16-latex-error-missing-begin-document.md).

# LaTeX Hatası: Eksik \begin document

Bu hata, eklemeyi unuttuğunuzda görünür **`\begin{document}`** belgenizde. Bu hata ayrıca şunu yazmadıysanız da görünebilir **`\documentclass[...]{...}`** ana belgenizin başında.

## Yaygın Nedenler

**\begin{document} eklemeyi unutmak:**

Bu hatanın en temel nedeni, yazmayı unutmuş olmanızdır **`\begin{document}`** ana belgenizde önsözden sonra. Bu hatayı yaparsanız, aşağıda gösterilen hata mesajını alırsınız:

main.tex, 5. satır

LaTeX Hatası: \begin{document} eksik.

Açıklama için LaTeX kılavuzuna veya LaTeX Companion'a bakın. Hemen yardım için H yazın. ... Burada zor durumdasınız. Devam etmek için yazmayı deneyin. Bu işe yaramazsa, çıkmak için X yazın.

Bu hatayı gidermek için, yalnızca şunu dahil ettiğinizden emin olun **`\begin{document}`** ana belgenizde önsözden sonra. Bkz. [burada](/latex/tr/latex-temelleri/01-learn-latex-in-30-minutes.md) LaTeX'te belgelerin nasıl yapılandırılacağını daha fazla öğrenmek için.

**\documentclass\[...]{...} yanlış yerde:**

Bu hatanın bir diğer yaygın nedeni de **`\documentclass[...]{...}`** yanlış yere yazılmış olmasıdır. Bu, ana belgenin başına yazılmalıdır. Önsözünüz için ayrı bir dosyanız varsa, siz **yapamazsınız** eklemek **`\documentclass[...]{...}`** onu o dosyaya. Yine de ana proje dosyasının en üstünde yer almalıdır; aksi takdirde yalnızca önsöz dosyası derlenir.

**Ana belge yanlış ayarlanmış:**

Bu hata, sol taraftaki menüde ana belgeyi yanlış ayarladıysanız da görünebilir. Bu, eğer **`\documentclass[...]{...}`** yanlış yere yazılmışsa olabilir; bu nedenle gerekirse önce bunu düzeltmelisiniz. Ana belgenin seçimini değiştirmek için sol taraftaki menüyü açın:

![Lefthandmenu.PNG](/files/2e9f00fd44fce0d2133271f1fc397228df61b6ac)

ve şuraya gidin: *Ana belge* açılır menü:

![Maindocument.PNG](/files/4619802712335a6c4de4ea31dac894d69729389f)


---

# 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/tr/latex-hatalari/16-latex-error-missing-begin-document.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.
