commit | 915b1b234730be625bd714e3b5e8740ee223060a | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Thu Nov 09 14:01:44 2017 -0500 |
committer | Hao Zhu <haozhu233@gmail.com> | Thu Nov 09 14:01:44 2017 -0500 |
tree | c93b5dc5586083dce81dc06cd5f67d71ae1cbaed | |
parent | c375999dc9f163533a3ec9f228093ab4ccbd5c2e [diff] [blame] |
add HTML color support to background color
diff --git a/R/column_spec.R b/R/column_spec.R index 755c57d..eede10b 100644 --- a/R/column_spec.R +++ b/R/column_spec.R
@@ -183,7 +183,7 @@ } if (!is.null(background)) { - background <- sprintf("\\\\columncolor{%s}", background) + background <- paste0("\\\\columncolor", latex_color(background)) } latex_array_options <- c("\\\\bfseries", "\\\\em", "\\\\ttfamily")[