79561974

Date: 2025-04-08 12:12:51
Score: 3
Natty:
Report link

I have been trying to do the same but experimenting instead with the greater flexibility provided by xelatex on the use of fonts. The following code produces a fine result but I am not sure if changing the sans-serif font won't mess with scanned elements.

exams2nops(questions, n = 2, dir = "nops_pdf", name = "test",
           usepackage = c("unicode-math"),
           header="\\setmainfont{TeX Gyre Pagella}\\setmathfont{TeX Gyre Pagella Math}\\setsansfont{Roboto}",
           texengine="xelatex")

Can you comment, please?

Reasons:
  • Blacklisted phrase (1): trying to do the same
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Paulo Soares