In a simple latex .tex file, how can i colorize an hline
?
I've tried
\hline[color:red]
...and:
\hline{color:red}
...but they don't work
Similarly, how can i increase the thickness (width) of the hline
?
You need to use colortbl
to colour the default tabular
rules (horizontal or vertical):
\documentclass{article}
\usepackage{colortbl}
\begin{document}
\begin{tabular}{c}
\arrayrulecolor{red}\hline
a \\
\arrayrulecolor{green}\hline
\end{tabular}
\end{document}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With