From: dpvc v. a. <we...@ma...> - 2005-08-30 00:36:00
|
Log Message: ----------- Added a Point context that is a copy of the Vector context. This will allow users to override some settings in Vector context (namely, how they are entered and displayed) without preventing users from being able to enter points (in Point context). Modified Files: -------------- pg/lib/Parser/Context: Default.pm Revision Data ------------- Index: Default.pm =================================================================== RCS file: /webwork/cvs/system/pg/lib/Parser/Context/Default.pm,v retrieving revision 1.30 retrieving revision 1.31 diff -Llib/Parser/Context/Default.pm -Llib/Parser/Context/Default.pm -u -r1.30 -r1.31 --- lib/Parser/Context/Default.pm +++ lib/Parser/Context/Default.pm @@ -205,7 +205,7 @@ # use vars qw(%context); -use vars qw($fullContext $numericContext $complexContext +use vars qw($fullContext $numericContext $complexContext $pointContext $vectorContext $matrixContext $intervalContext); # @@ -281,6 +281,11 @@ $vectorContext->constants->set(i=>{TeX=>'\boldsymbol{i}', perl=>'i'}); # +# Point context (for symmetry) +# +$pointContext = $vectorContext->copy; + +# # Matrix context (square brackets make matrices in preference to points or intervals) # $matrixContext = $vectorContext->copy; @@ -310,6 +315,7 @@ Full => $fullContext, Numeric => $numericContext, Complex => $complexContext, + Point => $pointContext, Vector => $vectorContext, Matrix => $matrixContext, Interval => $intervalContext, |