Skip to content

Bad assumption of Quarto engine #701

@bastienchassagnol

Description

@bastienchassagnol

While, by default, the pdf engine used for rendering Quarto PDFs is xelatex, compliant with the fontspec package, it's totally feasible to change the Quarto engine to pdflatex (and I actually have to do so, related to a bad formatting of a maths symbol unrelated to flextable).

However, with the following lines:

flextable/R/latex_str.R

Lines 46 to 48 in 20d92ef

if (fontspec_compat || is_quarto) {
x$fontspec <- latex_dependency("fontspec")
}
,

you're assuming the default, when using quarto, is always fontspec compliant, generating errors when loading flextable within a Quarto framework whose metadata latex-engine key is pdflatex.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions