> 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/formatowanie/08-single-sided-and-double-sided-documents.md).

# Dokumenty jednostronne i dwustronne

## Wstęp

LaTeX jest dostarczany z kilkoma „standardowymi” klasami, które można wykorzystać do tworzenia różnych typów dokumentów, w tym: `article`, `book`, `report`, `letter`, `slajdy` i `proc` (dla materiałów konferencyjnych). LaTeX udostępnia również `minimal` klasę do celów debugowania lub jako podstawę do napisania własnego pliku klasy. Wiele dodatkowych klas dokumentów jest publikowanych w [Galerii szablonów Overleaf](https://www.overleaf.com/latex/templates), albo można je [pobrać z CTAN](https://ctan.org/topic/class).

## Tworzenie dokumentów dwustronnych

Aby utworzyć dokument dwustronny, przekaż `twoside` opcję do deklaracji `\documentclass` ; na przykład:

```latex
\documentclass[twoside]{article}
```

**Uwaga**:

* Ta `book` klasa jest domyślnie dwustronna, więc nie trzeba dodawać `twoside` .
* Ta `slajdy` klasa nie obsługuje opcji `twoside` —być może dlatego, że nie miałoby sensu, aby prezentacyjne slajdy to robiły.

### Przykład Overleaf do eksploracji układu dokumentu

Poniższy przykład zawiera mały projekt Overleaf, który wykorzystuje pakiet `układ` do tworzenia grafik pokazujących początkowy (*domyślny*) układ dokumentu dla wybranej klasy dokumentu. Te domyślne wartości można zmienić, ładując pakiety, takie jak `geometry`, które zmieniają domyślne wartości parametrów układu strony w LaTeX-u. Zobacz artykuły [Rozmiar strony i marginesy](/latex/pl/formatowanie/07-page-size-and-margins.md) i [Wizualny przewodnik po parametrach układu strony LaTeX](/latex/pl/artykuly-szczegolowe/04-a-visual-guide-to-latex-s-page-layout-parameters.md) w celu uzyskania dalszych informacji.

W przypadku dokumentów dwustronnych, `book` klasa, a inne korzystające z opcji używają opcji `twoside` opcję, przykład utworzy oddzielne grafiki dla stron lewych i prawych. Po otwarciu projektu zobaczysz lewe i prawe strony dla `\documentclass[twoside]{article}`.

```latex
% Wybierz klasę dokumentu, której układ chcesz zwizualizować: odkomentuj
% tę, której chcesz użyć, a pozostałe zakomentuj.
% \documentclass[a4paper]{article} %Generuje jedną stronę (na podstawie rozmiaru papieru A4)
% \documentclass[a4paper]{report} %Generuje jedną stronę (na podstawie rozmiaru papieru A4)
% \documentclass[twoside,a4paper]{report} %Generuje dwie strony (na podstawie rozmiaru papieru A4)
% \documentclass[a4paper]{book} %Generuje dwie strony (na podstawie rozmiaru papieru A4)
% \documentclass[a4paper]{letter} %Generuje jedną stronę (na podstawie rozmiaru papieru A4)
% \documentclass[twoside, a4paper]{letter} %Generuje dwie strony (na podstawie rozmiaru papieru A4)
\documentclass[twoside,a4paper]{article} %Generuje dwie strony (na podstawie rozmiaru papieru A4)
\usepackage{layout}
\begin{document}
\layout
\end{document}
```

[Otwórz ten projekt, aby zbadać układ standardowych klas dokumentów LaTeX.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=document+class+layout\&snip=%25+Choose+the+document+class+whose+layout+you+want+to+visualize%3A+uncomment%0A%25+the+one+you+want%2C+comment+out+the+others.%0A%25+%5Cdocumentclass%5Ba4paper%5D%7Barticle%7D+%25Produces+one+page+%28based+on+A4+paper+size%29%0A%25+%5Cdocumentclass%5Ba4paper%5D%7Breport%7D+%25Produces+one+page+%28based+on+A4+paper+size%29%0A%25+%5Cdocumentclass%5Btwoside%2Ca4paper%5D%7Breport%7D+%25Produces+two+pages+%28based+on+A4+paper+size%29%0A%25+%5Cdocumentclass%5Ba4paper%5D%7Bbook%7D+%25Produces+two+pages+%28based+on+A4+paper+size%29%0A%25+%5Cdocumentclass%5Ba4paper%5D%7Bletter%7D+%25Produces+one+page+%28based+on+A4+paper+size%29%0A%25+%5Cdocumentclass%5Btwoside%2C+a4paper%5D%7Bletter%7D+%25Produces+two+pages+%28based+on+A4+paper+size%29%0A%5Cdocumentclass%5Btwoside%2Ca4paper%5D%7Barticle%7D+%25Produces+two+pages+%28based+on+A4+paper+size%29%0A%5Cusepackage%7Blayout%7D%0A%5Cbegin%7Bdocument%7D%0A%5Clayout%0A%5Cend%7Bdocument%7D)

Ten przykład generuje grafiki takie jak te pokazane na poniższym obrazie. Zwróć uwagę, że poniższy obraz został przycięty/edytowany dla większej przejrzystości prezentacji w tym artykule.

![Obraz pokazujący układ dokumentu LaTeX](/files/43732547b2b82031fc7b869001e0a556891e8c6b)

## Dalsza lektura

* [`geometry` dokumentacja pakietu](https://ctan.org/pkg/geometry?lang=en)
* [Wizualny przewodnik po parametrach układu strony LaTeX](/latex/pl/artykuly-szczegolowe/04-a-visual-guide-to-latex-s-page-layout-parameters.md)
* [Rozmiar strony i marginesy](/latex/pl/formatowanie/07-page-size-and-margins.md)
* [Przypisy dolne](/latex/pl/formatowanie/14-footnotes.md)
* [Notatki na marginesie](/latex/pl/formatowanie/15-margin-notes.md)
* [Nagłówki i stopki](/latex/pl/formatowanie/02-headers-and-footers.md)
* [Sekcje i rozdziały](/latex/pl/struktura-dokumentu/01-sections-and-chapters.md)
* [Zarządzanie w dużym projekcie](/latex/pl/struktura-dokumentu/07-management-in-a-large-project.md)
* [Wieloplikowe projekty LaTeX](/latex/pl/struktura-dokumentu/08-multi-file-latex-projects.md)
* [Wyrównanie tekstu](/latex/pl/formatowanie/06-text-alignment.md)
* [Rozmiary czcionek, kroje i style](/latex/pl/czcionki/01-font-sizes-families-and-styles.md)
* [Wstawianie obrazów](/latex/pl/wiecej-tematow/27-inserting-images.md)
* [Pozycjonowanie obrazów i tabel](/latex/pl/rysunki-i-tabele/02-positioning-images-and-tables.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/formatowanie/08-single-sided-and-double-sided-documents.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.
