Invalid UTF-8 byte sequence in Title from the exams2nops function in R/Exams

184 Views Asked by At

I am using the exams package and function exams2nops. My code is:

exams2nops(file=quests,
           n=1,
           nsamp = 1,
           intro = "\\includepdf[pages=-]{D:/OneDrive - ISPA/AEI/2022-2023/Exams/exam1/Intro.pdf}",
           language = "pt-PT",
           institution = "Análise Estatística I",
           title = "Época Recurso ---")

I get the error "! LaTeX Error: Invalid UTF-8 byte sequence (áli)"...

If I remove the accented character "à", "í" and "É"... then everything works with no errors. The quest exercices have a lot of accented characters and those print out fine. It just in the exam2nops title and institution that I get the error!....

Any ideas? Thanks!

0

There are 0 best solutions below