Math & ScienceHow do I make a big matrix?

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Yue
Posts: 30
Joined: Sat May 08, 2010 9:58 pm

How do I make a big matrix?

Post by Yue »

To make a matrix, I usually use the command \begin{pmatrix} \end{pmatrix}. However, when the entries of my matrix have a great height, the entries in the matrix are kinda overlapping each other. When I have a 2x2 matrix and my entries are

Code: Select all

c_{\textbf{k}}^\dagger
, this happens.

Is there any way to make a matrix with larger spaces between the rows?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

How do I make a big matrix?

Post by Stefan Kottwitz »

Hi Yue,

you could redefine \arraystretch, like:

Code: Select all

\renewcommand{\arraystretch}{2}
This would affect all matrices and arrays, but you could define it locally.

Stefan
LaTeX.org admin
Yue
Posts: 30
Joined: Sat May 08, 2010 9:58 pm

How do I make a big matrix?

Post by Yue »

Stefan_K wrote:Hi Yue,

you could redefine \arraystretch, like:

Code: Select all

\renewcommand{\arraystretch}{2}
This would affect all matrices and arrays, but you could define it locally.

Stefan
I used this and now it seems as though the matrix is not quadratic any more. Is there any similar way to increase the column spacing?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

How do I make a big matrix?

Post by Stefan Kottwitz »

Hi Yue,

you could try \arraycolsep, like:

Code: Select all

\setlength{\arraycolsep}{10pt}
Stefan
LaTeX.org admin
Yue
Posts: 30
Joined: Sat May 08, 2010 9:58 pm

Re: How do I make a big matrix?

Post by Yue »

Thx alot!
Post Reply