# Line-spacing in a matrix [closed]

I put this code:

$$\begin{pmatrix} 1 &1 &1 \\ 4 & 0 & 1 \\ 0 & 4 & 2 \end{pmatrix}$$


But the line-spacing is exaggerated, how can it be solved?

• This is not the default spacing. Please show a complete code reproducing this spacing. – Bernard May 19 at 23:18
• The effect is caused by something else in your document (perhaps in the preamble). Please edit your question and post a complete example code that reproduces the problem. Without this it may be difficult for anyone to help you. – Ian Thompson May 19 at 23:19
• I’m voting to close this question because the issue cannot be reproduced using the code provided and has been resolved. – Ian Thompson May 19 at 23:38
• You have \renewcommand\arraystretch{...} somewhere in your document. – Henri Menke May 20 at 2:03

\renewcommand{\arraystretch}{1.4} %interlineado de las tablas