@@ -3202,7 +3202,7 @@ def boxes_to_xml(self, leaves, **options):
32023202 if evaluation :
32033203 check_asy = evaluation .definitions .get_ownvalue ("Settings`UseAsyForGraphics2D" )
32043204 if check_asy :
3205- check_asy = check_asy .replace .to_python ()
3205+ check_asy = check_asy .replace .is_true ()
32063206 if check_asy :
32073207 import os
32083208 from subprocess import DEVNULL , STDOUT , check_call
@@ -3214,12 +3214,11 @@ def boxes_to_xml(self, leaves, **options):
32143214
32153215 if check_asy :
32163216 asy , width , height = self .boxes_to_tex (leaves , forxml = True , ** options )
3217-
32183217 fin = os .path .join (tempfile ._get_default_tempdir (), next (tempfile ._get_candidate_names ()))
32193218 fout = fin + ".svg"
32203219 with open (fin , 'w+' ) as borrador :
32213220 borrador .write (asy )
3222-
3221+
32233222 try :
32243223 check_call (['asy' , '-f' , 'svg' , '-o' , fout , fin ], stdout = DEVNULL , stderr = DEVNULL )
32253224 except :
@@ -3241,7 +3240,7 @@ def boxes_to_xml(self, leaves, **options):
32413240 )
32423241 else :
32433242 print ("Asy not available. Continue with standard" )
3244-
3243+
32453244 elements , calc_dimensions = self ._prepare_elements (leaves , options , neg_y = True )
32463245
32473246 xmin , xmax , ymin , ymax , w , h , width , height = calc_dimensions ()
0 commit comments