TransWikia.com

Generate solutions on esami

TeX - LaTeX Asked by Rodrigo Galvão on January 8, 2021

I am using esami to make some multiple choice tests, but I can’t generate the answers the way I want. I want the output file to have only the problems and at the end of all versions, the solutions are shown. I can only get both the answers at the MCQ and at the end of the test. I tried using options: “solutions,noquizsolutions”, but yet it generates the test with solutions in MCQ. Any idea of how can I get only the solutions in a separate page?

documentclass[a4paper,english]{article}
usepackage{ifxetex}
usepackage{ifluatex}

ifluatex
        usepackage{luatextra} 
        usepackage{unicode-math}
        setmathfont{Latin Modern Math}
        usepackage[utf8]{luainputenc}
elseifxetex
        usepackage{fixltx2e}
                usepackage{fontspec}
                usepackage{unicode-math}
                      XeTeXinputencoding utf8
else
        usepackage[T1]{fontenc}
        usepackage[utf8]{inputenc}
        usepackage{lmodern,textcomp}
fifi
usepackage[shufflerandom,xyz,solutions,noquizsolutions,twocolumns]{esami}
defexamname{Geometry Final}
defnumcompiti{4}
date{12/12/2017}
defData{longdate}
usepackage{babel}

begin{document}
testversioni
pagestyle{esame}
whiledo{thevers<numcompiti}{stepvers
FPevalseme{round((thenomefile+(3*thevers)):0)}
randomi=seme
permuta
testa
begin{test}[0]
begin{questions}
selectallproblems[random]{test11}
end{questions}
end{test}
closevers
newpage                                                                 
setcounter{page}{1} 
}

end{document}

One Answer

This feature has not been implemented in the package. The way that I can suggest (the one that we use when a separate file for solutions is required) is to create the solution file and to separate the page with the MCQ solution string. This page is placed at the end of the solutions file and we extract it using pdftk.

Answered by grames on January 8, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP