2

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 '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
2

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

AN example for the test:

\documentclass{article}
\usepackage{amsmath}    
\begin{document}

\[
\def\arraystretch{3}
\begin{pmatrix}
foo & bar\\
bar & foo
\end{pmatrix}
\]

\end{document}
  • 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?" ... ;-) – user2478 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 – user2478 Sep 17 '11 at 17:14

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.