Skip to content

Commit

Permalink
Fix latex problem with sizes #1885
Browse files Browse the repository at this point in the history
  • Loading branch information
andrie committed Sep 19, 2024
1 parent f834f1e commit d607d46
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions R/utils_render_latex.R
Original file line number Diff line number Diff line change
Expand Up @@ -1230,14 +1230,14 @@ remove_footnote_encoding <- function(x) {
convert_font_size_l <- function(x) {

size_map <- c(
`xx-small` = "\\tiny",
`x-small` = "\\scriptsize",
small = "\\small",
medium = "\\normalsize",
large = "\\large",
`x-large` = "\\Large",
`xx-large` = "\\LARGE",
`xxx-large` = "\\huge"
`xx-small` = "\\tiny{}",
`x-small` = "\\scriptsize{}",
small = "\\small{}",
medium = "\\normalsize{}",
large = "\\large{}",
`x-large` = "\\Large{}",
`xx-large` = "\\LARGE{}",
`xxx-large` = "\\huge{}"
)

if (as.character(x) %in% names(size_map))
Expand Down

0 comments on commit d607d46

Please sign in to comment.