Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default gray percentage too low #759

Closed
raffaem opened this issue Jul 15, 2023 · 1 comment
Closed

Default gray percentage too low #759

raffaem opened this issue Jul 15, 2023 · 1 comment

Comments

@raffaem
Copy link

raffaem commented Jul 15, 2023

I was experimenting with the striped option like in the vignette:

kbl(dt, booktabs = T, linesep="") %>%	kable_styling(latex_options = "striped")

This is the generated LaTeX code:

\cellcolor{gray!6}{Mazda RX4} & \cellcolor{gray!6}{21.0} & \cellcolor{gray!6}{6} &

but the default gray percentage of 6% is barely visible.

I thought the option didn't work until I figured it out and incremented the percentage manually.

  1. How can I change this percentage?
  2. Shouldn't we have a higher default value?
@rhurlin
Copy link

rhurlin commented Jul 17, 2023

Hi @raffaem,

You are already using the kable_styling() function. Inside this function try something like stripe_color = "gray!15".

HTH,
Rainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants