I am using \renewcommand{\arraystretch}{2.5}
in my arrays to produce nice tables. But this is affecting also matrix environments. Supposedly one can redefine the \arraystretch
locally inside each environment, but this does not work when I try to make my matrices look nice again. Please help.
Here's a MWE (which also illustrates the issue):
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz-cd}
\renewcommand{\arraystretch}{2.5}
\usepackage{amssymb, amsmath}
\begin{document}
\[\begin{array}{|c|c|}
\hline \omega^s_{~s}= 0 & \omega^s_{~\theta}= -\dfrac{f'}{f}\,\theta^\theta \\[.5em] \hline \omega^\theta_{~s}=\dfrac{f'}{f}\,\theta^\theta & \omega^\theta_{~\theta}=0 \\[.5em] \hline
\end{array}\]
\[ \begin{vmatrix} \renewcommand*{\arraystretch}{.5}
g(u_1,v_1) & g(u_1,v_2) \\ g(u_2,v_1) & g(u_2,v_2)
\end{vmatrix}\]
\end{document}