# \[ANN\] PrettyTables.jl now has LaTeX backend

**URL:** <https://discourse.julialang.org/t/ann-prettytables-jl-now-has-latex-backend/31990>\
**Category:** Community\
**Created:** [December 7, 2019, 11:05pm UTC](https://discourse.julialang.org/t/ann-prettytables-jl-now-has-latex-backend/31990 "2019-12-07T23:05:19Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![ea42gh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ea42gh/32/12000_2.png) [@ea42gh](https://discourse.julialang.org/u/ea42gh)\
**Post date:** [January 12, 2020, 6:47pm UTC](https://discourse.julialang.org/t/ann-prettytables-jl-now-has-latex-backend/31990/21 "2020-01-12T18:47:09Z")

</div>

Which you are currently working on 😄  
I’ll have to figure out how to install your dev version!

To do what I am after, it would be enough to ensure that  
table entries can be either an empty string, or a latex string?  
I am looking forward to trying it!

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [January 12, 2020, 6:51pm UTC](https://discourse.julialang.org/t/ann-prettytables-jl-now-has-latex-backend/31990/22 "2020-01-12T18:51:58Z")

</div>

Actually the released version already has the LaTeX backend, just expect some rough edges 🙂

> [@ea42gh](#):
>
> To do what I am after, it would be enough to ensure that  
> table entries can be either an empty string, or a latex string?

Perfect! This should work.

---

<div class="post-metadata">

**Author:** ![ea42gh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ea42gh/32/12000_2.png) [@ea42gh](https://discourse.julialang.org/u/ea42gh)\
**Post date:** [January 12, 2020, 10:47pm UTC](https://discourse.julialang.org/t/ann-prettytables-jl-now-has-latex-backend/31990/23 "2020-01-12T22:47:39Z")

</div>

I ended up with

```julia
function pt_frac(value)
    n,d=numerator(value),denominator(value)
    "$n &frasl; $d"
end
formatter = Dict( 0 => (value,i) -> pt_frac(value) )
pretty_table([1//2 2; -2//3 3//2], noheader=true, backend=:html, formatter=formatter)

```

Might you have a better suggestion?

Having played with this some more, having more control over where horizontal and vertical border lines are placed would be useful. (Outline blocks of cells, rather than every cell)

[Previous page](https://discourse.julialang.org/t/ann-prettytables-jl-now-has-latex-backend/31990.md?page=1)
