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

Add theme a la latex-like booktabs style #4

Closed
instantkaffee opened this issue Jan 2, 2017 · 3 comments
Closed

Add theme a la latex-like booktabs style #4

instantkaffee opened this issue Jan 2, 2017 · 3 comments

Comments

@instantkaffee
Copy link

Booktabs LaTeX-style.

Something along:

flextable(head(mtcars, n = 10 )) %>% 
  theme_vanilla() %>% 
  add_header(mpg="[gal/mi]", cyl="[...]", top = F) %>%
  style(i = 2, j = 1:11, part = "header", pr_t = fp_text(bold= F)) %>%
  border(i=1, j = 1:11, border.top = fp_border(width=2, color= "#000000"), part="header") %>%
  border(i=2, j = 1:11, border.bottom = fp_border(width=2, color= "#555555"), part="header") %>%
  border(i=10, j = 1:11, border.bottom = fp_border(width=2, color= "#000000"), part="body") %>%
  border(i=1, j = 1:11, border.bottom = fp_border(width=0), part="header") %>%
  border(i=2, j = 1:11, border.top = fp_border(width=0), part="header") %>%
  border(i=1:10, j = 1:11, border.top = fp_border(width=1, color= "#999999"), part="body") %>%
  border(i=1:9, j = 1:11, border.bottom = fp_border(width=1, color= "#999999"), part="body") %>%
  autofit(add_w = 0.03) %>%
  tabwid(width = "100px")

bildschirmfoto 2017-01-02 um 20 06 57

@davidgohel
Copy link
Owner

thanks for the suggestion. What would be the name of the theme?

@instantkaffee
Copy link
Author

booktabs?

davidgohel added a commit that referenced this issue Jan 19, 2017
@github-actions
Copy link

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants