Page layout and margins · تخطيط الصفحة والهوامش
Controlling the page
- LaTeX's default page has generous, book-like margins. Sometimes you want more space.
- The
geometrypackage lets you set margins in one line:
- That gives a one-inch margin on all four sides. Try
2cm,1.5in, and see the text reflow.
التحكم في الصفحة
- الصفحة الافتراضية في لطكس ذات هوامش واسعة تشبه الكتب. أحيانًا تريد مساحة أكبر.
- حزمة
geometryتسمح لك بتحديد الهوامش في سطر واحد:
\usepackage[margin=1in]{geometry}
- هذا يعطي هامشًا بمقدار بوصة واحدة من جميع الجوانب الأربعة. جرب
2cmو1.5inوشاهد إعادة تدفق النص.
Fine control
- You can set sides separately:
- Useful when a binding needs extra room on the left, for example.
التحكم الدقيق
- يمكنك تحديد الجوانب بشكل منفصل:
\usepackage[top=2cm, bottom=2cm, left=3cm, right=2cm]{geometry}
- مفيد عندما يتطلب الربط مسافة إضافية على اليسار، على سبيل المثال.
Other handy commands
\newpageforces a page break;\todayprints the current date.\begin{center} ... \end{center}centres a block of text or an image.- These small tools let you shape a document to look exactly how you want.
أوامر أخرى مفيدة
\newpageيجبر فاصل صفحة؛\todayيطبع التاريخ الحالي.\begin{center} ... \end{center}يوسط كتلة من النص أو صورة.- هذه الأدوات الصغيرة تتيح لك تشكيل المستند ليبدو تمامًا كما تريد.
Common mistakes
- Load the
geometrypackage to change the margins. - Let LaTeX handle spacing — avoid forcing it with manual blank lines.
أخطاء شائعة
- حمّل حزمة
geometryلتغيير الهوامش. - اترك لطكس يتولى أمر المسافات — تجنب فرضها عبر أسطر فارغة يدوية.
The default margins are wide. Load the geometry package in the preamble with a one-inch margin: \usepackage[margin=1in]{geometry}. Run and watch the text spread out. · الهوامش الافتراضية عريضة. حمّل حزمة geometry في المقدمة بهامش بوصة واحدة: \usepackage[margin=1in]{geometry}. قم بالتشغيل وراقب كيف يتوزع النص.
Control the flow of pages. Force the second section onto a fresh page with \newpage, and centre the title line with a center environment. · تحكم في تدفق الصفحات. إجبار القسم الثاني على صفحة جديدة بـ \newpage، وتوسيط سطر العنوان باستخدام بيئة center.