# Generate PDF document showing the equations in a package

**URL:** <https://discourse.julialang.org/t/generate-pdf-document-showing-the-equations-in-a-package/91064>\
**Category:** Visualization\
**Tags:** latex, weave, literate\
**Created:** [November 30, 2022, 8:38pm UTC](https://discourse.julialang.org/t/generate-pdf-document-showing-the-equations-in-a-package/91064 "2022-11-30T20:38:59Z")\
**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 30, 2025, 6:57pm UTC](https://discourse.julialang.org/t/generate-pdf-document-showing-the-equations-in-a-package/91064/3 "2025-01-30T18:57:04Z")

</div>

I updated my package to go back to Pluto.

* * *

> [@Nathan\_Boyer](#):
>
> I had success writing a Pluto notebook for these equations which took the form below and rendered very nicely. However, I could not figure out a way to then make other packages depend on these equations

It’s actually very easy. Pluto notebooks are just `.jl` files after all, so they can be `include`-ed as `src` files in a package. Then you can export the Pluto notebook as a PDF or HTML, either manually or with PlutoSliderServer.jl.

The only [trick](https://discourse.julialang.org/t/how-to-handle-dependencies-with-pluto-notebook-as-package-source-code/122780) is to disable Pluto’s own package manager in the notebook by including a cell with the following content and then choosing “disable in file” in the cell menu options.

```julia
begin
	import Pkg
	Pkg.activate(Base.current_project(@ __DIR__ ))
	Pkg.instantiate()
	Text("Project environment is active.")
end

```

A simple package using this method is [here](https://github.com/nathanrboyer/KD232.jl). A slightly more complicated example with some additional tricks for tables of equations is [here](https://github.com/nathanrboyer/KM620.jl).

---

_[View the full topic](https://discourse.julialang.org/t/generate-pdf-document-showing-the-equations-in-a-package/91064)._
