I've been struggling to fit a large matrix on a page, and have finally managed to fit it in, although I had to make the entries very small. Now I want label the rows and columns of the matrix. There is a good answer already on how to do this: Label rows of a matrix by characters.
However, I am using a different environment to the ones used in the answers to that topic. Since it took me a long time to get my large matrix to fit on the page, I don't want to have to start again from scratch. Is there some code that will allow me to add labelling around the edge whilst only requiring minor alterations to what I already have?
Here is what it looks like now:

Here is the code I have so far:
\documentclass[10pt,a4paper]{article}
\usepackage{amsmath} % for equation* and bmatrix environment
\usepackage{anyfontsize}
\setcounter{MaxMatrixCols}{20} % for the large matrices
\begin{document}
{\fontsize{4.9}{5.8}\selectfont % Fontsize may only come in 4pt and 5pt because there is a huge leap from 4.9 to 5
\noindent\hspace{-1.7in}\begin{minipage}{\dimexpr \textwidth+3.4in}
\begin{equation*}\setlength\arraycolsep{3pt}
\begin{pmatrix}
Lk(l_{1,1},l_{1,1}^{\#}) & Lk(l_{1,1},l_{1,2}^{\#}) & \cdots & \cdots & \cdots & \cdots & \cdots & \cdots & \cdots & \cdots & Lk(l_{1,1},l_{\frac{n}{2}-1,\frac{m}{2}-1}^{\#}) \\
Lk(l_{1,2},l_{1,1}^{\#}) & Lk(l_{1,2},l_{1,2}^{\#}) & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots &\vdots \\
\vdots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \vdots \\
\vdots & \ddots & \ddots & Lk(l_{1,\frac{m}{2}-1},l_{1,\frac{m}{2}-1}^{\#}) & Lk(l_{1,\frac{m}{2}-1},l_{2,1}^{\#}) & \ddots & \ddots & \ddots & \ddots & \ddots & \vdots \\
\vdots & \ddots & \ddots & Lk(l_{2,1},l_{1,\frac{m}{2}-1}^{\#}) & Lk(l_{2,1},l_{2,1}^{\#}) & \ddots & \ddots & \ddots & \ddots & \ddots & \vdots \\
\vdots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \vdots \\
\vdots & \ddots & \ddots & \ddots & \ddots & \ddots & Lk(l_{2,\frac{m}{2}-1},l_{2,\frac{m}{2}-1}^{\#}) & Lk(l_{2,\frac{m}{2}-1},l_{2,2}^{\#}) & \ddots & \ddots & \vdots \\
\vdots & \ddots & \ddots & \ddots & \ddots & \ddots & Lk(l_{2,2},l_{2,\frac{m}{2}-1}^{\#}) & Lk(l_{2,2},l_{2,2}^{\#}) & \ddots & \ddots & \vdots \\
\vdots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \vdots \\
\vdots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & Lk(l_{\frac{n}{2}-2,\frac{m}{2}-2},l_{\frac{n}{2}-2,\frac{m}{2}-2}^{\#}) & Lk(l_{\frac{n}{2}-1,\frac{m}{2}-1},l_{\frac{n}{2}-1,\frac{m}{2}-2}^{\#}) \\
Lk(l_{\frac{n}{2}-1,\frac{m}{2}-1},l_{1,1}^{\#}) & \cdots & \cdots & \cdots & \cdots & \cdots & \cdots & \cdots & \cdots & Lk(l_{\frac{n}{2}-1,\frac{m}{2}-2},l_{\frac{n}{2}-1,\frac{m}{2}-1}^{\#}) & Lk(l_{\frac{n}{2}-1,\frac{m}{2}-1},l_{\frac{n}{2}-1,\frac{m}{2}-1}^{\#}) \\
\\
\end{pmatrix}
\end{equation*}
\end{minipage}\hspace{-1.7in}
}
\end{document}
Apologies in advance for all the horizontal scrolling you will have to do: I'm not sure how to prevent that.
