1 | initial version |
Another solution:
sage: X=matrix(1,8,[var("X_{}".format(u)) for u in (1..8)])
sage: X
[X_1 X_2 X_3 X_4 X_5 X_6 X_7 X_8]
sage: latex(X)
\left(\begin{array}{rrrrrrrr}
X_{1} & X_{2} & X_{3} & X_{4} & X_{5} & X_{6} & X_{7} & X_{8}
\end{array}\right)
i. e.
$$ \left(\begin{array}{rrrrrrrr} X_{1} & X_{2} & X_{3} & X_{4} & X_{5} & X_{6} & X_{7} & X_{8} \end{array}\right)$$