# Is there a workaround to render symbols from Symbolics.jl in Pluto.jl

**URL:** <https://discourse.julialang.org/t/is-there-a-workaround-to-render-symbols-from-symbolics-jl-in-pluto-jl/61198>\
**Category:** Modelling & Simulations\
**Tags:** symbolic, pluto, pluto-and-latex\
**Created:** [May 15, 2021, 12:12pm UTC](https://discourse.julialang.org/t/is-there-a-workaround-to-render-symbols-from-symbolics-jl-in-pluto-jl/61198 "2021-05-15T12:12:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Post date:** [May 15, 2021, 12:12pm UTC](https://discourse.julialang.org/t/is-there-a-workaround-to-render-symbols-from-symbolics-jl-in-pluto-jl/61198/1 "2021-05-15T12:12:46Z")

</div>

When I use Symbolics.jl in Pluto.jl I get an invalid latex expression (at least for Mathjax).

 ![Capture](https://global.discourse-cdn.com/julialang/original/3X/6/3/63aebae8745630515eb88b6aa2a29d6880cd4617.png)

Is there a workaround to remove the text part from the output?  
I basically makes Symbolics.jl very bothersome to use.

I also found this issue, but It does not provide a workaround yet.  
[SymPy formulas are not rendered correctly · Issue #488 · fonsp/Pluto.jl · GitHub](https://github.com/fonsp/Pluto.jl/issues/488)

---

<div class="post-metadata">

**Author:** ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Post date:** [May 15, 2021, 12:48pm UTC](https://discourse.julialang.org/t/is-there-a-workaround-to-render-symbols-from-symbolics-jl-in-pluto-jl/61198/2 "2021-05-15T12:48:51Z")

</div>

I may have found a way.  
I hope this does not mess up other things.

```julia
Base.show(io::IO,::MIME"text/html",x::Num) = show(io,MIME("text/latex"),x)

```

---

<div class="post-metadata">

**Author:** ![tjh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tjh/32/23631_2.png) [@tjh](https://discourse.julialang.org/u/tjh)\
**Post date:** [May 15, 2021, 1:20pm UTC](https://discourse.julialang.org/t/is-there-a-workaround-to-render-symbols-from-symbolics-jl-in-pluto-jl/61198/3 "2021-05-15T13:20:21Z")

</div>

The following has worked for me:

```julia
using Symbolics, Latexify

set_default(; env=:inline)

```

At the same time, I am no expert. Maybe there is some reason this is not a good way to work around. I’d love to hear if it works for you and if you have found anything better.

---

<div class="post-metadata">

**Author:** ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Post date:** [May 15, 2021, 1:47pm UTC](https://discourse.julialang.org/t/is-there-a-workaround-to-render-symbols-from-symbolics-jl-in-pluto-jl/61198/4 "2021-05-15T13:47:32Z")

</div>

Thank you for your solution. I think I’ll be using that one.

---

<div class="post-metadata">

**Author:** ![tjh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tjh/32/23631_2.png) [@tjh](https://discourse.julialang.org/u/tjh)\
**Post date:** [May 26, 2021, 8:27pm UTC](https://discourse.julialang.org/t/is-there-a-workaround-to-render-symbols-from-symbolics-jl-in-pluto-jl/61198/5 "2021-05-26T20:27:35Z")

</div>

Note that this is no longer needed in the latest Pluto (0.14.7). Thank you fonsp!
