Sections and titles · الأقسام والعناوين
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · تحتاج هذه الصفحة إلى متصفح حديث (يدعم SharedArrayBuffer). يرجى تحديث Chrome أو Edge أو Firefox أو Safari إلى أحدث إصدار.
English
Organising with sections
- Real documents are split into sections so readers can follow them.
- The command is simple:
- LaTeX numbers it automatically (1, 2, 3 …) — you never count by hand.
العربية
التنظيم بالأقسام
- تُقسم المستندات الحقيقية إلى أقسام حتى يتمكن القراء من متابعتها بسهولة.
- الأمر بسيط:
\section{Introduction}
- يقوم LaTeX برقمها تلقائياً (1، 2، 3 …)؛ فلا حاجة للعد يدوياً أبداً.
English
Smaller pieces
- Inside a section you can add subsections:
- These become 2.1, 2.2, and so on. Add or remove one and everything renumbers itself.
العربية
أجزاء أصغر
- داخل القسم يمكنك إضافة أقسام فرعية:
\section{Methods}
\subsection{Materials}
\subsection{Procedure}
- ستصبح هذه 2.1، 2.2، وهكذا. إذا أضفت أو أزلت واحداً، سيعيد النظام ترقيم كل شيء تلقائياً.
English
A title block
- A report usually starts with a title, an author, and a date.
- You declare them in the preamble, then print them with
\maketitle:
\maketitlemust go inside the body, as its first line.
العربية
كتلة العنوان
- عادةً ما تبدأ التقارير بعنوان، واسم المؤلف، وتاريخ.
- تقوم بتعريفها في المقدمة، ثم تطبعها باستخدام
\maketitle:
\documentclass{article}
\title{My First Report}
\author{Pat Lee}
\begin{document}
\maketitle
...
\end{document}
- يجب أن يأتي
\maketitleداخل المحتوى، كسطر أول.
English
Common mistakes
\section{...}numbers automatically; use\section*{...}for no number.\maketitleneeds\title{...}and\author{...}set first.
العربية
أخطاء شائعة
- يقوم
\section{...}بالترقيم تلقائياً؛ استخدم\section*{...}لعدم إظهار رقم. - يتطلب
\maketitleتعيين\title{...}و\author{...}مسبقاً.
Organise this report by adding a section heading. Put \section{Introduction} at the start of the body, then Run. Notice LaTeX numbers it for you. · نظّم هذا التقرير بإضافة عنوان قسم. ضع \section{Introduction} في بداية الجسم، ثم Run. لاحظ كيف يقوم LaTeX برقمته تلقائياً.
Click Run to compile and preview the PDF. · اضغط تشغيل لتركيب وعرض ملف PDF.
Give the document a title block. Add \title{...} and \author{...} in the preamble, then \maketitle as the first line of the body. · منح المستند كتلة عنوان. أضف \title{...} و\author{...} في الـ preamble، ثم \maketitle كسطر أول من الجسم.
Click Run to compile and preview the PDF. · اضغط تشغيل لتركيب وعرض ملف PDF.