1
  • I am trying to make web pages about matrices, using sympy (python library) to compute symbolic matrices.
  • I would like to write LaTeX code with the sympy expressions embedded, in such a way that plasTeX evaluates the expression. (sympy can print the messy matrix in LaTeX format.)
  • I would prefer not to define the messy matrix elsewhere and use a reference, because that could introduce errors.
  • It should be efficient to do everything within one python process and environment.
  • Seems like it should work, since plasTeX is written in python, but I haven't figured out how.
  • See also https://tex.stackexchange.com/questions/238016/embedding-python-in-latex – user202729 Nov 07 '21 at 05:49
  • 1
    You can define custom Python environment, then you can probably define an eval environment. See section 4.2 of the documentation https://plastex.github.io/plastex/plastex/plastex.pdf – user202729 Nov 07 '21 at 05:51
  • Hi and welcome. What is plasTeX? A link to this software? – AndréC Nov 07 '21 at 07:13
  • 1
    @AndréC Seems to be this http://plastex.github.io/plastex/ – plante Nov 07 '21 at 07:51
  • You could consider using sympytex, this seems to be a lot easier to use than plasTeX (but I have not tried either solution, so maybe both of them are easy). – Marijn Nov 08 '21 at 13:51

0 Answers0