> 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/pl/pytania-i-odpowiedzi/05-can-i-run-plain-tex-on-overleaf.md).

# Czy mogę uruchamiać plain TeX w Overleaf?

Tak — możesz skonfigurować swój projekt tak, aby był kompilowany przy użyciu plain TeX, postępując zgodnie z procedurą konfiguracji opisaną poniżej.

1. W edytorze Overleaf kliknij przycisk **Menu** i ustaw opcję **Kompilator** na `LaTeX`— wybierz `LaTeX` z listy rozwijanej, jak pokazano w poniższym klipie wideo:

{% embed url="<https://www.filepicker.io/api/file/Iw9UYRbxRBy3Bk61YKqj>" %}

3. Dodaj do projektu pusty plik i zapisz go jako `latexmkrc`—nie powinien mieć żadnego rozszerzenia pliku (nie musisz tego dodawać, jeśli Twój projekt już ma `latexmkrc` plik).
4. Dodaj do swojego `latexmkrc` pliku:

```
$latex = 'tex %O %S';
```

#### Co właściwie robi ten plik latexmkrc?

Nie wchodząc w szczegóły, serwery Overleaf używają programu o nazwie [`latexmk`](https://mg.readthedocs.io/latexmk.html) do uruchamiania i kontrolowania składu opartego na TeX/LaTeX. Program `latexmk` pozwala użytkownikom Overleaf wpływać na skład swoich projektów, dodając plik konfiguracyjny o nazwie `latexmkrc`. `latexmkrc` pliku konfiguracyjnym na [stronie `latexmk` internetowej](https://mg.readthedocs.io/latexmk.html#configuration-files).

#### Przykłady

Ta `latexmk` program jest napisany w języku [języku programowania Perl](https://www.perl.org/) który używa znaku hash (#) jako znaku komentarza (podobnie jak TeX/LaTeX zwykle używają znaku %). Jeśli chcesz eksperymentować z plain TeX, używając różnych silników TeX, możesz utworzyć `latexmkrc` plik i skopiować/wkleić do niego poniższy tekst:

```
# $latex = 'tex %O %S'; # to use Knuth's original TeX engine
# $latex = 'pdftex %O %S'; # to use the pdfTeX engine
# $latex = 'luatex %O %S'; # to use the LuaTeX engine
# $latex = 'xetex %O %S';  # to use the XeTeX engine
```

Aby użyć określonego silnika TeX, odkomentuj wiersz (usuń początkowy znak „#”) dla silnika TeX, którego chcesz użyć. Na przykład, aby uruchomić XeTeX, odkomentuj ostatni wiersz, tak aby Twój `latexmkrc` plik wyglądał następująco — zauważ, że ostatni wiersz nie zaczyna się od znaku „#”, więc zostaje wykonany/uruchomiony, aby składać Twój dokument plain TeX przy użyciu XeTeX:

```
# $latex = 'tex %O %S'; # to use Knuth's original TeX engine
# $latex = 'pdftex %O %S'; # to use the pdfTeX engine
# $latex = 'luatex %O %S'; # to use the LuaTeX engine
$latex = 'xetex %O %S';  # to use the XeTeX engine
```

Poniższy krótki film pokazuje powyższy `latexmkrc` plik edytowany wybiórczo, aby kolejno uruchamiać każdy silnik TeX — zaczynając od XeTeX. Kod źródłowy plain TeX użyty w tym przykładzie został zapożyczony z [artykułu D. R. Wilkinsa](https://www.ntg.nl/doc/wilkins/pllong.pdf).

{% embed url="<https://www.filepicker.io/api/file/9PVmkgTSSny7gjNliTdt>" %}

### Dalsza lektura

Mamy dwa powiązane artykuły pomocy, które mogą zainteresować każdego czytelnika chcącego lepiej zrozumieć użycie przez Overleaf `latexmk` i `latexmkrc`:

* [Jak Overleaf kompiluje mój projekt?](/latex/pl/baza-wiedzy/064-how-does-overleaf-compile-my-project.md)
* [Jak używać latexmkrc z Overleaf: przykłady i techniki](/latex/pl/artykuly-szczegolowe/28-how-to-use-latexmkrc-with-overleaf.md)


---

# 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/pl/pytania-i-odpowiedzi/05-can-i-run-plain-tex-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.
