Publishing to html and pdf
You can also publish any supported input format using markdown for doc chunks to html and pdf documents. Producing pdf output requires that you have pdflatex installed and in your path. The markdown variant is Julia markdown.
You can use a YAML header in the beginning of the input document delimited with "–-" to set the document title, author and date e.g.
--- title : Weave example author : Matti Pastell date: 15th December 2016 ---
Here is a a sample document and output:
weave("FIR_design.jl") weave("FIR_design.jl", docformat = "md2pdf")
md2html use Julia markdown and
pandoc2html use Pandoc.
You can use a custom template with
md2html formats with
template argument (e.g)
weave("FIR_design.jl", template = "custom.tpl"). You can use the existing templates as starting point.
Templates are rendered using Mustache.jl.