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

# المستندات أحادية الوجه ومزدوجة الوجه

## مقدمة

يأتي LaTeX مع عدد من الأصناف «القياسية» التي يمكن استخدامها لإنشاء أنواع مختلفة من المستندات، بما في ذلك: `article`, `book`, `التقرير`, `الرسائل`, `العروض التقديمية` و `proc` (لوقائع المؤتمرات). كما يوفر LaTeX أيضًا الصنف `الحد الأدنى` لأغراض التصحيح أو كأساس لكتابة ملف الصنف الخاص بك. تُنشر العديد من أصناف المستندات الإضافية في [معرض قوالب Overleaf](https://www.overleaf.com/latex/templates)، أو يمكن [تنزيلها من CTAN](https://ctan.org/topic/class).

## إنشاء مستندات مزدوجة الوجهين

لإنشاء مستند مزدوج الوجهين، مرِّر `twoside` الخيار إلى `\documentclass` التصريح؛ على سبيل المثال:

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

**ملاحظة**:

* ال `book` الصنف مزدوج الوجهين افتراضيًا، لذلك لا تحتاج إلى إضافة `twoside` .
* ال `العروض التقديمية` الصنف لا يدعم `twoside` الخيار — ربما لأنه لن يكون من المنطقي أن تفعل عروض الشرائح التقديمية ذلك.

### مثال على Overleaf لاستكشاف تخطيط المستند

يوفر المثال التالي مشروعًا صغيرًا على Overleaf يستخدم الحزمة `التخطيط` لإنشاء رسومات تُظهر تخطيط المستند الأولي (*الافتراضي*) لمستندك وفقًا لصنف المستند المفضل لديك. يمكن تغيير تلك القيم الافتراضية عن طريق تحميل حزم، مثل `geometry`، والتي تغيّر القيم الافتراضية لمعلمات تخطيط الصفحة في LaTeX. انظر المقالات [حجم الصفحة والهوامش](/latex/ar/altnsyq/07-page-size-and-margins.md) و [دليل بصري إلى معلمات تخطيط صفحة LaTeX](/latex/ar/mqalat-mtamqh/04-a-visual-guide-to-latex-s-page-layout-parameters.md) للحصول على مزيد من المعلومات.

بالنسبة إلى المستندات مزدوجة الوجهين، `book` الصنف، وغيرها التي تستخدم خيار الـ `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/3d2b8df0a0d052cc36d0b811f2c1f79f9b33dc41)

## قراءة إضافية

* [`geometry` توثيق الحزمة](https://ctan.org/pkg/geometry?lang=en)
* [دليل بصري إلى معلمات تخطيط صفحة LaTeX](/latex/ar/mqalat-mtamqh/04-a-visual-guide-to-latex-s-page-layout-parameters.md)
* [حجم الصفحة والهوامش](/latex/ar/altnsyq/07-page-size-and-margins.md)
* [الحواشي السفلية](/latex/ar/altnsyq/14-footnotes.md)
* [ملاحظات الهامش](/latex/ar/altnsyq/15-margin-notes.md)
* [الترويسات والتذييلات](/latex/ar/altnsyq/02-headers-and-footers.md)
* [الأقسام والفصول](/latex/ar/bnyh-almstnd/01-sections-and-chapters.md)
* [الإدارة في مشروع كبير](/latex/ar/bnyh-almstnd/07-management-in-a-large-project.md)
* [مشاريع LaTeX متعددة الملفات](/latex/ar/bnyh-almstnd/08-multi-file-latex-projects.md)
* [محاذاة النص](/latex/ar/altnsyq/06-text-alignment.md)
* [أحجام الخطوط، والعائلات، والأنماط](/latex/ar/alkhtwt/01-font-sizes-families-and-styles.md)
* [إدراج الصور](/latex/ar/mzyd-mn-almwdhwaat/27-inserting-images.md)
* [تموضع الصور والجداول](/latex/ar/alashkal-waljdawl/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/ar/altnsyq/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.
