Go to file
Shuhei Kadowaki c1cf566c53 refactor format.jl 2020-05-16 17:59:17 +09:00
.github introduce compat helper 2020-03-04 18:01:36 +09:00
bin rm unncessary `Symbol` spec: 2020-05-10 13:20:44 +09:00
doc write documentation for dynamic header 2020-05-16 17:52:17 +09:00
examples fix indents, Github -> GitHub 2020-05-06 23:37:04 +09:00
paper Updated citation #85 2017-03-15 17:07:25 +02:00
src refactor format.jl 2020-05-16 17:59:17 +09:00
templates use 0.9em for code size instead of hard coding 13px 2020-03-04 16:29:32 -05:00
test update test 2020-05-16 16:05:02 +09:00
.gitattributes Fix handling of \r #72 2016-12-22 21:40:07 +02:00
.gitignore allow configuration of jupyter command while weaving notebooks, fixes #194 2019-06-19 10:26:13 -07:00
.travis.yml update travis 2020-03-26 21:42:31 +09:00
LICENSE.md update LICENSE 2020-05-10 14:10:46 +09:00
NEWS.md Fix mimetype order for md2html 2017-03-14 18:54:03 +02:00
Project.toml bump Plots.jl version 2020-05-09 02:48:09 +09:00
README.md update README 2020-04-01 19:04:55 +09:00

README.md

Weave

Build Status

Weave is a scientific report generator/literate programming tool for Julia. It resembles Pweave, knitr, R Markdown, and Sweave.

You can write your documentation and code in input document using Markdown, Noweb or ordinal Julia script syntax, and then use weave function to execute code and generate an output document while capturing results and figures.

Current features

  • Publish markdown directly to HTML and PDF using Julia or Pandoc
  • Execute code as in terminal or in a unit of code chunk
  • Capture Plots.jl or Gadfly.jl figures
  • Supports various input format: Markdown, Noweb, Jupyter Notebook, and ordinal Julia script
  • Conversions between those input formats
  • Supports various output document formats: HTML, PDF, GitHub markdown, Jupyter Notebook, MultiMarkdown, Asciidoc and reStructuredText
  • Simple caching of results

Citing Weave: Pastell, Matti. 2017. Weave.jl: Scientific Reports Using Julia. The Journal of Open Source Software. http://dx.doi.org/10.21105/joss.00204

Weave in Juno demo

Installation

You can install the latest release using Julia package manager:

using Pkg
Pkg.add("Weave")

Usage

Run from julia using Plots.jl for plots:

# First add depencies for the example
using Pkg; Pkg.add.(["Plots", "DSP"])

# Use Weave
using Weave
weave(joinpath(dirname(pathof(Weave)), "../examples", "FIR_design.jmd"), out_path=:pwd)

If you have LaTeX installed you can also weave directly to pdf.

weave(joinpath(dirname(pathof(Weave)), "../examples", "FIR_design.jmd"), out_path = :pwd, doctype = "md2pdf")

Documentation

Documenter.jl with MKDocs generated documentation:

Editor support

Install language-weave to add Weave support to Juno. It allows running code from Weave documents with usual keybindings and allows preview of html and pdf output.

The Julia extension for Visual Studio Code adds Weave support to Visual Studio Code.

Contributing

You can contribute to this package by opening issues on GitHub or implementing things yourself and making a pull request. We'd also appreciate more example documents written using Weave.

Contributors

You can see the list of contributors on GitHub: https://github.com/JunoLab/Weave.jl/graphs/contributors . Thanks for the important additions, fixes and comments.

Example projects using Weave