\section{الرياضيات ضمن السطر}
صياغة الرياضيات ضمن السطر
تُضمَّن الرياضيات ضمن السطر مباشرةً في نص الفقرة. يوفر LaTeX صياغتين متكافئتين: $...$ (نمط TeX) و\(...\) (نمط LaTeX). كلتاهما تُعرضان بالشكل نفسه، لكن يُفضَّل استخدام \(...\) في المستندات الجديدة لأنها تسهّل تشخيص الأخطاء.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
% Dollar-sign syntax: $...$
The area of a circle is $A = \pi r^2$.
% Parenthesis syntax: \( ... \)
Einstein's equation is \(E = mc^2\).
% Superscripts and subscripts inline
If $f(x) = x^n$, then $f'(x) = nx^{n-1}$.
% Inline fraction with \frac
The probability is $p = \frac{k}{n}$.
\end{document}نمط TeX الأصلي. شائع الاستخدام لكن تصحيحه أصعب عند غياب علامة $.
نمط خاص بـ LaTeX. تنتج الفواصل غير المتطابقة رسائل خطأ أوضح.
يرفع المحتوى إلى موضع الأس. لا تحتاج الأحرف المفردة إلى أقواس: x^2.
يخفض المحتوى إلى موضع الدليل السفلي. اجمع الاثنين: a_i^2.
\section{الرياضيات المعروضة}
صياغة الرياضيات المعروضة
تضع الرياضيات المعروضة المعادلة في سطر مستقل متوسط مع تباعد رأسي إضافي. استخدم \[...\] للمعادلات غير المرقمة و\begin{equation} عندما تحتاج إلى ترقيم تلقائي وإحالات متقاطعة باستخدام \label / \eqref.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
% Unnumbered display math with \[ ... \]
\[
\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}
\]
% Numbered equation with label
\begin{equation}
\int_{0}^{\infty} e^{-x^2}\, dx = \frac{\sqrt{\pi}}{2}
\label{eq:gaussian}
\end{equation}
See equation~\ref{eq:gaussian} for the Gaussian integral.
\end{document}\[...\]
معادلة معروضة غير مرقمة. تعادل equation*.
equation
Numbered display equation. Supports \label for cross-references.
equation*
نسخة غير مرقمة من equation. تتطلب amsmath.
\begin{align}
المعادلات المحاذاة ومتعددة الأسطر
تتيح البيئة align (من amsmath) كتابة عدة معادلات محاذاة رأسيًا عند نقطة مختارة. ضع & قبل رمز المحاذاة وافصل الأسطر باستخدام \\.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
% Numbered multi-line equations — align at &
\begin{align}
f(x) &= (x + 2)(x - 3) \\
&= x^2 - 3x + 2x - 6 \\
&= x^2 - x - 6
\end{align}
% Unnumbered variant with align*
\begin{align*}
\nabla \cdot \mathbf{E} &= \frac{\rho}{\varepsilon_0} \\
\nabla \times \mathbf{B} &= \mu_0 \mathbf{J}
+ \mu_0\varepsilon_0 \frac{\partial \mathbf{E}}{\partial t}
\end{align*}
\end{document}Each line gets its own equation number. Suppress a line with \nonumber.
بلا أرقام للمعادلات. الأنسب لخطوات الاشتقاق التي لا تحتاج إلى الإحالة إليها.
يُوسَّط كل سطر بشكل مستقل، دون نقطة محاذاة مشتركة.
يقسّم معادلة طويلة واحدة على عدة أسطر: السطر الأول محاذٍ لليسار والأخير محاذٍ لليمين.
\label{eq:name}
ترقيم المعادلات
يرقّم LaTeX المعادلات تلقائيًا بحسب ترتيب ظهورها. استخدم \label و\eqref للإحالة المتقاطعة إليها، وتتحدث الأرقام تلقائيًا إذا أضفت معادلات أو حذفتها.
\label{eq:name}
ضعه داخل equation أو align لإرفاق مفتاح. جرت العادة أن يبدأ المفتاح بالبادئة eq: للوضوح.
\eqref{eq:name}
Inserts a cross-reference like (1). Preferred over \ref for equations because it adds parentheses automatically.
\nonumber
يلغي الترقيم عن سطر واحد في كتلة align. مفيد عندما لا تحتاج خطوة اشتقاق إلى وسم.
\tag{custom}
Replaces the auto-generated number with custom text, e.g. \tag{*} or \tag{QM-1}.
\section{الرموز الشائعة}
رموز الرياضيات الأكثر استخدامًا
تغطي هذه الرموز الغالبية العظمى من رياضيات المرحلة الجامعية الأولى. وللمرجع الكامل الذي يضم أكثر من 200 رمز، راجع رموز الرياضيات في LaTeX .
\alpha, \beta, \gamma
الحروف اليونانية (الصغيرة)
\Gamma, \Delta, \Sigma
الحروف اليونانية (الكبيرة)
\sum_{i=1}^{n}
المجموع مع الحدود
\int_{a}^{b}
التكامل مع الحدود
\frac{a}{b}
الكسر
\sqrt{x}, \sqrt[n]{x}
الجذر التربيعي والجذر النوني
\infty
اللانهاية
\pm, \mp
زائد أو ناقص، ناقص أو زائد
\leq, \geq, \neq
عوامل المقارنة
\cdot, \times, \div
عوامل الضرب
\partial
المشتقة الجزئية
\nabla
عامل نابلا / التدرج
\section{FAQ}
الأسئلة الشائعة
What is the difference between $ and \[ in LaTeX?
Single dollar signs $...$ produce inline math that flows within the paragraph text. Double backslash brackets \[...\] produce display math — a centered block on its own line with more vertical spacing. Use inline for short expressions in running text and display for important standalone formulas.
كيف أحاذي عدة معادلات في LaTeX؟
Use the align environment from amsmath. Place an ampersand & before the character you want to align on (usually = or another relation), and separate lines with \\. Use align* to suppress equation numbers.
كيف أرقّم المعادلات في LaTeX؟
Any equation inside \begin{equation}...\end{equation} is automatically numbered. You can add \label{eq:name} inside, then \ref{eq:name} or \eqref{eq:name} elsewhere in the document to cross-reference it. The align environment also numbers each line by default.
هل أحتاج إلى amsmath للمعادلات في LaTeX؟
LaTeX's built-in math mode handles basic equations without amsmath. However, amsmath is recommended for virtually every document — it provides the align, gather, multline, and cases environments, as well as improved spacing and commands like \text, \DeclareMathOperator, and \tag.
كيف أكتب نظام معادلات في LaTeX؟
Use the cases environment from amsmath: \begin{cases} f_1(x) & \text{if } x > 0 \\ f_2(x) & \text{otherwise} \end{cases}. For multiple aligned equations sharing a single number, use split inside an equation environment.
\section{أدلة ذات صلة}

