# Julia Markdown: Error converting document to pdf. Try running latex manually

**URL:** <https://discourse.julialang.org/t/julia-markdown-error-converting-document-to-pdf-try-running-latex-manually/12342>\
**Category:** Performance\
**Created:** [July 12, 2018, 8:41pm UTC](https://discourse.julialang.org/t/julia-markdown-error-converting-document-to-pdf-try-running-latex-manually/12342 "2018-07-12T20:41:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvcavalcanti](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mvcavalcanti](https://discourse.julialang.org/u/mvcavalcanti)\
**Post date:** [July 12, 2018, 8:41pm UTC](https://discourse.julialang.org/t/julia-markdown-error-converting-document-to-pdf-try-running-latex-manually/12342/1 "2018-07-12T20:41:37Z")

</div>

I have been using Weave to generate PDFs from Julia markdown, but it is not working.

If I run

using Weave  
weave(“gadfly\_md\_sample.jmd”; doctype=“md2pdf”, latex\_cmd=“pdflatex”)  
I get the following warning:

WARNING: Error converting document to pdf. Try running latex manually  
I have tried running latex manually, but this doesn’t work.

Any ideas why this isn’t working for me?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Rob\_van\_Weelderen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rob_van_weelderen/32/7621_2.png) [@Rob\_van\_Weelderen](https://discourse.julialang.org/u/Rob_van_Weelderen)\
**Post date:** [July 12, 2018, 9:47pm UTC](https://discourse.julialang.org/t/julia-markdown-error-converting-document-to-pdf-try-running-latex-manually/12342/2 "2018-07-12T21:47:10Z")

</div>

Could be of a missing ‘pygmentize’ python script. I had this issue as well, but I don’t have access to my machines at the moment to check.

---

<div class="post-metadata">

**Author:** ![jwills801](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@jwills801](https://discourse.julialang.org/u/jwills801)\
**Post date:** [April 2, 2020, 12:53am UTC](https://discourse.julialang.org/t/julia-markdown-error-converting-document-to-pdf-try-running-latex-manually/12342/3 "2020-04-02T00:53:30Z")

</div>

I have been having the same problem. Weave works for me sometimes, but it seems to depend on my current working directory, but I don’t think it should depend on that.
