Getting started
The best way to get started using Weave.jl is to look at the example input and output documents. Examples for different formats are included in the packages examples
directory.
First have a look at source document using markdown code chunks and Gadfly for figures: gadfly_md_sample.jmd and then see the output in different formats:
- Pandoc markdown: gadfly_md_sample.md
- HTML: gadfly_md_sample.html
- pdf: gadfly_md_sample.pdf
Producing pdf output requires that you have pdflatex installed.
You can Weave the files to your working directory using:
using Weave #Markdown weave(Pkg.dir("Weave","examples","gadfly_md_sample.jmd"), out_path = :pwd, doctype = "pandoc") #HTML weave(Pkg.dir("Weave","examples","gadfly_md_sample.jmd"), out_path = :pwd, doctype = "md2html") #pdf weave(Pkg.dir("Weave","examples","gadfly_md_sample.jmd"), out_path = :pwd, doctype = "md2pdf")