| … | |
… | |
| 9 | =head1 NAME |
9 | =head1 NAME |
| 10 | |
10 | |
| 11 | WeBWorK::ContentGenerator::Problem - Allow a student to interact with a problem. |
11 | WeBWorK::ContentGenerator::Problem - Allow a student to interact with a problem. |
| 12 | |
12 | |
| 13 | =cut |
13 | =cut |
| 14 | my $timer0_ON=1; # times pg translation phase |
14 | my $timer0_ON=0; # times pg translation phase |
| 15 | use strict; |
15 | use strict; |
| 16 | use warnings; |
16 | use warnings; |
| 17 | use CGI qw(); |
17 | use CGI qw(); |
| 18 | use File::Path qw(rmtree); |
18 | use File::Path qw(rmtree); |
| 19 | use WeBWorK::Form; |
19 | use WeBWorK::Form; |
| … | |
… | |
| 772 | dir => $ce->{courseDirs}->{html_temp}, |
772 | dir => $ce->{courseDirs}->{html_temp}, |
| 773 | url => $ce->{courseURLs}->{html_temp}, |
773 | url => $ce->{courseURLs}->{html_temp}, |
| 774 | basename => $basename, |
774 | basename => $basename, |
| 775 | latex => $ce->{externalPrograms}->{latex}, |
775 | latex => $ce->{externalPrograms}->{latex}, |
| 776 | dvipng => $ce->{externalPrograms}->{dvipng}, |
776 | dvipng => $ce->{externalPrograms}->{dvipng}, |
|
|
777 | useCache => 1, |
|
|
778 | cacheDir => $ce->{webworkDirs}->{equationCache}, |
|
|
779 | cacheURL => $ce->{webworkURLs}->{equationCache}, |
|
|
780 | cacheDB => $ce->{webworkFiles}->{equationCacheDB}, |
| 777 | ); |
781 | ); |
| 778 | |
782 | |
| 779 | my $header; |
783 | my $header; |
| 780 | #$header .= CGI::th("Part"); |
784 | #$header .= CGI::th("Part"); |
| 781 | $header .= $showAttemptAnswers ? CGI::th("Entered") : ""; |
785 | $header .= $showAttemptAnswers ? CGI::th("Entered") : ""; |