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

height

parent d6a8d106
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ class TF(MCQ):
self.choices.append(Answer("\\multiling{faux}{false}", a.attrib['fraction'], self.max, fb))
class ShortAnswer(TF):
def __init__(self, xmlQ,c,n,f,l=4):
def __init__(self, xmlQ,c,n,f,l=2):
super().__init__(xmlQ,c,n,f)
self.nb_lines = l
if self.__class__.__name__ == "ShortAnswer":
......@@ -179,7 +179,7 @@ class ShortAnswer(TF):
def __str__(self):
res = """\\element{"""+self.category+"""}{
\\begin{"""+self.env+"""}{"""+self.id+"""}\\nbpoints{"""+score_2_str(self.max)+"""}
"""+self.q+"\n\t\t\\AMCOpen{lineheight=0.66cm,lines="+str(self.nb_lines)+"}{"
"""+self.q+"\n\t\t\\AMCOpen{lineheight=0.6cm,lines="+str(self.nb_lines)+"}{"
for c in self.choices:
res += "\\wrongchoice{"+score_2_str(c)+"}\\scoring{"+score_2_str(c)+"}"
res += "\\correctchoice{"+score_2_str(self.max)+"}\\scoring{"+score_2_str(self.max)+"}"
......
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