-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
How to change the strip color on kableExtra #41
Comments
Hi, @shanakap, I added a new option
Right it only take native LaTeX color codes and those hex HTML codes won't work. If necessary, I can write a global option to make it easier to use, when I have time. Also, my current feeling is that for I'd better keep this feature within the LaTeX domain because HTML users can easily change the default bootstrap color by putting a CSS section in their document (https://stackoverflow.com/questions/20825211/bootstrap-table-striped-how-do-i-change-the-stripe-background-colour). However, that will change the stripe color for all tables in the document and it's actually difficult to change the color for only one table. 🤔 |
Thank you so much for adding this option. I tried to use this by re-installing
|
@shanakap have you installed from github via |
Hi @haozhu233 i figured out the issue, but soon as you try to use more option on Error is; |
Hi, @shanakap, I think if you want to take off the row names, you should use |
Thanks for the great feature! Just one comment about:
A quick workaround is to (1) convert the HEX color you're interested in to RGB. There are plenty of online tools to do that. Just make sure your final values are within [0,1] by dividing them by 255. (2) define a custom LaTeX color with: \definecolor{my_color}{rgb}{0.95,0.98,1.00} % replace by your RGB values! Then that color can be called in R with: ... %>% kable_styling(stripe_color='my_color') |
The color of the strips are very lite on
Kable
on Pdf output. So is there a way to change the color onkable_styling(latex_options = "striped")
?The text was updated successfully, but these errors were encountered: