[system] / trunk / webwork-modperl / lib / WeBWorK / Constants.pm Repository:
ViewVC logotype

Annotation of /trunk/webwork-modperl/lib/WeBWorK/Constants.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2365 - (view) (download) (as text)

1 : sh002i 2362 ################################################################################
2 :     # WeBWorK Online Homework Delivery System
3 :     # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
4 : sh002i 2365 # $CVSHeader: webwork-modperl/lib/WeBWorK/Constants.pm,v 1.10 2004/06/22 17:13:46 sh002i Exp $
5 : sh002i 2362 #
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
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.
10 :     #
11 :     # This program is distributed in the hope that it will be useful, but WITHOUT
12 :     # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 :     # FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the
14 :     # Artistic License for more details.
15 :     ################################################################################
16 :    
17 :     package WeBWorK::Constants;
18 :    
19 :     =head1 NAME
20 :    
21 :     WeBWorK::Constants - provide constant values for other WeBWorK modules.
22 :    
23 :     =cut
24 :    
25 :     use strict;
26 :     use warnings;
27 :    
28 : sh002i 2365 ################################################################################
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;

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9