# Default method used to display the results of cell evaluation

**URL:** <https://discourse.julialang.org/t/default-method-used-to-display-the-results-of-cell-evaluation/97437>\
**Category:** Pluto\
**Tags:** symbolics\
**Created:** [April 13, 2023, 5:54pm UTC](https://discourse.julialang.org/t/default-method-used-to-display-the-results-of-cell-evaluation/97437 "2023-04-13T17:54:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregstrq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gregstrq/32/20620_2.png) [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Post date:** [April 13, 2023, 5:54pm UTC](https://discourse.julialang.org/t/default-method-used-to-display-the-results-of-cell-evaluation/97437/1 "2023-04-13T17:54:58Z")

</div>

As the title suggests, I would like to know what specific method is called to display the results of the evaluated cell in Pluto.

The problem that I am trying to solve is why `Latexify.jl` works for real symbolic matrices from `Symbolics.jl`, but not for complex symbolic ones.

I have to figure out the dispatch tree, and for that I need to know which specific method of `display`, `show` or whatever function Pluto uses by default.

---

<div class="post-metadata">

**Author:** ![SteffenPL](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/steffenpl/32/206270_2.png) [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Post date:** [April 13, 2023, 6:20pm UTC](https://discourse.julialang.org/t/default-method-used-to-display-the-results-of-cell-evaluation/97437/2 "2023-04-13T18:20:00Z")

</div>

It uses `show` with the MIME type `text/latex`. The list of used MIME types used by Pluto.jl is here: [Pluto.jl/PlutoRunner.jl at c9ac544dbbd3fdbc3aabaf89ea911101f42a1026 · fonsp/Pluto.jl · GitHub](https://github.com/fonsp/Pluto.jl/blob/c9ac544dbbd3fdbc3aabaf89ea911101f42a1026/src/runner/PlutoRunner.jl#L992)

Symbolics implements that here

> <https://github.com/JuliaSymbolics/Symbolics.jl/blob/2905ec39bb8f95d389020a413ef01ee968d4cba3/src/latexify_recipes.jl#L110>

To extend it, you need to implement something like

```julia
Base.show(io::IO, ::MIME"text/latex", x::YourType) = print(io, "\$\$ " * latexify(x) * " \$\$")

```

where `YourType` is the type you want to support.
