[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Thu, 29 May 2003 18:11:00 -0000
sakharuk Thu May 29 14:11:00 2003 EDT
Modified files:
/loncom/xml londefdef.pm
Log:
Changes in <pre> tag - LaTeX does not like verb environment inside parbox.
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.135 loncom/xml/londefdef.pm:1.136
--- loncom/xml/londefdef.pm:1.135 Thu May 22 12:00:53 2003
+++ loncom/xml/londefdef.pm Thu May 29 14:11:00 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Tags Default Definition Module
#
-# $Id: londefdef.pm,v 1.135 2003/05/22 16:00:53 sakharuk Exp $
+# $Id: londefdef.pm,v 1.136 2003/05/29 18:11:00 sakharuk Exp $
#
#
# Copyright Michigan State University Board of Trustees
@@ -2271,9 +2271,7 @@
if ($target eq 'web') {
$currentstring .= $token->[4];
} elsif ($target eq 'tex') {
- my $width = &Apache::lonxml::get_param('TeXwidth',$parstack,$safeeval,undef,0);
- if (not defined $width) {$width ='\textwidth';}
- $currentstring .= '\parbox['.$width.']{\begin{verbatim}';
+ $currentstring .= '\begin{verbatim}';
}
return $currentstring;
}
@@ -2284,7 +2282,7 @@
if ($target eq 'web') {
$currentstring .= $token->[2];
} elsif ($target eq 'tex') {
- $currentstring .= '\end{verbatim}}';
+ $currentstring .= '\end{verbatim}';
}
return $currentstring;
}