Code: Select all
Code, edit and compile here:
\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]\endlastfootThis doesn't work & like it should \\\hlineI want colored line & above \\\hlineand 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.