mirror of https://github.com/mpastell/Weave.jl
67 lines
435 B
Plaintext
67 lines
435 B
Plaintext
|
|
|
|
|
|
<<>>=
|
|
y= [2, 5, 12]
|
|
@
|
|
|
|
|
|
|
|
<<>>=
|
|
x = [12, 10]
|
|
println(y)
|
|
println(x)
|
|
@
|
|
|
|
|
|
|
|
<<>>=
|
|
println("Results without code")
|
|
println(x)
|
|
@
|
|
|
|
|
|
|
|
<<>>=
|
|
y = randn(5)
|
|
println("Don't eval, but show code")
|
|
@
|
|
|
|
|
|
|
|
<<>>=
|
|
y = 1:5
|
|
println(y)
|
|
@
|
|
|
|
|
|
|
|
<<>>=
|
|
a = "Don't print me"
|
|
println(a)
|
|
@
|
|
|
|
|
|
|
|
<<>>=
|
|
println("No markup for results.")
|
|
@
|
|
|
|
Test wrapping:
|
|
|
|
<<>>=
|
|
println(collect(0:10:1000))
|
|
@
|
|
|
|
|
|
|
|
<<>>=
|
|
println(collect(0:10:1000))
|
|
@
|
|
|
|
|
|
|
|
<<>>=
|
|
println(collect(0:10:1000))
|
|
@
|