mirror of https://github.com/mpastell/Weave.jl
Update build
parent
2dde5a0280
commit
853b28ade4
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
</script>
|
</script>
|
||||||
<title>Weave.jl</title>
|
<title>Weave.jl</title>
|
||||||
<meta http-equiv="refresh" content="0; url=http://weavejl.mpastell.com/stable" />
|
<meta http-equiv="refresh" content="0; url=http://weavejl.mpastell.com/stable/" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -135,7 +135,7 @@
|
||||||
<strong>
|
<strong>
|
||||||
Weave.jl
|
Weave.jl
|
||||||
<span class="version">
|
<span class="version">
|
||||||
v0.4.0
|
v0.4.1
|
||||||
</span>
|
</span>
|
||||||
</strong>
|
</strong>
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@
|
||||||
<ul class="repo">
|
<ul class="repo">
|
||||||
<li class="repo-download">
|
<li class="repo-download">
|
||||||
|
|
||||||
<a href="https://github.com/mpastell/Weave.jl/archive/v0.4.0.zip" target="_blank" title="Download" data-action="download">
|
<a href="https://github.com/mpastell/Weave.jl/archive/v0.4.1.zip" target="_blank" title="Download" data-action="download">
|
||||||
<i class="icon icon-download"></i> Download
|
<i class="icon icon-download"></i> Download
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
File diff suppressed because one or more lines are too long
|
@ -4,6 +4,8 @@ author : Matti Pastell
|
||||||
date : 13th December 2016
|
date : 13th December 2016
|
||||||
---
|
---
|
||||||
|
|
||||||
|
# Intro
|
||||||
|
|
||||||
This a sample [Julia](http://julialang.org/) markdown document that can
|
This a sample [Julia](http://julialang.org/) markdown document that can
|
||||||
be executed using [Weave.jl](https://github.com/mpastell/Weave.jl).
|
be executed using [Weave.jl](https://github.com/mpastell/Weave.jl).
|
||||||
|
|
||||||
|
@ -35,7 +37,7 @@ weave(Pkg.dir("Weave","examples","gadfly_md_sample.jmd"), informat="markdown",
|
||||||
The documents will be written to the Julia working directory when you
|
The documents will be written to the Julia working directory when you
|
||||||
use the `out_path = :pwd`.
|
use the `out_path = :pwd`.
|
||||||
|
|
||||||
## Capturing code
|
# Capturing code
|
||||||
|
|
||||||
The basic code chunk will be run with default options and the code and
|
The basic code chunk will be run with default options and the code and
|
||||||
output will be captured.
|
output will be captured.
|
||||||
|
@ -64,7 +66,7 @@ syntax from the source document):
|
||||||
plot(y = cumsum(randn(1000, 1)), Geom.line)
|
plot(y = cumsum(randn(1000, 1)), Geom.line)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Whats next
|
# Whats next
|
||||||
|
|
||||||
Read the documentation:
|
Read the documentation:
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -1,3 +1,11 @@
|
||||||
|
---
|
||||||
|
title : Intro to Weave.jl with Gadfly
|
||||||
|
author : Matti Pastell
|
||||||
|
date : 13th December 2016
|
||||||
|
---
|
||||||
|
|
||||||
|
# Intro
|
||||||
|
|
||||||
This a sample [Julia](http://julialang.org/) markdown document that can
|
This a sample [Julia](http://julialang.org/) markdown document that can
|
||||||
be executed using [Weave.jl](https://github.com/mpastell/Weave.jl).
|
be executed using [Weave.jl](https://github.com/mpastell/Weave.jl).
|
||||||
|
|
||||||
|
@ -11,6 +19,7 @@ You can create markdown output or pdf (with xelatex) and HTML directly using
|
||||||
the weave command as follows:
|
the weave command as follows:
|
||||||
|
|
||||||
~~~~{.julia}
|
~~~~{.julia}
|
||||||
|
|
||||||
using Weave
|
using Weave
|
||||||
#Markdown
|
#Markdown
|
||||||
weave(Pkg.dir("Weave","examples","gadfly_md_sample.jmd"), informat="markdown",
|
weave(Pkg.dir("Weave","examples","gadfly_md_sample.jmd"), informat="markdown",
|
||||||
|
@ -32,7 +41,7 @@ weave(Pkg.dir("Weave","examples","gadfly_md_sample.jmd"), informat="markdown",
|
||||||
The documents will be written to the Julia working directory when you
|
The documents will be written to the Julia working directory when you
|
||||||
use the `out_path = :pwd`.
|
use the `out_path = :pwd`.
|
||||||
|
|
||||||
## Capturing code
|
# Capturing code
|
||||||
|
|
||||||
The basic code chunk will be run with default options and the code and
|
The basic code chunk will be run with default options and the code and
|
||||||
output will be captured.
|
output will be captured.
|
||||||
|
@ -65,17 +74,18 @@ using chunk options. Here is an example of a chunk that behaves like a repl.
|
||||||
|
|
||||||
~~~~{.julia}
|
~~~~{.julia}
|
||||||
julia> x = 1:10
|
julia> x = 1:10
|
||||||
|
|
||||||
1:10
|
1:10
|
||||||
julia> d = Dict("Weave" => "testing")
|
|
||||||
|
|
||||||
|
julia> d = Dict("Weave" => "testing")
|
||||||
Dict{String,String} with 1 entry:
|
Dict{String,String} with 1 entry:
|
||||||
"Weave" => "testing"
|
"Weave" => "testing"
|
||||||
|
|
||||||
julia> y = [2, 4 ,8]
|
julia> y = [2, 4 ,8]
|
||||||
3-element Array{Int64,1}:
|
3-element Array{Int64,1}:
|
||||||
2
|
2
|
||||||
4
|
4
|
||||||
8
|
8
|
||||||
|
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|
||||||
|
@ -90,7 +100,7 @@ syntax from the source document):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Whats next
|
# Whats next
|
||||||
|
|
||||||
Read the documentation:
|
Read the documentation:
|
||||||
|
|
||||||
|
|
|
@ -135,7 +135,7 @@
|
||||||
<strong>
|
<strong>
|
||||||
Weave.jl
|
Weave.jl
|
||||||
<span class="version">
|
<span class="version">
|
||||||
v0.4.0
|
v0.4.1
|
||||||
</span>
|
</span>
|
||||||
</strong>
|
</strong>
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@
|
||||||
<ul class="repo">
|
<ul class="repo">
|
||||||
<li class="repo-download">
|
<li class="repo-download">
|
||||||
|
|
||||||
<a href="https://github.com/mpastell/Weave.jl/archive/v0.4.0.zip" target="_blank" title="Download" data-action="download">
|
<a href="https://github.com/mpastell/Weave.jl/archive/v0.4.1.zip" target="_blank" title="Download" data-action="download">
|
||||||
<i class="icon icon-download"></i> Download
|
<i class="icon icon-download"></i> Download
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -135,7 +135,7 @@
|
||||||
<strong>
|
<strong>
|
||||||
Weave.jl
|
Weave.jl
|
||||||
<span class="version">
|
<span class="version">
|
||||||
v0.4.0
|
v0.4.1
|
||||||
</span>
|
</span>
|
||||||
</strong>
|
</strong>
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@
|
||||||
<ul class="repo">
|
<ul class="repo">
|
||||||
<li class="repo-download">
|
<li class="repo-download">
|
||||||
|
|
||||||
<a href="https://github.com/mpastell/Weave.jl/archive/v0.4.0.zip" target="_blank" title="Download" data-action="download">
|
<a href="https://github.com/mpastell/Weave.jl/archive/v0.4.1.zip" target="_blank" title="Download" data-action="download">
|
||||||
<i class="icon icon-download"></i> Download
|
<i class="icon icon-download"></i> Download
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -269,7 +269,12 @@
|
||||||
<li>pdf: <a href="../examples/gadfly_md_sample.pdf">gadfly_md_sample.pdf</a></li>
|
<li>pdf: <a href="../examples/gadfly_md_sample.pdf">gadfly_md_sample.pdf</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<p><em>Producing pdf output requires that you have pdflatex installed.</em></p>
|
<p><em>Producing pdf output requires that you have pdflatex installed.</em></p>
|
||||||
<p>You can Weave the files to your working directory using:</p>
|
<p>Add depencies for the example if needed:</p>
|
||||||
|
<div class="code"><pre><span></span><span class="n">Pkg</span><span class="o">.</span><span class="n">add</span><span class="o">.</span><span class="p">([</span><span class="s">"Cairo"</span><span class="p">,</span> <span class="s">"Fontconfig"</span><span class="p">,</span> <span class="s">"Gadfly"</span><span class="p">])</span>
|
||||||
|
</pre></div>
|
||||||
|
|
||||||
|
|
||||||
|
<p>Weave the files to your working directory using:</p>
|
||||||
<div class="code"><pre><span></span><span class="k">using</span> <span class="n">Weave</span>
|
<div class="code"><pre><span></span><span class="k">using</span> <span class="n">Weave</span>
|
||||||
<span class="c">#Markdown</span>
|
<span class="c">#Markdown</span>
|
||||||
<span class="n">weave</span><span class="p">(</span><span class="n">Pkg</span><span class="o">.</span><span class="n">dir</span><span class="p">(</span><span class="s">"Weave"</span><span class="p">,</span><span class="s">"examples"</span><span class="p">,</span><span class="s">"gadfly_md_sample.jmd"</span><span class="p">),</span> <span class="n">out_path</span> <span class="o">=</span> <span class="o">:</span><span class="n">pwd</span><span class="p">,</span>
|
<span class="n">weave</span><span class="p">(</span><span class="n">Pkg</span><span class="o">.</span><span class="n">dir</span><span class="p">(</span><span class="s">"Weave"</span><span class="p">,</span><span class="s">"examples"</span><span class="p">,</span><span class="s">"gadfly_md_sample.jmd"</span><span class="p">),</span> <span class="n">out_path</span> <span class="o">=</span> <span class="o">:</span><span class="n">pwd</span><span class="p">,</span>
|
||||||
|
|
|
@ -135,7 +135,7 @@
|
||||||
<strong>
|
<strong>
|
||||||
Weave.jl
|
Weave.jl
|
||||||
<span class="version">
|
<span class="version">
|
||||||
v0.4.0
|
v0.4.1
|
||||||
</span>
|
</span>
|
||||||
</strong>
|
</strong>
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@
|
||||||
<ul class="repo">
|
<ul class="repo">
|
||||||
<li class="repo-download">
|
<li class="repo-download">
|
||||||
|
|
||||||
<a href="https://github.com/mpastell/Weave.jl/archive/v0.4.0.zip" target="_blank" title="Download" data-action="download">
|
<a href="https://github.com/mpastell/Weave.jl/archive/v0.4.1.zip" target="_blank" title="Download" data-action="download">
|
||||||
<i class="icon icon-download"></i> Download
|
<i class="icon icon-download"></i> Download
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -276,7 +276,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li>Noweb, markdown or script syntax for input documents.</li>
|
<li>Noweb, markdown or script syntax for input documents.</li>
|
||||||
<li>Execute code as terminal or "script" chunks.</li>
|
<li>Execute code as terminal or "script" chunks.</li>
|
||||||
<li>Capture Plots, Gadfly, PyPlot and Winston figures.</li>
|
<li>Capture Plots, Gadfly and PyPlot figures.</li>
|
||||||
<li>Supports LaTex, Pandoc, Github markdown, MultiMarkdown, Asciidoc and reStructuredText output</li>
|
<li>Supports LaTex, Pandoc, Github markdown, MultiMarkdown, Asciidoc and reStructuredText output</li>
|
||||||
<li>Publish markdown directly to html and pdf using julia or Pandoc markdown.</li>
|
<li>Publish markdown directly to html and pdf using julia or Pandoc markdown.</li>
|
||||||
<li>Simple caching of results</li>
|
<li>Simple caching of results</li>
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -135,7 +135,7 @@
|
||||||
<strong>
|
<strong>
|
||||||
Weave.jl
|
Weave.jl
|
||||||
<span class="version">
|
<span class="version">
|
||||||
v0.4.0
|
v0.4.1
|
||||||
</span>
|
</span>
|
||||||
</strong>
|
</strong>
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@
|
||||||
<ul class="repo">
|
<ul class="repo">
|
||||||
<li class="repo-download">
|
<li class="repo-download">
|
||||||
|
|
||||||
<a href="https://github.com/mpastell/Weave.jl/archive/v0.4.0.zip" target="_blank" title="Download" data-action="download">
|
<a href="https://github.com/mpastell/Weave.jl/archive/v0.4.1.zip" target="_blank" title="Download" data-action="download">
|
||||||
<i class="icon icon-download"></i> Download
|
<i class="icon icon-download"></i> Download
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -135,7 +135,7 @@
|
||||||
<strong>
|
<strong>
|
||||||
Weave.jl
|
Weave.jl
|
||||||
<span class="version">
|
<span class="version">
|
||||||
v0.4.0
|
v0.4.1
|
||||||
</span>
|
</span>
|
||||||
</strong>
|
</strong>
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@
|
||||||
<ul class="repo">
|
<ul class="repo">
|
||||||
<li class="repo-download">
|
<li class="repo-download">
|
||||||
|
|
||||||
<a href="https://github.com/mpastell/Weave.jl/archive/v0.4.0.zip" target="_blank" title="Download" data-action="download">
|
<a href="https://github.com/mpastell/Weave.jl/archive/v0.4.1.zip" target="_blank" title="Download" data-action="download">
|
||||||
<i class="icon icon-download"></i> Download
|
<i class="icon icon-download"></i> Download
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/</loc>
|
<loc>/</loc>
|
||||||
<lastmod>2017-03-06</lastmod>
|
<lastmod>2017-03-15</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/getting_started/</loc>
|
<loc>/getting_started/</loc>
|
||||||
<lastmod>2017-03-06</lastmod>
|
<lastmod>2017-03-15</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/usage/</loc>
|
<loc>/usage/</loc>
|
||||||
<lastmod>2017-03-06</lastmod>
|
<lastmod>2017-03-15</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/publish/</loc>
|
<loc>/publish/</loc>
|
||||||
<lastmod>2017-03-06</lastmod>
|
<lastmod>2017-03-15</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/chunk_options/</loc>
|
<loc>/chunk_options/</loc>
|
||||||
<lastmod>2017-03-06</lastmod>
|
<lastmod>2017-03-15</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/notebooks/</loc>
|
<loc>/notebooks/</loc>
|
||||||
<lastmod>2017-03-06</lastmod>
|
<lastmod>2017-03-15</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/function_index/</loc>
|
<loc>/function_index/</loc>
|
||||||
<lastmod>2017-03-06</lastmod>
|
<lastmod>2017-03-15</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
|
|
|
@ -135,7 +135,7 @@
|
||||||
<strong>
|
<strong>
|
||||||
Weave.jl
|
Weave.jl
|
||||||
<span class="version">
|
<span class="version">
|
||||||
v0.4.0
|
v0.4.1
|
||||||
</span>
|
</span>
|
||||||
</strong>
|
</strong>
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@
|
||||||
<ul class="repo">
|
<ul class="repo">
|
||||||
<li class="repo-download">
|
<li class="repo-download">
|
||||||
|
|
||||||
<a href="https://github.com/mpastell/Weave.jl/archive/v0.4.0.zip" target="_blank" title="Download" data-action="download">
|
<a href="https://github.com/mpastell/Weave.jl/archive/v0.4.1.zip" target="_blank" title="Download" data-action="download">
|
||||||
<i class="icon icon-download"></i> Download
|
<i class="icon icon-download"></i> Download
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -355,7 +355,7 @@
|
||||||
<li><code>doctype</code>: :auto = set based on file extension or specify one of the supported formats. See <code>list_out_formats()</code></li>
|
<li><code>doctype</code>: :auto = set based on file extension or specify one of the supported formats. See <code>list_out_formats()</code></li>
|
||||||
<li><code>plotlib</code>: <code>"PyPlot"</code>, <code>"Gadfly"</code> or <code>nothing</code></li>
|
<li><code>plotlib</code>: <code>"PyPlot"</code>, <code>"Gadfly"</code> or <code>nothing</code></li>
|
||||||
<li><code>informat</code>: :auto = set based on file extension or set to <code>"noweb"</code>, <code>"markdown"</code> or <code>script</code></li>
|
<li><code>informat</code>: :auto = set based on file extension or set to <code>"noweb"</code>, <code>"markdown"</code> or <code>script</code></li>
|
||||||
<li><code>out_path</code>: Path where the output is generated. Can be: <code>:doc</code>: Path of the source document, <code>:pwd</code>: Julia working directory, <code>"somepath"</code>: output directory as a String e.g <code>"/home/mpastell/weaveout"</code> or filename as string e.g. ~/outpath/outfile.tex.</li>
|
<li><code>out_path</code>: Path where the output is generated. Can be: <code>:doc</code>: Path of the source document, <code>:pwd</code>: Julia working directory, <code>"somepath"</code>: output directory as a String e.g <code>"/home/mpastell/weaveout"</code> or filename as string e.g. ~/outpath/outfile.tex.</li>
|
||||||
<li><code>args</code>: dictionary of arguments to pass to document. Available as WEAVE_ARGS</li>
|
<li><code>args</code>: dictionary of arguments to pass to document. Available as WEAVE_ARGS</li>
|
||||||
<li><code>fig_path</code>: where figures will be generated, relative to out_path</li>
|
<li><code>fig_path</code>: where figures will be generated, relative to out_path</li>
|
||||||
<li><code>fig_ext</code>: Extension for saved figures e.g. <code>".pdf"</code>, <code>".png"</code>. Default setting depends on <code>doctype</code>.</li>
|
<li><code>fig_ext</code>: Extension for saved figures e.g. <code>".pdf"</code>, <code>".png"</code>. Default setting depends on <code>doctype</code>.</li>
|
||||||
|
|
Loading…
Reference in New Issue