Monday, April 26, 2010

[LaTeX] Adjusting row spacing in the matrix environment

So I was attempting to typeset the Jacobian matrix, right? For some reason, the matrix environment decided it would be fun to put all my fractions in inlinestyle, even though I had the matrix wrapped in \[ \]. So I changed my \frac's to \dfrac's, only to discover that it typeset them uncomfortably close together. The solution, which I found at desk.stinkpot.org after lots of googling, is to manually adjust row spacing in the matrix. How do you do this, you ask? Why, it's quite simple -- by putting a spacing amount in brackets after your linebreak character:

\begin{vmatrix}
{\bf i} & {\bf j} & {\bf k} \\[5pt]
...


You're welcome.