| 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/Authz.pm,v 1.14 2004/03/15 20:17:35 sh002i Exp $ |
4 | # $CVSHeader: webwork-modperl/lib/WeBWorK/Constants.pm,v 1.10 2004/06/22 17:13:46 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. |
| … | |
… | |
| 23 | =cut |
23 | =cut |
| 24 | |
24 | |
| 25 | use strict; |
25 | use strict; |
| 26 | use warnings; |
26 | use warnings; |
| 27 | |
27 | |
|
|
28 | ################################################################################ |
|
|
29 | # WeBWorK::Debug |
|
|
30 | ################################################################################ |
|
|
31 | |
|
|
32 | # If true, WeBWorK::Debug will print debugging output. |
|
|
33 | # |
|
|
34 | $WeBWorK::Debug::Enabled = 0; |
|
|
35 | |
|
|
36 | # If non-empty, debugging output will be sent to the file named rather than STDERR. |
|
|
37 | # |
|
|
38 | $WeBWorK::Debug::Logfile = ""; |
|
|
39 | |
|
|
40 | ################################################################################ |
|
|
41 | # WeBWorK::Timing |
|
|
42 | ################################################################################ |
|
|
43 | |
|
|
44 | # If true, WeBWorK::Timing will print timing data. |
|
|
45 | # |
|
|
46 | $WeBWorK::Timing::Enabled = 0; |
|
|
47 | |
|
|
48 | # If non-empty, timing data will be sent to the file named rather than STDERR. |
|
|
49 | # |
|
|
50 | $WeBWorK::Timing::Logfile = ""; |
|
|
51 | |
|
|
52 | ################################################################################ |
|
|
53 | # WeBWorK::PG::ImageGenerator |
|
|
54 | ################################################################################ |
|
|
55 | |
|
|
56 | # Arguments to pass to dvipng. This is dependant on the version of dvipng. |
|
|
57 | # |
|
|
58 | # For dvipng < 1.0 |
|
|
59 | # $WeBWorK::PG::ImageGenerator::DvipngArgs = "-x4000.5 -bgTransparent -Q6 -mode toshiba -D180"; |
|
|
60 | # For dvipng >= 1.0 |
|
|
61 | # $WeBWorK::PG::ImageGenerator::DvipngArgs = "-bgTransparent -D120"; |
|
|
62 | # |
|
|
63 | $WeBWorK::PG::ImageGenerator::DvipngArgs = "-x4000.5 -bgTransparent -Q6 -mode toshiba -D180"; |
|
|
64 | |
|
|
65 | # If true, don't delete temporary files |
|
|
66 | # |
|
|
67 | $WeBWorK::PG::ImageGenerator::PreserveTempFiles = 0; |
|
|
68 | |
|
|
69 | # TeX to prepend to equations to be processed. |
|
|
70 | # |
|
|
71 | $WeBWorK::PG::ImageGenerator::TexPreamble = <<'EOF'; |
|
|
72 | \documentclass[12pt]{article} |
|
|
73 | \nonstopmode |
|
|
74 | \usepackage{amsmath,amsfonts,amssymb} |
|
|
75 | \def\gt{>} |
|
|
76 | \def\lt{<} |
|
|
77 | \usepackage[active,textmath,displaymath]{preview} |
|
|
78 | \begin{document} |
|
|
79 | EOF |
|
|
80 | |
|
|
81 | # TeX to append to equations to be processed. |
|
|
82 | # |
|
|
83 | $WeBWorK::PG::ImageGenerator::TexPostamble = <<'EOF'; |
|
|
84 | \end{document} |
|
|
85 | EOF |
|
|
86 | |
|
|
87 | 1; |