TransWikia.com

Configure table line color for the whole document?

TeX - LaTeX Asked on January 27, 2021

I am using tabular, tabularx and tabulary with the package array and I would like to declare the color of the line for all the tables in the whole document.

The goal is to make them slightly less dark.

Is there a package/command to do this? I found that I can easily change the line color for one table with colortbl:

documentclass{article}
usepackage{colortbl}
begin{document}
  begin{tabular}{l!{color{green}vrule}l}
    arrayrulecolor{red}hline
    test & testarrayrulecolor{blue}hline
  end{tabular}
end{document}

Bue I don’t want to rewrite my whole document to change this everywhere.

One Answer

enter image description here

arrayrulecolor{black}

enter image description here

arrayrulecolor{gainsboro}

enter image description here

arrayrulecolor{antiquewhite}

MWE

documentclass{article}

usepackage{hhline,colortbl}
    definecolor{antiquewhite}{rgb}{0.98, 0.92, 0.84}
        definecolor{black}{rgb}{0.0, 0.0, 0.0}
            definecolor{gainsboro}{rgb}{0.86, 0.86, 0.86}
begin{document}
arrayrulecolor{antiquewhite}

begin{tabular}
  {|l|  c|    c|}             hline
 one & two & three      hline
  1  & 2  & 3             hline
  4  & 5  & 6             hline
end{tabular}
end{document}

Answered by js bibra on January 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP