JuliaPy / SymPy.jl

Julia interface to SymPy via PyCall
http://juliapy.github.io/SymPy.jl/
MIT License
269 stars 61 forks source link

compatibility with Latexify.jl #439

Closed ranocha closed 3 years ago

ranocha commented 3 years ago

Latexify.jl provies a function latexify that can be used to convert (nearly) arbitrary Julia variables/expressions/code into LaTeX strings. This can be quite handy in many circumstances, in particular when working with symbolic expressions. While SymPy.jl contains a function latex that can achieve similar things for Syms, latexify is more general in the sense that it supports more Julia types.

Here, I implemented a simple recipe to allow using Syms in Latexify.jl. I was told to make a PR here instead of providing the compatibility code inside of Latexify.jl in https://github.com/korsbo/Latexify.jl/pull/186.

jverzani commented 3 years ago

Thanks! I’ll merge once the CI tests pass.

codecov-commenter commented 3 years ago

Codecov Report

Merging #439 (21a8dc8) into master (c29cf98) will decrease coverage by 0.00%. The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #439      +/-   ##
==========================================
- Coverage   55.31%   55.30%   -0.01%     
==========================================
  Files          18       19       +1     
  Lines        1157     1159       +2     
==========================================
+ Hits          640      641       +1     
- Misses        517      518       +1     
Impacted Files Coverage Δ
src/SymPy.jl 62.50% <ø> (ø)
src/latexify_recipe.jl 50.00% <50.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c29cf98...21a8dc8. Read the comment docs.

jverzani commented 3 years ago

Thanks again! Let me know if you would like a version bump.

ranocha commented 3 years ago

Thank you for taking care of this so quickly! Yes, a new release would be great so that I can use this new feature in my work