TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
probably you can also use a \resizebox{xlenght}{ylength}{contents} – Martin H Aug 3 '11 at 14:35
but it is going to affect the font size as well, that I do not want. – pluton Aug 3 '11 at 15:13
up vote 2 down vote accepted

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

AN example for the test:


foo & bar\\
bar & foo

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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