[system] / trunk / webwork2 / lib / WeBWorK / Constants.pm Repository:
ViewVC logotype

Annotation of /trunk/webwork2/lib/WeBWorK/Constants.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2891 - (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 : gage 2891 # $CVSHeader: webwork-modperl/lib/WeBWorK/Constants.pm,v 1.19 2004/10/07 19:55:18 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 : sh002i 2745 $WeBWorK::Debug::Enabled = 0;
35 : sh002i 2365
36 :     # If non-empty, debugging output will be sent to the file named rather than STDERR.
37 :     #
38 :     $WeBWorK::Debug::Logfile = "";
39 :    
40 : sh002i 2372 # Prevent subroutines matching the following regular expression from logging.
41 :     #
42 :     # For example, this pattern prevents the dispatch() function from logging:
43 :     # $WeBWorK::Debug::QuellSubroutineOutput = qr/^WeBWorK::dispatch$/;
44 :     #
45 :     $WeBWorK::Debug::QuellSubroutineOutput = undef;
46 :    
47 : sh002i 2365 ################################################################################
48 :     # WeBWorK::Timing
49 :     ################################################################################
50 :    
51 :     # If true, WeBWorK::Timing will print timing data.
52 :     #
53 : gage 2861 $WeBWorK::Timing::Enabled = 1;
54 : sh002i 2365
55 :     # If non-empty, timing data will be sent to the file named rather than STDERR.
56 :     #
57 : gage 2891 $WeBWorK::Timing::Logfile = "/home/gage/webwork2/logs/timing.log";
58 : sh002i 2365
59 :     ################################################################################
60 : sh002i 2765 # WeBWorK::ContentGenerator::Hardcopy
61 :     ################################################################################
62 :    
63 :     # If true, don't delete temporary files
64 :     #
65 :     $WeBWorK::ContentGenerator::Hardcopy::PreserveTempFiles = 0;
66 :    
67 :     ################################################################################
68 : sh002i 2365 # WeBWorK::PG::ImageGenerator
69 :     ################################################################################
70 :    
71 :     # Arguments to pass to dvipng. This is dependant on the version of dvipng.
72 :     #
73 :     # For dvipng < 1.0
74 :     # $WeBWorK::PG::ImageGenerator::DvipngArgs = "-x4000.5 -bgTransparent -Q6 -mode toshiba -D180";
75 :     # For dvipng >= 1.0
76 : jj 2407 # $WeBWorK::PG::ImageGenerator::DvipngArgs = "-bgTransparent -D120 -q -depth";
77 : sh002i 2365 #
78 :     $WeBWorK::PG::ImageGenerator::DvipngArgs = "-x4000.5 -bgTransparent -Q6 -mode toshiba -D180";
79 :    
80 :     # If true, don't delete temporary files
81 :     #
82 :     $WeBWorK::PG::ImageGenerator::PreserveTempFiles = 0;
83 :    
84 :     # TeX to prepend to equations to be processed.
85 :     #
86 :     $WeBWorK::PG::ImageGenerator::TexPreamble = <<'EOF';
87 :     \documentclass[12pt]{article}
88 :     \nonstopmode
89 :     \usepackage{amsmath,amsfonts,amssymb}
90 :     \def\gt{>}
91 :     \def\lt{<}
92 :     \usepackage[active,textmath,displaymath]{preview}
93 :     \begin{document}
94 :     EOF
95 :    
96 :     # TeX to append to equations to be processed.
97 :     #
98 :     $WeBWorK::PG::ImageGenerator::TexPostamble = <<'EOF';
99 :     \end{document}
100 :     EOF
101 :    
102 :     1;

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9