Skip to content
Snippets Groups Projects
Commit 87033cb7 authored by Mathieu Loiseau's avatar Mathieu Loiseau
Browse files

2 cols min clozes

parent e1b235f1
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,7 @@ class Cloze(Question):
self.choices.append(Answer(f"{l}) {c}", 0, self.max))
def __str__(self):
res = "\\element{" + self.category + "}{\n\t\\begin{" + self.env + "}{" + self.id + "}\\nbpoints{" + score_2_str(self.max) + "}\\\\\n" + self.q +"\n\t\t\\begin{multicols}{"+str(len(self.choices_num))+"}\n\t\t\t\\begin{choices}[o]\n\\AMCnoCompleteMulti"
res = "\\element{" + self.category + "}{\n\t\\begin{" + self.env + "}{" + self.id + "}\\nbpoints{" + score_2_str(self.max) + "}\\\\\n" + self.q +"\n\t\t\\begin{multicols}{"+str(max(2,len(self.choices_num)))+"}\n\t\t\t\\begin{choices}[o]\n\\AMCnoCompleteMulti"
res += "\n"
l = 0
i = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment