I have matrices with dense expressions in them and I'd like to loosen the matrix brackets a little. I'd like to be able to control the horizontal distance from bracket to first letter (both sides) and the vertical distance between the expressions. Vertically I'd like to only change the size below a row, unlike arraystretch
does.
Consitency thereby is very important, so local solutions are no good for me. I tried arraystretch
and % \setlength{\extrarowheight}{10pt}
, but those add extra space upon and below each line. I'd like an output similar to the following (preferably tunable), for all matricies in the document.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\horizontaldistance{2pt}
\vertical_distance{5pt}
\[
\begin{bmatrix}
\horizontaldistance s'^{\mathrm{T}} \horizontaldistance \\[vertical_distance]
\horizontaldistance I_{p\times p} \horizontaldistance
\end{bmatrix}
\]
\end{document}
My goal would be, that I do not have to write the distances explicitly into the matrix, but that ALL bmarix instances at once have the same distances!
\mathrm{T}
instead of\text
.10em
distance, which distance? Please advise.