Graphics, Figures & Tables ⇒ A too big matrix
A too big matrix
Hi guys, I was wondering if it is possible to fit a slightly too big matrix using some command ?
Thanks!
Thanks!
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
A too big matrix
Hi,
you can
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
LaTeX.org admin
Re: A too big matrix
Hey,
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
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: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
A too big matrix
\arraystretch can be redefined to be smaller than 1, such as 0.9.
\tabcolsep is a length, so adjust it this way:
Stefan
\tabcolsep is a length, so adjust it this way:
Code: Select all
\setlength{\tabcolsep}{1pt}
LaTeX.org admin
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: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
A too big matrix
Adjust the value before you start the matrix, such as:
Stefan
Code: Select all
\[
\setlength{\arraycolsep}{2pt}
\renewcommand{\arraystretch}{0.8}
\begin{pmatrix}
...
\end{pmatrix}
\]
LaTeX.org admin
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: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
A too big matrix
For example, temporarily leaving math mode for changing the font size:
You can use also \tiny, \scriptsize or \small instead.
Stefan
Code: Select all
$M = \mbox{\footnotesize$
\begin{pmatrix}
...
\end{pmatrix}$}$
Stefan
LaTeX.org admin