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

issue #30: deal with utf8 text in Sage blocks in LaTeX files. #31

Closed jhpalmieri closed 5 years ago

jhpalmieri commented 5 years ago

See #30.

I've tested with both Python 2 and 3. Is this the best way to do this? Unicode and Python 2 vs. 3 confuse me. See https://trac.sagemath.org/ticket/27598#comment:1 for a related comment.

dimpase commented 5 years ago

Could you please explain that PY3 business to me? What's it supposed to do?

kcrisman commented 5 years ago

I think that's just what six is supposed to do, is tell whether one is using py3 and then one can make adjustments? But maybe I'm missing something more subtle.

jhpalmieri commented 5 years ago

Right, six.PY3 should be True if you're running Python 3, False for Python 2. Here are is the documentation.