version 1.113, 2003/02/14 19:35:55
|
version 1.116, 2003/02/18 21:14:16
|
Line 50 use Apache::lonxml;
|
Line 50 use Apache::lonxml;
|
use Apache::File(); |
use Apache::File(); |
use Image::Magick; |
use Image::Magick; |
use Apache::lonmenu; |
use Apache::lonmenu; |
|
#use Apache::lonmeta; |
|
|
BEGIN { |
BEGIN { |
|
|
Line 155 sub start_html {
|
Line 156 sub start_html {
|
} elsif ($target eq 'tex') { |
} elsif ($target eq 'tex') { |
@Apache::londefdef::table = (); |
@Apache::londefdef::table = (); |
$currentstring .= '\documentclass[letterpaper]{article} |
$currentstring .= '\documentclass[letterpaper]{article} |
\newcommand{\keephidden}[1]{} |
\newcommand{\keephidden}[1]{} |
\renewcommand{\deg}{$^{\circ}$} |
\renewcommand{\deg}{$^{\circ}$} |
\usepackage[dvips]{graphicx} |
\usepackage{textcomp} |
\usepackage{epsfig}\usepackage{calc} |
\usepackage[dvips]{graphicx} |
\newenvironment{choicelist}{\begin{enumerate}}{\end{enumerate}}'; |
\usepackage{epsfig}\usepackage{calc} |
|
\newenvironment{choicelist}{\begin{list}{}{\setlength{\rightmargin}{0in}\setlength{\leftmargin}{0.13in}\setlength{\topsep}{0.05in}\setlength{\itemsep}{0.022in}\setlength{\parsep}{0in}\setlength{\belowdisplayskip}{0.04in}\setlength{\abovedisplayskip}{0.05in}\setlength{\abovedisplayshortskip}{-0.04in}\setlength{\belowdisplayshortskip}{0.04in}}}{\end{list}}'; |
} |
} |
return $currentstring; |
return $currentstring; |
} |
} |
Line 399 sub start_html {
|
Line 401 sub start_html {
|
</form> |
</form> |
EDITBUTTON |
EDITBUTTON |
} else { |
} else { |
$currentstring.=&Apache::lonmenu::menubuttons(undef,$target); |
$currentstring.=&Apache::lonmenu::menubuttons(undef,$target,1); |
} |
} |
} elsif ($target eq 'tex') { |
} elsif ($target eq 'tex') { |
$currentstring = '\begin{document}'; |
$currentstring = '\begin{document}'; |
Line 1597 sub start_table {
|
Line 1599 sub start_table {
|
my $scaling = .3; |
my $scaling = .3; |
|
|
if ($target eq 'web') { |
if ($target eq 'web') { |
$currentstring = $token->[4]; |
if ($ENV{'browser.imagesuppress'} ne 'on') { |
|
$currentstring = $token->[4]; |
|
} else { |
|
my $alttag=$token->[2]->{'alt'}; |
|
unless ($alttag) { |
|
$alttag=&Apache::lonmeta::alttag($token->[2]->{'src'}); |
|
} |
|
$currentstring='[IMAGE: '.$alttag.']'; |
|
} |
} elsif ($target eq 'tex') { |
} elsif ($target eq 'tex') { |
&image_replication($src); |
&image_replication($src); |
$src=&Apache::lonnet::filelocation($Apache::lonxml::pwd[-1],$src); |
$src=&Apache::lonnet::filelocation($Apache::lonxml::pwd[-1],$src); |
Line 1690 sub start_table {
|
Line 1700 sub start_table {
|
$token->[2]->{'archive'}; |
$token->[2]->{'archive'}; |
my $currentstring = ''; |
my $currentstring = ''; |
if ($target eq 'web') { |
if ($target eq 'web') { |
$currentstring = $token->[4]; |
if ($ENV{'browser.appletsuppress'} ne 'on') { |
|
$currentstring = $token->[4]; |
|
} else { |
|
my $alttag=$token->[2]->{'alt'}; |
|
unless ($alttag) { |
|
$alttag=&Apache::lonmeta::alttag($token->[2]->{'code'}); |
|
} |
|
$currentstring='[APPLET: '.$alttag.']'; |
|
} |
} elsif ($target eq 'tex') { |
} elsif ($target eq 'tex') { |
$currentstring = " \\begin{figure} "; |
$currentstring = " \\begin{figure} "; |
} |
} |
Line 1715 sub start_embed {
|
Line 1733 sub start_embed {
|
$token->[2]->{'src'}; |
$token->[2]->{'src'}; |
my $currentstring = ''; |
my $currentstring = ''; |
if ($target eq 'web') { |
if ($target eq 'web') { |
$currentstring = $token->[4]; |
if ($ENV{'browser.embedsuppress'} ne 'on') { |
|
$currentstring = $token->[4]; |
|
} else { |
|
my $alttag=$token->[2]->{'alt'}; |
|
unless ($alttag) { |
|
$alttag=&Apache::lonmeta::alttag($token->[2]->{'src'}); |
|
} |
|
$currentstring='[EMBED: '.$alttag.']'; |
|
} |
} elsif ($target eq 'tex') { |
} elsif ($target eq 'tex') { |
$currentstring = " \\begin{figure} "; |
$currentstring = " \\begin{figure} "; |
} |
} |