Skip to content

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 Plots.jl for figures: FIR_design.jmd and then see the output in different formats:

Producing pdf output requires that you have pdflatex installed.

Add dependencies for the example if needed:

using Pkg; Pkg.add.(["Plots", "DSP"])

Weave the files to your working directory using:

using Weave
#Markdown
weave(joinpath(dirname(pathof(Weave)), "../examples", "FIR_design.jmd"),
    doctype="pandoc"
    out_path=:pwd)
#HTML
weave(joinpath(dirname(pathof(Weave)), "../examples", "FIR_design.jmd"),
  out_path=:pwd,
  doctype = "md2html")
#pdf
weave(joinpath(dirname(pathof(Weave)), "../examples", "FIR_design.jmd"),
  out_path=:pwd,
  doctype = "md2pdf")