Is it possible to adjust the padding around elements in a matrix, as indicated in the figure below.
The code is shown below
\documentclass{scrartcl} \usepackage{amsmath} \begin{document} ... in general we have \begin{equation} \begin{bmatrix} \frac{\partial f_1}{\partial x_1} & \cdots & \frac{\partial f_1}{\partial x_n} \\ \vdots & \ddots & \vdots \\ \frac{\partial f_m}{\partial x_1} & \cdots & \frac{\partial f_m}{\partial x_n} \end{bmatrix} \end{equation} and for the particular case of $m=n=2$ \begin{equation} \begin{bmatrix} \frac{\partial f_1}{\partial x_1} & \frac{\partial f_1}{\partial x_2} \\ \frac{\partial f_2}{\partial x_1} & \frac{\partial f_2}{\partial x_2} \end{bmatrix} \end{equation} Is it possible to insert some space around the elements in (2)? The matrix looks a bit cramped. \end{document} 

cellspacepackage wiith option[math]does that.nicematrixprovides tools to control that and also many other points.