我正在尝试输入这个方程组:
我试过
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{cases}
a_1 x+b_1 y+c_1 z=d_1, \\
a_2 x+b_2 y+c_2 z=d_2, \\
a_3 x+b_3 y+c_3 z=d_3.
\end{cases}
\end{equation}
\end{document}
有了systeme
包裹,我试过了
\documentclass{article}
\usepackage{systeme}
\begin{document}
\systeme[xyz]{
a_1 x+b_1 y+c_1 z=d_1,
a_2 x+b_2 y+c_2 z=d_2,
a_3 x+b_3 y+c_3 z=d_3}
\end{document}
我如何使用system
包来获取结果?
答案1
你来决定是否值得忍受痛苦:
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath,systeme}
\begin{document}
\begin{equation}
\syssubstitute{%
{A}{a_1}{B}{b_1}{C}{c_1}{D}{d_1}%
{E}{a_2}{F}{b_2}{G}{c_2}{H}{d_2}%
{I}{a_3}{J}{b_3}{K}{c_3}{L}{d_3}%
}
\systeme[xyz]{
Ax + By + Cz = D,
Ex + Fy + Gz = H,
Ix + Jy + Kz = L
}
\end{equation}
\end{document}
备选方案,带比较:
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath,systeme,array}
\begin{document}
\begin{equation}
\left\{
\renewcommand{\arraystretch}{1.2}
\setlength{\arraycolsep}{0pt}
\begin{array}{ *{3}{c >{{}}c<{{}}}c }
a_1x &+& b_1y &+& c_1z &=& d_1 \\
a_2x &+& b_2y &+& c_2z &=& d_2 \\
a_3x &+& b_3y &+& c_3z &=& d_3
\end{array}
\right.
\end{equation}
\begin{equation}
\syssubstitute{%
{A}{a_1}{B}{b_1}{C}{c_1}{D}{d_1}%
{E}{a_2}{F}{b_2}{G}{c_2}{H}{d_2}%
{I}{a_3}{J}{b_3}{K}{c_3}{L}{d_3}%
}
\systeme[xyz]{
Ax + By + Cz = D,
Ex + Fy + Gz = H,
Ix + Jy + Kz = L
}
\end{equation}
\end{document}