How to draw these two lines?
\documentclass[twocolumn]{ltxdoc}
\usepackage{amsmath}
\usepackage{lipsum}
\begin{document}
\begin{equation}
Trans_{z_{n-1}}(d_n) = \begin{bmatrix}
1 & 0 & 0 & 0 \\
0 & 1 & 0 & 0\
0 & 0 & 1 & d_{n}\
0 & 0 & 0 & 1
\end{bmatrix}
\end{equation}
\end{document}
My current version is like this:





Transis the product of 5 separate variables;\mathrm{Trans}would be better. – Teepeemm Jan 26 '23 at 14:50