> 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/fi/tietopankki/006-can-i-choose-which-file-is-the-main-tex-file-in-a-project-on-overleaf.md).

# Voinko valita, mikä tiedosto on projektin pää-TEX-tiedosto Overleafissa?

Kyllä, seuraamalla näitä vaiheita:

1. Napsauta Overleafin valikkokuvaketta (![OLmenu.png](/files/d5cd954bca8e2cea5023d16e765447bb74dacb5a)), joka sijaitsee tiedostoluettelon yläpuolella.
2. Etsi valikosta **Pääasiakirja** vaihtoehto ja aseta se haluamaasi `.tex` tiedostoon:

   ![SettingMainTeX.png](/files/f2ccfc51e6fc72b3da7444a6916c7f2658c7b75e)
3. Tämä asettaa tiedoston käännettäväksi ja esikatseltavaksi aina, kun palaat projektiisi.

**Huomautukset**:

* Jotta Overleafin ominaisuudet toimisivat oikein, suosittelemme sijoittamaan projektin pää `.tex` tiedoston projektin ylimmän tason kansioon. Esimerkiksi vaikuttavia ominaisuuksia ovat [jump-to-location](/latex/fi/tietopankki/022-can-t-find-jump-to-location-arrows.md), [sanamäärä](/latex/fi/tietopankki/099-is-there-a-way-to-run-a-word-count-that-doesn-t-include-latex-commands.md) ja skriptit kuten [makeglossaries](/latex/fi/asiakirjan-rakenne/05-glossaries.md) jne.,
* Mikä tahansa projektitiedosto, joka sisältää `\documentclass` komennon voidaan kääntää, kun se avataan editorissa valitsemalla **Uudelleen käännä** painikkeen. Tämän avulla voit kääntää useita asiakirjoja yhdessä Overleaf-projektissa muuttamatta projektin päätiedoston asetusta.


---

# 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/fi/tietopankki/006-can-i-choose-which-file-is-the-main-tex-file-in-a-project-on-overleaf.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.
