version 1.148, 2003/06/30 15:05:54
|
version 1.150, 2003/06/30 19:26:36
|
Line 161 sub start_html {
|
Line 161 sub start_html {
|
#'\batchmode'. |
#'\batchmode'. |
'\newcommand{\keephidden}[1]{} |
'\newcommand{\keephidden}[1]{} |
\renewcommand{\deg}{$^{\circ}$} |
\renewcommand{\deg}{$^{\circ}$} |
|
\usepackage{longtable} |
\usepackage{textcomp} |
\usepackage{textcomp} |
\usepackage[dvips]{graphicx} |
\usepackage[dvips]{graphicx} |
\usepackage{epsfig}\usepackage{calc} |
\usepackage{epsfig}\usepackage{calc} |
Line 1292 sub start_hr {
|
Line 1293 sub start_hr {
|
if ($target eq 'web') { |
if ($target eq 'web') { |
$currentstring .= $token->[4]; |
$currentstring .= $token->[4]; |
} elsif ($target eq 'tex') { |
} elsif ($target eq 'tex') { |
my $LaTeXwidth = &Apache::lonxml::get_param('TeXwidth',$parstack,$safeeval,0); |
my $LaTeXwidth = &Apache::lonxml::get_param('TeXwidth',$parstack,$safeeval,undef,0); |
if (defined $LaTeXwidth) { |
if (defined $LaTeXwidth) { |
if ($LaTeXwidth=~/^%/) { |
if ($LaTeXwidth=~/^%/) { |
substr($LaTeXwidth,0,1)=''; |
substr($LaTeXwidth,0,1)=''; |
Line 1346 sub end_div {
|
Line 1347 sub end_div {
|
|
|
#-- <a> tag |
#-- <a> tag |
sub start_a { |
sub start_a { |
my ($target,$token) = @_; |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval) = @_; |
my $currentstring = ''; |
my $currentstring = ''; |
if ($target eq 'web') { |
if ($target eq 'web') { |
$currentstring .= $token->[4]; |
$currentstring .= $token->[4]; |
} elsif ($target eq 'tex') { |
} elsif ($target eq 'tex') { |
|
my $a=&Apache::lonxml::get_param('href',$parstack,$safeeval,undef,1); |
|
$a=~s/([^\\])%/$1\\\%/g; |
|
$currentstring .= '\ref{'.$a.'}'; |
} |
} |
return $currentstring; |
return $currentstring; |
} |
} |
Line 1360 sub end_a {
|
Line 1364 sub end_a {
|
my $currentstring = ''; |
my $currentstring = ''; |
if ($target eq 'web') { |
if ($target eq 'web') { |
$currentstring .= $token->[2]; |
$currentstring .= $token->[2]; |
} elsif ($target eq 'tex') { |
|
my $href=&Apache::lonxml::get_param('href',$parstack,$safeeval,undef,1); |
|
$currentstring .= '\ref{'.$href.'}'; |
|
} |
} |
return $currentstring; |
return $currentstring; |
} |
} |