You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If \py{expression} in 'align' , 'split' or other AMS environment,
pythontex creates 2 lines for each expression with wrong line number and depythontex stops with error:
DePythonTeX error:
Could not find command "py" on line 360
The text was updated successfully, but these errors were encountered:
This is due to the way that the AMS environments work. They capture the entire environment contents, and then typeset it afterward. This messes up the line numbering and breaks depythontex.
The best workaround at the moment would be to create the entire AMS environment on the Python side, and then insert it on the LaTeX side. Maybe create the text of the environment within a pycode environment, perhaps as a template, and then insert the desired calculated values. Then print it to the LaTeX side.
I am currently working on the next major PythonTeX release, which I expect to fix this, but I don't have an estimate for a release date.
I am going to close this issue, since it is equivalent to the previous issue #52. But feel free to ask any related questions within the closed issue.
If \py{expression} in 'align' , 'split' or other AMS environment,
pythontex creates 2 lines for each expression with wrong line number and depythontex stops with error:
Could not find command "py" on line 360
The text was updated successfully, but these errors were encountered: