File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -361,13 +361,13 @@ sub pgfmathparse {
361
361
# \def\e{1260}\pgfmathparse{cos \e/5} to -0.2 - i.e. "cos" binds stronger than "/"
362
362
&& ($string !~ / \b (?:a?(sin|cos|tan2?)h?)|bin|add|array|tan|cot|sec|(?:co)?sec|
363
363
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 )) { {
365
365
# special case! the ^ in tikz is used for power, but NOT so in perl.
366
- $ string =~ s /\^ / **/ g ;
366
+ my $perlstring = $ string =~ s /\^ / **/ gr ;
367
367
local $LaTeXML::IGNORE_ERRORS = 1;
368
368
local $@ ;
369
369
no warnings;
370
- $result = eval $string ;
370
+ $result = eval $perlstring ;
371
371
if (!$@ ) {
372
372
# need to erase string when perl eval works, to keep it consistent with recdescent
373
373
$string = ' ' ; }
You can’t perform that action at this time.
0 commit comments