I'm wondering about a way to automatically shrink down a matrix. I can think of \arraycolsep command for the column width but I am not aware of an equivalent command for the height of the lines? Should the whole matrix environment be redefined to allow this?

  • probably you can also use a \resizebox{xlenght}{ylength}{contents}
    – Martin H
    Aug 3, 2011 at 14:35
  • but it is going to affect the font size as well, that I do not want.
    – pluton
    Aug 3, 2011 at 15:13

1 Answer 1


set \setlength\arraycolsep{2pt} and \def\arraystretch{0.8} or use smaller values

AN example for the test:


foo & bar\\
bar & foo

  • Is not \arraystretch for tabular only? not for matrices of type pmatrix and so on?
    – pluton
    Sep 17, 2011 at 12:40
  • so the question is "Why don't you test it?" ... ;-)
    – user2478
    Sep 17, 2011 at 16:30
  • well, I tested it and it did not modify anything. I'll try on miniml example then
    – pluton
    Sep 17, 2011 at 16:44
  • @pluton: see my answer
    – user2478
    Sep 17, 2011 at 17:14

You must log in to answer this question.

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