WeBWorK Problems

formatted answer blank in a tex fraction

Re: formatted answer blank in a tex fraction

by Davide Cervone -
Number of replies: 0
This gives a somewhat more pleasing layout, and should work better in hardcopy mode.
    loadMacros("unionTables.pl");
    
    $LINE = MODES(
      TeX  => '\hrulefill ',
      HTML => '<hr size="1" style="border-style: solid; margin:1px 0 5px 0">',
    );
    
    $exp = BeginTable() .
        AlignedRow([ans_rule(2)]) .
        AlignedRow([$LINE]) .
        AlignedRow(["\($d\)"]) .
    EndTable();
    $exp = BeginTable() .
        Row(["\(\displaystyle\frac{$a}{$b} = \)",$exp],separation=>8) .
    EndTable();

Hope that helps.

Davide