[Tex/LaTex] Problem with \cdashline and package arydshln

arydshlnerrorsmatricespackagespunctuation

I have a problem with \cdashline. I use the \cdashline in a matrix but I have an error with \usepackage{arydshln} I think:

! Use of \x doesn't match its definition.
\LT@array ->\adl@arrayinit 
                           \adl@LTfirstpagetrue \let \adl@discard \relax \le...
l.5034 }{}

If I remove \usepackage{arydshln} latex will not stack but it will not recognize \cdashline. The strange thing is that package and \cdashline works at my pc at home (Windows environment and Miktex tool) but is not working from ubuntu in work.

MWE:

\documentclass[oneside]{memoir}
\usepackage{multirow}
\usepackage{array}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{pdflscape}
\usepackage{pifont}
\usepackage{arydshln}
\begin{document}
\begin{longtable}{llp{6.5cm}}
\textbf{System} & \textbf{Class} & \textbf{Tokens included in class} \\
~ & ~ & \\
\cdashline{2-3}
\end{longtable}
\end{document} 

Best Answer

I found the error. I have added by mistake another \usepackage{longtable}. I read about arydshln that it should be added after \usepackage{tabularx} \usepackage{longtable}. I hope it will help someone.

Related Question