Weave.jl/test/documents/chunk_options.noweb

58 lines
589 B
Plaintext
Raw Permalink Normal View History

2014-12-06 18:16:45 +01:00
<<term=true>>=
y= [2, 5, 12]
@
<<term=true>>=
x = 1:10
d = Dict("Weave" => "testing")
y = [2, 4 ,8]
@
2014-12-06 18:16:45 +01:00
<<>>=
x = [12, 10]
println(y)
2014-12-09 10:34:26 +01:00
println(x)
2014-12-06 18:16:45 +01:00
@
<<echo=false>>=
2014-12-09 10:34:26 +01:00
println("Results without code")
2014-12-06 18:16:45 +01:00
println(x)
@
<<eval=false; tangle=false>>=
2014-12-06 18:16:45 +01:00
y = randn(5)
2014-12-09 10:34:26 +01:00
println("Don't eval, but show code")
2014-12-06 18:16:45 +01:00
@
2014-12-09 10:34:26 +01:00
<<>>=
y = 1:5
println(y)
@
2014-12-06 18:16:45 +01:00
<<results="hidden">>=
2014-12-09 10:34:26 +01:00
a = "Don't print me"
2014-12-06 18:16:45 +01:00
println(a)
@
2014-12-09 10:34:26 +01:00
<<results="as_is">>=
println("No markup for results.")
@
Test wrapping:
<<>>=
2016-04-11 19:34:36 +02:00
println(collect(0:10:1000))
@
<<wrap=false>>=
2016-04-11 19:34:36 +02:00
println(collect(0:10:1000))
@
<<line_width=60>>=
2016-04-11 19:34:36 +02:00
println(collect(0:10:1000))
@