محاذاة المعادلات
تحتاج هذه الصفحة إلى متصفح حديث (يدعم SharedArrayBuffer). يرجى تحديث Chrome أو Edge أو Firefox أو Safari إلى أحدث إصدار.
English
Lining equations up
- When you show working, readers like the
=signs to line up. Thealign*environment does this:
\begin{align*}
y &= 2(x + 3) \\
y &= 2x + 6
\end{align*}
- The
&marks where to align (just before each=), and\\ends each line.
English
Numbered or not
align*(with the star) gives no equation numbers.- Drop the star —
align— and LaTeX numbers each line(1),(2), … for you to refer to.
English
Matrices
amsmathalso gives matrices.bmatrixdraws square brackets:
\[
\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}
\]
- Again
&separates columns and\\separates rows — the same idea as alignment.
English
Common mistakes
alignwithoutamsmath. LaTeX stops with! LaTeX Error: Environment align undefined.- A blank line inside
align. It gives! Paragraph ended before \align was complete.Keep the lines together;\\already starts a new row. - The
&in different places. Put it just before the symbol to line up, usually&=, on every line.
الصعوبة 2/5 · 140 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
أظهر الخطوتين متوازيتين عند علامة =. ضعهما في بيئة align*، مع & قبل كل = و\\ بين الأسطر.
اضغط تشغيل لتركيب وعرض ملف PDF.
الصعوبة 2/5 · 140 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
ارسم مصفوفة 2×2 باستخدام bmatrix (أقواس مربعة). افصل الأعمدة بـ & والصفوف بـ \\، مثلاً \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}.
اضغط تشغيل لتركيب وعرض ملف PDF.
الصعوبة 2/5 · 140 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
حل $2x + 3 = 11$ في ثلاثة أسطر داخل align*، محاذاة على =: 2x + 3 &= 11، ثم 2x &= 8، ثم x &= 4. أنهِ السطرين الأولين بـ \\.
اضغط تشغيل لتركيب وعرض ملف PDF.