sagemath / sagetex

Embed code, results of computations, and plots from the Sage mathematics software suite (https://www.sagemath.org) into LaTeX documents. Source repository for https://pypi.org/project/sagetex/ and https://ctan.org/pkg/sagetex
https://ctan.org/pkg/sagetex
Other
58 stars 22 forks source link

Trivial fix in example.tex for Python3 #37

Closed EmmanuelCharpentier closed 5 years ago

EmmanuelCharpentier commented 5 years ago

This trivial patch replaces

          except ValueError, ZeroDivisonError:

with

          except (ValueError, ZeroDivisonError):

In the source code for a gnuplot-generated figure in example.tex, which allows its compilation by Python3. The modified example.tex also compiles with a Python2-based Sage.

HTH,

fchapoton commented 5 years ago

Please merge !

kcrisman commented 5 years ago

You can probably use the instructions to create a new package for this - I suspect @dimpase doesn't currently have time for it, and I know I don't ☹️ but it should be pretty well documented how to upgrade, including so that the 'version match' issue is maintained (i.e. that ST should complain if the sty file and script aren't from the same version of ST).