[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm

albertel lon-capa-cvs@mail.lon-capa.org
Sat, 13 Nov 2004 19:11:34 -0000


albertel		Sat Nov 13 14:11:34 2004 EDT

  Modified files:              
    /loncom/xml	londefdef.pm 
  Log:
  - BUG#3551 - take out the vskip before an <img> in tex
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.244 loncom/xml/londefdef.pm:1.245
--- loncom/xml/londefdef.pm:1.244	Sat Nov 13 03:56:53 2004
+++ loncom/xml/londefdef.pm	Sat Nov 13 14:11:34 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.244 2004/11/13 08:56:53 albertel Exp $
+# $Id: londefdef.pm,v 1.245 2004/11/13 19:11:34 albertel Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -2452,7 +2452,7 @@
 	    if (-e $newsrc) {
 		#eps counterpart for image exist 
 		if ($path) {
-		    $currentstring .= '\vskip 1 mm \noindent\graphicspath{{'.$path.'}}\includegraphics[width='.$width_param.' mm]{'.$file.'} ';
+		    $currentstring .= '\graphicspath{{'.$path.'}}\includegraphics[width='.$width_param.' mm]{'.$file.'} ';
 		}
 	    } else {
 		#there is no eps counterpart for image - check for ps one
@@ -2461,11 +2461,11 @@
 		    #ps counterpart for image exist 
 		    $file =~ s/\.eps$/\.ps/;
 		    if ($path) {
-			$currentstring .= '\vskip 1 mm \noindent\graphicspath{{'.$path.'}}\includegraphics[width='.$width_param.' mm]{'.$file.'} ';
+			$currentstring .= '\graphicspath{{'.$path.'}}\includegraphics[width='.$width_param.' mm]{'.$file.'} ';
 		    }
 		} else {
 		    #care about eps dynamical generation
-		    $currentstring.='\vskip 1 mm '.&eps_generation($src,$file,$width_param);
+		    $currentstring.=&eps_generation($src,$file,$width_param);
 		}
 	    }
 	} else {