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

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 :

``````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!