kpeeters / cadabra2

A field-theory motivated approach to computer algebra.
https://cadabra.science/
GNU General Public License v3.0
215 stars 37 forks source link

`str` returns unicode even when printing to LaTeX #157

Closed kpeeters closed 3 weeks ago

kpeeters commented 5 years ago

The following makes LaTeX go belly-up:

ex:=\delta{x};
print(ex)

because print calls str to convert to printable, and (in the notebook) then feeds that into a verbatim environment, but str has used UTF-8 to represent the delta symbol, which LaTeX doesn't like.

kpeeters commented 3 weeks ago

This now works correctly in the microtex branch, which will shortly become the default.

Screenshot from 2024-06-14 10-31-25