@@ -316,7 +316,7 @@ sub NAMED_ANS_RULE {
316316 $tcol = $tcol < 40 ? $tcol : 40 ; ## get min
317317
318318 MODES (
319- TeX => "{\\answerRule[$name]{$tcol}}" ,
319+ TeX => "\\relax {\\answerRule[$name]{$tcol}}" ,
320320 Latex2HTML => qq !\\begin {rawhtml }<input type =text size =$col name ="$name" value ="" >\\end {rawhtml }!,
321321
322322 # Note : codeshard is used in the css to identify input elements that come from pg
@@ -360,7 +360,7 @@ sub NAMED_HIDDEN_ANS_RULE {
360360 $tcol = $tcol < 40 ? $tcol : 40 ; ## get min
361361
362362 MODES (
363- TeX => "{\\answerRule[$name]{$tcol}}" ,
363+ TeX => "\\relax {\\answerRule[$name]{$tcol}}" ,
364364 Latex2HTML => qq !\\begin {rawhtml }<input type =text name ="$name" value ="" >\\end {rawhtml }!,
365365 HTML => qq !<input type =hidden name ="$name" id ="$name" value ="$answer_value" >!
366366 . qq!<input type=hidden name="previous_$name" id="previous_$name" value="$answer_value">!,
@@ -413,7 +413,7 @@ sub NAMED_ANS_RULE_EXTENSION {
413413 my $tcol = $col / 2 > 3 ? $col / 2 : 3 ; ## get max
414414 $tcol = $tcol < 40 ? $tcol : 40 ; ## get min
415415 MODES (
416- TeX => "{\\answerRule[$name]{$tcol}}" ,
416+ TeX => "\\relax {\\answerRule[$name]{$tcol}}" ,
417417 Latex2HTML =>
418418 qq !\\begin {rawhtml }\n <input type =text size =$col name ="$name" id ="$name" value ="" >\n \\end {rawhtml }\n !,
419419 HTML => qq !<input type =text class ="codeshard" size =$col name ="$name" id ="$name" aria -label ="$label" !
@@ -1079,7 +1079,7 @@ sub NAMED_ANS_ARRAY_EXTENSION {
10791079 $tcol = $tcol < 40 ? $tcol : 40 ; ## get min
10801080
10811081 MODES (
1082- TeX => "{\\answerRule[$name]{$tcol}}" ,
1082+ TeX => "\\relax {\\answerRule[$name]{$tcol}}" ,
10831083 Latex2HTML =>
10841084 qq !\\begin {rawhtml }\n <input type =text size =$col name ="$name" id ="$name" value ="" >\n \\end {rawhtml }\n !,
10851085 HTML => qq !<input type =text size =$col name ="$name" id ="$name" class ="codeshard" aria -label ="$label" !
0 commit comments