version 1.65, 2005/04/07 06:56:27
|
version 1.66, 2005/06/09 02:17:11
|
Line 323 sub postprocess_algebra {
|
Line 323 sub postprocess_algebra {
|
# moodle had these and I don't know why, ignoring them for now |
# moodle had these and I don't know why, ignoring them for now |
# $string =~s/\\fun/ /g; |
# $string =~s/\\fun/ /g; |
|
|
# sqrt(3,4) -> \sqrt\let{3,4\right}, which is annoying |
|
$string =~s/\\left\{/\{/g; |
|
$string =~s/\\right\}/\}/g; |
|
|
|
# remove the extra () in the denominator of a \frac |
# remove the extra () in the denominator of a \frac |
$string =~s/\\frac{(.+?)}{\\left\((.+?)\\right\)}/\\frac{$1}{$2}/gs; |
$string =~s/\\frac{(.+?)}{\\left\((.+?)\\right\)}/\\frac{$1}{$2}/gs; |
|
|