I would like to modify this code :
Code: Select all
\documentclass{article}
\usepackage{amsmath,mathrsfs}
\usepackage{tikz}
\usetikzlibrary{matrix,positioning,fit}
\DeclareMathOperator{\Mat}{Mat}
\begin{document}
\begin{equation*}
\Mat_{\mathscr{B},\mathscr{B}'}(f)=
\begin{tikzpicture} [baseline=(m.center),every left delimiter/.style={xshift=2ex},
every right delimiter/.style={xshift=-2ex}] %,
column 6/.style={anchor=base east}]
\matrix (m)[matrix of math nodes,left delimiter=(,right delimiter=)]
{
a_{11} &[3mm] a_{12} & \dots & a_{1j} & \dots & a_{1n} \\
a_{21} & a_{22} & \dots & a_{2j} & \dots & a_{2n} \\[-2mm]
\vdots & \vdots & & \vdots & & \vdots \\
a_{i1} & a_{i2} & \dots & a_{ij} & \dots & a_{in} \\[-2mm]
\vdots & \vdots & & \vdots & & \vdots \\
a_{p1} & a_{p2} & \dots & a_{pj} & \dots & a_{pn} \\
};
\begin{scope}[every node/.style={text=blue}]
\foreach \j/\sub in {1/1,2/2,4/i,6/p} \node[right=\tabcolsep of m-\j-6.east] {$\leftarrow f_{\sub}$};
\foreach \i/\sub in {1/1,2/2,4/j,6/n} \node[above=1.2\tabcolsep of m-1-\i.north] (a-\i) {$f(e_{\sub})$};
\foreach \i in {1,2,4,6} \draw[blue,->] (a-\i) -- (m-1-\i);
\end{scope}
\node[line width=1pt,draw=blue,inner sep=-1pt,fit=(m-1-4) (m-6-4)](mfit){};
\draw[blue,->] ([shift={(-5mm,-5mm)}]mfit.south) -| ([yshift=-1mm]mfit.south);
\node[below=2\tabcolsep of m-6-1.west,color=blue] {Composantes du vecteur $f(e_j)$ dans la base $\mathcal{B}'$};
\end{tikzpicture}
\end{equation*}
\end{document}
I want to remove the space between the matrix and
Code: Select all
\Mat_{\mathscr{B},\mathscr{B}'}(f)=
Code: Select all
\node[below=2\tabcolsep of m-6-1.west,color=blue] {Composantes du vecteur $f(e_j)$ dans la base $\mathcal{B}'$};
Thank you for helping me.