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

Table row highlights - switch off for certain tables #74

Closed
dragonattheend opened this issue Jun 14, 2022 · 1 comment
Closed

Table row highlights - switch off for certain tables #74

dragonattheend opened this issue Jun 14, 2022 · 1 comment

Comments

@dragonattheend
Copy link

Thanks a lot for your work!
I'm using your package, my YAML is

output:
  xaringan::moon_reader:
    css: xaringan-themer.css
    nature:
      # slideNumberFormat: "%current%"
      highlightStyle: github
      highlightLines: true
      ratio: 16:9
      countIncrementalSlides: true

And themer setting is

library(xaringanthemer)
style_duo_accent(
  primary_color = "#1381B0",
  secondary_color = "#FF961C",
  inverse_header_color = "#FFFFFF"
)

I have some markdown and stargazer tables in my presentation.

I see that every other row gets highlighted in any table.

While I'm okay with it in some tables, I'd like to remove it for the stargazer regression tables.

stargazer(lm.1, lm.2, type = "html", single.row = TRUE)

where I want to highlight a 1 certain row and leave others unformatted.

@dragonattheend dragonattheend changed the title Table row highlights - switch of for certain tables Table row highlights - switch off for certain tables Jun 14, 2022
@gadenbuie
Copy link
Owner

I'm not sure how helpful it will be for you, but the table shading can now be turned off by adding the table-unshaded class to the <table> element.

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

2 participants