[Tex/LaTex] Conflict between `booktabs` and `arydshln` packages

arydshlnbooktabstables

Please see the MWE below and its result. I didn't use the arydshln package in the example, but I have to use it somewhere else in the same document. As you see, there is something wrong with the vertical border lines in the table. If I don't use one of the arydshln and booktabs packages, it displays correctly.

Is there any workaround here? I'm looking for one of the following:

  1. A method to prevent the wrong display with both packages used.
  2. An alternative to the nice formatting and \toprule, \midrule, and \bottomrule from the booktabs package.
  3. An alternative to the arydshln package to draw dashed lines in math arrays (vectors, matrices).

Thank you for the help.

\documentclass{article}

\usepackage{booktabs}
\usepackage{arydshln}

\begin{document}

\begin{tabular}{ c | r r }
\toprule
    & 123 & 456 \\
\midrule
    \multicolumn{3}{l}{blah blah blah }\\
\midrule
    abc & def & hij \\
\bottomrule
\end{tabular}

\end{document}

screenshot

ADDED–

After some experiments, I found multicolumn is not a key. When I replaced it by a regular row, it still displays wrong.

Best Answer

You could try the easybmat package, which makes it easy to put dashed lines inside matrices.

Related Question