flextable
flextable copied to clipboard
Font Warning Given with Quarto Regardless of laTeX Engine
Sorry if this is a duplicate---I think the last submission didn't get through.
This is just a small issue. When rendering in quarto, the warning "Warning: fonts used in flextable are ignored ..." is given regardless of whether the laTeX engine is xelatex. I assume it's because the check in the latex_str.R file and get_pdf_engine function is expecting something that quarto is no longer setting. Not a big issue, as the advise given in the warning message quiets the warning, but thought I'd mention it. Here's some sample code:
---
title: "Quarto Test"
format:
pdf:
latex-engine: xelatex
---
```{r}
library(flextable)
knitr::opts_knit$get("rmarkdown.pandoc.args")
mtcars |>
head() |>
flextable()
And here's my sessionInfo
R version 4.2.1 (2022-06-23)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.4 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.8.3 digest_0.6.29 R6_2.5.1 evaluate_0.15 zip_2.2.0
[6] rlang_1.0.2 gdtools_0.2.4 cli_3.3.0 uuid_1.1-0 data.table_1.14.2
[11] xml2_1.3.3 flextable_0.7.2 rmarkdown_2.14 tools_4.2.1 officer_0.4.2
[16] xfun_0.30 yaml_2.3.5 fastmap_1.1.0 compiler_4.2.1 systemfonts_1.0.4
[21] base64enc_0.1-3 htmltools_0.5.2 knitr_1.39
thank you I can reproduce, and no it's not a duplicate :)
There will be efforts to adapt to quarto soon.
This is fixed now
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.