# How to publish a pdf with Weave

**URL:** https://discourse.julialang.org/t/how-to-publish-a-pdf-with-weave/92337
**Category:** General Usage
**Tags:** weave
**Created:** [December 30, 2022, 9:43pm UTC](https://discourse.julialang.org/t/how-to-publish-a-pdf-with-weave/92337 "2022-12-30T21:43:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ceysa75](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ceysa75/32/19121_2.png) [@ceysa75](https://discourse.julialang.org/u/ceysa75)
#### Post date: [December 30, 2022, 9:43pm UTC](https://discourse.julialang.org/t/how-to-publish-a-pdf-with-weave/92337/1 "2022-12-30T21:43:14Z")

</div>

Hi all,

I am trying to generate a pdf document from my jmd file as follows:

```julia
weave("myTest.jmd"; doctype = "md2pdf")

```

However, for some reason it exits with an error (whereas a html can be generated without any issues).  
In the Weave docs it says: Producing PDF output requires that you have XeLaTex installed and in your path.  
Could someone please explain, what the line above means ? Do I have to install a package XeLaTex ? (which btw does not exist)

Thank you

---

<div class="post-metadata">

### Author: ![fatteneder](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fatteneder/32/33991_2.png) [@fatteneder](https://discourse.julialang.org/u/fatteneder)
#### Post date: [December 31, 2022, 10:33am UTC](https://discourse.julialang.org/t/how-to-publish-a-pdf-with-weave/92337/2 "2022-12-31T10:33:29Z")

</div>

> [@ceysa75](#):
>
> XeLaTex

`XeLaTeX` is one particular flavour of the well known typesetting system `TeX`: [TeX - Wikipedia](https://en.wikipedia.org/wiki/TeX)

> Could someone please explain, what the line above means ? Do I have to install a package XeLaTex ? (which btw does not exist)

What the line wants to tell you is that you should install the `XeLaTeX` program in your operating system and not inside `Julia`. The phrase `... and in your path.` means that the installation shall be such that you can call `XeLaTeX` from the command line.

---

<div class="post-metadata">

### Author: ![ceysa75](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ceysa75/32/19121_2.png) [@ceysa75](https://discourse.julialang.org/u/ceysa75)
#### Post date: [December 31, 2022, 12:08pm UTC](https://discourse.julialang.org/t/how-to-publish-a-pdf-with-weave/92337/3 "2022-12-31T12:08:15Z")

</div>

Ahhh, ok. Thank you so much for the explanation. Will try to do that. Is it worth mentioning that I am in the VScode environment ? So would it help to install any (Tex)-extension in VScode ? Anyway, will also try on my own.  
Happy new year and thanks again…

---

<div class="post-metadata">

### Author: ![fatteneder](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fatteneder/32/33991_2.png) [@fatteneder](https://discourse.julialang.org/u/fatteneder)
#### Post date: [December 31, 2022, 2:17pm UTC](https://discourse.julialang.org/t/how-to-publish-a-pdf-with-weave/92337/4 "2022-12-31T14:17:14Z")

</div>

I don’t use VSCode myself.  
My guess would be that you need to install it independently, but maybe an extensions works too.

Happy new year to you too 🎇
