commit | 994fc563248ca1851c06ce7a42411e8eaacad913 | [log] [tgz] |
---|---|---|
author | Stefanie LaZerte <steffi@steffi.ca> | Mon Dec 11 14:14:07 2017 -0600 |
committer | Stefanie LaZerte <steffi@steffi.ca> | Mon Dec 11 14:14:07 2017 -0600 |
tree | 05f0d36dcaa07341d1c6dd227a770ae243ce585b | |
parent | 915b1b234730be625bd714e3b5e8740ee223060a [diff] |
Add \leavevmode to \color specification to preserve vertical alignment in columns. (https://tex.stackexchange.com/questions/328043/changing-the-text-color-for-a-cell-does-change-alignment)
diff --git a/R/column_spec.R b/R/column_spec.R index eede10b..55e01a1 100644 --- a/R/column_spec.R +++ b/R/column_spec.R
@@ -179,7 +179,7 @@ } if (!is.null(color)) { - color <- paste0("\\\\color", latex_color(color)) + color <- paste0("\\\\leavevmode\\\\color", latex_color(color)) } if (!is.null(background)) {