1
4

1 回答 1

1

Could use the textcomp package and \textpertenthousand

---
output:
  pdf_document:
    latex_engine: xelatex
header-includes:
  - \usepackage{textcomp}
---

```{r, echo = FALSE}
  library(magrittr)
  what_should_this_be     <- "\\textpertenthousand"

  knitr::kable(
    head(mtcars) %>%
      dplyr::select(mpg) %>%
      tibble::rownames_to_column("car") %>%
      dplyr::mutate(mpg = paste0(mpg, what_should_this_be)),
    align     = "cc",
    escape    = F,
    booktabs  = T,
    caption   = "Works with character $\\sigma$, but what about permyriad?"
  )
```

enter image description here

于 2020-11-20T12:10:59.880 回答