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

Diff of /trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/Problem.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 3336 Revision 3337
1################################################################################ 1################################################################################
2# WeBWorK Online Homework Delivery System 2# WeBWorK Online Homework Delivery System
3# Copyright 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ 3# Copyright 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
4# $CVSHeader: webwork2/lib/WeBWorK/ContentGenerator/Problem.pm,v 1.170 2004/12/19 22:41:34 gage Exp $ 4# $CVSHeader: webwork-modperl/lib/WeBWorK/ContentGenerator/Problem.pm,v 1.171 2005/06/28 00:16:08 sh002i Exp $
5# 5#
6# This program is free software; you can redistribute it and/or modify it under 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 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 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. 9# version, or (b) the "Artistic License" which comes with this package.
309 return $result; 309 return $result;
310 } 310 }
311 } elsif ($displayMode eq "images") { 311 } elsif ($displayMode eq "images") {
312 $imgGen->add($tex); 312 $imgGen->add($tex);
313 } elsif ($displayMode eq "jsMath") { 313 } elsif ($displayMode eq "jsMath") {
314 return '<DIV CLASS="math">'.$tex.'</DIV>' ; 314 return '<SPAN CLASS="math">\\displaystyle{'.$tex.'}</SPAN>';
315 } 315 }
316} 316}
317 317
318################################################################################ 318################################################################################
319# Template escape implementations 319# Template escape implementations

Legend:
Removed from v.3336  
changed lines
  Added in v.3337

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9