version 1.60, 2005/02/25 19:33:26
|
version 1.61, 2005/02/27 17:28:56
|
Line 251 sub algebra {
|
Line 251 sub algebra {
|
if ($style eq 'display') { |
if ($style eq 'display') { |
$latex='$$'.$latex.'$$x'; |
$latex='$$'.$latex.'$$x'; |
} else { |
} else { |
|
# style is 'inline' |
$latex='\\ensuremath{'.$latex.'}'; |
$latex='\\ensuremath{'.$latex.'}'; |
} |
} |
if ($target eq 'web' || $target eq 'analyze') { |
if ($target eq 'web' || $target eq 'analyze') { |
Line 302 sub postprocess_algebra {
|
Line 303 sub postprocess_algebra {
|
|
|
# |
# |
$string =~s/\\lim\\left\((.+?),(.+?),(.+?)\\right\)/\\lim_{$2\\to $3}$1/gs; |
$string =~s/\\lim\\left\((.+?),(.+?),(.+?)\\right\)/\\lim_{$2\\to $3}$1/gs; |
&Apache::lonnet::logthis($string); |
|
return $string; |
return $string; |
} |
} |
1; |
1; |