Skip to content

Commit fea8c44

Browse files
merge gt default branch in
Merge branch 'master' into latex_unicode_conversion # Conflicts: # NEWS.md
2 parents 7b3ce9a + 6312cf5 commit fea8c44

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

NEWS.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66

77
* as_word() now handles "<br>" line breaks for md() and html(), and no longer automatically adds "Table N" ahead of the caption.
88

9+
* Improvements to options for LaTeX including repeating Headers, removing top and bottom lines, applying font sizes, and line breaks (@thebioengineer, #1630, #1061, #1767)
10+
11+
* Add `latex()` function to let users write the LaTeX they wish to see in the table cell or text (@thebioengineer, #1912)
12+
13+
* Added support for some unicode characters when going out to LaTeX (@thebioengineer)
14+
15+
916
# gt 1.0.0
1017

1118
## Minor improvements and bug fixes
@@ -28,13 +35,6 @@
2835

2936
* Fixed many typos in the documentation. (#1910, thanks @MichaelChirico!)
3037

31-
* Improvements to options for LaTeX including repeating Headers, removing top and bottom lines, applying font sizes, and line breaks (@thebioengineer, #1630, #1061, #1767)
32-
33-
* Add `latex()` function to let users write the LaTeX they wish to see in the table cell or text (@thebioengineer)
34-
35-
* Added support for some unicode characters when going out to LaTeX (@thebioengineer)
36-
37-
3838
# gt 0.11.1
3939

4040
## Breaking changes

R/helpers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ html <- function(text, ...) {
153153
#' The text that is understood to be LaTeX text, which is to be preserved in
154154
#' the LaTeX output context.
155155
#'
156-
##'
156+
#'
157157
#' @return A character object of class `latex`. It's tagged as an latex fragment
158158
#' that is not to be sanitized.
159159
#'

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ markdown_to_latex <- function(text, md_engine) {
11521152
}
11531153

11541154
if(grepl("..gt\\_linebreak\\_indicator..", x, fixed = TRUE)){
1155-
x <- paste0("\\shortstack[l]{",gsub("..gt\\_linebreak\\_indicator.."," \\\\", x, fixed = TRUE),"}")
1155+
x <- paste0("\\shortstack[l]{" ,gsub("..gt\\_linebreak\\_indicator..", " \\\\", x, fixed = TRUE), "}")
11561156
}
11571157

11581158
x

R/utils_render_latex.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ latex_heading_row <- function(content, header_repeat = FALSE) {
9494
paste0(
9595
paste(paste(content, collapse = " & "), "\\\\ \n"),
9696
"\\midrule",
97-
if(header_repeat){"\\endhead"},
97+
if (header_repeat) {"\\endhead"},
9898
"\\addlinespace[2.5pt]\n",
9999
collapse = ""
100100
)
@@ -627,7 +627,7 @@ create_columns_component_l <- function(data, colwidth_df) {
627627
include_toprule <- dt_options_get_value(data, "latex_toprule")
628628

629629
paste0(
630-
if(include_toprule){"\\toprule\n"},
630+
if (include_toprule) {"\\toprule\n"},
631631
paste0(table_col_spanners, collapse = ""),
632632
table_col_headings
633633
)

0 commit comments

Comments
 (0)