| 1 | ################################################################################ |
1 | ################################################################################ |
| 2 | # WeBWorK Online Homework Delivery System |
2 | # WeBWorK Online Homework Delivery System |
| 3 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
3 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
| 4 | # $CVSHeader: webwork-modperl/lib/WeBWorK/PG.pm,v 1.53 2004/06/21 19:07:08 gage Exp $ |
4 | # $CVSHeader: webwork-modperl/lib/WeBWorK/PG.pm,v 1.54 2004/06/23 01:19:56 sh002i Exp $ |
| 5 | # |
5 | # |
| 6 | # This program is free software; you can redistribute it and/or modify it under |
6 | # This program is free software; you can redistribute it and/or modify it under |
| 7 | # the terms of either: (a) the GNU General Public License as published by the |
7 | # the terms of either: (a) the GNU General Public License as published by the |
| 8 | # Free Software Foundation; either version 2, or (at your option) any later |
8 | # Free Software Foundation; either version 2, or (at your option) any later |
| 9 | # version, or (b) the "Artistic License" which comes with this package. |
9 | # version, or (b) the "Artistic License" which comes with this package. |
| … | |
… | |
| 177 | dvipng => $envir{externalDvipngPath}, |
177 | dvipng => $envir{externalDvipngPath}, |
| 178 | useCache => 1, |
178 | useCache => 1, |
| 179 | cacheDir => $ce->{webworkDirs}->{equationCache}, |
179 | cacheDir => $ce->{webworkDirs}->{equationCache}, |
| 180 | cacheURL => $ce->{webworkURLs}->{equationCache}, |
180 | cacheURL => $ce->{webworkURLs}->{equationCache}, |
| 181 | cacheDB => $ce->{webworkFiles}->{equationCacheDB}, |
181 | cacheDB => $ce->{webworkFiles}->{equationCacheDB}, |
|
|
182 | useMarkers => ($ce->{pg}->{renderers}->{dvipng_align} && |
|
|
183 | $ce->{pg}->{renderers}->{dvipng_align} eq 'mysql'), |
|
|
184 | dvipng_align => $ce->{pg}->{renderers}->{dvipng_align}, |
|
|
185 | dvipng_depth_db => $ce->{pg}->{renderers}->{dvipng_depth_db}, |
| 182 | ); |
186 | ); |
| 183 | |
187 | |
| 184 | # Other things... |
188 | # Other things... |
| 185 | $envir{QUIZ_PREFIX} = $options->{QUIZ_PREFIX}; # used by quizzes |
189 | $envir{QUIZ_PREFIX} = $options->{QUIZ_PREFIX}; # used by quizzes |
| 186 | $envir{PROBLEM_GRADER_TO_USE} = $ce->{pg}->{options}->{grader}; |
190 | $envir{PROBLEM_GRADER_TO_USE} = $ce->{pg}->{options}->{grader}; |