Aligning equations · יישור נוסחות
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
Lining equations up
- When you show working, readers like the
=signs to line up. Thealign*environment does this:
- The
&marks where to align (just before each=), and\\ends each line.
עברית
יישור משוואות
- כאשר מציגים תהליך פתרון, קוראים מעדיפים שסימני
=יהיו ישרים. הסביבהalign*עושה זאת:
\begin{align*}
y &= 2(x + 3) \\
y &= 2x + 6
\end{align*}
- הסימנים
&מסמנים איפה ליישר (ישר לפני כל=), וה-\\סוגר את הקו.
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.
עברית
עם או ללא מספונים
- ה-
align*(עם הכוכב) אינו נותן מספני משוואות. - הסרת הכוכב —
align— ו-LaTeX יסמן כל קו ב-(1),(2), … כדי שתוכלו להתייחס אליהם.
English
Matrices
amsmathalso gives matrices.bmatrixdraws square brackets:
- Again
&separates columns and\\separates rows — the same idea as alignment.
עברית
מטריצות
- ה-
amsmathמאפשר גם מטריצות. ה-bmatrixמצייר סוגרי מרובעים:
\[
\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}
\]
- שוב, ה-
&מפריד עמודות וה-\\מפריד שורות — אותה רעיון כמו יישור.
English
Common mistakes
- In
align, line up on&and end each line with\\. - Use
align*when you do not want equation numbers.
עברית
טעויות נפוצות
- ב-
align, יש ליישר על ה-&ולסגור כל קו עם ה-\\. - השתמשו ב-
align*כשאין רצון במספני משוואות.
Show the two steps lined up at the = sign. Put them in an align* environment, with & just before each = and \\ between the lines. · הצג את השני שלבים מסודרים סביב הסימן =. הנח אותם בתוך סביבת align*, עם & לפני כל = ועם \\ בין השורות.
Click Run to compile and preview the PDF. · לחץ הרצה כדי להרכיב ולהציג מראות את הקובץ.
Draw a 2×2 matrix with bmatrix (square brackets). Separate columns with & and rows with \\, e.g. \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}. · צייר מטריצה בגודל 2×2 עם bmatrix (סוגריים מרובעים). הפרד עמודות באמצעות & ושורות באמצעות \\, לדוגמה \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}.
Click Run to compile and preview the PDF. · לחץ הרצה כדי להרכיב ולהציג מראות את הקובץ.