How to add a function to show so that in a matrix latex is shown

Hi dear community :slight_smile:

I created my own ModInt type and want to use it in a Matrix. I want to show it as rendered latex like:

julia> [ModInt{5}(i+j) for i in 1:2, j in 1:2]
2×2 Array{ModInt{5},2}:
 2₅ 3₅
 3₅ 4₅

How would I do that?

See if helps