There is a conflict between the four packages tikz, tabularx, array and arydshln. The MWE below compiles, if I do not
- load tikz ( tikz.sty 2015/08/07 v3.0.1a (rcs-revision 1.151))
- (load todonotes (todonotes.sty 2018/11/22) calls tikz)
- use tabularx (usepackage and environment, tabularx.sty 2016/02/03 v2.11b)
- load array (array.sty 2018/11/13 v2.4j)
- load arydshln (arydshln.sty 2018/09/26 v1.74)
As @daleif noted, tikz called by todonotes is part of the problem.
Using all, I get:
! Extra }, or forgotten \endgroup. \@endpbox ...th \dp \@arstrutbox \fi \par \egroup \adl@colhtdp \box \adl@box... l.22 \end{tabularx}
\documentclass{article}
\usepackage{tikz}
% \usepackage{todonotes}
\usepackage{tabularx}
\usepackage{array}
\usepackage{arydshln}
\begin{document}
\begin{tabular}{l l l }
A & B & C
\end{tabular}
\begin{tabularx}{\textwidth}{l X X}
A & B & C
\end{tabularx}
\end{document}
How can I use all four packages without conflict?
todonotes
as is, you get the same error if you replace it withtikz
(todonotes
is build on tikz).