0

The science magazine prescribes that authors cannot use 'amsmath' package and so on, then how to generate matrix with Latex?enter image description here

4
  • 2
    as arrays: \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:08
  • It sounds like they don't want matrices displayed at all. If you use tabular or tikz matrix they will probably prohibit that as well. Actually, they don't seem to want any math at all. – John Kormylo Jan 18 '18 at 14:31
  • 2
    @Zarko : I think the magazine instructions do not want the array environment to be used. – Sandy G Jan 18 '18 at 14:33
  • 2
    They say that they prefer Word and any LaTeX document will be converted to Word using DOS via HTML... sciencemag.org/site/feature/contribinfo/prep/TeX_help Quite unexpected for "one of the world's top academic journals" (according to Wikipedia). – Earthliŋ Jan 18 '18 at 14:39
3

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}

enter image description here

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.

3
  • Thank you very much! Have a good time and God bless you! – Zhiyuan Zhang Jan 18 '18 at 14:35
  • 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
  • When using '[', the last \cr should be deleted. – Zhiyuan Zhang Jan 18 '18 at 15:07
2

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 }
$$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.