Skip to content

Error during the second compilation step #2

Description

@torwag

Hi,

I used the minimal example below to test SympyTeX on my system (Arch Linux with full install of Texlive).
For the second LaTeX run I get the error message:
ERROR: Missing $ inserted.

--- TeX said ---

$
l.10 ... is also \sympy{sympy.integrate(1+x**4,x)}

The first run is ok.
Python runs as well (albeit there is a little problem, see the other issue)

Any idea what goes wrong? I really like the idea, thanks for the great work!
----------- minimal example-------------------------------
\documentclass[10pt]{article}
\usepackage{sympytex}
\begin{document}
\begin{sympyblock}
x = sympy.Symbol('x')
h = sympy.integrate(1+x4,x)
\end{sympyblock}
The integral of $1+x^4$ is also \sympy{sympy.integrate(1+x
4,x)}.
or you can use a sympy variable, $h = \sympy{h}$
\end{document}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions