# How to create Latex pdf directly from julia

**URL:** <https://discourse.julialang.org/t/how-to-create-latex-pdf-directly-from-julia/93222>\
**Category:** General Usage\
**Tags:** latex\
**Created:** [January 19, 2023, 5:07pm UTC](https://discourse.julialang.org/t/how-to-create-latex-pdf-directly-from-julia/93222 "2023-01-19T17:07:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Nathan\_Boyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nathan_boyer/32/14825_2.png) [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Post date:** [January 19, 2023, 6:39pm UTC](https://discourse.julialang.org/t/how-to-create-latex-pdf-directly-from-julia/93222/3 "2023-01-19T18:39:53Z")

</div>

Latexify generates LaTeX code from Julia code. You will want to combine [Latexify.jl](https://github.com/korsbo/Latexify.jl) with [Weave.jl](https://github.com/JunoLab/Weave.jl) to generate a PDF from the outputs.

I wrote a short guide for my use case of displaying functions and tables defined in a package in [this post](https://discourse.julialang.org/t/generate-pdf-document-showing-the-equations-in-a-package/91064/2), but Weave can also include plots and numerical answers in the PDF output.

Edit: Actually, the difficulty regarding the workarounds in that post are all related to trying to Latexify and Weave code that already exists as a package. If you are just writing a standalone script to generate the PDF output, you can just follow the [examples](https://weavejl.mpastell.com/dev/getting_started/) included in the Weave package.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-create-latex-pdf-directly-from-julia/93222)._
