$A = N\left ( \begin{pmatrix}
\\ .
\\ .
\end{pmatrix} \right )$

I tried the above on an online Tex equation editor, and it works just fine.

enter image description here

However, after putting that into my actual latex document, it looks like this. The matrix format is completely lost.

enter image description here

How can I go about fixing this?

  • 5
    Did you do \usepackage{amsmath}?
    – egreg
    Commented Sep 1, 2017 at 14:14
  • 1
    (off-topic) the dots really don't need to take up so much vertical space. the command \vdots (math mode only) is a more compact form intended for use in matrices. Commented Sep 1, 2017 at 15:30
  • Do you really want something that takes up so much vertical space in in-line maths. Commented Sep 1, 2017 at 16:51
  • note that you would have got an error message. If you get an error from TeX then look at the message don't look at the output except possibly for debugging. As you see, after an error the generated pdf is not usually sensible. Commented Sep 2, 2017 at 10:29

1 Answer 1


Add \usepackage{amsmath} before \begin{document}.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .