bump version
diff --git a/DESCRIPTION b/DESCRIPTION
index 2c1b3b8..e522975 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,7 +1,7 @@
Package: kableExtra
Type: Package
Title: Construct Complex Table with 'kable' and Pipe Syntax
-Version: 0.5.0.9000
+Version: 0.5.1
Authors@R: c(
person('Hao', 'Zhu', email = 'haozhu233@gmail.com', role = c('aut', 'cre')),
person('Timothy', 'Tsai', role = 'ctb'),
diff --git a/inst/NEWS.md b/inst/NEWS.md
index 69d76fe..7e13dfa 100644
--- a/inst/NEWS.md
+++ b/inst/NEWS.md
@@ -1,4 +1,4 @@
-kableExtra 0.5.0.9000
+kableExtra 0.5.1
--------------------------------------------------------------------------------
* Added documentations about those color/background color options in column_spec
and row_spec
@@ -6,6 +6,8 @@
* Added the kableExtra_latex_packages function to quickly print all necessary
LaTeX packages on the screen.
+* Hot fix a bug in full_width in LaTeX
+
kableExtra 0.5.0 (a big LaTeX update)
--------------------------------------------------------------------------------
* Now column_spec & row_spec can customize font & cell background color with
diff --git a/vignettes/awesome_table_in_html.Rmd b/vignettes/awesome_table_in_html.Rmd
index dfd276d..96baeda 100644
--- a/vignettes/awesome_table_in_html.Rmd
+++ b/vignettes/awesome_table_in_html.Rmd
@@ -127,8 +127,8 @@
kable(text_tbl) %>%
kable_styling(full_width = F) %>%
- column_spec(1, bold = T) %>%
- column_spec(2, width = "30em")
+ column_spec(1, bold = T, border_right = T) %>%
+ column_spec(2, width = "30em", background = "yellow")
```
@@ -139,7 +139,7 @@
kable(dt) %>%
kable_styling("striped", full_width = F) %>%
column_spec(7, bold = T) %>%
- row_spec(5, bold = T)
+ row_spec(5, bold = T, color = "white", background = "#D7261E")
```
# Grouped Columns / Rows
diff --git a/vignettes/awesome_table_in_pdf.Rmd b/vignettes/awesome_table_in_pdf.Rmd
index ab786dd..3848865 100644
--- a/vignettes/awesome_table_in_pdf.Rmd
+++ b/vignettes/awesome_table_in_pdf.Rmd
@@ -181,7 +181,7 @@
kable(text_tbl, format = "latex", booktabs = T) %>%
kable_styling(full_width = F) %>%
- column_spec(1, bold = T) %>%
+ column_spec(1, bold = T, color = "red") %>%
column_spec(2, width = "30em")
```
@@ -191,8 +191,8 @@
```{r}
kable(dt, format = "latex", booktabs = T) %>%
kable_styling("striped", full_width = F) %>%
- column_spec(7, bold = T) %>%
- row_spec(5, bold = T)
+ column_spec(7, border_left = T) %>%
+ row_spec(5, bold = T, color = "white", background = "black")
```
# Grouped Columns / Rows