| 1 | #!perl |
1 | #!perl |
| 2 | ################################################################################ |
2 | ################################################################################ |
| 3 | # WeBWorK Online Homework Delivery System |
3 | # WeBWorK Online Homework Delivery System |
| 4 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
4 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
| 5 | # $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.79 2004/06/25 23:56:56 jj Exp $ |
5 | # $CVSHeader: webwork2/conf/global.conf.dist,v 1.99 2004/08/28 01:30:03 sh002i Exp $ |
| 6 | # |
6 | # |
| 7 | # This program is free software; you can redistribute it and/or modify it under |
7 | # This program is free software; you can redistribute it and/or modify it under |
| 8 | # the terms of either: (a) the GNU General Public License as published by the |
8 | # the terms of either: (a) the GNU General Public License as published by the |
| 9 | # Free Software Foundation; either version 2, or (at your option) any later |
9 | # Free Software Foundation; either version 2, or (at your option) any later |
| 10 | # version, or (b) the "Artistic License" which comes with this package. |
10 | # version, or (b) the "Artistic License" which comes with this package. |
| … | |
… | |
| 17 | |
17 | |
| 18 | # This file is used to set up the default WeBWorK course environment for all |
18 | # This file is used to set up the default WeBWorK course environment for all |
| 19 | # requests. Values may be overwritten by the course.conf for a specific course. |
19 | # requests. Values may be overwritten by the course.conf for a specific course. |
| 20 | # All package variables set in this file are added to the course environment. |
20 | # All package variables set in this file are added to the course environment. |
| 21 | # If you wish to set a variable here but omit it from the course environment, |
21 | # If you wish to set a variable here but omit it from the course environment, |
| 22 | # use the "my" keyword. The following variables are available to this file: |
22 | # use the "my" keyword. The $webwork_dir variable is set in the WeBWorK Apache |
| 23 | # |
23 | # configuration file (webwork.apache-config) and is available for use here. In |
| 24 | # $webworkRoot directory that contains the WeBWorK distribution |
24 | # addition, the $courseName variable holds the name of the current course. |
| 25 | # $webworkURLRoot base URL handled by Apache::WeBWorK |
|
|
| 26 | # $pgRoot directory that contains the PG distribution |
|
|
| 27 | # $courseName name of the course being used |
|
|
| 28 | |
25 | |
| 29 | ################################################################################ |
26 | ################################################################################ |
| 30 | # WeBWorK settings |
27 | # Seed variables |
| 31 | ################################################################################ |
28 | ################################################################################ |
| 32 | |
29 | |
| 33 | %webworkDirs = ( |
30 | # Set these variables to correspond to your configuration and preferences. You |
| 34 | root => "$webworkRoot", |
31 | # will need to restart the webserver to reset the variables in this section |
| 35 | DATA => "$webworkRoot/DATA", |
|
|
| 36 | uploadCache => "$webworkRoot/DATA/uploads", |
|
|
| 37 | bin => "$webworkRoot/bin", |
|
|
| 38 | conf => "$webworkRoot/conf", |
|
|
| 39 | courses => "$webworkRoot/courses", |
|
|
| 40 | htdocs => "$webworkRoot/htdocs", |
|
|
| 41 | htdocs_temp => "$webworkRoot/htdocs/tmp", |
|
|
| 42 | equationCache => "$webworkRoot/htdocs/tmp/equations", |
|
|
| 43 | local_help => "$webworkRoot/htdocs/helpFiles", |
|
|
| 44 | lib => "$webworkRoot/lib", |
|
|
| 45 | logs => "$webworkRoot/logs", |
|
|
| 46 | macros => "$pgRoot/macros", |
|
|
| 47 | tmp => "$webworkRoot/tmp", |
|
|
| 48 | ); |
|
|
| 49 | |
32 | |
| 50 | %webworkFiles = ( |
33 | # URL of WeBWorK handler. |
| 51 | environment => "$webworkDirs{conf}/global.conf", |
34 | $webwork_url = "/webwork2"; |
| 52 | hardcopySnippets => { |
|
|
| 53 | preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex", |
|
|
| 54 | setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", # hardcopySetHeader.pg", |
|
|
| 55 | problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex", |
|
|
| 56 | setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg", |
|
|
| 57 | setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex", |
|
|
| 58 | userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex", |
|
|
| 59 | postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex", |
|
|
| 60 | }, |
|
|
| 61 | screenSnippets => { |
|
|
| 62 | setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", # screenSetHeader.pg", |
|
|
| 63 | }, |
|
|
| 64 | logs => { |
|
|
| 65 | timing => "$webworkDirs{logs}/timing.log", |
|
|
| 66 | }, |
|
|
| 67 | # Set this to "" if you don't want to use the equation cache file |
|
|
| 68 | equationCacheDB => "$webworkDirs{DATA}/equationcache", |
|
|
| 69 | ); |
|
|
| 70 | |
35 | |
| 71 | %webworkURLs = ( |
36 | # Root directory of PG. |
| 72 | root => "$webworkURLRoot", |
37 | $pg_dir = "/opt/pg"; |
| 73 | home => "/webwork2_files/index.html", |
|
|
| 74 | htdocs => "/webwork2_files", |
|
|
| 75 | htdocs_temp => "/webwork2_files/tmp", |
|
|
| 76 | equationCache => "/webwork2_files/tmp/equations", |
|
|
| 77 | docs => "http://webhost.math.rochester.edu/webworkdocs/docs", |
|
|
| 78 | local_help => "/webwork2_files/helpFiles", |
|
|
| 79 | oldProf => "/webwork1/profLogin.pl", |
|
|
| 80 | bugReporter => "http://bugs.webwork.rochester.edu/enter_bug.cgi?product=WeBWorK%20mod_perl", |
|
|
| 81 | jsMath => "/webwork2_files/jsMath/jsMath.js", |
|
|
| 82 | asciimath => "/webwork2_files/ASCIIMathML/ASCIIMathML.js", |
|
|
| 83 | ); |
|
|
| 84 | |
38 | |
| 85 | ################################################################################ |
39 | # URL and path to htdocs directory. |
| 86 | # Default course-specific settings |
40 | $webwork_htdocs_url = "/webwork2_files"; |
| 87 | ################################################################################ |
41 | $webwork_htdocs_dir = "$webwork_dir/htdocs"; |
| 88 | |
42 | |
| 89 | my $courseRoot = "$webworkDirs{courses}/$courseName"; |
43 | # URL and path to courses directory. |
| 90 | %courseDirs = ( |
44 | $webwork_courses_url = "/webwork2_course_files"; |
| 91 | root => "$courseRoot", |
45 | $webwork_courses_dir = "$webwork_dir/courses"; |
| 92 | DATA => "$courseRoot/DATA", |
|
|
| 93 | auth_DATA => "$courseRoot/DATA/.auth", |
|
|
| 94 | html => "$courseRoot/html", |
|
|
| 95 | html_images => "$courseRoot/html/images", |
|
|
| 96 | html_temp => "$courseRoot/html/tmp", |
|
|
| 97 | logs => "$courseRoot/logs", |
|
|
| 98 | scoring => "$courseRoot/scoring", |
|
|
| 99 | templates => "$courseRoot/templates", |
|
|
| 100 | macros => "$courseRoot/templates/macros", |
|
|
| 101 | email => "$courseRoot/templates/email", |
|
|
| 102 | ); |
|
|
| 103 | |
46 | |
| 104 | %courseFiles = ( |
|
|
| 105 | environment => "$courseDirs{root}/course.conf", |
|
|
| 106 | motd => "$courseDirs{templates}/motd.txt", |
|
|
| 107 | logs => { |
|
|
| 108 | answer_log => "$courseDirs{logs}/answer_log", |
|
|
| 109 | }, |
|
|
| 110 | course_info => "course_info.txt", # path relative to templates directory |
|
|
| 111 | login_info => "login_info.txt", # path relative to templates directory |
|
|
| 112 | ); |
|
|
| 113 | |
|
|
| 114 | # quick hack to fix transaction logging. blah. |
|
|
| 115 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
|
|
| 116 | $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; |
|
|
| 117 | |
|
|
| 118 | my $courseURLRoot = "/webwork2_course_files/$courseName"; |
|
|
| 119 | %courseURLs = ( |
|
|
| 120 | root => "$courseURLRoot", |
|
|
| 121 | html => "$courseURLRoot", |
|
|
| 122 | html_temp => "$courseURLRoot/tmp", |
|
|
| 123 | ); |
|
|
| 124 | |
|
|
| 125 | ################################################################################ |
47 | ################################################################################ |
| 126 | # Other site-specific options |
48 | # Paths to external programs |
| 127 | ################################################################################ |
49 | ################################################################################ |
| 128 | |
50 | |
| 129 | %mail = ( |
51 | $externalPrograms{mkdir} = "/bin/mkdir"; |
| 130 | smtpServer => "mail.math.rochester.edu", |
52 | $externalPrograms{mysql} = "/usr/local/bin/mysql"; |
| 131 | smtpSender => "webwork\@math.rochester.edu", |
53 | |
|
|
54 | $externalPrograms{latex} = "/usr/local/bin/latex"; |
|
|
55 | $externalPrograms{pdflatex} = "/usr/local/bin/pdflatex --shell-escape"; # allows pdflatex to handle .eps files |
|
|
56 | $externalPrograms{dvipng} = "/usr/local/bin/dvipng"; |
|
|
57 | $externalPrograms{tth} = "/usr/local/bin/tth"; |
|
|
58 | |
|
|
59 | ################################################################################ |
|
|
60 | # Mail settings |
|
|
61 | ################################################################################ |
|
|
62 | |
|
|
63 | # Mail sent by the PG system and the mail merge and feedback modules will be |
|
|
64 | # sent via this SMTP server. |
|
|
65 | $mail{smtpServer} = 'mail.yourschool.edu'; |
|
|
66 | |
|
|
67 | # When connecting to the above server, WeBWorK will send this address in the |
|
|
68 | # MAIL FROM command. This has nothing to do with the "From" address on the mail |
|
|
69 | # message. It can really be anything, but some mail servers require it contain |
|
|
70 | # a valid mail domain, or at least be well-formed. |
|
|
71 | $mail{smtpSender} = 'webwork@yourserver.yourschool.edu'; |
| 132 | |
72 | |
| 133 | # allowedRecipients defines addresses that the PG system is allowed to |
73 | # AllowedRecipients defines addresses that the PG system is allowed to send mail |
| 134 | # send mail to. this prevents subtle PG exploits. This should be set |
74 | # to. this prevents subtle PG exploits. This should be set in course.conf to the |
| 135 | # in course.conf to the addresses of professors of each course. Sending |
75 | # addresses of professors of each course. Sending mail from the PG system (i.e. |
| 136 | # mail from the PG system (i.e. questionaires, essay questions) will |
76 | # questionaires, essay questions) will fail if this is not set somewhere (either |
| 137 | # fail if this is not set somewhere (either here or in course.conf). |
77 | # here or in course.conf). |
| 138 | #allowedRecipients => [ |
78 | $mail{allowedRecipients} = [ |
| 139 | # 'prof1@host.yourdomain.edu', |
79 | #'prof1@yourserver.yourdomain.edu', |
| 140 | # 'prof2@host.yourdomain.edu', |
80 | #'prof2@yourserver.yourdomain.edu', |
| 141 | #], |
81 | ]; |
| 142 | |
82 | |
| 143 | # if defined, feedbackRecipients overrides the list of recipients for |
83 | # If defined, feedbackRecipients overrides the list of recipients for feedback |
| 144 | # feedback email. It's appropriate to set this in the course.conf for |
84 | # email. It's appropriate to set this in the course.conf for specific courses, |
| 145 | # specific courses, but probably not in global.conf. if not defined, |
85 | # but probably not in global.conf. if not defined, mail is sent to all |
| 146 | # mail is sent to all professors and TAs for a given course |
86 | # professors and TAs for a given course |
| 147 | #feedbackRecipients => [ |
87 | #$mail{feedbackRecipients} = [ |
| 148 | # 'prof1@host.yourdomain.edu', |
88 | # 'prof1@yourserver.yourdomain.edu', |
| 149 | # 'prof2@host.yourdomain.edu', |
89 | # 'prof2@yourserver.yourdomain.edu', |
| 150 | #], |
90 | #]; |
| 151 | |
91 | |
| 152 | # feedbackVerbosity: |
92 | # feedbackVerbosity: |
| 153 | # 0: send only the feedback comment and context link |
93 | # 0: send only the feedback comment and context link |
| 154 | # 1: as in 0, plus user, set, problem, and PG data |
94 | # 1: as in 0, plus user, set, problem, and PG data |
| 155 | # 2: as in 1, plus the problem environment (debugging data) |
95 | # 2: as in 1, plus the problem environment (debugging data) |
| 156 | feedbackVerbosity => 1, |
96 | $mail{feedbackVerbosity} = 1; |
| 157 | |
97 | |
| 158 | # defines the size of the Mail Merge editor window |
98 | # Defines the size of the Mail Merge editor window |
| 159 | # FIXME: should this be here? it's UI, not mail |
99 | # FIXME: should this be here? it's UI, not mail |
| 160 | # FIXME: replace this with the auto-size method that TWiki uses |
100 | # FIXME: replace this with the auto-size method that TWiki uses |
| 161 | editor_window_rows => 15, |
101 | $mail{editor_window_rows} = 15; |
| 162 | editor_window_columns => 100, |
102 | $mail{editor_window_columns} = 100; |
| 163 | ); |
|
|
| 164 | |
103 | |
| 165 | %externalPrograms = ( |
|
|
| 166 | mkdir => "/bin/mkdir", |
|
|
| 167 | tth => "/usr/local/bin/tth", |
|
|
| 168 | pdflatex => "/usr/local/bin/pdflatex", |
|
|
| 169 | latex => "/usr/local/bin/latex", |
|
|
| 170 | dvipng => "/usr/local/bin/dvipng", |
|
|
| 171 | gif2eps => "$webworkDirs{bin}/gif2eps", |
|
|
| 172 | png2eps => "$webworkDirs{bin}/png2eps", |
|
|
| 173 | gif2png => "$webworkDirs{bin}/gif2png", |
|
|
| 174 | mysql => "/usr/local/bin/mysql", |
|
|
| 175 | ); |
|
|
| 176 | |
|
|
| 177 | %siteDefaults = ( |
|
|
| 178 | status => { |
|
|
| 179 | audit => "Audit", |
|
|
| 180 | A => "Audit", |
|
|
| 181 | drop => "Drop", |
|
|
| 182 | D => "Drop", |
|
|
| 183 | withdraw => "Drop", |
|
|
| 184 | current => "Enrolled", |
|
|
| 185 | C => "Enrolled", |
|
|
| 186 | enrolled => "Enrolled", |
|
|
| 187 | }, |
|
|
| 188 | ); |
|
|
| 189 | |
|
|
| 190 | ################################################################################ |
104 | ################################################################################ |
| 191 | # Frontend options |
105 | # System-wide locations (directories and URLs) |
| 192 | ################################################################################ |
106 | ################################################################################ |
| 193 | |
107 | |
| 194 | %templates = ( |
108 | # The root directory, set by webwork_root variable in Apache configuration. |
| 195 | system => "$webworkDirs{conf}/templates/ur.template", |
109 | $webworkDirs{root} = "$webwork_dir"; |
| 196 | ); |
110 | |
|
|
111 | # Location of system-wide data files. |
|
|
112 | $webworkDirs{DATA} = "$webworkDirs{root}/DATA"; |
|
|
113 | |
|
|
114 | # Used for temporary storage of uploaded files. |
|
|
115 | $webworkDirs{uploadCache} = "$webworkDirs{DATA}/uploads"; |
|
|
116 | |
|
|
117 | # Location of utility programs. |
|
|
118 | $webworkDirs{bin} = "$webworkDirs{root}/bin"; |
|
|
119 | |
|
|
120 | # Location of configuration files, templates, snippets, etc. |
|
|
121 | $webworkDirs{conf} = "$webworkDirs{root}/conf"; |
|
|
122 | |
|
|
123 | # Location of course directories. |
|
|
124 | $webworkDirs{courses} = "$webwork_courses_dir" || "$webworkDirs{root}/courses"; |
|
|
125 | |
|
|
126 | # Contains log files. |
|
|
127 | $webworkDirs{logs} = "$webworkDirs{root}/logs"; |
|
|
128 | |
|
|
129 | # Contains non-web-accessible temporary files, such as TeX working directories. |
|
|
130 | $webworkDirs{tmp} = "$webworkDirs{root}/tmp"; |
|
|
131 | |
|
|
132 | ##### The following locations are web-accessible. |
|
|
133 | |
|
|
134 | # The root URL (usually /webwork2), set by <Location> in Apache configuration. |
|
|
135 | $webworkURLs{root} = "$webwork_url"; |
|
|
136 | |
|
|
137 | # Location of system-wide web-accessible files, such as equation images, and |
|
|
138 | # help files. |
|
|
139 | $webworkDirs{htdocs} = "$webwork_htdocs_dir" || "$webworkDirs{root}/htdocs"; |
|
|
140 | $webworkURLs{htdocs} = "$webwork_htdocs_url"; |
|
|
141 | |
|
|
142 | # Location of web-accessible temporary files, such as equation images. |
|
|
143 | $webworkDirs{htdocs_temp} = "$webworkDirs{htdocs}/tmp"; |
|
|
144 | $webworkURLs{htdocs_temp} = "$webworkURLs{htdocs}/tmp"; |
|
|
145 | |
|
|
146 | # Location of cached equation images. |
|
|
147 | $webworkDirs{equationCache} = "$webworkDirs{htdocs_temp}/equations"; |
|
|
148 | $webworkURLs{equationCache} = "$webworkURLs{htdocs_temp}/equations"; |
|
|
149 | |
|
|
150 | # Contains context-sensitive help files. |
|
|
151 | $webworkDirs{local_help} = "$webworkDirs{htdocs}/helpFiles"; |
|
|
152 | $webworkURLs{local_help} = "$webworkURLs{htdocs}/helpFiles"; |
|
|
153 | |
|
|
154 | # URL of general WeBWorK documentation. |
|
|
155 | $webworkURLs{docs} = "http://webhost.math.rochester.edu/webworkdocs/docs"; |
|
|
156 | |
|
|
157 | # URL of WeBWorK 1.x profLogin.pl script, for access to old professor pages. |
|
|
158 | # Note that both systems must share a single "courses" directory for this to be |
|
|
159 | # useful. Leave this blank to disable |
|
|
160 | $webworkURLs{oldProf} = "/webwork1/profLogin.pl"; |
|
|
161 | |
|
|
162 | # URL of WeBWorK Bugzilla database. |
|
|
163 | $webworkURLs{bugReporter} = "http://bugs.webwork.rochester.edu/"; |
|
|
164 | |
|
|
165 | # Location of jsMath script, used for the jsMath display mode. |
|
|
166 | $webworkURLs{jsMath} = "$webworkURLs{htdocs}/jsMath/jsMath.js"; |
|
|
167 | |
|
|
168 | # Location of ASCIIMathML script, used for the asciimath display mode. |
|
|
169 | $webworkURLs{asciimath} = "$webworkURLs{htdocs}/ASCIIMathML/ASCIIMathML.js"; |
|
|
170 | |
|
|
171 | ################################################################################ |
|
|
172 | # Defaults for course-specific locations (directories and URLs) |
|
|
173 | ################################################################################ |
|
|
174 | |
|
|
175 | # The root directory of the current course. (The ID of the current course is |
|
|
176 | # available in $courseName.) |
|
|
177 | $courseDirs{root} = "$webworkDirs{courses}/$courseName"; |
|
|
178 | |
|
|
179 | # Location of course-specific data files, such as WW1 (GDBM) database files. |
|
|
180 | $courseDirs{DATA} = "$courseDirs{root}/DATA"; |
|
|
181 | |
|
|
182 | # Location of authentication data files when using a WW1 (GDBM) database. |
|
|
183 | $courseDirs{auth_DATA} = "$courseDirs{DATA}/.auth"; |
|
|
184 | |
|
|
185 | # Location of course HTML files, passed to PG. |
|
|
186 | $courseDirs{html} = "$courseDirs{root}/html"; |
|
|
187 | $courseURLs{html} = "$webwork_courses_url/$courseName"; |
|
|
188 | |
|
|
189 | # Location of course image files, passed to PG. |
|
|
190 | $courseDirs{html_images} = "$courseDirs{html}/images"; |
|
|
191 | |
|
|
192 | # Location of web-accessible, course-specific temporary files, like static and |
|
|
193 | # dynamically-generated PG graphics. |
|
|
194 | $courseDirs{html_temp} = "$courseDirs{html}/tmp"; |
|
|
195 | $courseURLs{html_temp} = "$courseURLs{html}/tmp"; |
|
|
196 | |
|
|
197 | # Location of course-specific logs, like the transaction log. |
|
|
198 | $courseDirs{logs} = "$courseDirs{root}/logs"; |
|
|
199 | |
|
|
200 | # Location of scoring files. |
|
|
201 | $courseDirs{scoring} = "$courseDirs{root}/scoring"; |
|
|
202 | |
|
|
203 | # Location of PG templates and set definition files. |
|
|
204 | $courseDirs{templates} = "$courseDirs{root}/templates"; |
|
|
205 | |
|
|
206 | # Location of course-specific macro files. |
|
|
207 | $courseDirs{macros} = "$courseDirs{templates}/macros"; |
|
|
208 | |
|
|
209 | # Location of mail-merge templates. |
|
|
210 | $courseDirs{email} = "$courseDirs{templates}/email"; |
|
|
211 | |
|
|
212 | ################################################################################ |
|
|
213 | # System-wide files |
|
|
214 | ################################################################################ |
|
|
215 | |
|
|
216 | # Location of this file. |
|
|
217 | $webworkFiles{environment} = "$webworkDirs{conf}/global.conf"; |
|
|
218 | |
|
|
219 | # Flat-file database used to protect against MD5 hash collisions. TeX equations |
|
|
220 | # are hashed to determine the name of the image file. There is a tiny chance of |
|
|
221 | # a collision between two TeX strings. This file allows for that. However, this |
|
|
222 | # is slow, so most people chose not to worry about it. Set this to "" if you |
|
|
223 | # don't want to use the equation cache file. |
|
|
224 | $webworkFiles{equationCacheDB} = ""; # "$webworkDirs{DATA}/equationcache"; |
|
|
225 | |
|
|
226 | ##### Hardcopy snippets are used in constructing a TeX file for hardcopy output. |
|
|
227 | ##### They should contain TeX code unless otherwise noted. |
|
|
228 | |
|
|
229 | # The preamble is the first thing in the TeX file. |
|
|
230 | $webworkFiles{hardcopySnippets}{preamble} = "$webworkDirs{conf}/snippets/hardcopyPreamble.tex"; |
|
|
231 | |
|
|
232 | # The setHeader preceeds each set. It is a PG file. |
|
|
233 | $webworkFiles{hardcopySnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; # hardcopySetHeader.pg", |
|
|
234 | |
|
|
235 | # The problem divider goes between problems. |
|
|
236 | $webworkFiles{hardcopySnippets}{problemDivider} = "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex"; |
|
|
237 | |
|
|
238 | # The set footer goes after each set. Is is a PG file. |
|
|
239 | $webworkFiles{hardcopySnippets}{setFooter} = "$webworkDirs{conf}/snippets/hardcopySetFooter.pg"; |
|
|
240 | |
|
|
241 | # The set divider goes between sets (in multiset output). |
|
|
242 | $webworkFiles{hardcopySnippets}{setDivider} = "$webworkDirs{conf}/snippets/hardcopySetDivider.tex"; |
|
|
243 | |
|
|
244 | # The user divider does between users (in multiuser output). |
|
|
245 | $webworkFiles{hardcopySnippets}{userDivider} = "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex"; |
|
|
246 | |
|
|
247 | # The postabmle is the last thing in the TeX file. |
|
|
248 | $webworkFiles{hardcopySnippets}{postamble} = "$webworkDirs{conf}/snippets/hardcopyPostamble.tex"; |
|
|
249 | |
|
|
250 | ##### Screen snippets are used when displaying problem sets on the screen. |
|
|
251 | |
|
|
252 | # The set header is displayed on the problem set page. It is a PG file. |
|
|
253 | $webworkFiles{screenSnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; # screenSetHeader.pg" |
|
|
254 | |
|
|
255 | ################################################################################ |
|
|
256 | # Course-specific files |
|
|
257 | ################################################################################ |
|
|
258 | |
|
|
259 | # The course configuration file. |
|
|
260 | $courseFiles{environment} = "$courseDirs{root}/course.conf"; |
|
|
261 | |
|
|
262 | # File contents are displayed after login, on the problem sets page. Path given |
|
|
263 | # here is relative to the templates directory. |
|
|
264 | $courseFiles{course_info} = "course_info.txt"; |
|
|
265 | |
|
|
266 | # File contents are displayed on the login page. Path given here is relative to |
|
|
267 | # the templates directory. |
|
|
268 | $courseFiles{login_info} = "login_info.txt"; |
|
|
269 | |
|
|
270 | # Additional library buttons can be added to the Library Browser (SetMaker.pm) |
|
|
271 | # by adding the libraries you want to the following line. For each key=>value |
|
|
272 | # in the list, if a directory (or link to a directory) with name 'key' appears |
|
|
273 | # in the templates directory, then a button with name 'value' will be placed at |
|
|
274 | # the top of the problem browser. (No button will appear if there is no |
|
|
275 | # directory or link with the given name in the templates directory.) For |
|
|
276 | # example, |
|
|
277 | # |
|
|
278 | # $courseFiles{problibs} = {rochester => "Rochester", asu => "ASU"}; |
|
|
279 | # |
|
|
280 | # would add two buttons, one for the Rochester library and one for the ASU |
|
|
281 | # library, provided templates/rochester and templates/asu exists either as |
|
|
282 | # subdirectories or links to other directories. |
|
|
283 | # |
|
|
284 | $courseFiles{problibs} = { |
|
|
285 | # rochesterLibrary => "Rochester", |
|
|
286 | # asuLibrary => "Arizona State", |
|
|
287 | # dcdsLibrary => "Detroit CDS", |
|
|
288 | # dartmouthLibrary => "Dartmouth", |
|
|
289 | # indianaLibrary => "Indiana", |
|
|
290 | # osuLibrary => "Ohio State", |
|
|
291 | # capaLibrary => "CAPA", |
|
|
292 | }; |
| 197 | |
293 | |
| 198 | ################################################################################ |
294 | ################################################################################ |
| 199 | # Database options |
295 | # Database options |
| 200 | ################################################################################ |
296 | ################################################################################ |
| 201 | |
297 | |
| 202 | # Several database are defined in the file conf/database.conf and stored in the |
298 | # Several database are defined in the file conf/database.conf and stored in the |
| 203 | # hash %dbLayouts. |
299 | # hash %dbLayouts. |
| 204 | include "conf/database.conf"; |
300 | include "conf/database.conf"; |
| 205 | |
301 | |
| 206 | # Select the default database layout. This can be overridden in the course.conf |
302 | # Select the default database layout. This can be overridden in the course.conf |
| 207 | # file of a particular course. |
303 | # file of a particular course. If you choose "gdbm", WeBWorK will be able to |
| 208 | #$dbLayoutName = "sql"; |
304 | # use courses from WeBWorK 1 without first adding course.conf files to them. |
| 209 | $dbLayoutName = "gdbm"; |
305 | # However, the recommended database layout for new courses is "sql_single". This |
|
|
306 | # can be set when creating a course. |
|
|
307 | $dbLayoutName = "sql_single"; # or "gdbm" or "sql" |
| 210 | |
308 | |
|
|
309 | # This sets the symbol "dbLayout" as an alias for the selected database layout. |
| 211 | *dbLayout = $dbLayouts{$dbLayoutName}; |
310 | *dbLayout = $dbLayouts{$dbLayoutName}; |
| 212 | |
311 | |
| 213 | ################################################################################ |
312 | ################################################################################ |
| 214 | # Problem library options |
313 | # Problem library options |
| 215 | ################################################################################ |
314 | ################################################################################ |
| 216 | |
315 | |
| 217 | %problemLibrary = ( |
316 | # The directory containing the problem library files. Set to "" if no problem |
| 218 | root => "", # set to the top of the problem library, if its installed |
317 | # library is installed. |
| 219 | sourceSQL => "ProblemLibrary", |
318 | $problemLibrary{root} = ""; |
| 220 | userSQL => "webworkRead", |
319 | |
| 221 | passwordSQL => "", |
320 | # The name of the SQL database containing problem metadata |
|
|
321 | $problemLibrary{sourceSQL} = "ProblemLibrary"; |
|
|
322 | |
|
|
323 | # The user name to use when connecting to the problem library database |
|
|
324 | $problemLibrary{userSQL} = "webworkRead"; |
|
|
325 | |
|
|
326 | # The password to use when connecting to the problem library database |
|
|
327 | $problemLibrary{passwordSQL} = ""; |
|
|
328 | |
|
|
329 | ################################################################################ |
|
|
330 | # Logs |
|
|
331 | ################################################################################ |
|
|
332 | |
|
|
333 | # FIXME: take logs out of %webworkFiles/%courseFiles and give them their own |
|
|
334 | # top-level hash. |
|
|
335 | |
|
|
336 | # Logs data about how long it takes to process problems. (Do not confuse this |
|
|
337 | # with the /other/ timing log which can be set by WeBWorK::Timing and is used |
|
|
338 | # for benchmarking system performance in general. At some point, this timing |
|
|
339 | # mechanism will be deprecated in favor of the WeBWorK::Timing mechanism.) |
|
|
340 | $webworkFiles{logs}{timing} = "$webworkDirs{logs}/timing.log"; |
|
|
341 | |
|
|
342 | # The transaction log contains data from each recorded answer submission. This |
|
|
343 | # is useful if the database becomes corrupted. |
|
|
344 | $webworkFiles{logs}{transaction} = "$courseDirs{logs}/transaction.log"; |
|
|
345 | |
|
|
346 | # The answer log stores a history of all users' submitted answers. |
|
|
347 | $courseFiles{logs}{answer_log} = "$courseDirs{logs}/answer_log"; |
|
|
348 | |
|
|
349 | ################################################################################ |
|
|
350 | # More paths to external programs |
|
|
351 | ################################################################################ |
|
|
352 | |
|
|
353 | # These image conversion utilities are included in the WeBWorK distribution. |
|
|
354 | $externalPrograms{gif2eps} = "$webworkDirs{bin}/gif2eps"; |
|
|
355 | $externalPrograms{png2eps} = "$webworkDirs{bin}/png2eps"; |
|
|
356 | $externalPrograms{gif2png} = "$webworkDirs{bin}/gif2png"; |
|
|
357 | |
|
|
358 | ################################################################################ |
|
|
359 | # Site defaults (FIXME: what other things could be "site defaults"?) |
|
|
360 | ################################################################################ |
|
|
361 | |
|
|
362 | # Status strings -- lists valid status values and their names. If your site uses |
|
|
363 | # additional values, add them here. |
|
|
364 | $siteDefaults{status} = { |
|
|
365 | A => "Audit", |
|
|
366 | audit => "Audit", |
|
|
367 | D => "Drop", |
|
|
368 | drop => "Drop", |
|
|
369 | withdraw => "Drop", |
|
|
370 | C => "Enrolled", |
|
|
371 | current => "Enrolled", |
|
|
372 | enrolled => "Enrolled", |
|
|
373 | }; |
|
|
374 | |
|
|
375 | ################################################################################ |
|
|
376 | # Frontend options |
|
|
377 | ################################################################################ |
|
|
378 | |
|
|
379 | %templates = ( |
|
|
380 | system => "$webworkDirs{conf}/templates/ur.template", |
| 222 | ); |
381 | ); |
| 223 | |
382 | |
| 224 | ################################################################################ |
383 | ################################################################################ |
| 225 | # Authorization system |
384 | # Authorization system |
| 226 | ################################################################################ |
385 | ################################################################################ |
| 227 | |
386 | |
| 228 | # This lets you specify a minimum permission level needed to perform certain |
387 | # This lets you specify a minimum permission level needed to perform certain |
| 229 | # actions. In the current system, >=10 will allow a professor to perform the |
388 | # actions. In the current system, >=10 will allow a professor to perform the |
| 230 | # action, >=5 will allow a TA to, and >=0 will allow a student to perform an |
389 | # action, >=5 will allow a TA to, and >=0 will allow a student to perform an |
| 231 | # action (almost never what you want). |
390 | # action (almost never what you want). |
|
|
391 | |
| 232 | my $student = 0; |
392 | my $student = 0; |
| 233 | my $ta = 5; |
393 | my $ta = 5; |
| 234 | my $professor = 10; |
394 | my $professor = 10; |
|
|
395 | my $nobody = undef; |
|
|
396 | |
| 235 | %permissionLevels = ( |
397 | %permissionLevels = ( |
| 236 | report_bugs => $student, |
398 | report_bugs => $student, |
|
|
399 | |
| 237 | view_multiple_sets => $ta, |
400 | view_multiple_sets => $ta, |
| 238 | view_unopened_sets => $ta, |
401 | view_unopened_sets => $ta, |
| 239 | view_unpublished_sets => $ta, |
402 | view_unpublished_sets => $ta, |
| 240 | view_answers => $ta, |
403 | view_answers => $ta, |
|
|
404 | |
| 241 | become_student => $professor, |
405 | become_student => $professor, |
| 242 | access_instructor_tools => $ta, |
406 | access_instructor_tools => $ta, |
| 243 | create_and_delete_problem_sets => $professor, |
|
|
| 244 | modify_problem_sets => $professor, |
|
|
| 245 | assign_problem_sets => $professor, |
|
|
| 246 | modify_student_data => $professor, |
|
|
| 247 | score_sets => $professor, |
407 | score_sets => $professor, |
| 248 | send_mail => $professor, |
408 | send_mail => $professor, |
|
|
409 | |
|
|
410 | create_and_delete_problem_sets => $professor, |
|
|
411 | assign_problem_sets => $professor, |
|
|
412 | modify_problem_sets => $professor, |
|
|
413 | modify_student_data => $professor, |
|
|
414 | |
| 249 | modify_classlist_files => $professor, |
415 | modify_classlist_files => $professor, |
| 250 | modify_set_def_files => $professor, |
416 | modify_set_def_files => $professor, |
| 251 | modify_scoring_files => $professor, |
417 | modify_scoring_files => $professor, |
|
|
418 | modify_problem_template_files => $professor, |
|
|
419 | |
| 252 | create_and_delete_courses => $professor, |
420 | create_and_delete_courses => $professor, |
| 253 | fix_course_databases => $professor, |
421 | fix_course_databases => $professor, |
|
|
422 | |
|
|
423 | ##### Behavior of the interactive problem processor ##### |
|
|
424 | |
|
|
425 | show_correct_answers_before_answer_date => $ta, |
|
|
426 | show_solutions_before_answer_date => $ta, |
|
|
427 | avoid_recording_answers => $ta, |
|
|
428 | |
|
|
429 | check_answers_before_open_date => $ta, |
|
|
430 | check_answers_after_open_date_with_attempts => $ta, |
|
|
431 | check_answers_after_open_date_without_attempts => $student, |
|
|
432 | check_answers_after_due_date => $student, |
|
|
433 | check_answers_after_answer_date => $student, |
|
|
434 | |
|
|
435 | record_answers_when_acting_as_student => $nobody, |
|
|
436 | |
|
|
437 | # "record_answers_when_acting_as_student" takes precedence |
|
|
438 | # over the following for professors acting as students: |
|
|
439 | record_answers_before_open_date => $nobody, |
|
|
440 | record_answers_after_open_date_with_attempts => $student, |
|
|
441 | record_answers_after_open_date_without_attempts => $nobody, |
|
|
442 | record_answers_after_due_date => $nobody, |
|
|
443 | record_answers_after_answer_date => $nobody, |
| 254 | ); |
444 | ); |
| 255 | |
445 | |
| 256 | ################################################################################ |
446 | ################################################################################ |
| 257 | # Session options |
447 | # Session options |
| 258 | ################################################################################ |
448 | ################################################################################ |
| … | |
… | |
| 275 | # kindof a backdoor to the practice user system, since he doesn't have a |
465 | # kindof a backdoor to the practice user system, since he doesn't have a |
| 276 | # password. Come to think of it, why do we even have this?! |
466 | # password. Come to think of it, why do we even have this?! |
| 277 | #$debugPracticeUser = "practice666"; |
467 | #$debugPracticeUser = "practice666"; |
| 278 | |
468 | |
| 279 | ################################################################################ |
469 | ################################################################################ |
| 280 | # PG translation options |
470 | # PG subsystem options |
| 281 | ################################################################################ |
471 | ################################################################################ |
| 282 | |
472 | |
| 283 | %pg = ( |
473 | # List of enabled display modes. Comment out any modes you don't wish to make |
| 284 | # available display modes |
474 | # available for use. |
| 285 | displayModes => [ qw(plainText formattedText images jsMath asciimath) ], |
475 | $pg{displayModes} = [ |
| 286 | # pg options |
476 | "plainText", # display raw TeX for math expressions |
| 287 | options => { |
477 | "formattedText", # format math expressions using TtH |
| 288 | # default translation options |
478 | "images", # display math expressions as images generated by dvipng |
|
|
479 | "jsMath", # render TeX math expressions on the client side using jsMath |
|
|
480 | "asciimath", # render TeX math expressions on the client side using ASCIIMathML |
|
|
481 | ]; |
|
|
482 | |
|
|
483 | #### Default settings for the PG translator |
|
|
484 | |
|
|
485 | # Default display mode. Should be listed above. |
| 289 | displayMode => "images", |
486 | $pg{options}{displayMode} = "images"; |
| 290 | showOldAnswers => 1, |
487 | |
| 291 | showCorrectAnswers => 0, |
488 | # The default grader to use, if a problem doesn't specify. |
| 292 | showHints => 0, |
489 | $pg{options}{grader} = "avg_problem_grader"; |
| 293 | showSolutions => 0, |
490 | |
| 294 | catchWarnings => 0, # there's a global warning catcher now |
491 | # Fill in answer blanks with the student's last answer by default? |
| 295 | # default grader |
492 | $pg{options}{showOldAnswers} = 1; |
| 296 | grader => "avg_problem_grader", |
493 | |
|
|
494 | # Show correct answers (when allowed) by default? |
|
|
495 | $pg{options}{showCorrectAnswers} = 0; |
|
|
496 | |
|
|
497 | # Show hints (when allowed) by default? |
|
|
498 | $pg{options}{showHints} = 0; |
|
|
499 | |
|
|
500 | # Show solutions (when allowed) by default? |
|
|
501 | $pg{options}{showSolutions} = 0; |
|
|
502 | |
|
|
503 | # Catch translation warnings internally by default? (We no longer need to do |
|
|
504 | # this, since there is a global warnings handler. So this should be off.) |
|
|
505 | $pg{options}{catchWarnings} = 0; |
|
|
506 | |
|
|
507 | ##### Currently-selected renderer |
|
|
508 | |
|
|
509 | # Only the local renderer is supported in this version. |
|
|
510 | $pg{renderer} = "WeBWorK::PG::Local"; |
|
|
511 | |
|
|
512 | # The remote renderer connects to an XML-RPC PG rendering server. |
|
|
513 | #$pg{renderer} = "WeBWorK::PG::Remote"' |
|
|
514 | |
|
|
515 | ##### Renderer-dependent options |
|
|
516 | |
|
|
517 | # The remote renderer has one option: |
|
|
518 | $pg{renderers}{"WeBWorK::PG::Remote"} = { |
|
|
519 | # The "proxy" server to connect to for remote rendering. |
|
|
520 | proxy => "http://localhost:21000/RenderD", |
|
|
521 | }; |
|
|
522 | |
|
|
523 | ##### Settings for various display modes |
|
|
524 | |
|
|
525 | # "images" mode has several settings: |
|
|
526 | $pg{displayModeOptions}{images} = { |
|
|
527 | # Determines the method used to align images in output. Can be |
|
|
528 | # "baseline", "absmiddle", or "mysql". |
|
|
529 | dvipng_align => 'baseline', |
|
|
530 | |
|
|
531 | # If we choose mysql, we need information on connecting to the |
|
|
532 | # database. Whatever you use here, you have to create the database |
|
|
533 | # and grant read/write priveleges to the user listed here. To create |
|
|
534 | # the database in mysql, as root use: |
|
|
535 | # |
|
|
536 | # CREATE DATABASE DvipngDepths; |
|
|
537 | # USE DvipngDepths; |
|
|
538 | # CREATE TABLE depths (md5 CHAR(33) NOT NULL, depth SMALLINT, PRIMARY KEY (md5)); |
|
|
539 | # GRANT ALL ON DvipngDepths.* TO webworkWrite; |
|
|
540 | # |
|
|
541 | # In the last statement, "webworkWrite" should match the user below. |
|
|
542 | dvipng_depth_db => { |
|
|
543 | dbsource => 'dbi:mysql:DvipngDepths', |
|
|
544 | user => $dbLayouts{sql}->{password}->{params}->{usernameRW}, |
|
|
545 | passwd => $dbLayouts{sql}->{password}->{params}->{passwordRW}, |
| 297 | }, |
546 | }, |
| 298 | # options for various renderers |
547 | }; |
| 299 | renderers => { |
|
|
| 300 | "WeBWorK::PG::Remote" => { |
|
|
| 301 | proxy => "http://localhost:21000/RenderD" |
|
|
| 302 | }, |
|
|
| 303 | |
548 | |
| 304 | # next can be baseline, absmiddle, or mysql |
|
|
| 305 | dvipng_align => 'baseline', |
|
|
| 306 | |
|
|
| 307 | # if we choose mysql, we need information on connecting |
|
|
| 308 | # to the database. Whatever you use here, you have to |
|
|
| 309 | # create the database and grant read/write priveleges to |
|
|
| 310 | # the user listed here |
|
|
| 311 | # To create the database in mysql, as root use: |
|
|
| 312 | |
|
|
| 313 | # create database DvipngDepths; |
|
|
| 314 | # use DvipngDepths; |
|
|
| 315 | # create table depths ( md5 char(33) not null, depth smallint, PRIMARY KEY (md5)) ; |
|
|
| 316 | # grant ALL on DvipngDepths.* to webworkWrite; |
|
|
| 317 | |
|
|
| 318 | # In the last statement, "webworkWrite" should match the |
|
|
| 319 | # user below |
|
|
| 320 | |
|
|
| 321 | dvipng_depth_db => { |
|
|
| 322 | dbsource => 'dbi:mysql:DvipngDepths', |
|
|
| 323 | user => $dbLayouts{sql}->{password}->{params}->{usernameRW}, |
|
|
| 324 | passwd => $dbLayouts{sql}->{password}->{params}->{passwordRW}, |
|
|
| 325 | } |
|
|
| 326 | }, |
|
|
| 327 | # currently selected renderer |
|
|
| 328 | renderer => "WeBWorK::PG::Local", |
|
|
| 329 | #renderer => "WeBWorK::PG::Remote", |
|
|
| 330 | # directories used by PG |
549 | ##### Directories used by PG |
| 331 | directories => { |
550 | |
| 332 | # directories used only by PG |
551 | # The root of the PG directory tree (from pg_root in Apache config). |
| 333 | root => "$pgRoot", |
552 | $pg{directories}{root} = "$pg_dir"; |
| 334 | lib => "$pgRoot/lib", |
553 | $pg{directories}{lib} = "$pg{directories}{root}/lib"; |
| 335 | macros => "$pgRoot/macros", |
554 | $pg{directories}{macros} = "$pg{directories}{root}/macros"; |
| 336 | }, |
555 | |
| 337 | # this can be customized in the course.conf file |
556 | ##### "Special" PG environment variables. (Stuff that doesn't fit in anywhere else.) |
| 338 | specialPGEnvironmentVars => { |
557 | |
| 339 | PRINT_FILE_NAMES_FOR => [ qw(professor) ], |
558 | # Users for whom to print the file name of the PG file being processed. |
|
|
559 | $pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = [ "professor", ]; |
|
|
560 | |
|
|
561 | # Locations of CAPA resources. (Only necessary if you need to use converted CAPA |
|
|
562 | # problems.) |
| 340 | CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", |
563 | $pg{specialPGEnvironmentVars}{CAPA_Tools} = "$courseDirs{macros}/CAPA_Tools/", |
| 341 | CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", |
564 | $pg{specialPGEnvironmentVars}{CAPA_MCTools} = "$courseDirs{macros}/CAPA_MCTools/", |
|
|
565 | $pg{specialPGEnvironmentVars}{CAPA_GraphicsDirectory} = "$courseDirs{html}/CAPA_Graphics/", |
| 342 | CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/", |
566 | $pg{specialPGEnvironmentVars}{CAPA_Graphics_URL} = "$courseURLs{html}/CAPA_Graphics/", |
| 343 | CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/", |
567 | |
| 344 | onTheFlyImageSize => 400, |
568 | # Size in pixels of dynamically-generated images, i.e. graphs. |
| 345 | }, |
569 | $pg{specialPGEnvironmentVars}{onTheFlyImageSize} = 400, |
| 346 | # modules lists module names and the packages each contains |
570 | |
| 347 | modules => [ |
571 | ##### PG modules to load |
|
|
572 | |
|
|
573 | # The first item of each list is the module to load. The remaining items are |
|
|
574 | # additional packages to import. |
|
|
575 | |
|
|
576 | ${pg}{modules} = [ |
| 348 | [qw(DynaLoader)], |
577 | [qw(DynaLoader)], |
| 349 | [qw(Exporter)], |
578 | [qw(Exporter)], |
| 350 | [qw(GD)], |
579 | [qw(GD)], |
| 351 | |
580 | |
| 352 | [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)], |
581 | [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)], |
| 353 | [qw(AnswerHash AnswerEvaluator)], |
582 | [qw(AnswerHash AnswerEvaluator)], |
| 354 | [qw(WWPlot)], # required by Circle (and others) |
583 | [qw(WWPlot)], # required by Circle (and others) |
| 355 | [qw(Circle)], |
584 | [qw(Circle)], |
| 356 | [qw(Complex)], |
585 | [qw(Complex)], |
| 357 | [qw(Complex1)], |
586 | [qw(Complex1)], |
| 358 | [qw(Distributions)], |
587 | [qw(Distributions)], |
| 359 | [qw(Fraction)], |
588 | [qw(Fraction)], |
| 360 | [qw(Fun)], |
589 | [qw(Fun)], |
| 361 | [qw(Hermite)], |
590 | [qw(Hermite)], |
| 362 | [qw(Label)], |
591 | [qw(Label)], |
| 363 | [qw(List)], |
592 | [qw(List)], |
| 364 | [qw(Match)], |
593 | [qw(Match)], |
| 365 | [qw(MatrixReal1)], # required by Matrix |
594 | [qw(MatrixReal1)], # required by Matrix |
| 366 | [qw(Matrix)], |
595 | [qw(Matrix)], |
| 367 | [qw(Multiple)], |
596 | [qw(Multiple)], |
| 368 | [qw(PGrandom)], |
597 | [qw(PGrandom)], |
| 369 | [qw(Regression)], |
598 | [qw(Regression)], |
| 370 | [qw(Select)], |
599 | [qw(Select)], |
| 371 | [qw(Units)], |
600 | [qw(Units)], |
| 372 | [qw(VectorField)], |
601 | [qw(VectorField)], |
| 373 | ], |
602 | [qw(Parser Value)], |
| 374 | # defaults used by answer evaluators |
603 | ]; |
|
|
604 | |
|
|
605 | ##### Answer evaluatior defaults |
|
|
606 | |
| 375 | ansEvalDefaults => { |
607 | $pg{ansEvalDefaults} = { |
| 376 | functAbsTolDefault => .001, |
608 | functAbsTolDefault => .001, |
| 377 | functLLimitDefault => .0000001, |
609 | functLLimitDefault => .0000001, |
| 378 | functMaxConstantOfIntegration => 1E8, |
610 | functMaxConstantOfIntegration => 1E8, |
| 379 | functNumOfPoints => 3, |
611 | functNumOfPoints => 3, |
| 380 | functRelPercentTolDefault => .1, |
612 | functRelPercentTolDefault => .1, |
| 381 | functULimitDefault => .9999999, |
613 | functULimitDefault => .9999999, |
| 382 | functVarDefault => "x", |
614 | functVarDefault => "x", |
| 383 | functZeroLevelDefault => 1E-14, |
615 | functZeroLevelDefault => 1E-14, |
| 384 | functZeroLevelTolDefault => 1E-12, |
616 | functZeroLevelTolDefault => 1E-12, |
| 385 | numAbsTolDefault => .001, |
617 | numAbsTolDefault => .001, |
| 386 | numFormatDefault => "", |
618 | numFormatDefault => "", |
| 387 | numRelPercentTolDefault => .1, |
619 | numRelPercentTolDefault => .1, |
| 388 | numZeroLevelDefault => 1E-14, |
620 | numZeroLevelDefault => 1E-14, |
| 389 | numZeroLevelTolDefault => 1E-12, |
621 | numZeroLevelTolDefault => 1E-12, |
| 390 | useBaseTenLog => 0, |
622 | useBaseTenLog => 0, |
| 391 | defaultDisplayMatrixStyle => "[s]", |
623 | defaultDisplayMatrixStyle => "[s]", |
| 392 | }, |
624 | }; |
| 393 | ); |
625 | |
|
|
626 | ################################################################################ |
|
|
627 | # Compatibility |
|
|
628 | ################################################################################ |
|
|
629 | |
|
|
630 | # Define the old names for the various "root" variables. |
|
|
631 | $webworkRoot = $webworkDirs{root}; |
|
|
632 | $webworkURLRoot = $webworkURLs{root}; |
|
|
633 | $pgRoot = $pg{directories}{root}; |