mirror of https://github.com/mpastell/Weave.jl
31 lines
312 B
Plaintext
31 lines
312 B
Plaintext
|
|
|
|
<<>>=
|
|
using Gadfly
|
|
print(1:10)
|
|
plot(x = 1:10)
|
|
@
|
|
|
|
<<>>=
|
|
import Weave
|
|
Weave.set_chunk_defaults(Dict{Symbol, Any}(
|
|
:out_width => "\\0.5linewidth",
|
|
:results => "tex"
|
|
))
|
|
@
|
|
|
|
<<>>=
|
|
print(1:10)
|
|
plot(x = 1:10)
|
|
@
|
|
|
|
|
|
<<echo = false>>=
|
|
Weave.restore_chunk_defaults()
|
|
@
|
|
|
|
<<>>=
|
|
print(1:10)
|
|
plot(x = 1:10)
|
|
@
|