The science magazine prescribes that authors cannot use 'amsmath' package and so on, then how to generate matrix with Latex?
Asked
Active
Viewed 2,523 times
2
Sandy G
- 42,558
Zhiyuan Zhang
- 23
- 1
- 3
2 Answers
6
If I understand the instructions correctly, you need to use the plain TeX version of \matrix.
\documentclass{article}
\begin{document}
$$\left( \matrix{ a & b & c \cr
d & e & f \cr
g & h & i \cr} \right)$$
\end{document}
You can change the delimiters if you wish. Note that normally you should avoid $$..$$ in favor of \[..\] (see this post). However, I see you are specifically instructed by this magazine to use it.
Sandy G
- 42,558
-
-
And I just try it, finding that substituting [ for $$ do not affect the result. So It is not necessary for me to see the post. Hope my idea could negligibly help you. Thanks! – Zhiyuan Zhang Jan 18 '18 at 14:57
-
3
You need not to use \left( and \right) when rounded parentheses are used. Just use \pmatrix intead \matrix. And the last \cr is always optional.
$$
\pmatrix{ a & b & c \cr
d & e & f \cr
g & h & i }
$$
wipet
- 74,238

\begin{array} ...end{array}. for parenthesis and brackets use\left(or[and\right)or\right]`. welcome to tex.se! – Zarko Jan 18 '18 at 14:08arrayenvironment to be used. – Sandy G Jan 18 '18 at 14:33