version 1.78, 2006/03/21 21:06:35
|
version 1.80, 2006/04/10 18:59:30
|
Line 208 sub texenginechanger {
|
Line 208 sub texenginechanger {
|
</form> |
</form> |
Examples: |
Examples: |
<p> TeX to HTML <br /> |
<p> TeX to HTML <br /> |
<iframe src="/res/adm/pages/math_example.tex?buttons=no&mode=tth" width="400" hieght="200"></iframe> |
<iframe src="/res/adm/pages/math_example.tex?inhibitmenu=yes&texengine=tth" width="400" hieght="200"></iframe> |
</p> |
</p> |
<p>jsMath <br /> |
<p>jsMath <br /> |
$jsMath_start |
$jsMath_start |
Line 228 if (jsMath.nofonts == 1) {
|
Line 228 if (jsMath.nofonts == 1) {
|
+'</font></small></div></center>'); |
+'</font></small></div></center>'); |
} |
} |
</script> |
</script> |
<iframe src="/res/adm/pages/math_example.tex?buttons=no&mode=jsMath" width="400" hieght="200"></iframe> |
<iframe src="/res/adm/pages/math_example.tex?inhibitmenu=yes&texengine=jsMath" width="400" hieght="200"></iframe> |
|
|
</p> |
</p> |
<p> Convert to Images <br /> |
<p> Convert to Images <br /> |
<br /> |
<br /> |
<iframe src="/res/adm/pages/math_example.tex?buttons=no&mode=mimetex" width="400" hieght="200"></iframe> |
<iframe src="/res/adm/pages/math_example.tex?inhibitmenu=yes&texengine=mimetex" width="400" hieght="200"></iframe> |
</p> |
</p> |
ENDLSCREEN |
ENDLSCREEN |
if ($env{'environment.texengine'} ne 'jsMath') { |
if ($env{'environment.texengine'} ne 'jsMath') { |
Line 505 ENDVCMSG
|
Line 505 ENDVCMSG
|
sub colorschanger { |
sub colorschanger { |
my $r = shift; |
my $r = shift; |
# figure out colors |
# figure out colors |
my $function='student'; |
my $function=&Apache::loncommon::get_users_function(); |
if ($env{'request.role'}=~/^(cc|in|ta|ep)/) { |
|
$function='coordinator'; |
|
} |
|
if ($env{'request.role'}=~/^(su|dc|ad|li)/) { |
|
$function='admin'; |
|
} |
|
if (($env{'request.role'}=~/^(au|ca)/) || |
|
($ENV{'REQUEST_URI'}=~/^(\/priv|\~)/)) { |
|
$function='author'; |
|
} |
|
my $domain=&Apache::loncommon::determinedomain(); |
my $domain=&Apache::loncommon::determinedomain(); |
my %colortypes=('pgbg' => 'Page Background', |
my %colortypes=('pgbg' => 'Page Background', |
'tabbg' => 'Header Background', |
'tabbg' => 'Header Background', |
Line 581 ENDCOL
|
Line 571 ENDCOL
|
sub verify_and_change_colors { |
sub verify_and_change_colors { |
my $r = shift; |
my $r = shift; |
# figure out colors |
# figure out colors |
my $function='student'; |
my $function=&Apache::loncommon::get_users_function(); |
if ($env{'request.role'}=~/^(cc|in|ta|ep)/) { |
|
$function='coordinator'; |
|
} |
|
if ($env{'request.role'}=~/^(su|dc|ad|li)/) { |
|
$function='admin'; |
|
} |
|
if (($env{'request.role'}=~/^(au|ca)/) || |
|
($ENV{'REQUEST_URI'}=~/^(\/priv|\~)/)) { |
|
$function='author'; |
|
} |
|
my $domain=&Apache::loncommon::determinedomain(); |
my $domain=&Apache::loncommon::determinedomain(); |
my %colortypes=('pgbg' => 'Page Background', |
my %colortypes=('pgbg' => 'Page Background', |
'tabbg' => 'Header Background', |
'tabbg' => 'Header Background', |