[system] / branches / rel-2-1-patches / webwork-modperl / lib / WeBWorK / Constants.pm Repository:
ViewVC logotype

View of /branches/rel-2-1-patches/webwork-modperl/lib/WeBWorK/Constants.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2980 - (download) (as text) (annotate)
Wed Nov 3 19:52:01 2004 UTC (8 years, 7 months ago)
File size: 3544 byte(s)
This commit was manufactured by cvs2svn to create branch 'rel-2-1-patches'.

    1 ################################################################################
    2 # WeBWorK Online Homework Delivery System
    3 # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
    4 # $CVSHeader: webwork2/lib/WeBWorK/Constants.pm,v 1.21 2004/10/11 19:53:06 gage 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::ContentGenerator::Hardcopy
   61 ################################################################################
   62 
   63 # If true, don't delete temporary files
   64 #
   65 $WeBWorK::ContentGenerator::Hardcopy::PreserveTempFiles = 0;
   66 
   67 ################################################################################
   68 # 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 #     $WeBWorK::PG::ImageGenerator::DvipngArgs = "-bgTransparent -D120 -q -depth";
   77 #
   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