[英]Is there a way to add color to borders of table using kable extra in rmarkdown pdf?
I want full borderd table and make the lines of border to be green.我想要完整的边框表格并使边框线为绿色。 i didn't find any attributes to make the lines to greeen in column_spec or row_spec.
我没有找到任何属性来使 column_spec 或 row_spec 中的线条变绿。
'kbl(df,booktabs = T,longtable = T,align = c("l", "c", "c", "c")) %>%
kable_styling(latex_options = c("hold_position","repeat_header"),bootstrap_options = "bordered",full_width = F)%>%
column_spec(1, width = "8.5cm",border_left = T, border_right = T)%>%
column_spec(2:4, width = "2.5cm", border_right = T)%>%
collapse_rows(latex_hline = "full")%>%
row_spec(0, bold = T, color = "white", background = "#008752")
how can i remove gap between the border lines我怎样才能消除边界线之间的差距
You can add你可以加
\usepackage{colortbl}
\arrayrulecolor{green}
to your header includes to change the line colour to green到您的 header 包括将线条颜色更改为绿色
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.