[OS X TeX] Vertical Spacing in "bmatrix" environment
Michael Hoppe
mh at michael-hoppe.de
Wed Nov 12 06:34:59 EST 2008
Am 12.11.2008 um 11:34 schrieb Themis Matsoukas:
> \[
> \renewcommand{\arraystretch}{2}
> \begin{bmatrix}
> \frac{s+5}{s^2+5s+4} \\
> \frac{-1}{s^2+5s+4}
> \end{bmatrix}
> \]
The brackets are too big. Compare all solutions listed so far:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amsmath}
\def\tabkor{\vphantom{\Bigl(}}
\begin{document}
\Huge
$$\begin{bmatrix}
\tabkor\frac{s+5}{s^2+5s+4} \\
\tabkor\frac{-1}{s^2+5s+4}
\end{bmatrix}
$$
$$\begin{bmatrix}
\frac{s+5}{s^2+5s+4} \\
\frac{-1}{s^2+5s+4}
\end{bmatrix}
\begin{bmatrix}
\frac{s+5}{s^2+5s+4} \\
\noalign{\smallskip}
\frac{-1}{s^2+5s+4}
\end{bmatrix}
$$
$$
\begin{bmatrix}
\frac{s+5}{s^2+5s+4} \\[2ex]
\frac{-1}{s^2+5s+4}
\end{bmatrix}
\renewcommand{\arraystretch}{2}
\begin{bmatrix}
\frac{s+5}{s^2+5s+4} \\
\frac{-1}{s^2+5s+4}
\end{bmatrix}
$$
\end{document}
You might want to use \dfrac instead of \frac; then define
\def\dtabkor{\vphantom{\biggl(}}
and use it like this:
$$\begin{bmatrix}
\dtabkor\dfrac{s+5}{s^2+5s+4} \\
\dtabkor\dfrac{-1}{s^2+5s+4}
\end{bmatrix}
$$
Michael
More information about the MacOSX-TeX
mailing list