Graphics, Figures & Tables ⇒ A too big matrix
A too big matrix
Thanks!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
A too big matrix
you can
- Decrease the font size, for example by \small
- Make the space between columns and rows smaller, for example by using \arraystretch
- Use \resizebox or \scalebox of the graphicx package
Re: A too big matrix
thanks for the reply.
The first one doesn't work (\small is still too big, with \tiny it almost works but then it's quite "tiny").
I'm now trying to figure out how to use \arraystretch
A too big matrix
How does this work ?Stefan_K wrote: [*] Make the space between columns and rows smaller, for example by using \arraystretch
I tried:
Code: Select all
\renewcommand{\tabcolsep}{85mm}
\renewcommand{\arraystretch}{10}Any idea?
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
A too big matrix
\tabcolsep is a length, so adjust it this way:
Code: Select all
\setlength{\tabcolsep}{1pt}A too big matrix
Hey, thanks but it still doesn't work.Stefan_K wrote:\arraystretch can be redefined to be smaller than 1, such as 0.9.
\tabcolsep is a length, so adjust it this way:
StefanCode: Select all
\setlength{\tabcolsep}{1pt}
I think I may be doing something wrong, here is what i write:
Code: Select all
\begin{pmatrix}
\setlength{\tabcolsep}{1pt}
\renewcommand{\arraystretch}{0.9}Code: Select all
\end{pmatrix}- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
A too big matrix
Code: Select all
\[
\setlength{\arraycolsep}{2pt}
\renewcommand{\arraystretch}{0.8}
\begin{pmatrix}
...
\end{pmatrix}
\]A too big matrix
this works but it's still not enough.Stefan_K wrote:Adjust the value before you start the matrix, such as:
StefanCode: Select all
\[ \setlength{\arraycolsep}{2pt} \renewcommand{\arraystretch}{0.8} \begin{pmatrix} ... \end{pmatrix} \]
Is it possible to reduce the font just for the matrix ?
Thanks!
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
A too big matrix
Code: Select all
$M = \mbox{\footnotesize$
\begin{pmatrix}
...
\end{pmatrix}$}$Stefan