File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -361,13 +361,13 @@ sub pgfmathparse {
361361 # \def\e{1260}\pgfmathparse{cos \e/5} to -0.2 - i.e. "cos" binds stronger than "/"
362362 && ($string !~ / \b (?:a?(sin|cos|tan2?)h?)|bin|add|array|tan|cot|sec|(?:co)?sec|
363363 deg|depth|dim|div|divide|(?:(?:not)?(?:equal|greater|less))|oct|pi|pow|multiply|
364- rand|scalar|sign|vec|width|hex|frac/x )) { {
364+ rand|scalar|sign|vec|width|hex|frac|ifthenelse| \\ /x )) { {
365365 # special case! the ^ in tikz is used for power, but NOT so in perl.
366- $ string =~ s /\^ / **/ g ;
366+ my $perlstring = $ string =~ s /\^ / **/ gr ;
367367 local $LaTeXML::IGNORE_ERRORS = 1;
368368 local $@ ;
369369 no warnings;
370- $result = eval $string ;
370+ $result = eval $perlstring ;
371371 if (!$@ ) {
372372 # need to erase string when perl eval works, to keep it consistent with recdescent
373373 $string = ' ' ; }
You can’t perform that action at this time.
0 commit comments