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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2372 - (download) (as text) (annotate)
Wed Jun 23 19:19:02 2004 UTC (8 years, 11 months ago) by sh002i
File size: 3237 byte(s)
added QuellSubroutineOutput to WeBWorK::Debug

    1 ################################################################################
    2 # WeBWorK Online Homework Delivery System
    3 # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
    4 # $CVSHeader: webwork-modperl/lib/WeBWorK/Constants.pm,v 1.11 2004/06/23 00:33:05 sh002i Exp $
    5 #
    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 ################################################################################
   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 # 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 ################################################################################
   48 # WeBWorK::Timing
   49 ################################################################################
   50 
   51 # If true, WeBWorK::Timing will print timing data.
   52 #
   53 $WeBWorK::Timing::Enabled = 0;
   54 
   55 # If non-empty, timing data will be sent to the file named rather than STDERR.
   56 #
   57 $WeBWorK::Timing::Logfile = "";
   58 
   59 ################################################################################
   60 # WeBWorK::PG::ImageGenerator
   61 ################################################################################
   62 
   63 # Arguments to pass to dvipng. This is dependant on the version of dvipng.
   64 #
   65 # For dvipng < 1.0
   66 #     $WeBWorK::PG::ImageGenerator::DvipngArgs = "-x4000.5 -bgTransparent -Q6 -mode toshiba -D180";
   67 # For dvipng >= 1.0
   68 #     $WeBWorK::PG::ImageGenerator::DvipngArgs = "-bgTransparent -D120";
   69 #
   70 $WeBWorK::PG::ImageGenerator::DvipngArgs = "-x4000.5 -bgTransparent -Q6 -mode toshiba -D180";
   71 
   72 # If true, don't delete temporary files
   73 #
   74 $WeBWorK::PG::ImageGenerator::PreserveTempFiles = 0;
   75 
   76 # TeX to prepend to equations to be processed.
   77 #
   78 $WeBWorK::PG::ImageGenerator::TexPreamble = <<'EOF';
   79 \documentclass[12pt]{article}
   80 \nonstopmode
   81 \usepackage{amsmath,amsfonts,amssymb}
   82 \def\gt{>}
   83 \def\lt{<}
   84 \usepackage[active,textmath,displaymath]{preview}
   85 \begin{document}
   86 EOF
   87 
   88 # TeX to append to equations to be processed.
   89 #
   90 $WeBWorK::PG::ImageGenerator::TexPostamble = <<'EOF';
   91 \end{document}
   92 EOF
   93 
   94 1;

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9