Is possible to use the solution template in exams2nops?

我与影子孤独终老i 提交于 2021-02-05 06:37:05

问题


When I try to generate the exams' solution with the exams2nops(...template="solution"...) I get the following error message:

Error in exams2pdf(file, n = n, nsamp = nsamp, dir = dir, name = name,  : 
  formal argument "template" matched by multiple actual arguments

How can I produce an exams' solution with the exams2nops?


回答1:


You cannot do that in one go, you need two runs after setting the same seed, e.g.,

set.seed(1)
exams2nops(my_exam)
set.seed(1)
exams2pdf(my_exam, template = "my_solution.tex")      

You can use the solution.tex provided within the package as a starting point for my_solution.tex. But you may want to translate it to your natural language, use the name of your university, possibly insert a logo, add your actual exam name, possibly some into text etc. In exams2pdf() you need to add these things in the template LaTeX file directly.




回答2:


won't the template="solution" not work in the exams2pdf? Also, can we do something like:

usepackage = "pdfpages", intro = intro2,... ?



来源:https://stackoverflow.com/questions/65793878/is-possible-to-use-the-solution-template-in-exams2nops

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!