From 87033cb7e5ac3505cad13f3317f18095b188bf59 Mon Sep 17 00:00:00 2001 From: Mathieu Loiseau <mathieu.loiseau@univ-grenoble-alpes.fr> Date: Wed, 26 Jan 2022 18:35:33 +0100 Subject: [PATCH] 2 cols min clozes --- XML_Moodle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XML_Moodle.py b/XML_Moodle.py index 24d1892..bbf757e 100755 --- a/XML_Moodle.py +++ b/XML_Moodle.py @@ -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 -- GitLab