答案1
作为起点,看看是否array
可以帮助您:
\documentclass{article}
\begin{document}
\[
\setlength\arraycolsep{1pt}
\left\{
\begin{array}{rcrcrc@{\qquad}l}
-x & & & + & z & = & (a) \\
-2x & - & y & + & 5z & = & (b) \\
2x & + & y & & & = & (c)
\end{array}
\right.
\]
\end{document}
您也可以使用其他一些 amsmath 环境获得类似的结果。
附录:您可能也不知道如何对齐更多方程式。看来简单的方法是嵌套array
环境:
\documentclass{article}
\begin{document}
\[\setlength\arraycolsep{1pt}
\begin{array}{rl}
&
\left\{
\begin{array}{rcrcrc@{\qquad}l}
-x & & & + & z & = & (a) \\
-2x & - & y & + & 5z & = & (b) \\
2x & + & y & & & = & (c)
\end{array}
\right. \\[5ex]
\Longleftrightarrow &
\left\{
\begin{array}{rcrcrc@{\qquad}l}
-x & & & + & z & = & (a) \\
-2x & - & y & + & 5z & = & (b) \\
2x & + & y & & & = & (c)
\end{array}
\right. \\%
\end{array}
\]
\end{document}
答案2
您还可以使用系统包:
\documentclass{article}
\usepackage{systeme}
\begin{document}
\systeme{-x + z = 3 @(a),
-2x -y + 5z = -1 @(b),
2x +y = 1 @(c)}
\end{document}
答案3
使用该软件包很简单systeme
。以下是两种变体:
\documentclass{article}%
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathtools}
\usepackage{systeme}
\sysextracolsign{&}
\syscodeextracol{\kern2.5em$\mathrm\bgroup }{\egroup$}
\newcommand\phms{\phantom{-}}
\begin{document}
Here’s a first way: %
\begin{align*}
& \systeme{-x + z = \phms3 & (a), -2x-y + 5z = -1 & (b), 2x + y =\phms 1 & (c)} \\
\iff & \systeme{-x + z = \phms3 & (a') = (a), -y + 3z = -7 & (b') = (b)-2(a), 2x + y =\phms 7 & (c') = (c) + 2(a)} \\
\iff & \systeme{-x + z = \phms3 & (a'') = (a'), -y + 3z = -7 & (b'') = (b'), 5z =\phms 0 & (c'') = (c') +(b')}
\end{align*}
Unless you prefer this: %
\begin{align*}
& \systeme{-x + z = \phms3 & (a), -2x-y + 5z = -1 & (b), 2x + y =\phms 1 & (c)} \\
⇔ & \systeme{-x + z = \phms3 & \eqmakebox[b'][l]{$ \mathrm{(a')} $} = (a), \phantom{-2x}-y + 3z = -7 & \eqmakebox[b'][l]{$ \mathrm{(b')} $} = (b)-2(a), 2x + y =\phms 7 & \eqmakebox[b'][l]{$ \mathrm{(c')} $} = (c) + 2(a)} \\
⇔ & \systeme{-x + z = \phms3 & \eqmakebox[b''][l]{$ \mathrm{(a'')} $} = (a'), \phantom{-2x}-y + 3z = -7 & \eqmakebox[b''][l]{$ \mathrm{(b'')} $} = (b'), 5z =\phms 0 & \eqmakebox[b''][l]{$ \mathrm{(c'')} $} = (c') +(b')}
\end{align*}
\end{document}