I am having some problems with arydshln
and multicolumn
. The following document:
\documentclass{article}
\usepackage{amsmath}
\usepackage{arydshln}
\begin{document}
\[
\begin{pmatrix}
\multicolumn{1}{|c|}{1} & \multicolumn{1}{|c|}{2} & \multicolumn{1}{|c|}{3} & \multicolumn{1}{|c|}{4}\\[5ex] \cline{1-4}
\end{pmatrix}
\]
\end{document}
generates this output:
with the vertical lines too short. If I remove the \usepackage{arydshln}
line, the output is fine:
So arydshln
doesn't seem to work well with multicolumn
and the [5ex]
height spec, it seems.
The same happens if I use multicolumn
with {:c:}
for alignment (which is actually what I wanted, and won't work):
\multicolumn{1}{:c:}{1} & \multicolumn{1}{:c:}{2} & \multicolumn{1}{:c:}{3} & \multicolumn{1}{:c:}{4}\\[5ex] \cdashline{1-4}
So is there a way to get the second result? Am I using the packages the wrong way?
Thank you!