Consider the following LaTeX manuscript featuring a TikZ picture of a matrix with a single cell.
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\matrix[draw,nodes=draw]
{
\node {*}; \\
};
\end{tikzpicture}
\end{document}
The resulting image is
How can I adjust the padding surrounding the cell? For instance, suppose I wish to get rid of the padding all together. I attempted to add inner sep=0pt to the matrix's option list, but then not only did the padding surrounding the cell collapse, but also the padding surrounding the asterisk inside the cell:
P.S. If the matrix has more than one cell, I don't wish to alter the spacing between the rows or the spacing between the columns; only the padding inside the matrix that surrounds the entire grid of cells.


inner sep=2pt, nodes={draw, inner sep=0}orinner sep=0, nodes={draw, inner sep=2pt}– percusse Jul 13 '17 at 16:09inner sepof the cells, but I don't know what it is? (2) Is there a way to adjust the four margins separately?inner sepaffects all four of them uniformly. – Evan Aad Jul 13 '17 at 16:13every matrixstyle – percusse Jul 13 '17 at 16:22inner xsepandinner yseppartly solve problem #2, but only partly, and only problem #2. As for theevery matrixstyle: I don't think that, in itself, it solves either of the problems. For instance, if I add the optionevery matrix/.style={inner sep=0pt}to thetikzpicture's option list, theinner sepinside the cell collapses as well as the surrounding padding. – Evan Aad Jul 13 '17 at 16:27\pgfkeysvalueof{/pgf/inner xsep}if that's a concern and reset the nodes after settinginner sep=0. – percusse Jul 13 '17 at 16:48