Code: Select all
\documentclass{article}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{colortbl}
\newcommand\mytoprule{
\arrayrulecolor{red} % This seems to have no effect :(
\toprule[4.5pt]
\arrayrulecolor{black}
}
\begin{document}
\begin{longtable}{ll}
\caption{Sample Table} \\
\textbf{Column} & \textbf{Column} \\
\mytoprule
\endfirsthead
\bottomrule[2.25pt]
\endlastfoot
This doesn't work & like it should \\\hline
I want colored line & above \\\hline
and black line & below \\
\end{longtable}
\end{document}
Experimentation with the actual (much longer) document suggests the \arrayrulecolor command is affecting regular tabular objects, but not longtable objects. I'm stumped.