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

# Односторонние и двусторонние документы

## Введение

LaTeX поставляется с рядом «стандартных» классов, которые можно использовать для создания документов разных типов, включая: `статью`, `книга`, `отчёт`, `letter`, `слайды` и `proc` (для материалов конференций). В LaTeX также предусмотрен `minimal` класс для отладки или в качестве основы для написания собственного файла класса. Многие дополнительные классы документов публикуются в [галерее шаблонов Overleaf](https://www.overleaf.com/latex/templates), или могут быть [загружены из CTAN](https://ctan.org/topic/class).

## Создание двусторонних документов

Чтобы создать двусторонний документ, передайте `twoside` опцию `\documentclass` в объявление; например:

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

**Примечание**:

* Это `книга` класс по умолчанию является двусторонним, поэтому вам не нужно добавлять `twoside` параметр.
* Это `слайды` класс не поддерживает `twoside` опцию — возможно, потому что для презентационных слайдов это было бы неуместно.

### Пример Overleaf для изучения макета документа

Следующий пример представляет собой небольшой проект Overleaf, который использует `разметка` пакет для создания графики, показывающей исходный (*по умолчанию*) макет документа для выбранного вами класса документа. Эти значения по умолчанию можно изменить, загрузив пакеты, такие как `geometry`, которые изменяют значения параметров разметки страницы в LaTeX по умолчанию. См. статьи [Размер страницы и поля](/latex/ru/formatirovanie/07-page-size-and-margins.md) и [Визуальное руководство по параметрам разметки страницы LaTeX](/latex/ru/podrobnye-stati/04-a-visual-guide-to-latex-s-page-layout-parameters.md) для получения дополнительной информации.

Для двусторонних документов, `книга` класс, а также другие, использующие опцию `twoside` , пример создаст отдельные изображения для левых и правых страниц. При открытии проекта вы увидите левые и правые страницы для `\documentclass[twoside]{article}`.

```latex
% Выберите класс документа, макет которого вы хотите визуализировать: раскомментируйте
% тот, который вам нужен, а остальные закомментируйте.
% \documentclass[a4paper]{article} %Создает одну страницу (на основе формата A4)
% \documentclass[a4paper]{report} %Создает одну страницу (на основе формата A4)
% \documentclass[twoside,a4paper]{report} %Создает две страницы (на основе формата A4)
% \documentclass[a4paper]{book} %Создает две страницы (на основе формата A4)
% \documentclass[a4paper]{letter} %Создает одну страницу (на основе формата A4)
% \documentclass[twoside, a4paper]{letter} %Создает две страницы (на основе формата A4)
\documentclass[twoside,a4paper]{article} %Создает две страницы (на основе формата A4)
\usepackage{layout}
\begin{document}
\layout
\end{document}
```

[Откройте этот проект, чтобы изучить макет стандартных классов документов 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)

Этот пример создает графику, подобную той, что показана на следующем изображении. Обратите внимание, что изображение ниже было обрезано/отредактировано для большей наглядности в этой статье.

![Изображение, показывающее макет документа LaTeX](/files/530baa98fd9bec94012b17d319da4bcded1a1e00)

## Дополнительное чтение

* [`geometry` документация пакета](https://ctan.org/pkg/geometry?lang=en)
* [Визуальное руководство по параметрам разметки страницы LaTeX](/latex/ru/podrobnye-stati/04-a-visual-guide-to-latex-s-page-layout-parameters.md)
* [Размер страницы и поля](/latex/ru/formatirovanie/07-page-size-and-margins.md)
* [Сноски](/latex/ru/formatirovanie/14-footnotes.md)
* [Заметки на полях](/latex/ru/formatirovanie/15-margin-notes.md)
* [Верхние и нижние колонтитулы](/latex/ru/formatirovanie/02-headers-and-footers.md)
* [Разделы и главы](/latex/ru/struktura-dokumenta/01-sections-and-chapters.md)
* [Управление в большом проекте](/latex/ru/struktura-dokumenta/07-management-in-a-large-project.md)
* [Многофайловые проекты LaTeX](/latex/ru/struktura-dokumenta/08-multi-file-latex-projects.md)
* [Выравнивание текста](/latex/ru/formatirovanie/06-text-alignment.md)
* [Размеры, семейства и начертания шрифтов](/latex/ru/shrifty/01-font-sizes-families-and-styles.md)
* [Вставка изображений](/latex/ru/drugie-temy/27-inserting-images.md)
* [Размещение изображений и таблиц](/latex/ru/risunki-i-tablicy/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/ru/formatirovanie/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.
