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

foxr lon-capa-cvs@mail.lon-capa.org
Mon, 18 Dec 2006 11:07:43 -0000


foxr		Mon Dec 18 06:07:43 2006 EDT

  Modified files:              
    /loncom/xml	londefdef.pm 
  Log:
  Bug 5096  - Attempt to put a parbox like alignment back in with some
      robustness.
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.345 loncom/xml/londefdef.pm:1.346
--- loncom/xml/londefdef.pm:1.345	Mon Dec  4 21:55:54 2006
+++ loncom/xml/londefdef.pm	Mon Dec 18 06:07:43 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.345 2006/12/05 02:55:54 albertel Exp $
+# $Id: londefdef.pm,v 1.346 2006/12/18 11:07:43 foxr Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -2887,6 +2887,9 @@
 	    } elsif ($align eq "left")   { 
 		if ($latex_rendering eq "parpic") { 
 		    $currentstring = '\parpic[l]{'.$currentstring.'}';
+		} elsif ($latex_rendering eq "parbox") {
+		    $currentstring = '\begin{minipage}[l]{'.$width_param.'mm}'
+			.$currentstring.'\end{minipage}';
 		} else {    	                                 # wrapfig render
 		    $currentstring = '\begin{wrapfigure}{l}{'.$width_param.'mm}'
 			.'\scalebox{1.0}{'.$currentstring.'}\end{wrapfigure}';
@@ -2894,6 +2897,9 @@
 	    } elsif ($align eq "right")  {   
 		if ($latex_rendering eq "parpic") {
 		    $currentstring = '\parpic[r]{'.$currentstring.'}';
+		} elsif ($latex_rendering eq "parbox") {
+		    $currentstring =  '\begin{minipage}[r]{'.$width_param.'mm}'
+			.$currentstring.'\end{minipage}';
 		} else {	                                 # wrapfig rendering
 		    $currentstring = '\begin{wrapfigure}{r}{'.$width_param.'mm}'
 			.'\scalebox{1.0}{'.$currentstring.'}\end{wrapfigure}';