# Having difficulty to produce a .pdf (but not .html) output using Weave.jl

**URL:** https://discourse.julialang.org/t/having-difficulty-to-produce-a-pdf-but-not-html-output-using-weave-jl/64100
**Category:** New to Julia
**Tags:** question
**Created:** [July 5, 2021, 7:45pm UTC](https://discourse.julialang.org/t/having-difficulty-to-produce-a-pdf-but-not-html-output-using-weave-jl/64100 "2021-07-05T19:45:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![quant-biologist](https://avatars.discourse-cdn.com/v4/letter/q/a6a055/32.png) [@quant-biologist](https://discourse.julialang.org/u/quant-biologist)
#### Post date: [July 5, 2021, 7:45pm UTC](https://discourse.julialang.org/t/having-difficulty-to-produce-a-pdf-but-not-html-output-using-weave-jl/64100/1 "2021-07-05T19:45:38Z")

</div>

Good day,

I am new to Julia, but really eager to learn. I am preparing a scientific manuscript and I would like to provide reproducible documents (i.e. Julia code) to publish on a GitHub repository. I have no problem using Weave.jl to produce my code as .html documents. However, I realized that one cannot visualize the .html document directly from GitHub. Thus, I thought about providing the code as .pdf documents. The thing is that I can’t understand the problem I am having with .pdf documents.

**When I use :**

```julia
weave("code/data-exploration.Jmd", 
        fig_path = "data-exploration-figs",
        doctype = "md2pdf")

```

**I get the following message :**  
No pages of output.  
Transcript written on data-exploration.log.  
┌ Warning: Error converting document to pdf. Try running latex manually└ @ Weave C:\Users\maxim.julia\packages\Weave\usPVZ\src\writer\latex.jl:12

**and then :**  
ERROR: LoadError: failed process: Process(`xelatex -shell-escape -halt-on-error data-exploration.tex`, ProcessExited(1)) [1]

I suspect that the error comes from my xelatex installation, but I don’t understand the error message and how I can correct it.

Could someone help me understand what is going on and how to possibly fix it?

Thank you very much in advance!
