[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Thu, 14 Aug 2003 14:46:06 -0000
sakharuk Thu Aug 14 10:46:06 2003 EDT
Modified files:
/loncom/xml londefdef.pm
Log:
Index section is printable for the separate resource. Continue to work.
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.160 loncom/xml/londefdef.pm:1.161
--- loncom/xml/londefdef.pm:1.160 Fri Aug 8 13:48:40 2003
+++ loncom/xml/londefdef.pm Thu Aug 14 10:46:06 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Tags Default Definition Module
#
-# $Id: londefdef.pm,v 1.160 2003/08/08 17:48:40 sakharuk Exp $
+# $Id: londefdef.pm,v 1.161 2003/08/14 14:46:06 sakharuk Exp $
#
#
# Copyright Michigan State University Board of Trustees
@@ -164,9 +164,11 @@
\renewcommand{\deg}{$^{\circ}$}
\usepackage{longtable}
\usepackage{textcomp}
+ \usepackage{makeidx}
\usepackage[dvips]{graphicx}
\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}}';
+\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}}
+\renewenvironment{theindex}{\begin{list}{}{{\vskip 1mm \noindent \large\textbf{Index}} \newline \setlength{\rightmargin}{0in}\setlength{\leftmargin}{0.13in}\setlength{\topsep}{0.01in}\setlength{\itemsep}{-0.1in}\setlength{\parsep}{-0.02in}\setlength{\belowdisplayskip}{0.01in}\setlength{\abovedisplayskip}{0.01in}\setlength{\abovedisplayshortskip}{-0.04in}\setlength{\belowdisplayshortskip}{0.01in}}}{\end{list}}';
}
return $currentstring;
}
@@ -1402,8 +1404,15 @@
$currentstring .= $token->[4];
} elsif ($target eq 'tex') {
my $a=&Apache::lonxml::get_param('href',$parstack,$safeeval,undef,1);
- $a=~s/([^\\])%/$1\\\%/g;
- $currentstring .= '\ref{'.$a.'}';
+ my $b=&Apache::lonxml::get_param('name',$parstack,$safeeval,undef,1);
+ if ($a=~/\S/) {
+ $a=~s/([^\\])%/$1\\\%/g;
+ $currentstring .= '\ref{URI: '.$a.'}';
+ } elsif ($b=~/\S/) {
+ $currentstring .= '\ref{Anchor: '.$b.'}';
+ } else {
+ $currentstring.='';
+ }
}
return $currentstring;
}
@@ -2432,7 +2441,7 @@
my $currentstring = '';
if ($target eq 'web') {
$currentstring = $token->[4];
- }
+ }
return $currentstring;
}
@@ -3147,7 +3156,6 @@
}
return $currentstring;
}
-
#-- <hideweboutput> tag
sub start_hideweboutput {