I would like to write the system of "n" linear equations. Follow is my code:
\documentclass{article}
\usepackage{amsmath}
\usepackage{systeme}
\begin{document}
\[
\syslineskipcoeff{2}
\systeme*{w_1^S(\delta)=\alpha_1w_{11} + \alpha_2w_{21} + ...+ \alpha_nw_{n1}, w_2^S(\delta)=\alpha_1w_{12} + \alpha_2w_{22} + ...+ \alpha_nw_{n2}, x =...,w_3^S(\delta)=\alpha_1w_{1n} + \alpha_2w_{2n} + ...+ \alpha_nw_{nn}}
\]
\end{document}
However, the actual result is not as what i expect (see below image). I would like to display a "…….." in the linear system to demonstrate that my index is keep increasing from i -> n. And at the end, the last equation should display index w_n^S(\delta)=
instead of w_3^S(\delta)=
. Unfortunately, when I write w_n^S(\delta)=
LaTeX recognizes it is not number and it considers it as error Missing = inserted for \ifnum
. Also, there is problem if I made "…….." in my code. Would you have any ways to work around?
Best Answer
You can do it with
systeme
, but it's better withcases
. A small trick ensures perfect alignment. Compare the two versions below.